Re: [HAPI-devel] Custom XML output

2014-11-04 Thread Ian Vowles
To: James Agnew Cc: HAPI Devel List Subject: Re: [HAPI-devel] Custom XML output A followup question: For the HL7 OBX-5 ST field, I have an example segment OBX||FT|Notes^Notes^""|""|Dr Tan\.br\MB BS FRACS PhD\.br\Boul Hospital \T\ Specialist Centre\.br\Phone (04)22569-7555\.b

Re: [HAPI-devel] Custom XML output

2014-11-04 Thread Chandan Datta
A followup question: For the HL7 OBX-5 ST field, I have an example segment OBX||FT|Notes^Notes^""|""|Dr Tan\.br\MB BS FRACS PhD\.br\Boul Hospital \T\ Specialist Centre\.br\Phone (04)22569-7555\.br\Fax (04)22577-3451\.br\Client \T\ Claim Details\.br\Claim Number\.br\1SG948213\.br\Full Name:\.br\XX,

Re: [HAPI-devel] Custom XML output

2014-11-04 Thread Chandan Datta
Thanks James Yes, this is related to my earlier email for generating human readable PDFs. I would like to use a template engine for that, but for a start couple of XSL-FOs that can generate PDFs would be great. I can then use something like Altova XmlSpy to play with the stylesheets to determine

Re: [HAPI-devel] Custom XML output

2014-11-04 Thread James Agnew
I'm guessing this is related to your other question around converting v2 to PDF? FWIW there are obviously a million ways you could try and handle this.. I participated in a project years ago where I helped write XSLT transforms from HL7 v2/XML to drive Apache FOP for generating PDFs. That quickly

Re: [HAPI-devel] Custom XML output

2014-11-04 Thread Chandan Datta
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

Re: [HAPI-devel] Custom XML output

2014-11-04 Thread Jens Villadsen
Sounds like a job for a plain XSL transformation On 4 November 2014 05:30, Chandan Datta wrote: > Thanks Christian. Yep, I think so. > > On Fri, Oct 31, 2014 at 12:15 PM, Christian Ohr > wrote: > >> The XML that HAPI parses or renders is not our own invention but >> specified over HL7 as well a

Re: [HAPI-devel] Custom XML output

2014-11-03 Thread Chandan Datta
Thanks Christian. Yep, I think so. On Fri, Oct 31, 2014 at 12:15 PM, Christian Ohr 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

Re: [HAPI-devel] Custom XML output

2014-10-30 Thread Christian Ohr
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 : > Hi

[HAPI-devel] Custom XML output

2014-10-29 Thread Chandan Datta
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|2011092200|PKI|REF^I12|20110922091157|P|2.3 *|* *^~\*& *SPM*