Hi, I am using HAPI 2.2 library. The goal is to convert HL7 message to XML representation. Here is my challenges with how HAPI is dealing with repetitions.
Sample HL7 message - with Field repetition in bold PID:1::952918621~989864122::Cloaked;WAUA;;""::20141211155123:M::1;*WHITE;HL70005;1;*WHITE;99RAC:424 Clark Cir;;Rougon;KY;70773;;P;;034::5555412;PRN;PH;;;;5559782;;;;;8592701727~5551477;ORN;PH;;;;5556958;;;;;""~5551477;ORN;CP;;;;5556958;;;;;""~;NET;X.400;:5555225;WPN;PH;;;;5554747;;;;;"":ENG;ENGLISH;HL70296;ENG;ENGLISH;99CLAN:M:035:539073518;;;A:90000000:::2;NOT HISPANIC/LATINO;HL70189;2;NOT HISPANIC/LATINO;99ETH:::::N:::N:N:::::::::::::::::::N HAPI XML Output (for the repeated fields in bold) <PID.3> <CM_PAT_ID.1>952918621</CM_PAT_ID.1> </PID.3> <PID.3> <CM_PAT_ID.1>989864122</CM_PAT_ID.1> </PID.3> With the above representation it looks like as if it's a component value then the field value itself. Is it possible to get XML output as mentioned below or something on similar lines? I am looking for a generic solution. <PID.3-1>952918621</PID.3-1> <PID.3-2>989864122</PID.3-2> Thanks Ashutosh
------------------------------------------------------------------------------
_______________________________________________ Hl7api-devel mailing list Hl7api-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hl7api-devel