From: James A. <jam...@gm...> - 2015-01-28 13:55:11
|
Hi Gurmail, This is actually the list for HAPI (the Java HL7 API) and not nHAPI (the .NET one). The two project are actually not affiliated with each other. I believe that if you visit the nHAPI website they have a web forum for asking questions though. Cheers, James On Wed, Jan 28, 2015 at 7:49 AM, Gurmail Multani <gur...@gm...> wrote: > Hi, > > I'm using nHapi API version 2.5.1 to parse LRI messages for meaning Stage > 2. > > i'm facing problem to get multiple OBX related to OBR. Can you help me how > to get multiple obx values related to one OBR. Currently i'm trying to get > multiple observation by this. but i always get index value one of every > order. Below is the code > > Dim parser As New PipeParser() > Dim ParsedMessage As IMessage = parser.Parse(strHL7) > Dim _ORU_R01 As ORU_R01 = TryCast(ParsedMessage, ORU_R01) > Dim patientResult As ORU_R01_PATIENT_RESULT = > TryCast(ParsedMessage.GetStructure("PATIENT_RESULT"), > ORU_R01_PATIENT_RESULT) > Dim orderObservationRepetitions As Int32 = > patientResult.ORDER_OBSERVATIONRepetitionsUsed > > For orderObservationIndex As Integer = 0 To > orderObservationRepetitions - 1 > Dim orderObservation As ORU_R01_ORDER_OBSERVATION = > patientResult.GetORDER_OBSERVATION(orderObservationIndex) > > > Dim observationRepetitions As Int32 = > orderObservation.OBSERVATION.currentReps("OBX") > > > > > > > > > > > > > MSH|^~\&|^2.16.840.1.113883.3.72.5.20^ISO|^2.16.840.1.113883.3.72.5.21^ISO||^2.16.840.1.113883.3.72.5.23^ISO|20110531140551-0500||ORU^R01^ORU_R01|NIST-LRI-GU-RU-004.01|T|2.5.1|||AL|NE|||||LRI_Common_Component^^2.16.840.1.113883.9.16^ISO~LRI_GU_Component^^2.16.840.1.113883.9.12^ISO~LRI_RU_Component^^2.16.840.1.113883.9.14^ISO > > > PID|1||PATID1234^^^&2.16.840.1.113883.3.72.5.30.2&ISO^MR||Jones^William^A||19610615|M||2106-3^White^HL70005 > > ORC|RE|ORD723222-4^^2.16.840.1.113883.3.72.5.24^ISO|R- > > 783274-4^^2.16.840.1.113883.3.72.5.25^ISO|GORD874211^^2.16.840.1.113883.3.72.5.24^ISO||||||||57422^Radon^Nicholas^^^^^^&2.16.840.1.113883.3.72.5.30.1&ISO^L^^^NPI > > OBR|1|ORD723222-4^^2.16.840.1.113883.3.72.5.24^ISO|R-783274-4^^2.16.840.1.113883.3.72.5.25^ISO|625-4^Bacteria > identified in Stool by Culture^LN^3456543^CULTURE STOOL^99USI^^^Stool > Culture|||20110530123551-0500||||||787.91^DIARRHEA^I9CDX^^^^^^DIARRHEA|||57422^Radon^Nicholas^^^^^^&2.16.840.1.113883.3.72.5.30.1&ISO^L^^^NPI||||||20110531140428-0500|||F > > OBX|1|CWE|625-4^Bacteria identified in Stool by Culture^LN^^^^^^Stool > Culture > > > OBX|2|CWE|625-4^Bacteria identified in Stool by Culture^LN^^^^^^Stool > Culture|2| > > > OBX|3|CWE|625-4^Bacteria identified in Stool by Culture^LN^^^^^^Stool > Culture|3| > > OBR|2||R-783274-5^^2.16.840.1.113883.3.72.5.25^ISO| > > OBX|1|SN|28-1^Ampicillin [Susceptibility] by Minimum inhibitory > concentration > (MIC)^LN^^^^^^AMPICILLIN|1|<^0.06|ug/mL^^UCUM||S|||F|||20110530123551-0500|||||20110601130655-0500|||| > OBX|2|SN|267-5^Gentamicin [Susceptibility] by Minimum inhibitory > concentration > (MIC)^LN^^^^^^GENTAMICIN|1|^0.05|ug/mL^^UCUM||S|||F|||20110530123551-0500|||||20110601130655-0500||||Century > > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming. The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is > your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > > |