From: Aris J. R. <Ari...@hc...> - 2004-07-30 16:20:21
|
Bonjour, 1st PROBLEM : parsing with hapi 0.4.2 in the 2.3 version of the norm HL7. When parsing ORM O01 messages the parser give me back an RDO-O01 message... I looked at the file ca\uhn\hl7v2\parser\eventmap\2.3.properties in the hap= i-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 [...] After a debug session I saw that the file ca\uhn\hl7v2\parser\eventmap\2.3= .properties is used as a set of properties when the hapi parser determines = what structure to load when a message is parsed and his structure construc= ted. The problem is that in the file ca\uhn\hl7v2\parser\eventmap\2.3.properties= there are several entries for ORM_O01 messages and the one who is taken i= s 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 for ORM_O01: [...] ORM_O01 ORM_O01 [...] Is this, what we are specting from the parser ?? if yes how can I do to obtain an ORM_O01 message ?? 2nd PROBLEM : I tryed to change the 2.3.properties to have one mapping ORM_O01 ORM_O01 an= d it worked well. But I obtained a different data organization that I obtained parsing with 0= .3 hapi parser. data :=20 MSH|^~\&|REQUETE|6^CL|UNILAB||20040305110331||ORM^O01|REQUETE-6-1078481010|= T|2.3||||||| PID|1||2004817||DERONT^Lisette||19400101|F|||^3 rue 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. - HOPITAL CANTONAL^5= 3401^^6421||||TIZIANA^TIZIANA^Dr^494143^U212^MC-UNITE DE MEDECINE COMMUNAUT= AIRE^857818||||||||||||01.1008933|3||||||||||||||||||||||||20040115|2004021= 2||||||| ORC|NW|6^^20040305^0005^6200403050005||0500051086|||||20040305110325|mit||T= IZIANA^TIZIANA^Dr^494143^U212^MC-UNITE DE MEDECINE COMMUNAUTAIRE^857818||2-= FL^53401^^6421||||| OBR|1|6^^20040305^0005^6200403050005||EXAM^52^K^Potassium|||20040305110500|= |||||857818^26^3~Etude du Dr No^16^3~TEST commentaire^5^3~Fi=E8vre d'origin= e ind=E9termin=E9e^0^3||35^sg.v^Sang veineux|||N|N^-1008933||||||||1^R|||||= ||||||||||| OBR|2|6^^20040305^0005^6200403050005||EXAM^42^bilanlipid^Bilan lipidique (C= hol+Trig+HDL)|||20040305110500||||||857818^26^3~Etude du Dr No^16^3~TEST co= mmentaire^5^3~Fi=E8vre d'origine ind=E9termin=E9e^0^3||35^sg.v^Sang veineux= |||N|N^-1008933||||||||1^R|||||||||||||||| OBR|3|6^^20040305^0005^6200403050005||EXAM^21^creatinine^Cr=E9atinine|||200= 40305110500||||||857818^26^3~Etude du Dr No^16^3~TEST commentaire^5^3~Fi=E8= vre d'origine ind=E9termin=E9e^0^3||35^sg.v^Sang veineux|||N|N^-1008933||||= ||||1^R|||||||||||||||| with 0.3 parser : Structure _struct =3D ORM_O01.getAll("ORM_O01_ORCOBRRQDRQ1RXOODSODTNTEDG= 1OBXNTECTIBLG")=20 normally _struct.lenght =3D=3D 3 Structure with 0.4.1 and 0.4.2 parser Structure _struct =3D ORM_O01.getAll("ORM_O01_ORCOBRRQDRQ1RXOODSODTNTEDG1= OBXNTECTIBLG")=20 problem _struct.lenght =3D=3D 1 !!!!!=20 If you wanna test this data you should disable telephone number validation. thanks for your help... Regards Aris Javier Ramos Analyst Developper Direction Informatique de Gestion H=F4pital Cantonal Universitaire de Gen=E8ve Switzerland ********************************************************************** 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. ********************************************************************** |