Best Way to store recieved hl7 message from customer in database

谁都会走 提交于 2019-12-10 20:57:35

问题


Hi All i am new in mirth.

i want to know the best way to store hl7 message in mysql database in a table where it store only one column as hl7 message or in row and columns like sending application column ,receiving application column etc..

I am unable to find a suitable answer so help me.

Thanks in advance.


回答1:


Parsing the HL7 and storing each HL7 segment in an individual field would be an overkill for the database (HL7 has a hierachical structure and changes from each version to the other).

I would recommend to store really just the attributes you need (IDs, Sending Applications, Timestamp, ...) and put the original HL7 as text(or xml) in one field. You can then take the HL7 and parse it again when you need it.




回答2:


It's also worth noting that in Mirth Connect 3.0, you will have the ability to add custom metadata columns on a per-channel basis, which are stored in the database and indexed on. So for example, you might add a "Sending Application" column to your channel, and use a transformer to pull the data out of MSH.3.1. In addition to storing this value in a separate database column, you could then view that column easily for each message in the Channel Messages screen, and even -search- on that column. It's especially useful for things like patient IDs, names, accession numbers, etc.

The 3.0 GA will be released later this year, but the first beta has already been released: http://www.mirthcorp.com/community/forums/showthread.php?t=8126



来源:https://stackoverflow.com/questions/14356431/best-way-to-store-recieved-hl7-message-from-customer-in-database

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!