【问题标题】:NHAPI C# 3.5 parsing orm_001 2.3NHAPI C# 3.5 解析 orm_001 2.3
【发布时间】:2018-09-15 16:46:24
【问题描述】:

我在为这条消息添加结构时遇到了问题。这是一个订单消息。当它投射时,它保持为空,因此 orm001 始终为空。我使用了其他一些 hl7 类型,它可以正常运行。我认为它可能是 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();

        }
    }

【问题讨论】:

    标签: c# hl7 nhapi


    【解决方案1】:

    ORM_O01中不允许重复IN1,不允许OBR

    【讨论】:

      猜你喜欢
      • 2015-05-05
      • 2017-10-10
      • 2019-01-14
      • 2011-08-17
      • 1970-01-01
      • 1970-01-01
      • 2015-02-11
      • 2012-05-28
      • 2021-11-03
      相关资源
      最近更新 更多