我正在创建一个 HL7 界面。当收到的消息正确时,我用这样的 ACK 消息回复 HIS:
msg.generateACK();
如何发送一个NACK消息,表明消息已收到但内容不正确?我正在使用 ca.uhn.hl7v2.model.Message.
要生成 NACK,您需要
msg.generateACK(theAcknowlegementCode,theException);
参数:
有关详细信息,请参阅https://hapifhir.github.io/hapi-hl7v2/base/apidocs/index.html
另外 为什么 NACK 消息未命中以在 Hapi 中创建字段 3、4 和 5 有一个例子