CN112256325B - Interface data adaptation method, equipment, server and storage medium - Google Patents

Interface data adaptation method, equipment, server and storage medium Download PDF

Info

Publication number
CN112256325B
CN112256325B CN202011099985.XA CN202011099985A CN112256325B CN 112256325 B CN112256325 B CN 112256325B CN 202011099985 A CN202011099985 A CN 202011099985A CN 112256325 B CN112256325 B CN 112256325B
Authority
CN
China
Prior art keywords
data
data object
original message
transcoding
analysis
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011099985.XA
Other languages
Chinese (zh)
Other versions
CN112256325A (en
Inventor
石海涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kanghuida Technology Co ltd
Original Assignee
Beijing Kanghuida Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kanghuida Technology Co ltd filed Critical Beijing Kanghuida Technology Co ltd
Priority to CN202011099985.XA priority Critical patent/CN112256325B/en
Publication of CN112256325A publication Critical patent/CN112256325A/en
Application granted granted Critical
Publication of CN112256325B publication Critical patent/CN112256325B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/74Reverse engineering; Extracting design information from source code
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/30Semantic analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/44Encoding
    • G06F8/447Target code generation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present application relates to the field of communications processing technologies, and in particular, to an interface data adaptation method, device, server, and storage medium. The method comprises the following steps: receiving analysis parameters input by an implementer, and generating an analysis function according to the analysis parameters; receiving a first original message pushed by an HIS system; transcoding the first original message according to a preset transcoding rule, and obtaining a first data object; analyzing the first data object according to the analysis function, and obtaining a second data object; and updating the database according to the second data object. The method utilizes the matching of the analysis parameters configured by the implementer and the general interface program to replace and complete the interface development work of an IT engineer, and can effectively reduce the labor cost expenditure of an Internet company in the interface development.

Description

Interface data adaptation method, equipment, server and storage medium
Technical Field
The present application relates to the field of communications processing technologies, and in particular, to an interface data adaptation method, device, server, and storage medium.
Background
The HIS (hospital information System) is a proprietary System used by hospitals to manage online data, and for the needs of upgrading and data display, the hospital party to which the HIS belongs will entrust the internet company to receive and manage the online data circulated by the System by developing an interface program adapted to the HIS.
Because different HISs are used by different hospitals, when the Internet company is connected with different HISs of different hospitals, an interface program needs to be customized and developed for the HIS to which each hospital belongs, so that the technical improvement of IT (Internet technology) engineers of the Internet company is restricted, and the Internet company needs to bear heavier labor cost in the aspect of carrying out HIS connection work.
And each interface program is developed by one or more IT engineers, so once an IT engineer developing a certain interface program develops, the later maintenance work of the interface program by an Internet company is also difficult.
Disclosure of Invention
Aiming at the defects in the prior art, the application aims to provide an interface data adaptation method, equipment, a server and a storage medium, which can enable an implementer to correspondingly complete the assembly of analysis functions in an interface program by means of parameter configuration so as to complete the data transmission and analysis work of different HISs, thereby not only solving the restriction on IT engineers, but also correspondingly reducing the labor cost expenditure of an internet company in the HIS docking work, and simultaneously bringing certain convenience to the later maintenance work of the interface program.
The above object of the present invention is achieved by the following technical solutions:
in a first aspect, an embodiment of the present application provides an interface data adaptation method, where the method includes:
receiving analysis parameters input by an implementer, and generating an analysis function according to the analysis parameters;
receiving a first original message pushed by an HIS system;
transcoding the first original message according to a preset transcoding rule, and obtaining a first data object;
analyzing the first data object according to the analysis function, and obtaining a second data object;
and updating the database according to the second data object.
Through a splitting mode, a plurality of mutually independent analysis methods are obtained from analysis functions in a plurality of interface programs developed by an internet company in the past, and when data interaction is required to be carried out on a certain HIS, the plurality of analysis methods can be recombined into the analysis functions adapted to the HIS only by virtue of analysis parameters configured by implementers;
for IT engineers in Internet companies, the burden of repeatedly developing similar interface programs is saved, so that the IT engineers can obtain enough time to complete high-benefit development work, and the IT engineers can be helped to complete self technical improvement;
for the internet company, because the development workload of an IT engineer is saved by the universal interface program, the labor cost of the internet company when the internet company is connected with the HIS is greatly reduced, and meanwhile, the universal interface program is more convenient for the later maintenance work, so the maintenance difficulty of the universal interface program owned by the internet company is greatly reduced;
for the hospital side to which the HIS belongs, development workload of half a month is needed in the past, and implementation workload within a week is reduced, so that work efficiency of HIS modification upgrading/data display and other work can be greatly improved.
Optionally, the transcoding the first original packet according to a preset transcoding rule, and obtaining a first data object includes:
if the first original message is in an XML format, transcoding the first original message into a first data object in the XML format;
if the first original message is in a JSON format, transcoding the first original message into a first data object in the JSON format;
and if the first original message is in the HL7 format, transcoding the first original message into a first data object in the HL7 format.
By providing transcoding methods of three data formats of XML, JSON and HL7, the universal interface program developed based on the interface data adaptation method is adapted to the message formats of most HIS, and the application range of the universal interface program is expanded.
Optionally, the receiving the analysis parameter input by the implementer includes:
receiving mapping data input by an implementer;
and carrying out semantic recognition on the mapping data and obtaining analysis parameters.
Through a semantic recognition mode, the implementation personnel are assisted to complete the configuration work of analysis parameters quickly, so that the implementation work efficiency during HIS docking is improved, the labor cost expenditure of an Internet company is further reduced, and better service experience is brought to hospital sides to which HIS belongs.
Optionally, the performing semantic recognition on the mapping data and obtaining an analysis parameter includes:
performing semantic recognition on the mapping data and obtaining a parameter mapping relation;
converting the parameter mapping relation into a parameter table in an Excel format so that an implementer can correct the parameters in the parameter table;
and obtaining analysis parameters according to the corrected parameter table.
The parameter mapping relation is converted into the parameter table in the Excel format, so that manual error investigation on the parameter mapping relation by an operator is facilitated, the data accuracy in parameter configuration analysis can be improved, and the accuracy of the finally generated analysis function in the data processing process is ensured.
Optionally, after generating the analytic function, the method further includes:
receiving a test message;
transcoding the test message according to a preset transcoding rule so as to obtain a first test object;
and analyzing the first test object according to the analysis function so as to obtain a second test object, so that an implementer can judge the accuracy of the analysis function according to the second test object.
The accuracy of the generated analytic function is rapidly verified in a mode of analyzing the test message, so that the working efficiency of an implementer in the process of docking HIS (Internet access system) can be improved, and the labor cost expenditure of an Internet company is further reduced.
Optionally, the updating the database according to the second data object includes:
screening the second data object according to a preset filtering rule;
and updating the screened second data object into a database.
Optionally, the method further includes:
capturing a second original message of the HIS;
obtaining a third data object according to the second original message;
and updating the database according to the third data object.
In a second aspect, an interface data adaptation apparatus, the apparatus comprising:
the configuration module is used for receiving analysis parameters input by an implementer and generating an analysis function according to the analysis parameters; the acquisition module is used for receiving a first original message pushed by the HIS system;
the transcoding module is used for transcoding the first original message according to a preset transcoding rule and acquiring a first data object;
the analysis module is used for analyzing the first data object according to the analysis function and obtaining a second data object; and the updating module is used for updating the database according to the second data object.
In a third aspect, an embodiment of the present application further provides a server, where the server includes:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement an interface data adaptation method as in any above.
In a fourth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, the computer program including program instructions, which when executed by a processor, implement the interface data adaptation method described in any one of the above.
To sum up, the application comprises the following beneficial technical effects:
1. the limitation of IT engineers is removed, the labor cost of an Internet company in HIS docking work is reduced, and the later maintenance work of an interface program is facilitated;
2. the parameter configuration efficiency of implementers is improved through a semantic recognition mode, so that the labor cost of an Internet company in HIS docking work is further reduced;
3. the parameter mapping relation is converted into the parameter table in the Excel format, so that manual error investigation on the parameter mapping relation by an operator is facilitated, and the aim of improving the accuracy of parameter configuration analysis is fulfilled.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of an interface data adaptation method in a first embodiment of the present application;
fig. 2 is a schematic structural diagram of an interface data adaptation device in a second embodiment of the present application;
fig. 3 is a schematic structural diagram of a server in a third embodiment of the present application.
Detailed Description
The present application is described in further detail below with reference to the attached drawings.
In order to make the purpose, technical solutions and advantages of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The first embodiment is as follows:
an interface data adaptation method is applied to interface data adaptation equipment.
For convenience of the following description, in the rest of the first embodiment, the above interface data adaptation device will be collectively referred to simply as an interface device.
Referring to fig. 1, the interface data adaptation method specifically includes the following steps: 1100. the interface equipment receives analysis parameters input by an implementer and generates an analysis function according to the analysis parameters.
Specifically, the execution process of step 1100 may be: 1101. the interface device obtains the mapping data.
1102. And the interface equipment carries out semantic recognition on the mapping data and obtains a parameter mapping relation.
1103. And the interface equipment converts the parameter mapping relation into a parameter table in an Excel format.
1104. And the interface equipment obtains analysis parameters according to the corrected parameter table.
1105. And the interface equipment generates an analysis function according to the analysis parameters.
The process of steps 1101 to 1105 will be further explained with reference to examples below:
it is assumed that a developer of a party to which the HIS system belongs provides a HIS data document, and the HIS data document includes at least table data therein, and the contents of the table data are as follows:
table 1: dbo _ Patients (patient subject table)
Figure BDA0002724855840000051
Table 2: dbo _ OperationApply (operation application object table)
Figure BDA0002724855840000052
In addition, assume that the data required by the interface device includes:
patient Name, whose field Name within the interface adapter is O _ PatientName, corresponding to the PatientName field numbered 7 in Table 1;
patient gender, with field name O _ Patient _ six in the interface adapter, corresponding to the six field serial number 3 in table 1;
the department to which the Patient belongs, whose field name in the interface adaptation program is O _ Patient _ Type, corresponds to the headenttype field numbered 5 in table 1;
a Patient bed number, whose field name within the interface adapter program is O _ Patient _ BedNO, corresponding to the BedNO field with number 6 in Table 1;
patient surgical application Number, whose field name within the interface adapter is O _ Apply _ Number, corresponding to the hisschedule eno field numbered 2 in table 1;
the Patient's Disease name, whose field name within the interface adapter program is O _ Patient _ Disease, corresponds to the DiagnoseNameM field numbered 3 in Table 2.
After the implementer imports the HIS data document (i.e., mapping data) into the interface device, the interface device will extract all the text data in the HIS data document, and for convenience of description, the text data extracted from the HIS data document by the interface device will be referred to as a mapping character set hereinafter.
It should be noted that, in order to ensure the data integrity of the mapping character set, when the interface device extracts and integrates the text data in the table data into the mapping character set, each table in the table data is segmented by a separator, so that different data in the same table are aggregated and form a table data set, and the table data sets corresponding to different tables are independent of each other.
In this example, the interface device may first identify and locate a table data set corresponding to each table from the mapping character set, and then perform semantic identification on data in each table data set in a traversal manner to obtain the parameter mapping relationship, where the semantic identification operation may be performed in a specific process:
the interface device acquires and expands all character data in a single table data set, taking a row of character data corresponding to the sequence number 1 in table 1 as an example, the expanded form may be:
patient name | | | | string | | | nothing |7| | PatientName | |.
The expanded line of character data is separated by "|", the interface device firstly positions two character data including 'patient name' and 'none' of Chinese characters, and identifies the character data of the 'patient name' as the field name of the line and the 'none' character data as the remark information of the line through a preset word segmentation library.
And then, carrying out adaptation analysis on the field name of the row and a field name set to be analyzed { "patient name", "patient sex", "department to which the patient belongs", "patient bed number", "patient operation application number" and "patient disease name" } through a semantic recognition algorithm, positioning two character data of "HISPATINTId" and "string" containing English characters when the two character data have adaptation conditions, recognizing the "string" character data as the data type of the row according to a preset data type base, and recognizing the remaining "HISPATINTId" character data as the field name of the row.
Then, the interface device judges whether the remaining "1" character data is a numeric character, and after the judgment is passed, the "1" character data is identified as the serial number of the row in the dbo _ characters table;
finally, the obtained parameter mapping relationship is "O _ parent _ Name → dbo _ names, 7, patrientname, string, none", and this parameter mapping relationship is used to illustrate that the "O _ parent _ Name" field in the adapter mentioned in this application corresponds to the "patrientname" field indicated by the serial number 7 in the HIS system dbo _ names table, and the data type of the "patrientname" field is "string" while the remark information of the "patrientname" field is "none".
After the parameter mapping relationship is obtained, the interface device converts the parameter mapping relationship into a parameter table in an Excel format, where the content of the parameter table in this example is shown in table 3:
table 3: parameter table
Figure BDA0002724855840000071
After the implementer collates the parameter table according to the HIS data document (i.e., mapping data), the interface device generates an analysis parameter according to the collated parameter table, where the analysis parameter may be "dbo _ properties, dbo _ OperationApply; 1-7-string, 1-3-string, 1-5-string, 1-6-string, 1-2-string, 2-3-string ".
The resolution parameters in the above example use semicolons as primary separators and commas as secondary separators, and the two characters "dbo _ titles" and "dbo _ OperationApply" located at the left side of the semicolons are used to explain the number and name of target objects to be resolved when data is resolved; while the six characters "1-7-string", "1-3-string", "1-5-string", "1-6-string", "1-2-string" and "2-3-string" on the right side of the semicolon are used to illustrate the specific manner of data parsing, taking "1-3-string" as an example, it is stated that the second field required for data parsing can be obtained from the 3 rd bit attribute of the object 1(dbo _ properties object), and the obtained data type is string type (string).
After the implementer imports the analysis parameters into the interface device, the interface device generates an analysis function according to the imported analysis parameters.
It should be noted that the word segmentation library generally includes auxiliary words (e.g., ground, earth, obtained, followed, reached, passed, etc.), conjunctions (e.g., and, or, both, etc.), prepositions (e.g., about, from, toward, yes, etc.), verbs (e.g., diagnosis, inquiry, etc.), special characters (e.g., none,/, -, etc.), and in practical applications, the interface device will recognize the character data of the matching word segmentation library as remark information and recognize the character data of the completely non-matching word segmentation library as field names.
Secondly, in practical application, the Semantic Recognition algorithm may be a TCSR (Title Category Semantic Recognition) algorithm, and may also be other algorithms with a Semantic Recognition function, and the specific Semantic Recognition algorithm is not limited in the embodiment of the present application.
In addition, taking java language as an example, in practical applications, the data type library includes nine types of data types, i.e., bootean, byte, short, int, long, char, float, double, string.
Optionally, in order to facilitate the performing staff to perform the checking operation on the parameter table, the interface device may also obtain the number of pages corresponding to each parameter mapping relationship in the process of obtaining the parameter mapping relationship, and when the performing staff performs a certain parameter mapping relationship in the checking parameter table, the number of pages corresponding to the parameter mapping relationship is also displayed to the performing staff in a floating window manner, so that the performing staff can quickly locate the original data content of the parameter mapping relationship in the HIS data document according to the number of pages displayed by the floating window.
1200. The interface device receives a first original message pushed by the HIS system.
Specifically, after a developer of an owner of the HIS system and an implementer negotiate to determine and configure an IP (Internet Protocol) address and a server port for data transmission, the implementer may obtain a first original message actively pushed by the HIS system by using the interface device.
1300. The interface device transcodes the first original message according to a preset transcoding rule and obtains a first data object.
Specifically, the execution process of step 1300 may be: 1301. the interface device determines whether the first original message is in an XML format, if so, execute step 1302; otherwise, go to step 1303.
1302. The interface device transcodes the first original message into the first data object in XML format and does not perform the subsequent operations of step 1300.
1303. The interface device judges whether the first original message is in a JSON format, if so, step 1304 is executed; otherwise, step 1305 is executed.
1304. The interface device transcodes the first original message into the first data object in JSON format, and does not perform the subsequent operation in step 1300.
1305. The interface device determines whether the first original message is in HL7 format, if so, execute step 1306, otherwise, execute step 1307.
1306. The first original message is transcoded into a first data object in HL7(Health Level Seven, standard for Health information exchange) format, and the subsequent operation of step 1300 is not performed.
1307. And the interface equipment returns prompt information so that the implementer can know that the data format of the first original message has errors.
It should be noted that the process from step 1301 to step 1307 is a process of transcoding the first original packet and obtaining the first data object, and in practical applications, in addition to the process from step 1301 to step 1307, the transcoding process of the first data object may be completed by adjusting the sequence of the determination of the XML format/JSON format/HL 7 format.
In addition, in practical application, an implementer may negotiate with a developer of an owner of the HIS system first, and after the data format of the first original packet is agreed to be any one of the XML format/JSON format/HL 7 format, the implementer specifies the transcoding mode to be the corresponding one of the XML format/JSON format/HL 7 format in a parameter configuration mode, so that the interface device completes the operation of generating the first data object according to the first original packet;
assuming that the data format of the first original message agreed by the two parties is XML format, in the process of transcoding the first original message and obtaining the first data object, the interface device will only verify whether the data format of the first original message is XML format, if yes, transcode the first original message into the first data object in XML format, if no, then directly execute the step 1307.
1400. And the interface equipment analyzes the first data object according to the analysis function and obtains a second data object.
Specifically, the following will further explain the execution procedure of step 1400 with reference to the exemplary contents of step 1100.
Assume that the first data object is:
dbo_Patients{
[001, HisS01, 0, 1987-01-02, respiratory medicine, 112, Zhang III ],
[002, HisS02, 1, 1995-03-05, hepatobiliary surgery, gallstone, 205, Litetra ] };
dbo_OperationApply{
[ HisS01, P001, viral pneumonia, MC001, myocarditis, BCC001, bronchiectasis ],
[ HisS02, CCGB001, gallstone, null ] }.
As can be seen from the example contents of step 1100, the parsing parameter is "dbo _ properties, dbo _ OperationApply; 1-7-string, 1-3-string, 1-5-string, 1-6-string, 1-2-string, 2-3-string ".
The interface device analyzes the first data object according to the analysis function generated by the analysis parameter, and obtains a second data object as follows:
{
[ Zhangsan, Male, respiratory medicine, 112, HisS01, viral pneumonia ],
[ Li Si, women, hepatobiliary surgery 205, HisS02, gallstone ]
}。
1500. And the interface equipment updates the database according to the second data object.
Specifically, the interface device adds/replaces the obtained second data object, insert/update, into the database through a preset SQL statement.
It should be noted that, in practical applications, the execution frequency of the SQL statement may be adjusted correspondingly by an implementer in a parameter configuration manner, and the adjustment process is mostly completed in a timing program manner, which enables the update frequency of the second data object in the database to be more practical, so that the applicability of the interface adapter program will be further enhanced.
Optionally, in order to further improve the working efficiency of the implementer, after the interface device generates the parsing function according to the parsing parameters input by the implementer, the interface device will receive the test message set by the implementer in advance, and after the implementer verifies the accuracy of the parsing function according to the parsing result of the test message by the implementer, the interface device will start to receive and parse the first original message pushed by the HIS system.
The parsing process of the test packet may be:
the interface equipment receives the test message;
the interface equipment transcodes the test message according to a preset transcoding rule so as to obtain a first test object;
and the interface equipment analyzes the first test object according to the analysis function so as to obtain a second test object.
In the process of configuring the analysis parameters, the interface device can complete the work of receiving and analyzing the first original message pushed by the HIS system after adjusting the analysis function for many times due to communication obstacles and the like;
however, in the actual application process, it takes much time for the interface device to perform the work of analyzing the first original packet and updating the database from the time of establishing the data connection relationship with the HIS system, which results in lower work efficiency for implementing personnel to adjust the interface device.
And through verifying the analysis result of the test message, the process of establishing a data connection relation between the interface equipment and the HIS can be correspondingly omitted, so that the implementer can rapidly complete the adjustment of the analysis function, and the working efficiency of the implementer is further improved.
Optionally, in order to enhance the reliability of the second data object, before the interface device updates the second data object to the database, the interface device may also screen the second data object according to a preset filtering rule; and updating the screened second data object into the database.
The filtering rule may be:
the first step, judging whether the second data object has attribute loss, if yes, executing the flow of the second step; otherwise, executing the third step.
Step two, judging whether the attribute missing from the second data object is a necessary attribute, if so, executing the flow of the step four; otherwise, executing the third step.
And thirdly, reserving the second data object.
And fourthly, discarding the second data object.
The above filtering rules will be further explained with reference to examples below, assuming that the format of the second data object is [ patient name, patient gender, department to which the patient belongs, patient bed number, surgical application number, patient condition name, medical order, patient address ].
And the filter rules set the necessary attributes to: patient name, patient sex, department to which the patient belongs, patient bed number, operation application number, and patient disease name;
the optional attributes are: doctor's advice, patient's address.
Meanwhile, the second data object obtained by analysis is assumed to be:
{
[ Wang Wu, Man, Oncology, 354, T001, meningioma, null ],
[ Zhao Liu, female, thoracic surgery, 221, T002, null, bed rest, Shanghai City ]
}。
The second object data [ wang five, male, oncology, 354, T001, meningioma, null ] will be retained, while the second object data [ zhao six, female, thoracic surgery, 221, T002, null, bedridden rest, shanghai city ] will be discarded, according to the above filtering rules.
Further, in order to ensure the integrity of the data in the database, the interface device may additionally record the data from the HIS system by actively capturing, where the data additional recording process may be as follows:
capturing a second original message of the HIS;
obtaining a third data object according to the second original message;
and updating the database according to the third data object.
Considering the message loss condition possibly existing in the data transmission process, the interface device is allowed to acquire a second original message from the HIS system in an active capture mode after checking that the database has data loss, subsequently analyze the second original message into a third data object according to the set transcoding rule and the analysis function, and finally update the third data object obtained by analysis into the database so as to complete the recording operation of the data loss in the database.
In the related technology, an internet company needs to arrange an IT engineer to correspondingly develop an interface program adapted to an HIS system in a data interaction process with the HIS system in a hospital; however, in real life, due to different HIS systems of different hospitals docked by the Internet company, the IT engineer needs to develop different interface programs for the HIS system of each hospital, which causes excessive labor cost and time cost to be consumed by the Internet company in the process of data interaction with the HIS system of a third party.
The interface data adaptation method provided by the application replaces the development work of the prior IT engineers by splitting functions for analyzing different messages into mutually independent analysis methods and recombining the split analysis methods into analysis functions adapted to the current HIS system by an implementer in a parameter configuration mode, so that the IT engineers can be liberated from low-benefit interface development work when an internet company is connected with different HIS systems of different hospitals, and therefore, the labor cost and the time cost of the internet company can be effectively reduced when the internet company is connected with the HIS systems of the hospitals.
In practical application, when an internet company is in butt joint with a hospital HIS system, a developer to which the internet company belongs needs to spend more than 20 days each time to complete the development work of an interface program adapting to the HIS system;
after the interface data adaptation method is adopted, an IT engineer of an Internet company only needs to maintain one set of general interface program, actual data docking and transmission work is correspondingly completed by implementing personnel through deploying the general interface program, and the deployment time can be generally completed within 2-5 working days.
The XML/JSON/HL7 three sets of data transcoding modes are configured, so that the universal interface program can be adapted to message formats of different HIS systems, and the applicability of the interface data adaptation method can be effectively improved.
In addition, in order to further facilitate the parameter configuration work performed by the implementer, the interface data adaptation method also assists the implementer to convert the HIS data document into the parameter mapping relationship in a semantic recognition mode, so that the implementer can rapidly configure the analysis parameters by refining the parameter mapping relationship, and the configuration efficiency of the analysis parameters is improved.
In addition, in consideration of a semantic recognition mode, the situation of wrong recognition/missing recognition may exist, and therefore after the parameter mapping relationship is obtained, the interface data adaptation method further facilitates manual error investigation and correction work of implementation personnel on the parameter table by converting the parameter mapping relationship into a parameter table in an Excel format, and the data accuracy of finally obtained analysis parameters can be effectively improved.
In practical application, the interface device applied by the interface data adaptation method may be a computer, a server, or other electronic devices with data transmission and data processing functions, and the specific interface device is not limited in the embodiment of the present application.
Example two:
an embodiment of the present application provides an interface data adapting device 2, and as shown in fig. 2, the device 2 includes:
a configuration module 2100, configured to receive an analysis parameter input by an implementer, and generate an analysis function according to the analysis parameter;
an obtaining module 2200, configured to receive a first original packet pushed by an HIS system;
a transcoding module 2300, configured to transcode the first original packet according to a preset transcoding rule, and obtain a first data object;
the analysis module 2400 is configured to analyze the first data object according to the analysis function, and obtain a second data object;
and an updating module 2500, configured to update the database according to the second data object.
Further, the transcoding module 2300 is specifically configured to:
judging the data format of the first original message;
if the first original message is in an XML format, transcoding the first original message into a first data object in the XML format;
if the first original message is in a JSON format, transcoding the first original message into a first data object in the JSON format;
and if the first original message is in the HL7 format, transcoding the first original message into a first data object in the HL7 format.
Further, the configuration module 2100 specifically includes:
the acquisition submodule is used for receiving mapping data input by an implementer;
and the recognition submodule is used for carrying out semantic recognition on the mapping data and obtaining analysis parameters.
Further, the identifier module is specifically configured to:
performing semantic recognition on the mapping data and obtaining a parameter mapping relation;
converting the parameter mapping relation into a parameter table in an Excel format so that an implementer can correct the parameters in the parameter table;
and obtaining analysis parameters according to the corrected parameter table.
Optionally, the apparatus 2 further comprises:
the test module 2600 is configured to receive a test packet after the parsing function is generated;
the transcoding module 2300 is further configured to transcode the test packet according to a preset transcoding rule, so as to obtain a first test object;
the analysis module 2400 is further configured to analyze the first test object according to an analysis function, so as to obtain a second test object, so that an implementer can determine the accuracy of the analysis function according to the second test object.
Further, the update module 2500 is specifically configured to:
screening the second data object according to a preset filtering rule;
and updating the screened second data object into a database.
Optionally, the apparatus 2 further comprises:
the capturing module 2700 is configured to capture a second original packet of the HIS system;
a conversion module 2800, configured to obtain a third data object according to the second original packet;
the update module 2500 is further configured to update the database according to the third data object.
Example three:
the embodiment of the present application provides a server 3, and referring to fig. 3, the server 3 includes a memory 3100 and a processor 3200, the number of the processors 3200 in the server 3 may be one or more, and one processor 3200 is taken as an example in fig. 3; the memory 3100 and the processor 3200 in the devices may be connected by a bus or other means, which is exemplified in fig. 3.
The memory 3100 is a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules (for example, the configuration module 2100, the obtaining module 2200, the transcoding module 2300, and the like in the interface data adaptation device 2) corresponding to the interface data adaptation method in the embodiment of the present application, and the processor 3200 executes the software programs, instructions, and modules stored in the memory 3100, so as to execute various functional applications and data processing of the device/terminal/device, that is, implement the interface data adaptation method described above.
Wherein the processor 3200 is adapted to run a computer program stored in the memory 3100, the following steps are implemented:
receiving analysis parameters input by an implementer, and generating an analysis function according to the analysis parameters;
receiving a first original message pushed by an HIS system;
transcoding the first original message according to a preset transcoding rule, and obtaining a first data object;
analyzing the first data object according to the analysis function, and obtaining a second data object;
and updating the database according to the second data object.
In one embodiment, a computer program of the computer device provided in the embodiments of the present application is not limited to the above method operations, and may also perform related operations in the interface data adaptation method provided in any embodiment of the present application.
The memory 3100 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 3100 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, memory 3100 may further include memory located remotely from processor 3200, which may be connected to devices/terminals/devices through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Example four:
a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a method for placement of a multi-device advertisement, the method comprising:
receiving analysis parameters input by an implementer, and generating an analysis function according to the analysis parameters;
receiving a first original message pushed by an HIS system;
transcoding the first original message according to a preset transcoding rule, and obtaining a first data object;
analyzing the first data object according to the analysis function, and obtaining a second data object;
and updating the database according to the second data object.
Of course, the storage medium provided in the embodiments of the present application contains computer-executable instructions, and the computer-executable instructions are not limited to the method operations described above, and may also perform related operations in an interface data adaptation method provided in any embodiment of the present application.
The computer-readable storage media of the embodiments of the present application may take any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or terminal. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The embodiment of the application discloses a storage medium, which is used for executing the following method: receiving analysis parameters input by an implementer, and generating an analysis function according to the analysis parameters; receiving a first original message pushed by an HIS system; transcoding the first original message according to a preset transcoding rule, and obtaining a first data object; analyzing the first data object according to the analysis function, and obtaining a second data object; and updating the database according to the second data object.
According to the interface data adaptation method provided by the embodiment of the application, the development work of the interface programs adapted to different HISs is completed by replacing IT engineers through the universal interface programs developed based on the method and the analysis parameters configured by implementers, so that the labor cost expenditure of an Internet company in the development of the HIS interfaces is effectively reduced, and the subsequent interface maintenance work of the Internet company is facilitated;
meanwhile, the restriction of the IT engineer is also removed, so that the IT engineer can complete self technical improvement through high-benefit development work; and the hospital side to which the HIS belongs will also get a better service experience.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (7)

1. A method for interface data adaptation, the method comprising:
receiving analysis parameters input by an implementer, and generating an analysis function according to the analysis parameters;
receiving a first original message pushed by a hospital information system;
transcoding the first original message according to a preset transcoding rule, and obtaining a first data object;
analyzing the first data object according to the analysis function, and obtaining a second data object;
updating the database according to the second data object;
wherein the content of the first and second substances,
the transcoding the first original message according to a preset transcoding rule, and obtaining a first data object includes:
if the first original message is in an XML format, transcoding the first original message into a first data object in the XML format;
if the first original message is in a JSON format, transcoding the first original message into a first data object in the JSON format;
if the first original message is in an HL7 format, transcoding the first original message into a first data object in an HL7 format;
wherein the content of the first and second substances,
the receiving of the analysis parameters input by the implementer includes:
receiving mapping data input by an implementer;
performing semantic recognition on the mapping data and obtaining analysis parameters;
wherein the content of the first and second substances,
the semantic recognition of the mapping data and the acquisition of the analysis parameters comprise:
performing semantic recognition on the mapping data and obtaining a parameter mapping relation;
converting the parameter mapping relation into a parameter table in an Excel format so that an implementer can correct the parameters in the parameter table;
and obtaining analysis parameters according to the corrected parameter table.
2. The method of claim 1, wherein after generating the analytical function, the method further comprises:
receiving a test message;
transcoding the test message according to a preset transcoding rule so as to obtain a first test object;
and analyzing the first test object according to the analysis function so as to obtain a second test object, so that an implementer can judge the accuracy of the analysis function according to the second test object.
3. The method of claim 1, wherein updating the database based on the second data object comprises:
screening the second data object according to a preset filtering rule;
and updating the screened second data object into a database.
4. The method of claim 1, further comprising:
capturing a second original message of the hospital information system;
obtaining a third data object according to the second original message;
and updating the database according to the third data object.
5. An interface data adaptation device, comprising:
the configuration module is used for receiving analysis parameters input by an implementer and generating an analysis function according to the analysis parameters;
the acquisition module is used for receiving a first original message pushed by a hospital information system;
the transcoding module is used for transcoding the first original message according to a preset transcoding rule and acquiring a first data object;
the analysis module is used for analyzing the first data object according to the analysis function and obtaining a second data object;
the updating module is used for updating the database according to the second data object;
wherein the content of the first and second substances,
the transcoding module is specifically configured to:
if the first original message is in an XML format, transcoding the first original message into a first data object in the XML format;
if the first original message is in a JSON format, transcoding the first original message into a first data object in the JSON format;
if the first original message is in an HL7 format, transcoding the first original message into a first data object in an HL7 format;
wherein the content of the first and second substances,
the configuration module is specifically configured to:
receiving mapping data input by an implementer;
performing semantic recognition on the mapping data and obtaining analysis parameters;
wherein the content of the first and second substances,
the configuration module is further specifically configured to:
performing semantic recognition on the mapping data and obtaining a parameter mapping relation;
converting the parameter mapping relation into a parameter table in an Excel format so that an implementer can correct the parameters in the parameter table;
and obtaining analysis parameters according to the corrected parameter table.
6. A server, characterized in that the server comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the interface data adaptation method of any of claims 1-4.
7. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the interface data adaptation method according to any one of claims 1 to 4.
CN202011099985.XA 2020-10-14 2020-10-14 Interface data adaptation method, equipment, server and storage medium Active CN112256325B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011099985.XA CN112256325B (en) 2020-10-14 2020-10-14 Interface data adaptation method, equipment, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011099985.XA CN112256325B (en) 2020-10-14 2020-10-14 Interface data adaptation method, equipment, server and storage medium

Publications (2)

Publication Number Publication Date
CN112256325A CN112256325A (en) 2021-01-22
CN112256325B true CN112256325B (en) 2021-08-17

Family

ID=74242444

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011099985.XA Active CN112256325B (en) 2020-10-14 2020-10-14 Interface data adaptation method, equipment, server and storage medium

Country Status (1)

Country Link
CN (1) CN112256325B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113626008B (en) * 2021-10-14 2022-03-15 东集技术股份有限公司 System, method and device for physical device adaptation based on hybrid development application
CN115510825B (en) * 2022-11-18 2023-04-07 深圳市徐港电子有限公司 Audio parameter configuration method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102006015219A1 (en) * 2006-03-30 2007-10-04 Robert Bosch Gmbh Control device has microcontroller designed as algorithm server and connected to another microcontroller, which is designed as value added function server, by serial interface, where software transfer takes place between microcontrollers
EP2191388A1 (en) * 2007-09-21 2010-06-02 Augusta Systems, Inc. System and method for deploying and managing intelligent nodes in a distributed network
US9946520B1 (en) * 2015-02-26 2018-04-17 MathNimbus Inc. Conversion of interpretive language functions into web applications or services
CN110377325A (en) * 2019-06-17 2019-10-25 中国平安人寿保险股份有限公司 Interface allocation method, interface call method, device, equipment and storage medium
CN110806862A (en) * 2019-10-12 2020-02-18 上海巍驰信息技术有限公司 System for automatically generating interface program code based on configuration model

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105760498A (en) * 2016-02-22 2016-07-13 浪潮通用软件有限公司 Achievement method of XML data and relational database matching
US10656919B2 (en) * 2016-10-25 2020-05-19 Paypal, Inc. Matching programming variables across different data domains
CN111382314A (en) * 2020-03-20 2020-07-07 山东浪潮通软信息科技有限公司 Method for realizing flexible configuration of heterogeneous system service integration

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102006015219A1 (en) * 2006-03-30 2007-10-04 Robert Bosch Gmbh Control device has microcontroller designed as algorithm server and connected to another microcontroller, which is designed as value added function server, by serial interface, where software transfer takes place between microcontrollers
EP2191388A1 (en) * 2007-09-21 2010-06-02 Augusta Systems, Inc. System and method for deploying and managing intelligent nodes in a distributed network
US9946520B1 (en) * 2015-02-26 2018-04-17 MathNimbus Inc. Conversion of interpretive language functions into web applications or services
CN110377325A (en) * 2019-06-17 2019-10-25 中国平安人寿保险股份有限公司 Interface allocation method, interface call method, device, equipment and storage medium
CN110806862A (en) * 2019-10-12 2020-02-18 上海巍驰信息技术有限公司 System for automatically generating interface program code based on configuration model

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
SpringBoot发送Http请求-接口对接;Hello Bug;《CSDN:https://blog.csdn.net/AdminPwd/article/details/108678620?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522162623121816780366556735%2522%252C%2522scm》;20200919;第1-8页 *

Also Published As

Publication number Publication date
CN112256325A (en) 2021-01-22

Similar Documents

Publication Publication Date Title
CN112256325B (en) Interface data adaptation method, equipment, server and storage medium
CN107608889B (en) Method and system for automatically generating test script
KR101099196B1 (en) adaptive machine translation
CN110764753A (en) Business logic code generation method, device, equipment and storage medium
MacDonell et al. Autonomous requirements specification processing using natural language processing
CN111078729B (en) Medical data tracing method, device, system, storage medium and electronic equipment
US20120254833A1 (en) Software layout processing in localization
CN104899070B (en) Implementation method, system and the device of device command row
CN111930618A (en) Interface-based testing method and system
CN110990591A (en) Method and system for auditing transcoding quality of medical data
WO2022267310A1 (en) Auxiliary processing method and device for software development, storage medium and program product
CN106919374A (en) A kind of scenario generation method and device
Zhang et al. Automated Extraction of Grammar Optimization Rule Configurations for Metamodel-Grammar Co-evolution
CN114691143A (en) Code generation method, device, equipment and computer readable storage medium
CN109062913B (en) Internationalization resource intelligent acquisition method and storage medium
CN114625413A (en) Routing data generation method, device, equipment and storage medium
CN114528218A (en) Test program generation method, test program generation device, storage medium, and electronic device
KR101568346B1 (en) Knowledge acquisition system based on un-structured data for never-ending and self-evolving
CN111294232B (en) Computer system for multiple document editor
KR101207375B1 (en) System and method for managing mathematical contents
US20030041046A1 (en) Method for extracting, filtering and separating events from system firmware and software
CN115687292B (en) Verifiable database upgrading method irrelevant to database technology
CN114140810B (en) Method, apparatus and medium for structured recognition of documents
KR20230099924A (en) Method and apparatus for converting non-clinical trial data and clinical trial data to CDISC standard data
JP4035975B2 (en) Machine translation terminal device, machine translation system, machine translation terminal device control method, machine translation system control method, machine translation terminal device control program, and recording medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant