将客户收到的hl7消息存储在数据库中的最佳方法 [英] Best Way to store recieved hl7 message from customer in database

查看:289
本文介绍了将客户收到的hl7消息存储在数据库中的最佳方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,我是新来的.

我想知道将hl7消息存储在mysql数据库的表中的最佳方法,该表仅将hl7消息存储为一列,或者存储在发送和发送应用程序列,接收应用程序列等的行和列中.

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.

谢谢.

推荐答案

解析HL7并将每个HL7段存储在一个单独的字段中对于数据库来说是一个过大的选择(HL7具有层次结构,并且从每个版本到另一个版本都有变化).

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).

我建议您仅存储所需的属性(ID,发送应用程序,时间戳等),然后将原始的HL7作为文本(或xml)放在一个字段中.然后,您可以使用HL7,并在需要时再次对其进行解析.

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.

这篇关于将客户收到的hl7消息存储在数据库中的最佳方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆