public void ParseORFR04ToXmlNoNTE() { string Message = @"MSH|^~\&|Query Result Locator|Query Facility Name|Query Application Name|ST ELSEWHERE HOSPITAL|20051024074506||ORF^R04|432|P|2.3.1| MSA|AA|123456789| QRD|20060228160421|R|I||||10^RD&Records&0126|38923^^^^^^^^&TCH||| QRF||20050101000000|| PID|||38923^^^ST ELSEWHERE HOSPITAL Medical Record Numbers& MEDIC AL RECORD NUMBER&ST ELSEWHERE HOSPITAL^MR^ST ELSEWHERE HOSPITAL||Bombadill^Tom||19450605|M|||1&Main Street^^Littleton^CO^80122||^^^^^303^4376329^22| OBR|1|0015566|DH2211223|83036^HEMOGLOBIN A1C^^83036^HEMOGLOBIN A1C|||20040526094000|||||||20040526094000||J12345^JENS^JENNY^^^DR^MD^^^^^^^112233&TCH||||| TP QUEST DIAGNOSTICS-TAMPA 4225 E. FOWLER AVE TAMPA FL 33617|20030622070400|||F| OBX|1|NM|50026400^HEMOGLOBIN A1C^^50026400^HEMOGLOBIN A1C||12|^% TOTAL HGB|4.0 - 6.0|H|||F|||20040510094000|TP^^L|"; NHapi.Base.Parser.PipeParser Parser = new NHapi.Base.Parser.PipeParser(); NHapi.Base.Model.IMessage m = Parser.Parse(Message); NHapi.Model.V231.Message.ORF_R04 orfR04 = m as NHapi.Model.V231.Message.ORF_R04; Assert.IsNotNull(orfR04); NHapi.Base.Parser.XMLParser xmlParser = new NHapi.Base.Parser.DefaultXMLParser(); string recoveredMessage = xmlParser.Encode(orfR04); Assert.IsNotNull(recoveredMessage); Assert.IsFalse(recoveredMessage.IndexOf("NTE") > -1, "Returned Message added ORC segment."); }
/// <summary> Tests dh patient 1111111. </summary> public void TestDHPatient1111111() { NHapi.Base.Parser.PipeParser Parser = new NHapi.Base.Parser.PipeParser(); NHapi.Base.Model.IMessage m = Parser.Parse(GetDHPatient1111111()); NHapi.Model.V231.Message.ORF_R04 orfR04 = m as NHapi.Model.V231.Message.ORF_R04; Assert.IsNotNull(orfR04); object range = orfR04.GetQUERY_RESPONSE().GetORDER().GetOBSERVATION().OBX.GetObservationValue(1); NHapi.Base.Parser.XMLParser xmlParser = new NHapi.Base.Parser.DefaultXMLParser(); string recoveredMessage = xmlParser.Encode(orfR04); Assert.IsNotNull(recoveredMessage); Assert.IsFalse(recoveredMessage.IndexOf("NTE") > -1, "Returned Message added ORC segment."); }
public void ParseORFR04() { string Message = @"MSH|^~\&|Query Result Locator|Query Facility Name|Query Application Name|ST ELSEWHERE HOSPITAL|20051024074506||ORF^R04|432|P|2.3.1| MSA|AA|123456789| QRD|20060228160421|R|I||||10^RD&Records&0126|38923^^^^^^^^&TCH||| QRF||20050101000000|| PID|||38923^^^ST ELSEWHERE HOSPITAL Medical Record Numbers& MEDIC AL RECORD NUMBER&ST ELSEWHERE HOSPITAL^MR^ST ELSEWHERE HOSPITAL||Bombadill^Tom||19450605|M|||1&Main Street^^Littleton^CO^80122||^^^^^303^4376329^22| OBR|1|0015566|DH2211223|83036^HEMOGLOBIN A1C^^83036^HEMOGLOBIN A1C|||20040526094000|||||||20040526094000||J12345^JENS^JENNY^^^DR^MD^^^^^^^112233&TCH||||| TP QUEST DIAGNOSTICS-TAMPA 4225 E. FOWLER AVE TAMPA FL 33617|20030622070400|||F| OBX|1|NM|50026400^HEMOGLOBIN A1C^^50026400^HEMOGLOBIN A1C||12|^% TOTAL HGB|4.0 - 6.0|H|||F|||20040510094000|TP^^L|"; NHapi.Base.Parser.PipeParser Parser = new NHapi.Base.Parser.PipeParser(); NHapi.Base.Model.IMessage m = Parser.Parse(Message); NHapi.Model.V231.Message.ORF_R04 orfR04 = m as NHapi.Model.V231.Message.ORF_R04; Assert.IsNotNull(orfR04); Assert.AreEqual("12", orfR04.GetQUERY_RESPONSE().GetORDER().GetOBSERVATION().OBX.GetObservationValue()[0].Data.ToString()); }
public void ParseORFR04FromDHTest() { string Message = @"MSH|^~\&|Clinical Data Provider|DHHA|COHIECentral|COHIE|200609221408||ORF^R04||P|2.3.1 MSA|AA| PID|2019877||2019877^^^DH^MR||LOPEZ1^JAMES^TRISTAN||19740804|M OBR||00677^001|M428|CBC^CBC|||200511071505||||||||CBC^CBC|045716^STEELE||||||||DAH OBX|1|NM|WBC||1.1|k/uL|5.0-16.0|L|||C OBX|1|TX|WBC|1|(Ref Range: 5 k/uL)|k/uL|5.0-16.0||||C OBX|1|TX|WBC||Result(s) called to and verification read-back received from: NURSE NAN M~||||||C OBX|1|TX|WBC||ICU 13:39 11 19 05||||||C OBX|1|TX|WBC||Corrected on 11/29 AT 1337: Previously reported as: 1.1||||||C OBX|2|NM|RBC||3.99|M/uL|3.80-5.40||||Z OBX|2|TX|RBC|1|(Ref Range: 3 M/uL)|M/uL|3.80-5.40||||Z OBX|3|NM|HGB||13.0|g/dL|14.0-24.0|L|||Z OBX|3|TX|HGB|1|(Ref Range: 1 g/dL)|g/dL|14.0-24.0||||Z OBX|4|NM|HCT||40.0|%|31.0-43.0||||Z OBX|4|TX|HCT|1|(Ref Range: 3 %)|%|31.0-43.0||||Z OBX|5|NM|MCV||80.0|fl|70.0-90.0||||Z OBX|5|TX|MCV|1|(Ref Range: 7 fl)|fl|70.0-90.0||||Z OBX|6|NM|MCH||32.0|pg|27.0-31.0|H|||Z OBX|6|TX|MCH|1|(Ref Range: 2 pg)|pg|27.0-31.0||||Z OBX|7|NM|MCHC||32.0|g/dL|32.0-36.0||||Z OBX|7|TX|MCHC|1|(Ref Range: 3 g/dL)|g/dL|32.0-36.0||||Z OBX|8|NM|RDW||17.0|%|11.5-14.5|H|||Z OBX|8|TX|RDW|1|(Ref Range: 1 %)|%|11.5-14.5||||Z OBX|9|NM|PLTC||2|k/uL|150-400|PL^Y|||Z OBX|9|TX|PLTC|1|(Ref Range: 1 k/uL)|k/uL|150-400||||Z OBX|10|NM|MPV||10.0|fL|6.2-10.0||||Z OBX|10|TX|MPV|1|(Ref Range: 6 fL)|fL|6.2-10.0||||Z OBR||00677^001|M428|CBC^CBC|||200511071505||||||||CBC^CBC|045716^STEELE||||||||DAH OBX|1|NM|WBC||1.1|k/uL|5.0-16.0|L|||C OBX|1|TX|WBC|1|(Ref Range: 5 k/uL)|k/uL|5.0-16.0||||C OBX|1|TX|WBC||Result(s) called to and verification read-back received from: NURSE NAN M~||||||C OBX|1|TX|WBC||ICU 13:39 11 19 05||||||C OBX|1|TX|WBC||Corrected on 11/29 AT 1337: Previously reported as: 1.1||||||C OBX|2|NM|RBC||3.99|M/uL|3.80-5.40||||Z OBX|2|TX|RBC|1|(Ref Range: 3 M/uL)|M/uL|3.80-5.40||||Z OBX|3|NM|HGB||13.0|g/dL|14.0-24.0|L|||Z OBX|3|TX|HGB|1|(Ref Range: 1 g/dL)|g/dL|14.0-24.0||||Z OBX|4|NM|HCT||40.0|%|31.0-43.0||||Z OBX|4|TX|HCT|1|(Ref Range: 3 %)|%|31.0-43.0||||Z OBX|5|NM|MCV||80.0|fl|70.0-90.0||||Z OBX|5|TX|MCV|1|(Ref Range: 7 fl)|fl|70.0-90.0||||Z OBX|6|NM|MCH||32.0|pg|27.0-31.0|H|||Z OBX|6|TX|MCH|1|(Ref Range: 2 pg)|pg|27.0-31.0||||Z OBX|7|NM|MCHC||32.0|g/dL|32.0-36.0||||Z OBX|7|TX|MCHC|1|(Ref Range: 3 g/dL)|g/dL|32.0-36.0||||Z OBX|8|NM|RDW||17.0|%|11.5-14.5|H|||Z OBX|8|TX|RDW|1|(Ref Range: 1 %)|%|11.5-14.5||||Z OBX|9|NM|PLTC||2|k/uL|150-400|PL^Y|||Z OBX|9|TX|PLTC|1|(Ref Range: 1 k/uL)|k/uL|150-400||||Z OBX|10|NM|MPV||10.0|fL|6.2-10.0||||Z OBX|10|TX|MPV|1|(Ref Range: 6 fL)|fL|6.2-10.0||||Z OBR||00677^001|M428|CBC^CBC|||200511071505||||||||CBC^CBC|045716^STEELE||||||||DAH OBX|1|NM|WBC||1.1|k/uL|5.0-16.0|L|||C OBX|1|TX|WBC|1|(Ref Range: 5 k/uL)|k/uL|5.0-16.0||||C OBX|1|TX|WBC||Result(s) called to and verification read-back received from: NURSE NAN M~||||||C OBX|1|TX|WBC||ICU 13:39 11 19 05||||||C OBX|1|TX|WBC||Corrected on 11/29 AT 1337: Previously reported as: 1.1||||||C OBX|2|NM|RBC||3.99|M/uL|3.80-5.40||||Z OBX|2|TX|RBC|1|(Ref Range: 3 M/uL)|M/uL|3.80-5.40||||Z OBX|3|NM|HGB||13.0|g/dL|14.0-24.0|L|||Z OBX|3|TX|HGB|1|(Ref Range: 1 g/dL)|g/dL|14.0-24.0||||Z OBX|4|NM|HCT||40.0|%|31.0-43.0||||Z OBX|4|TX|HCT|1|(Ref Range: 3 %)|%|31.0-43.0||||Z OBX|5|NM|MCV||80.0|fl|70.0-90.0||||Z OBX|5|TX|MCV|1|(Ref Range: 7 fl)|fl|70.0-90.0||||Z OBX|6|NM|MCH||32.0|pg|27.0-31.0|H|||Z OBX|6|TX|MCH|1|(Ref Range: 2 pg)|pg|27.0-31.0||||Z OBX|7|NM|MCHC||32.0|g/dL|32.0-36.0||||Z OBX|7|TX|MCHC|1|(Ref Range: 3 g/dL)|g/dL|32.0-36.0||||Z OBX|8|NM|RDW||17.0|%|11.5-14.5|H|||Z OBX|8|TX|RDW|1|(Ref Range: 1 %)|%|11.5-14.5||||Z OBX|9|NM|PLTC||2|k/uL|150-400|PL^Y|||Z OBX|9|TX|PLTC|1|(Ref Range: 1 k/uL)|k/uL|150-400||||Z OBX|10|NM|MPV||10.0|fL|6.2-10.0||||Z OBX|10|TX|MPV|1|(Ref Range: 6 fL)|fL|6.2-10.0||||Z"; NHapi.Base.Parser.PipeParser Parser = new NHapi.Base.Parser.PipeParser(); NHapi.Base.Model.IMessage m = Parser.Parse(Message); NHapi.Model.V231.Message.ORF_R04 orfR04 = m as NHapi.Model.V231.Message.ORF_R04; Assert.IsNotNull(orfR04); NHapi.Base.Parser.XMLParser xmlParser = new NHapi.Base.Parser.DefaultXMLParser(); string recoveredMessage = xmlParser.Encode(orfR04); Assert.IsNotNull(recoveredMessage); Assert.IsFalse(recoveredMessage.IndexOf("NTE") > -1, "Returned Message added ORC segment."); }