From: Tripp, B. <Bry...@uh...> - 2004-08-03 19:51:33
|
Hi,=20 Very good questions. Regarding the first, HAPI takes this redundant = mapping from the HL7 database. My interpretation is that the trigger may use different structures in different situations. Messy, but I think = that's how it has been modelled. The solution should be to specify the desired structure explicitly in MSH-9-3. However, there was a bug in HAPI = (fixed now) that prevented that from working. I can send you the fix if you = like, otherwise it will be in the next release.=20 About the second question ... HAPI 0.4.x is a little more picky and = won't create another rep of the group unless is finds the (required) ORC = segment. If you change the last part of the message to this:=20 ORC|NW|6^^20040305^0005^6200403050005||0500051086|||||20040305110325|mit= ||TI ZIANA^TIZIANA^Dr^494143^U212^MC-UNITE DE MEDECINE COMMUNAUTAIRE^857818||||||| OBR|1|6^^20040305^0005^6200403050005||EXAM^52^K^Potassium|||200403051105= 00|| ||||857818^26^3~Etude du Dr No^16^3~TEST commentaire^5^3~Fi=E8vre = d'origine ind=E9termin=E9e^0^3||35^sg.v^Sang veineux|||N|N^-1008933||||||||1^R|||||||||||||||| ORC OBR|2|6^^20040305^0005^6200403050005||EXAM^42^bilanlipid^Bilan = lipidique (Chol+Trig+HDL)|||20040305110500||||||857818^26^3~Etude du Dr = No^16^3~TEST commentaire^5^3~Fi=E8vre d'origine ind=E9termin=E9e^0^3||35^sg.v^Sang veineux|||N|N^-1008933||||||||1^R|||||||||||||||| ORC OBR|3|6^^20040305^0005^6200403050005||EXAM^21^creatinine^Cr=E9atinine|||= 200403 05110500||||||857818^26^3~Etude du Dr No^16^3~TEST = commentaire^5^3~Fi=E8vre d'origine ind=E9termin=E9e^0^3||35^sg.v^Sang veineux|||N|N^-1008933||||||||1^R|||||||||||||||| ... it will parse as expected. Without the change, HAPI thinks the = OBRs are locally defined segments that go at the end of the first rep of the = group. This is actually the only way the message could be valid (otherwise = it's missing required ORCs). =20 Bryan=20 > -----Original Message----- > From: Aris JAVIER RAMOS [mailto:Ari...@hc...] > Sent: July 30, 2004 12:02 PM > To: hl7...@li... > Subject: [HAPI-devel] ORM 001 parsing problems >=20 >=20 > Bonjour, >=20 > 1st PROBLEM : >=20 > parsing with hapi 0.4.2 in the 2.3 version of the norm HL7. >=20 > When parsing ORM O01 messages the parser give me back an=20 > RDO-O01 message... >=20 > I looked at the file=20 > ca\uhn\hl7v2\parser\eventmap\2.3.properties in the hapi-0.4.2.jar > and saw a kind of mapping like this : > [...] > ORM_O01 ORM_O01 > ORM_O01 OMD_O01 > ORM_O01 OMN_O01 > ORM_O01 OMS_O01 > ORM_O01 RDO_O01 <--- may be problematic ??=20 > [...] >=20 > After a debug session I saw that the file=20 > ca\uhn\hl7v2\parser\eventmap\2.3.properties is used as a set=20 > of properties when the hapi parser determines what structure=20 > to load when a message is parsed and his structure constructed. >=20 > The problem is that in the file=20 > ca\uhn\hl7v2\parser\eventmap\2.3.properties there are=20 > several entries for ORM_O01 messages and the one who is taken=20 > is the last one : > [...] > ORM_O01 ORM_O01 > ORM_O01 OMD_O01 <--- may be problematic ?? > ORM_O01 OMN_O01 <--- may be problematic ?? > ORM_O01 OMS_O01 <--- may be problematic ?? > ORM_O01 RDO_O01 <--- may be problematic ?? > [...] > The 2.4.properties seems to be OK as I saw only one mapping=20 > for ORM_O01: > [...] > ORM_O01 ORM_O01 > [...] >=20 > Is this, what we are specting from the parser ?? > if yes how can I do to obtain an ORM_O01 message ?? >=20 > 2nd PROBLEM : >=20 > I tryed to change the 2.3.properties to have one mapping=20 > ORM_O01 ORM_O01 and it worked well. > But I obtained a different data organization that I obtained=20 > parsing with 0.3 hapi parser. >=20 > data :=20 >=20 > MSH|^~\&|REQUETE|6^CL|UNILAB||20040305110331||ORM^O01|REQUETE- > 6-1078481010|T|2.3||||||| > PID|1||2004817||DERONT^Lisette||19400101|F|||^3 rue=20 > dancet^Geneve^1205^^CH|||||||||||||||||||N > PV1|1|H|NEUROL.^^2-FL^2-FL^H.C.U. - G E N E V E^H.U.G. -=20 > HOPITAL=20 > CANTONAL^53401^^6421||||TIZIANA^TIZIANA^Dr^494143^U212^MC-UNIT > E DE MEDECINE=20 > COMMUNAUTAIRE^857818||||||||||||01.1008933|3|||||||||||||||||| > ||||||20040115|20040212||||||| > ORC|NW|6^^20040305^0005^6200403050005||0500051086|||||20040305 > 110325|mit||TIZIANA^TIZIANA^Dr^494143^U212^MC-UNITE DE=20 > MEDECINE COMMUNAUTAIRE^857818||2-FL^53401^^6421||||| > OBR|1|6^^20040305^0005^6200403050005||EXAM^52^K^Potassium|||20 > 040305110500||||||857818^26^3~Etude du Dr No^16^3~TEST=20 > commentaire^5^3~Fi=E8vre d'origine=20 > ind=E9termin=E9e^0^3||35^sg.v^Sang=20 > veineux|||N|N^-1008933||||||||1^R|||||||||||||||| > OBR|2|6^^20040305^0005^6200403050005||EXAM^42^bilanlipid^Bilan > lipidique=20 > (Chol+Trig+HDL)|||20040305110500||||||857818^26^3~Etude du Dr=20 > No^16^3~TEST commentaire^5^3~Fi=E8vre d'origine=20 > ind=E9termin=E9e^0^3||35^sg.v^Sang=20 > veineux|||N|N^-1008933||||||||1^R|||||||||||||||| > OBR|3|6^^20040305^0005^6200403050005||EXAM^21^creatinine^Cr=E9at > inine|||20040305110500||||||857818^26^3~Etude du Dr=20 > No^16^3~TEST commentaire^5^3~Fi=E8vre d'origine=20 > ind=E9termin=E9e^0^3||35^sg.v^Sang=20 > veineux|||N|N^-1008933||||||||1^R|||||||||||||||| >=20 > with 0.3 parser : >=20 > Structure _struct =3D=20 > ORM_O01.getAll("ORM_O01_ORCOBRRQDRQ1RXOODSODTNTEDG1OBXNTECTIBLG")=20 > normally _struct.lenght =3D=3D 3 >=20 > Structure with 0.4.1 and 0.4.2 parser >=20 > Structure _struct =3D=20 > ORM_O01.getAll("ORM_O01_ORCOBRRQDRQ1RXOODSODTNTEDG1OBXNTECTIBLG")=20 > problem _struct.lenght =3D=3D 1 !!!!!=20 >=20 > If you wanna test this data you should disable telephone=20 > number validation. >=20 > thanks for your help... >=20 > Regards >=20 > Aris Javier Ramos > Analyst Developper > Direction Informatique de Gestion > H=F4pital Cantonal Universitaire de Gen=E8ve > Switzerland >=20 >=20 >=20 > = ********************************************************************** > This email and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom they > are addressed. If you have received this email in error please notify > the system manager. >=20 > = ********************************************************************** >=20 >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by OSTG. Have you noticed the=20 > changes on > Linux.com, ITManagersJournal and NewsForge in the past few weeks? = Now, > one more big change to announce. We are now OSTG- Open Source=20 > Technology > Group. Come see the changes on the new OSTG site. www.ostg.com > _______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > https://lists.sourceforge.net/lists/listinfo/hl7api-devel >=20 This e-mail may contain confidential and/or privileged information for the sole use of the intended recipient. Any review or distribution by anyone other than the person for whom it was originally intended is strictly prohibited. If you have received this e-mail in error, please contact = the sender and delete all copies. Opinions, conclusions or other information contained = in this e-mail may not be that of the organization. |