OBR repetitions on HL7 ORM_o01 nHapi

Hi, I am trying to parse HL7 ORM_o01

Messages, but I get an error that I cannot get OBR rehearsals. I am understanding the usage HL7 2.3

, and this format allows OBR repetitions in accordance with the standard. Below is the post HL7

I am trying to parse with nHapi

. Is there a way to remove the replication limit?
    MSH|^~\&|TEST|LAB|FFLEX|TEST|20030723120318||ORM^O01|163|T|2.3||||NE|NE
    PID||36996-13|36996-13||WHITE^TEST^W^^|SMITH|19441215|F|NONE||1540 ECONSTITUTION^^LONG BEACH^CA^90001^^^||(480)795-3023|(480)795-3333||||00012350583|015348184||||
    NTE|1||Patient Level Comment Only
    PV1|1|I|ER||||10830^ATTEND^ING|20830^REF^ALICE^|30830^LEE^CONSULT^||||||||40830^LEE^ADMIT^||3501319|
    DG1|1||001.9^CHOLERA NOS|
    GT1|1|000614848|WHITE^TEST^W^^||1540 E CONSTITUTION^^LONGBEACH^CA^90001^^^|(505)791-1023||19441215|F||1|015348184|
    IN1|1|PLAN001|210012|BANNER CHOICE PLUS|445 W 5TH PLACE #108^^LOSANGELES^CA^90002||(800)333-4444|BHA001|VALLEY MC||||||PI|WHITE^TEST^W^^|1|19441215|155 E2nd^^LONG BEACH^CA^90001^^^||||||||||||N|||||123456|
    ORC|NW|000000064|||||||20030723114728|||20830^REF^ALICE^
    OBR|2|000000064||ALT^ALT^L|R|20030723114734|20030723115904||4~CC|Tech|N|||20030723115904|BLDV-BLOOD VENOUS^^^LA~LEFT ARM|40830^LEE^ADMIT^|||||||||||||||285.29^ANEMIA OF OTHERCHRONIC ILLNESS (285.29)^I9||||||||||||||
    NTE|1||N FASTING
    DG1|1||285.29^ANEMIA OF OTHER CHRONIC ILLNESS|
    OBR|2|000000064||ALB^ALBUMIN^L|R|20030723114734|20030723115904||4~CC|Tech|N|||20030723115904|BLDV-BLOOD VENOUS^^^LA~LEFT ARM|40830^LEE^ADMIT^|||||||||||||||285.29^ANEMIA OFOTHER CHRONIC ILLNESS (285.29)^I9||||||||||||||

      

+1


source to share


1 answer


Ok, so after a bit of tinkering, I found a method that works ...

With NHapi 2 files core.dll is required; NHapi.Base.dll and NHapi.Model.V23.dll

What you need to do is download the source files, which you can make from sourceForge. Open the NHapi.Model.V23 project. In the solution, the researcher will deploy the group, then navigate to the ORM_O01_OBSERVATION.cs file.

inside class constructor, see below code:



public ORM_O01_OBSERVATION(IGroup parent, IModelClassFactory factory) : base(parent, factory){
   try {
      this.add(typeof(OBX), true, false);
      this.add(typeof(NTE), false, true);
   } catch(HL7Exception e) {
      HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected error creating ORM_O01_OBSERVATION - this is probably a bug in the source code generator.", e);
   }
}

      

you need to change this.add(typeof(OBX), true, false);

tothis.add(typeof(OBX), true, true);

This will allow the OBX to be repeated. You should use this concept in any field you come across.

+2


source







All Articles