CN103139042A - Method and system for processing HL7 messages on basis of file management - Google Patents

Method and system for processing HL7 messages on basis of file management Download PDF

Info

Publication number
CN103139042A
CN103139042A CN2011103799559A CN201110379955A CN103139042A CN 103139042 A CN103139042 A CN 103139042A CN 2011103799559 A CN2011103799559 A CN 2011103799559A CN 201110379955 A CN201110379955 A CN 201110379955A CN 103139042 A CN103139042 A CN 103139042A
Authority
CN
China
Prior art keywords
message
folder
sub
file
transferred
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.)
Granted
Application number
CN2011103799559A
Other languages
Chinese (zh)
Other versions
CN103139042B (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.)
SHENZHEN LANDWIND NETWORK CO Ltd
Original Assignee
SHENZHEN LANDWIND NETWORK 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 SHENZHEN LANDWIND NETWORK CO Ltd filed Critical SHENZHEN LANDWIND NETWORK CO Ltd
Priority to CN201110379955.9A priority Critical patent/CN103139042B/en
Publication of CN103139042A publication Critical patent/CN103139042A/en
Application granted granted Critical
Publication of CN103139042B publication Critical patent/CN103139042B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method and system for processing HL7 messages on the basis of file management. The HL7 messages processing method based on the file management includes: building a message folder, and writing all HL7 messages which require to be transferred in the message folder; sequentially writing file names corresponding to the HL7 messages in an index file from the head of the index file to the tail of the index file according to time sequence of the HL7 messages written in the message file; and performing forwarding process on the HL7 messages in the message file sequentially from the file name at the head of the index file. The method and system for processing HL7 messages on the basis of the file management effectively improves accuracy and effectiveness of HL7 message transmission, avoids lose and transmission delay of the HL7 messages, and can efficiently and accurately complete processing of the HL7 messages.

Description

HL7 message treatment method and system based on file management
Technical field
The present invention relates to a kind of data transmission technology, especially relate to a kind of in medical information system the HL7 message treatment method based on file management, and corresponding HL7 message handling system.
Background technology
In medicine and hygiene fields, in the computer application software integration that solves difference in functionality and technology, network technology is one and is full of vitality, and the high solution of cost-effectiveness comparison.Yet the development of various medical information systems is to comply with market structure, rather than by certain logic system approach, so they have characteristic separately.
Such as the different information systems that, hospital builds based on the needs of business department separately, the different information systems system that to be different manufacturers build based on various criterion or data format has produced a serious obstacle to data interaction each other.
HL7 (Health Level 7) is standardized health information host-host protocol, is the agreement of electric transmission between the medical field different application.HL7 has collected different vendor and has been used for the reference format at interface between application software, and it will allow each medical institutions to carry out data interaction between heterogeneous system, realizes the optimization with information exchange of minimizing of incompatibility between each system.
Because exchanges data amount between each medical information system is very large, and real-time and accuracy requirement to the data exchange are higher, for adopting HL7 to carry out each medical information system of transfer of data, how to solve the problems such as delay, loss of transfer of data, become one of technical barrier that current urgent need solves.
Summary of the invention
The present invention propose a kind of in medical information system the HL7 message treatment method based on file management, and corresponding HL7 message handling system, adopt file data interaction and index file time-sequencing guarantee the accuracy of HL7 transmission of messages and effect is arranged, avoid loss and the transmission delay of message.
The present invention adopts following technical scheme to realize: a kind of HL7 message treatment method based on file management, and it comprises step: set up a message folder, will need each HL7 message of transfer to write message folder; Write the time order and function order of message folder according to each HL7 message, the filename that each HL7 message is corresponding writes index file successively from head to the afterbody of index file; From the filename of index file head, successively each HL7 message in message folder is carried out forward process.
In a preferred embodiment, create five sub-folders that title is respectively InBound, OutBound, Error, Resend and Backup in message folder; All need to be sent to the HL7 message of external system, all be written to the OutBound sub-folder before being sent to external system, with all HL7 message that receives from external system, all be written to the InBound sub-folder before being transferred to corresponding recipient.
In a preferred embodiment, give corresponding recipient with the HL7 message transfers in the InBound sub-folder, if successfully shift, this HL7 message is just transferred to the Backup sub-folder from the InBound sub-folder, otherwise this HL7 message is just transferred to the Error sub-folder from the InBound sub-folder.
In a preferred embodiment, with the HL7 message in the OutBound sub-folder to outside system forwards, if forward successfully, this HL7 message is just transferred to the Backup sub-folder from the OutBound sub-folder, wait for transmission again otherwise this HL7 message is just transferred to the Resend sub-folder from the OutBound sub-folder.
In a preferred embodiment, HL7 message in the Resend sub-folder is sent again, if send successfully, this HL7 message is transferred to the Backup sub-folder from the Resend sub-folder, otherwise just stay the Resend sub-folder and wait for transmission again, after if the HL7 message in the Resend sub-folder repeatedly sends failure, just this HL7 message is transferred to the Error sub-folder from the Resend sub-folder.
In a preferred embodiment, when the number of index file File name is 0, the deletion index file.
In addition, the present invention also discloses a kind of HL7 message handling system based on file management, and it comprises: the message folder that is used for transfer HL7 message; Be used for the HL7 message that receives from external system and the message sink service module that writes message folder; The message that forwards for the HL7 message that all need to be sent to external system sends service module; Be used for writing according to each HL7 message the time order and function order of message folder, the filename that each HL7 message is corresponding writes index file successively from head to the afterbody of index file, and from the filename of index file head, successively each HL7 message in message folder is carried out the file-management services module of forward process.
Compared with prior art, the present invention has following beneficial effect:
The present invention adopts to process HL7 message based on file exchange method and index file ranking method, need HL7 message classification to be processed is written in sub-folder corresponding in message folder, by the judgement to HL7 information receiving and transmitting result, HL7 message file after processing is shifted in these sub-folders, reduce the loss of HL7 message, improve the accuracy of transmission; And employing index file ranking method, the HL7 message of accumulation is in enormous quantities carried out time-sequencing successively, the filename of HL7 message after sequence is written in index file, HL7 message according to list in time order and function sequential processes index file, can avoid the sequence that repeats to HL7 message, thereby the saving computer processing time improves the validity of transmission, avoids network congestion.By theory analysis with facts have proved: the present invention effectively improves accuracy and the validity of HL7 transmission of messages, avoids loss and the transmission delay of HL7 message, can complete efficiently, accurately the HL7 message handling task.
Description of drawings
Fig. 1 is the modular structure schematic diagram of HL7 message handling system;
Fig. 2 is the reception ﹠ disposal schematic flow sheet of HL7 message;
Fig. 3 is the transmission processing schematic flow sheet of HL7 message.
Embodiment
According to the regulation of HL7 standard, message (Message) is the base unit of exchanges data.HL7 realizes that by the mode of message transmission exchanges data is similar to the transmission of network information bag.HL7 message is divided into 3 layers: message body (Content), key-course (Control) and transport layer (Transmission).Wherein, message body is real information load, the data that namely will exchange, but not all message is all imformosome; Key-course is the intermediate layer packing, comprises trigger event, event, position and responsibility etc.; Transport layer is outermost layer packing, is used for that administrative messag is replied, decision etc.
the basic principle of carrying out exchanges data based on the HL7 standard is: at first the application data of different-format converts the standard data format that each system can identify---message to according to the syntax rule of HL7 standard, then according to certain network transmission protocol (as TCP/IP, FTP etc.) or the mode such as E-mail transmit the message to receiving system, that replys and carries out certain validation verification receiving system accordingly in application layer, message sends to application program after by validation verification, resolve according to the syntax rule of HL7 standard again, message conversion is application data the most at last.
As shown in Figure 1, the HL7 message handling system comprises: the message folder that is used for transfer HL7 message; The file-management services module that is used for the administrative messag file; Be used for from receiving the HL7 message of other medical information systems transmission, with its temporary message sink service module to message folder; Be used for sending to the message of other medical information systems to send service module the HL7 message of message folder.
The HL7 message that each medical information system need to exchange all is sent to message folder, then sends service module by message each HL7 message is sent to goal systems; The HL7 message that the message sink service module receives after depositing message folder in, sends to corresponding medical information system under the control of file-management services module.
By receive service reception to file and the file that needs the service that sends to send all be pooled in message folder, by the file-management services module, message folder is managed, the sending order of processing messages and the classification of message are processed.Therefore, the file-management services module has directly determined the efficiency of transmission of HL7 message and the accuracy of transmission to the processing of mutual HL7 message in a large number in message folder.
For fear of the entanglement of loss and the information receiving and transmitting order of HL7 message, guarantee the accuracy of the transmission of HL7 message, the present invention has formulated the file processing method of HL7 message.Create five sub-folders that title is respectively InBound, OutBound, Error, Resend and Backup in message folder.All need to send the HL7 message that service module is sent to external system (certain one or more medical information system) by message, all be written to the OutBound sub-folder before being sent to external system, the HL7 message that all are received from external system by the message sink service module all is written to the InBound sub-folder before the recipient's (certain medical information system) who is transferred to correspondence.
In conjunction with Fig. 2 and shown in Figure 3, management service is in charge of these five sub-folders and to the operation of these five sub-folder Files: if the HL7 message in the InBound sub-folder successfully is transferred to corresponding medical information system, this HL7 message is just transferred to the Backup sub-folder from the InBound sub-folder, otherwise just put into the Error sub-folder; If the HL7 message in the OutBound sub-folder sends service module to outside system forwards success by message, this HL7 message is just transferred to the Backup sub-folder from the OutBound sub-folder, otherwise can revise and put into the Resend sub-folder after the filename of HL7 message and wait for again and sending, can avoid like this that the error message file repeats to send, holding time; If the HL7 message in the Resend sub-folder sends successfully, also this HL7 message is transferred to the Backup sub-folder from the Resend sub-folder, otherwise just stay the Resend sub-folder and wait for transmission again, repeatedly send (such as, transmission times〉5) failure after, just this HL7 message is transferred to the Error sub-folder from the Resend sub-folder.
The time-delay that exists when effectively improving the HL7 transmission of messages improves efficiency of transmission, and we have designed the sort method of HL7 message file.When processing large batch of mutual HL7 message, to process HL7 message according to the write sequence of HL7 message in message folder, so just must a large amount of HL7 message in message folder be sorted according to the time order and function order, then process HL7 message according to the sequencing of time, can effectively prevent accumulation and the transmission delay of HL7 message like this, avoid the HL7 information drop-out.
For fear of repeating sequence, we analyze the HL7 message in message folder, when the HL7 message of accumulating in judging message folder reached some n, we just were written to index file to the filename of n HL7 message according to the sequencing of their write time.When HL7 message file number pending in index file is 0, delete index file; When index file exists, the HL7 message that newly receives in message folder according to the time that writes message folder, is written to respectively the afterbody of index file.When at every turn needing to process, by the write time sequencing, from the head of index file to afterbody, obtain successively each filename, carry out successively forward process by Fig. 2 and flow process shown in Figure 3, will effectively reduce the time that file repeats to sort like this, improve greatly efficiency of transmission.
Suppose original n HL7 message in message folder, within the unit interval, receive again m HL7 message, the time that computer is carried out single operation is t, and operating system is O(nlogn according to the time to the time complexity that n HL7 message file sorts), the each file number of processing of management service is k, processing k needed time of HL7 message is t1, within the unit interval, adopt according to time sequence algorithm, finish dealing with time of this (n+m) individual HL7 message of management service is T1.
Figure 621544DEST_PATH_IMAGE001
(1)
Adopt said method, only need to carry out a minor sort to initial n HL7 message, in message folder, the follow-up HL7 message that writes is written to the afterbody (rearmost end) of index file File list of file names successively, and finish dealing with time of this n+m message of management service is T2.
Figure 338964DEST_PATH_IMAGE002
(2)
From the contrast of above two numerical value as seen, after adopting said method, the time of processing HL7 message significantly reduces, and like this with regard to the accumulation of avoidable HL7 message, thereby effectively improves the transmission delay of HL7 message, improves the validity of transmission of messages.
To sum up, the present invention effectively improves accuracy and the validity of HL7 transmission of messages, avoids loss and the transmission delay of HL7 message.
The above is only preferred embodiment of the present invention, not in order to limiting the present invention, all any modifications of doing within the spirit and principles in the present invention, is equal to and replaces and improvement etc., within all should being included in protection scope of the present invention.

Claims (10)

1. the HL7 message treatment method based on file management, is characterized in that, described method comprises step:
Set up a message folder, will need each HL7 message of transfer to write message folder;
Write the time order and function order of message folder according to each HL7 message, the filename that each HL7 message is corresponding writes index file successively from head to the afterbody of index file;
From the filename of index file head, successively each HL7 message in message folder is carried out forward process.
2. according to claim 1 based on the HL7 message treatment method of file management, it is characterized in that, the step that described each HL7 message that will need transfer writes message folder comprises:
Create five sub-folders that title is respectively InBound, OutBound, Error, Resend and Backup in message folder; All need to be sent to the HL7 message of external system, all be written to the OutBound sub-folder before being sent to external system, with all HL7 message that receives from external system, all be written to the InBound sub-folder before being transferred to corresponding recipient.
3. according to claim 2 based on the HL7 message treatment method of file management, it is characterized in that, the step of described forward process comprises:
Give corresponding recipient with the HL7 message transfers in the InBound sub-folder, if successfully shift, this HL7 message is just transferred to the Backup sub-folder from the InBound sub-folder, otherwise this HL7 message is just transferred to the Error sub-folder from the InBound sub-folder.
4. according to claim 2 based on the HL7 message treatment method of file management, it is characterized in that, the step of described forward process comprises:
With the HL7 message in the OutBound sub-folder to outside system forwards, if forward successfully, this HL7 message is just transferred to the Backup sub-folder from the OutBound sub-folder, wait for transmission again otherwise this HL7 message is just transferred to the Resend sub-folder from the OutBound sub-folder.
5. according to claim 4 based on the HL7 message treatment method of file management, it is characterized in that, the step of described forward process also comprises:
HL7 message in the Resend sub-folder is sent again, if send successfully, this HL7 message is transferred to the Backup sub-folder from the Resend sub-folder, wait for transmission again otherwise just stay the Resend sub-folder.
6. according to claim 5 based on the HL7 message treatment method of file management, it is characterized in that, the step of described forward process also comprises:
After if the HL7 message in the Resend sub-folder repeatedly sends failure, just this HL7 message is transferred to the Error sub-folder from the Resend sub-folder.
7. the described HL7 message treatment method based on file management of according to claim 1-6 any one, is characterized in that, when the number of index file File name is 0, and the deletion index file.
8. the HL7 message handling system based on file management, is characterized in that, described system comprises:
The message folder that is used for transfer HL7 message;
Be used for the HL7 message that receives from external system and the message sink service module that writes message folder;
The message that forwards for the HL7 message that all need to be sent to external system sends service module;
Be used for writing according to each HL7 message the time order and function order of message folder, the filename that each HL7 message is corresponding writes index file successively from head to the afterbody of index file, and from the filename of index file head, successively each HL7 message in message folder is carried out the file-management services module of forward process.
9. according to claim 8 based on the HL7 message handling system of file management, it is characterized in that, create five sub-folders that title is respectively InBound, OutBound, Error, Resend and Backup in message folder; All need to be sent to the HL7 message of external system, all be written to the OutBound sub-folder before being sent to external system, with all HL7 message that receives from external system, all be written to the InBound sub-folder before being transferred to corresponding recipient.
10. according to claim 8 or 9 described HL7 message handling systems based on file management, it is characterized in that, give corresponding recipient with the HL7 message transfers in the InBound sub-folder, if successfully shift, this HL7 message is just transferred to the Backup sub-folder from the InBound sub-folder, otherwise this HL7 message is just transferred to the Error sub-folder from the InBound sub-folder; With the HL7 message in the OutBound sub-folder to outside system forwards, if forward successfully, this HL7 message is just transferred to the Backup sub-folder from the OutBound sub-folder, wait for transmission again otherwise this HL7 message is just transferred to the Resend sub-folder from the OutBound sub-folder.
CN201110379955.9A 2011-11-25 2011-11-25 HL7 message treatment method and system based on file management Active CN103139042B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110379955.9A CN103139042B (en) 2011-11-25 2011-11-25 HL7 message treatment method and system based on file management

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110379955.9A CN103139042B (en) 2011-11-25 2011-11-25 HL7 message treatment method and system based on file management

Publications (2)

Publication Number Publication Date
CN103139042A true CN103139042A (en) 2013-06-05
CN103139042B CN103139042B (en) 2016-05-18

Family

ID=48498373

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110379955.9A Active CN103139042B (en) 2011-11-25 2011-11-25 HL7 message treatment method and system based on file management

Country Status (1)

Country Link
CN (1) CN103139042B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105787842A (en) * 2014-12-26 2016-07-20 北大医疗信息技术有限公司 Medical business data distribution method and medical business data distribution system
CN111125200A (en) * 2019-11-12 2020-05-08 华志微创医疗科技(北京)有限公司 HL7 message processing method and system based on database query

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1362847A (en) * 2001-01-05 2002-08-07 英华达股份有限公司 Fixed-time short message sending method
CN101083582A (en) * 2007-06-22 2007-12-05 华中科技大学 Heterogeneous medical information integrated system based on HL7 agent server
US20090112882A1 (en) * 2007-10-30 2009-04-30 Guy Maresh Methods, systems, and devices for managing medical images and records
US20100257189A1 (en) * 2009-04-03 2010-10-07 Campbell Janet L Healthcare Record System And Method For Providing Improved Portable Data

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1362847A (en) * 2001-01-05 2002-08-07 英华达股份有限公司 Fixed-time short message sending method
CN101083582A (en) * 2007-06-22 2007-12-05 华中科技大学 Heterogeneous medical information integrated system based on HL7 agent server
US20090112882A1 (en) * 2007-10-30 2009-04-30 Guy Maresh Methods, systems, and devices for managing medical images and records
US20100257189A1 (en) * 2009-04-03 2010-10-07 Campbell Janet L Healthcare Record System And Method For Providing Improved Portable Data

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105787842A (en) * 2014-12-26 2016-07-20 北大医疗信息技术有限公司 Medical business data distribution method and medical business data distribution system
CN111125200A (en) * 2019-11-12 2020-05-08 华志微创医疗科技(北京)有限公司 HL7 message processing method and system based on database query

Also Published As

Publication number Publication date
CN103139042B (en) 2016-05-18

Similar Documents

Publication Publication Date Title
CN107749840B (en) One-way data secure transmission and cooperative processing system and method based on one-way gatekeeper
CN100520758C (en) Increasing TCP re-transmission process speed
US7631045B2 (en) Content router asynchronous exchange
CN1534923B (en) Method for simplifying application development by providing signale programming model
CN103283191B (en) Information system, control device, communication means
US7623515B2 (en) Content router notification
CN104239256B (en) Pass through SAS PCIE tunnellings
CN101827019B (en) Network interface device
US20070038703A1 (en) Content router gateway
US20070014277A1 (en) Content router repository
CN106649496A (en) Government affairs data collecting and sharing system and method
US20020143644A1 (en) Connection tool for connecting analytical applications to electronic document sources
CN102892089A (en) Message pushing method, device and system
CN101317416A (en) Content router
CN102710548A (en) Method and system for tracking operation of each email receiver over email
CN104584524A (en) Aggregating data in a mediation system
CN101753584B (en) Method for improving rapid message processing speed of intelligent transformer substation under VxWorks system
CN103199968A (en) Sending method of messages and system
CN103036775A (en) Information exchange device, system and method
CN105162727B (en) A kind of method for realizing quick peer-to-peer communications in DSFA systems based on VxWorks system
CN104618432A (en) Event sending and receiving handling method and system
CN101208675B (en) Frame order processing apparatus, systems, and methods
CN103139042B (en) HL7 message treatment method and system based on file management
US20110202683A1 (en) Inband Data Gathering with Dynamic Intermediary Route Selections
CN109376126A (en) A kind of file or folder processing method, mobile terminal and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: Nanshan District Xueyuan Road in Shenzhen city of Guangdong province 518000 No. 1001 Nanshan Chi Park A3 building 6 floor

Applicant after: LANWON SCIENCE & TECHNOLOGY CO., LTD.

Address before: Futian District King Road Shenzhen city Guangdong province 518000 No. 81 country garden building room 410 (only office)

Applicant before: Shenzhen Landwind Network Co., Ltd.

COR Change of bibliographic data

Free format text: CORRECT: APPLICANT; FROM: SHENZHEN LANDWIND NETWORK CO., LTD. TO: LANWANG TECHNOLOGY CO., LTD.

CB02 Change of applicant information

Address after: Nanshan District Xueyuan Road in Shenzhen city of Guangdong province 518000 No. 1001 Nanshan Chi Park A3 building 6 floor

Applicant after: LANWON TECHNOLOGY CO., LTD.

Address before: Nanshan District Xueyuan Road in Shenzhen city of Guangdong province 518000 No. 1001 Nanshan Chi Park A3 building 6 floor

Applicant before: LANWON SCIENCE & TECHNOLOGY CO., LTD.

COR Change of bibliographic data
C14 Grant of patent or utility model
GR01 Patent grant