[英]NHAPI ZPI Segment
We are planning to use NHAPI in our application as a PILOT run. 我们计划在我们的应用程序中使用NHAPI作为PILOT运行。 I am in the process of verifying whether the current message can be parsed using NHAPI. 我正在验证是否可以使用NHAPI解析当前消息。
So we got a segment named " ZPI – Additional Prescription Information Segment ". 因此,我们得到了一个名为“ ZPI –附加处方信息段 ”的段 。 Since I believe there are no segment defined to parse it, is it possible to use Zxx segment? 由于我相信没有定义可用于解析的段,是否可以使用Zxx段?
Regards, 问候,
Raaj 拉吉
Have a look at how the following unit test parses a message with a custom Z segment: 看一下以下单元测试如何解析带有自定义Z段的消息:
https://github.com/duaneedwards/nHapi/blob/master/NHapi20/NHapi.NUnit/CustomZSegmentTest.cs https://github.com/duaneedwards/nHapi/blob/master/NHapi20/NHapi.NUnit/CustomZSegmentTest.cs
You'll have to poke around the code / classes to see how it works and there will be a bit of setup, this won't just work with the message you have as is. 您必须四处浏览代码/类以查看其工作方式,并进行一些设置,这不仅会按原样处理您的消息。
Yes, is possible 是的,可能
ORM_O01 or = new ORM_O01 ();
ORM_O01_ORDER order = or.getORDER ();
order.getMessage().addNonstandardSegment ("ZDS");
Terser t = new Terser (or); t.set ("ZDS-1-1", "1223"); t.set
("ZDS-2-1", "RIS71");
_ormmsg.addNonstandardSegment("ZDS");
Terser terser = new Terser(_ormmsg);
terser.Set("ZDS-1", "1");
terser.Set("ZDS-2", "2");
terser.Set("ZDS-3", "3");
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.