NHapi:添加多个 ORDER/ORC 段
我正在使用 NHapi 生成 HL7 消息。这是我想要创建的示例消息:
MSH|^~\&|EHR Application|EHR Facility|PH Application|PH Facility|20100929111444||VXU^V04^VXU_V04|NIST-100929111444875|P|2.5.1 PID|||97833566^^^MPI&2.16.840.1.113883.19.3.2.1&ISO^MR||Brown^Mark||19880617|M||2054-5^African American^HL70005|799 Newton Street^^Augusta^ME^04330^^M||^PRN^^^^207^9592228|||||||||N^Not Hispanic or Latino^HL70189 ORC|RE RXA|0|1|201004051600|201004051600|33^Pneumococcal Polysaccharide^CVX|0.5|ml^milliliter^ISO+||||||||1039A||MSD^Merck^HL70227||||A ORC|RE RXA|0|1|201005261100|201005261100|15^"Influenza, split virus"^CVX|0.5|ml^milliliter^ISO+||||||||U6007||NOV^Novartis^HL70227||||A
我可以创建一条包含一个 ORDER (ORC+RXA) 段的消息。如何添加多个? 根据文档VXU_V04_ORDER Group可以重复。
这可以用 C# 和 NHapi(甚至 Java)来完成吗?
I am using NHapi to generate a HL7 message. This is the sample message I want to create:
MSH|^~\&|EHR Application|EHR Facility|PH Application|PH Facility|20100929111444||VXU^V04^VXU_V04|NIST-100929111444875|P|2.5.1 PID|||97833566^^^MPI&2.16.840.1.113883.19.3.2.1&ISO^MR||Brown^Mark||19880617|M||2054-5^African American^HL70005|799 Newton Street^^Augusta^ME^04330^^M||^PRN^^^^207^9592228|||||||||N^Not Hispanic or Latino^HL70189 ORC|RE RXA|0|1|201004051600|201004051600|33^Pneumococcal Polysaccharide^CVX|0.5|ml^milliliter^ISO+||||||||1039A||MSD^Merck^HL70227||||A ORC|RE RXA|0|1|201005261100|201005261100|15^"Influenza, split virus"^CVX|0.5|ml^milliliter^ISO+||||||||U6007||NOV^Novartis^HL70227||||A
I can create a message with one ORDER (ORC+RXA) segment. How do I add multiple of these?
According to the documentation VXU_V04_ORDER Group can be repeated.
Can can this be done with C# and NHapi (or even Java)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
VXU^V04 有一个公共 getORDER (int rep) 方法创建或返回组中的 VXU_V04_ORDER 段。这里的rep是订单组中VXU_V04_ORDER段的索引。
VXU^V04 has a public getORDER(int rep) method to create or return the VXU_V04_ORDER segments in the group. Here rep is the index of the VXU_V04_ORDER segment in the order group.
我花了一些时间才弄清楚。但是,如果您以 HAPI 为例了解如何填充 OBX 段并推断到 VXU_V04_ORDER,那么您就可以做到。
It took me some time to figure it out. But, if you take the HAPI by example about how to populate the OBX segment and extrapolate to VXU_V04_ORDER then you can do it.