The XML that HAPI parses or renders is not our own invention but specified over HL7 as well as the pipe-encoded form. So I fear that if you want some custom XML representation of an HL7 message you need to do this yourself...
best regards Christian 2014-10-30 1:14 GMT+01:00 Chandan Datta <chandan.da...@auckland.ac.nz>: > Hi HAPI devs, > > Is it possible to generate custom XML for a HL7 message using HAPI. For > example, > > Input: HL7 v2.4 header segment > > > MSH|^~\&|SPM|boulcott||acceartp|20110922000000|PKI|REF^I12|20110922091157|P|2.3 > > > <?xml version=*"1.0"* encoding=*"UTF-8"*?> > > <REF_I12 xmlns=*"urn:hl7-org:v2xml"*> > > <MSH> > > <MSH.1>*|*</MSH.1> > > <MSH.2>*^~\*&</MSH.2> > > <MSH.3> > > <HD.1>*SPM*</HD.1> > > </MSH.3> > > <MSH.4> > > <HD.1>*boulcott*</HD.1> > > </MSH.4> > > <MSH.6> > > <HD.1>*acceartp*</HD.1> > > </MSH.6> > > <MSH.7> > > <TS.1>*20110922000000*</TS.1> > > </MSH.7> > > <MSH.8>*PKI*</MSH.8> > > <MSH.9> > > <CM_MSG.1>*REF*</CM_MSG.1> > > <CM_MSG.2>*I12*</CM_MSG.2> > > </MSH.9> > > <MSH.10>*20110922091157*</MSH.10> > > <MSH.11> > > <PT.1>*P*</PT.1> > > </MSH.11> > > <MSH.12>*2.3*</MSH.12> > > </MSH> > > </REF_I12> > > > > Instead I would like > > > > <?xml version=*"1.0"* encoding=*"UTF-8"*?> > > <REFI12> > > <MSH> > > <FieldSeparator>*|*</FieldSeparator> > > <EncodingCharacters>*^~\*&</EncodingCharacters> > > <SendingApplication/> > > <SendingFacility/> > > <ReceivingFacility/> > > <DateTimeOfMessage/> > > <Security>*PKI*</Security> > > <MessageType/> > > <MessageControlID>*20110922091157*</MessageControlID> > > <ProcessingID/> > > <VersionID>*2.3 ZRD*</VersionID> > > <SequenceNumber>*0*</SequenceNumber> > > <AcceptAcknowledgementType/> > > <CharacterSet/> > > <PrincipalLanguageOfMessage/> > > </MSH> > > </REFI12> > > > > -- > Regards, > Chandan > Doctoral student,Robotics Research Group > University of Auckland, New Zealand > > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Hl7api-devel mailing list > Hl7api-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > >
------------------------------------------------------------------------------
_______________________________________________ Hl7api-devel mailing list Hl7api-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hl7api-devel