简体   繁体   English

使用Hapi Fhir创建高级HL7消息

[英]Creating advanced HL7 message with Hapi Fhir

I am trying to teach myself to use the Hapi Fhir api and I'm starting by creating an HL7 message from Java. 我试图自学使用Hapi Fhir api,并且首先从Java创建HL7消息。 I have been able to do so by looking at this example from the official documentation page. 通过从官方文档页面查看此示例 ,我能够做到这一点 However, now I would like to add some more information to my message by adding the NK1, PV1 and AL1 segments to the message (now it only contains the MSH and PID). 但是,现在我想通过向消息中添加NK1,PV1和AL1段(现在仅包含MSH和PID)来向消息中添加更多信息。 I couldn't find any more complete examples, even looking into github code. 我甚至找不到github代码也找不到更完整的示例。 How can I tackle this? 我该如何解决? Thanks in advance 提前致谢

Use HAPI help appropriate to your HL7v2 message version. 使用适合您的HL7v2消息版本的HAPI帮助。 For example - http://hl7api.sourceforge.net/v25/apidocs/index.html 例如-http://hl7api.sourceforge.net/v25/apidocs/index.html

Thus: 从而:

public PV1 getPV1()

Returns PV1 (Patient Visit) - creates it if necessary 返回PV1(患者就诊)-必要时创建它

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM