Thanks,
I thought there might be some out-of-the-box human readability option.
Since there are fields defined in the model definition. For example:
http://hl7api.sourceforge.net/v25/apidocs/ca/uhn/hl7v2/model/v25/segment/PRD.html

On Tue, Nov 4, 2014 at 10:11 PM, Jens Villadsen <
jenskristianvillad...@gmail.com> wrote:

> Sounds like a job for a plain XSL transformation
>
> On 4 November 2014 05:30, Chandan Datta <chandan.da...@auckland.ac.nz>
> wrote:
>
>> Thanks Christian. Yep, I think so.
>>
>> On Fri, Oct 31, 2014 at 12:15 PM, Christian Ohr <christian....@gmail.com>
>> wrote:
>>
>>> 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>*^~\*&amp;</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>*^~\*&amp;</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
>>>>
>>>>
>>>
>>
>>
>> --
>> Regards,
>> Chandan
>>
>>
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> Hl7api-devel mailing list
>> Hl7api-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/hl7api-devel
>>
>>
>
>
> --
>
> Med venlig hilsen / Kind regards
>
> *Jens Kristian Villadsen*
> cand.polyt
>
> Stålhøjen 24
> 8240 Risskov
> Denmark
>
> Mobile +4523373806
> jenskristianvillad...@gmail.com
> jkiddo.dyndns.org
>



-- 
Regards,
Chandan
------------------------------------------------------------------------------
_______________________________________________
Hl7api-devel mailing list
Hl7api-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hl7api-devel

Reply via email to