Disclosure of Invention
The embodiment of the application aims to provide a data acquisition method, a device, electronic equipment and a computer readable storage medium, which can solve the problem that programmers are required to write different codes for different medical platforms specially in the prior art, save manpower and material resources and reduce cost.
In a first aspect, an embodiment of the present application provides a data acquisition method, including:
receiving a flow of conversion data of a plurality of users, and generating identification information for the flow, wherein the identification information is used for identifying the users;
Receiving an access request of a current user, wherein the access request comprises identification information of the current user;
A flow of acquiring conversion data of the current user according to the identification information of the current user;
Acquiring target data according to the access request of the current user and the flow of the conversion data of the current user, and converting the target data into standard data;
and sending the standard data to the current user.
In the implementation process, the flow of the conversion data of the plurality of users is received, and the identification information is generated for the flow, when the access request of the user is received each time, the obtained data can be processed according to the flow of the conversion data corresponding to the current user, so that the format of the final standard data can be accepted by the current user. Based on the implementation mode, repeated code writing can be avoided, and manpower and material resources are saved.
Further, the flow of the conversion data of the plurality of users comprises a sequence of components;
The step of the flow of receiving the plurality of user conversion data comprises the following steps:
Receiving a conversion component for converting data by the plurality of users and an order in which the conversion component is used by the plurality of users;
A sequence of components for the plurality of users is generated based on the conversion components used by the plurality of users to convert the data and an order in which the plurality of users use the conversion components.
In the implementation process, the flow of converting data comprises a sequence of components, the format of the data is limited, and the flow of converting data of each user is to acquire data with different formats by using each component and convert the data with different formats. The step of the flow of receiving the plurality of user conversion data is therefore to receive the plurality of users in the order in which the conversion components are used by the plurality of users to convert the data and the plurality of users use the conversion components, and to generate a sequence of components corresponding to each of the plurality of users based on the order in which the conversion components are used by the plurality of users and the conversion components are used by the plurality of users. Based on the above embodiment, the flow of the plurality of user conversion data can be received quickly.
Further, the component sequence comprises an acquisition component sequence and a conversion component sequence;
The step of obtaining target data according to the access request of the current user and the flow of the conversion data of the current user and converting the target data into standard data comprises the following steps:
Acquiring the target data according to the acquisition component sequence;
And inputting the target data into the conversion component sequence to obtain the standard data.
In the implementation process, the process of acquiring the standard data by each user comprises the steps of acquiring the target data and converting the target data, so that the component sequence comprises an acquisition component sequence and a conversion component sequence, the target data is acquired according to the acquisition component sequence, and the target data is input into the conversion component sequence to obtain the standard data. Based on the above embodiment, standard data can be acquired quickly.
Further, the flow of the conversion data of the plurality of users comprises a sequence of components;
The step of the flow of receiving the conversion data of a plurality of users comprises the following steps:
Receiving a receivable data format transmitted by the plurality of users;
acquiring a plurality of components in the database;
and generating a component sequence of the plurality of users according to the receivable data formats of the plurality of users and the plurality of components.
In the above implementation, by receiving the receivable data formats transmitted by the plurality of users, it is possible to know which components should be applied to convert the data and the order in which the components are used, thereby generating a sequence of components for the plurality of users. Based on the above embodiments, a sequence of components for a plurality of users can be generated.
In a second aspect, the present application provides a data acquisition apparatus comprising:
The system comprises a receiving module, a receiving module and a processing module, wherein the receiving module is used for receiving a flow of conversion data of a plurality of users, generating identification information for the flow, wherein the identification information is used for identifying the users;
the acquisition module is used for acquiring the flow of the conversion data of the current user according to the identification information of the current user;
The conversion module is used for obtaining target data according to the access request of the current user and the flow of the conversion data of the current user and converting the target data into standard data;
And the sending module is used for sending the standard data to the current user.
In the implementation process, the receiving module receives the flow of the conversion data of the plurality of users and generates the identification information for the flow, and when the receiving module receives the access request of the user each time, the conversion module can process the obtained data according to the flow of the conversion data corresponding to the current user acquired by the acquisition module, so that the format of the final standard data can be accepted by the current user. The sending module sends the standard data to the current client. Based on the implementation mode, repeated code writing can be avoided, and manpower and material resources are saved.
Further, the flow of the conversion data of the plurality of users comprises a sequence of components;
The receiving module is also used for receiving conversion components used by the plurality of users for converting the data and the order of the plurality of users using the conversion components, and generating component sequences of the plurality of users according to the conversion components used by the plurality of users for converting the data and the order of the plurality of users using the conversion components.
In the implementation process, the flow of converting data comprises a sequence of components, the format of the data is limited, and the flow of converting data of each user is to acquire data with different formats by using each component and convert the data with different formats. The step of the flow of receiving the conversion data of the plurality of users by the receiving module is to receive the conversion components used by the plurality of users for converting the data and the order in which the conversion components are used by the plurality of users, and generate a sequence of components corresponding to each of the plurality of users according to the conversion components and the order in which the conversion components are used by the plurality of users. Based on the above embodiment, the flow of the plurality of user conversion data can be received quickly.
Further, the component sequence comprises an acquisition component sequence and a conversion component sequence;
Acquiring the target data according to the acquisition component sequence;
And inputting the target data into the conversion component sequence to obtain the standard data.
In the implementation process, the process of acquiring the standard data by each user comprises the steps of acquiring the target data and converting the target data, so that the component sequence comprises an acquisition component sequence and a conversion component sequence, the conversion module acquires the target data according to the acquisition component sequence, and the target data is input into the conversion component sequence to obtain the standard data. Based on the above embodiment, standard data can be acquired quickly.
Further, the flow of the conversion data of the plurality of users comprises a sequence of components;
the receiving module is also used for receiving receivable data formats transmitted by a plurality of users, acquiring a plurality of components in the database, and generating a component sequence of the plurality of users according to the receivable data formats of the plurality of users and the plurality of components.
In the implementation process, the device can know which components should be applied to convert the data by receiving the receivable data formats transmitted by the plurality of users, and use the order of the components, so as to generate a component sequence of the plurality of users. Based on the above embodiments, a sequence of components for a plurality of users can be generated.
In a third aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the method according to any one of the first aspects when the computer program is executed.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where instructions are stored, which when executed on a computer, cause the computer to perform the method according to any one of the first aspects.
In a fifth aspect, embodiments of the present application provide a computer program product, which when run on a computer causes the computer to perform the method according to any of the first aspects.
Additional features and advantages of the disclosure will be set forth in the description which follows, or in part will be obvious from the description, or may be learned by practice of the disclosure.
In order to make the above objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application.
It should be noted that like reference numerals and letters refer to like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only to distinguish the description, and are not to be construed as indicating or implying relative importance.
Example 1
The embodiment of the application provides a data acquisition method, as shown in fig. 1, which comprises the following steps:
s1, receiving a flow of conversion data of a plurality of users, generating identification information for the flow, wherein the identification information is used for identifying the users;
S2, receiving an access request of a current user, wherein the access request comprises identification information of the current user;
S3, acquiring a flow of conversion data of the current user according to the identification information of the current user;
s4, acquiring target data according to the access request of the current user and the flow of the conversion data of the current user, and converting the target data into standard data;
and S5, sending the standard data to the current user.
In the above embodiment, the current user belongs to one of the plurality of users. The identification information may be a router address of each user
And receiving the flow of the conversion data of the plurality of users, generating identification information for the flow, and processing the obtained data according to the flow of the conversion data corresponding to the current user when each time an access request of the user is received, so that the format of the final standard data can be accepted by the current user. Based on the implementation mode, repeated code writing can be avoided, and manpower and material resources are saved.
In a possible implementation manner, before S1, the method further includes generating a template page, sending the page to a client of the user, where the page template includes components used for converting a data format, and the page template enables multiple users to drag the components to form a self flow of converting data. The multiple users can acquire the target data by utilizing the flow of the conversion data generated by the users based on the data which can be received currently, and convert the target data into standard data. And if the standard data can meet the requirements, uploading the flow of the converted data.
By means of the method, interface resources with different data standards provided by medical institutions in all places can be integrated, heterogeneous data integration is completed, interconnection and sharing collaboration of medical information is achieved, and service application is conveniently provided for operation management of hospitals, medical clinical decisions and convenient medical treatment of patients.
The business party or developer can select the data conversion component to be used by himself in a visible mode, and the data conversion component is arranged into a complete data access and conversion flow in a visual and automatic mode, so that the business code is not required to be developed in the period, and an efficient access and conversion interface mode is achieved. Such an embodiment can achieve the effects of simple operation, high efficiency, and the like.
In one possible implementation, a different flow of data conversion may be used as each user goes to obtain data for other users that are not in use. Thus, the identification information of each user may correspond to a flow of a plurality of conversion data. Each user's flow of converting data has its own number. And the subsequent call is convenient.
In one possible embodiment, as shown in fig. 2, S1 further includes:
S11, receiving conversion components used by a plurality of users for converting data and the order of using the conversion components by the plurality of users;
And S12, generating a component sequence of the plurality of users according to the conversion components used by the plurality of users for converting the data and the order of the conversion components used by the plurality of users.
The flow of converting data of a plurality of users comprises a sequence of components, the format of the data is limited, and each user obtains data with different formats by utilizing each component and converts the data with different formats. The step of the flow of receiving the plurality of user conversion data is therefore to receive the plurality of users in the order in which the conversion components are used by the plurality of users to convert the data and the plurality of users use the conversion components, and to generate a sequence of components corresponding to each of the plurality of users based on the order in which the conversion components are used by the plurality of users and the conversion components are used by the plurality of users. Based on the above embodiment, the flow of the plurality of user conversion data can be received quickly.
In one possible implementation, the component sequence includes an acquisition component sequence, a conversion component sequence;
as shown in fig. 3, S4 further includes:
S41, acquiring target data according to an acquisition component sequence;
s42, inputting the target data into the conversion component sequence to obtain standard data.
In the implementation process, the process of acquiring the standard data by each user comprises the steps of acquiring the target data and converting the target data, so that the component sequence comprises an acquisition component sequence and a conversion component sequence, the target data is acquired according to the acquisition component sequence, and the target data is input into the conversion component sequence to obtain the standard data. Based on the above embodiment, standard data can be acquired quickly.
In one possible embodiment, S1 may further include:
receiving a receivable data format transmitted by a plurality of users;
acquiring a plurality of components in a database;
A sequence of components for the plurality of users is generated based on the receivable data formats for the plurality of users, the plurality of components.
By receiving the receivable data formats transmitted by the plurality of users, it is possible to know which components should be applied to convert the data and the order in which the components are used, thereby generating a sequence of components for the plurality of users. Based on the above embodiments, a sequence of components for a plurality of users can be generated.
In the above embodiment, the database refers to a component database that stores components that are compiled in advance by a programmer.
Example 2
The embodiment of the application also provides a data acquisition device, as shown in fig. 4, which comprises:
The system comprises a receiving module 1, a receiving module and a processing module, wherein the receiving module is used for receiving the flow of the conversion data of a plurality of users, generating identification information for the flow, wherein the identification information is used for identifying the users;
The acquisition module 2 is used for acquiring the flow of the conversion data of the current user according to the identification information of the current user;
the conversion module 3 is used for obtaining target data according to the access request of the current user and the flow of the conversion data of the current user and converting the target data into standard data;
And the sending module 4 is used for sending the standard data to the current user.
In the above implementation process, the receiving module 1 receives the flow of the conversion data of the plurality of users, and generates the identification information for the flow, and when the receiving module 1 receives the access request of the user each time, the converting module 3 processes the obtained data according to the flow of the conversion data corresponding to the current user obtained by the obtaining module 2, so that the format of the final standard data can be accepted by the current user. The transmitting module 4 transmits the standard data to the current client. Based on the implementation mode, repeated code writing can be avoided, and manpower and material resources are saved.
In one possible implementation, the flow of conversion data for a plurality of users includes a sequence of components;
The receiving module 1 is further configured to receive conversion components used by the plurality of users to convert the data and an order in which the conversion components are used by the plurality of users, and generate a component sequence of the plurality of users according to the conversion components used by the plurality of users to convert the data and the order in which the conversion components are used by the plurality of users.
In the implementation process, the flow of converting data comprises a sequence of components, the format of the data is limited, and the flow of converting data of each user is to acquire data with different formats by using each component and convert the data with different formats. The step of the flow of receiving the conversion data of the plurality of users by the receiving module 1 is to receive the conversion components used by the plurality of users to convert the data and the order in which the conversion components are used by the plurality of users, and to generate a sequence of components corresponding to each of the plurality of users according to the conversion components and the order in which the conversion components are used by the plurality of users. Based on the above embodiment, the flow of the plurality of user conversion data can be received quickly.
In one possible implementation, the component sequence includes an acquisition component sequence, a conversion component sequence;
Acquiring target data according to the acquisition component sequence;
And inputting the target data into the conversion component sequence to obtain standard data.
In the implementation process, the process of acquiring the standard data by each user comprises the steps of acquiring the target data and converting the target data, so that the component sequence comprises an acquisition component sequence and a conversion component sequence, the conversion module 3 acquires the target data according to the acquisition component sequence, and inputs the target data into the conversion component sequence to obtain the standard data. Based on the above embodiment, standard data can be acquired quickly.
In one possible implementation, the flow of conversion data for a plurality of users includes a sequence of components;
The receiving module 1 is further configured to receive receivable data formats transmitted by a plurality of users, acquire a plurality of components in a database, and generate a component sequence of the plurality of users according to the receivable data formats of the plurality of users and the plurality of components.
In the above implementation, by receiving the receivable data formats transmitted by the plurality of users, it is possible to know which components should be applied to convert the data and the order in which the components are used, thereby generating a sequence of components for the plurality of users. Based on the above embodiments, a sequence of components for a plurality of users can be generated.
As shown in fig. 5, embodiments of the present application also provide an electronic device that may include a processor 51, a communication interface 52, a memory 53, and at least one communication bus 54. Wherein the communication bus 54 is used to enable direct connection communication of these components. Wherein the communication interface 52 of the device in the embodiment of the present application is used for signaling or data communication with other node devices. The processor 51 may be an integrated circuit chip with signal processing capabilities.
The processor 51 may be a general-purpose processor including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc., or may be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present application may be implemented or performed. The general purpose processor may be a microprocessor or the processor 51 may be any conventional processor or the like.
The Memory 53 may be, but is not limited to, random access Memory (Random Access Memory, RAM), read Only Memory (ROM), programmable Read Only Memory (Programmable Read-Only Memory, PROM), erasable Read Only Memory (Erasable Programmable Read-Only Memory, EPROM), electrically erasable Read Only Memory (Electric Erasable Programmable Read-Only Memory, EEPROM), etc. The memory 53 has stored therein computer readable instructions which, when executed by the processor 51, enable the apparatus to perform the various steps involved in the embodiments of the methods of figures 1-3 described above.
Optionally, the electronic device may further include a storage controller, an input-output unit. The memory 53, the memory controller, the processor 51, the peripheral interface, and the input/output unit are electrically connected directly or indirectly to each other, so as to realize data transmission or interaction. For example, the components may be electrically coupled to each other via one or more communication buses 54. The processor 51 is arranged to execute executable modules stored in the memory 53, such as software functional modules or computer programs comprised by the device.
The input-output unit is used for providing the user with the creation task and creating the starting selectable period or the preset execution time for the task so as to realize the interaction between the user and the server. The input/output unit may be, but is not limited to, a mouse, a keyboard, and the like.
It will be appreciated that the configuration shown in fig. 5 is merely illustrative, and that the electronic device may also include more or fewer components than shown in fig. 5, or have a different configuration than shown in fig. 5. The components shown in fig. 5 may be implemented in hardware, software, or a combination thereof.
The embodiment of the application also provides a storage medium, on which instructions are stored, which when executed on a computer, implement the method of the method embodiment when the computer program is executed by a processor, and in order to avoid repetition, the description is omitted here.
Embodiments of the present application also provide a computer program product which, when run on a computer, causes the computer to perform a method as in the method embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The apparatus embodiments described above are merely illustrative, for example, of the flowcharts and block diagrams in the figures that illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form a single part, or each module may exist alone, or two or more modules may be integrated to form a single part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. The storage medium includes a U disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, an optical disk, or other various media capable of storing program codes.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and variations will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application. It should be noted that like reference numerals and letters refer to like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.