[英]NHAPI C# 3.5 parsing orm_001 2.3
I am having trouble putting a structure on this message. 我在将此消息的结构上遇到麻烦。 It is an order message.
这是订单消息。 When it casts it stays null so orm001 is always null.
强制转换时,它保持为空,因此orm001始终为空。 I used some other hl7 types and it went in ok.
我使用了其他hl7类型,一切正常。 I and thinking it may be the OBR line but it still does the same thing when we take it out.
我认为这可能是OBR系列,但是当我们将其取出时,它仍然会执行相同的操作。
static void Main(string[] args)
{
string message =
@"MSH|^~\&|lab1|WEDGE|Lab2|1|20180910045317||ORM^O01|20180910045317|P|2.3
PID|1|WEDGE-15453|WEDGE-15453||Wolfe^Test^K||19560801|F|||122
futh^^Rogersville^MO^65742||(417) 444-4444~|||||||||U
PV1||N|||||1326334459^SUPPORO^OSAKAE^^^^M.D
IN1|1||NULL|Medicare B|^^^^|||||||||||^||||||||||||||||||||2151584A
IN1|2||NULL|AARP Medicare Supplement Plan
F|^^^^|||||||||||^||||||||||||||||||||1234564-22
GT1|1||^||^^^^|
ORC|NW|0698892|||||1||20180910
OBR|1|1271|0698892|CLIN^CYP1A2, CYP2B6, CYP2C9, CYP2C19, CYP2D6, CYP3A4,
CYP3A5, DRD2/ANKK1, APOE, COMT, Factor II, Factor V Leiden, MTHFR, OPRM1,
SLCO1B1, VKORC1^^CLIN^CYP1A2, CYP2B6, CYP2C9, CYP2C19, CYP2D6, CYP3A4,
CYP3A5, DRD2/ANKK1, APOE, COMT, Factor II, Factor V Leiden, MTHFR, OPRM1,
SLCO1B1, VKORC1|||20180910||||||||4N6FLOQ||||||||||||1
DG1|1||F90.2^Attention-deficit hyperactivity disorder, combined type|||W
DG1|2||Z13.79^Encounter for other screening for genetic and chromosomal
anomalies|||W
OBX|1|TX|Drug^Drug Information||00002751001^Humalog Vial 100u/Ml||||||X";
// Get a new instance of the PipeParser to parse this piped message
PipeParser parser = new PipeParser();
// Parsing it will return an abstract message
IMessage m = parser.Parse(message);
// Cast the abstract message to the right type
// Other examples will show how to determine the type
// of message if this is unknown
ORM_O01 orm001 = m as ORM_O01;
// Output one of the field values to the console
Console.WriteLine(orm001.Message);
Console.ReadLine();
}
}
在ORM_O01中 ,不允许重复IN1 ,不允许OBR
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.