Re: [HAPI-devel] CDA-basedMML in to the OBX-5 of a MDM^T02

2009-07-15 Thread alessandro
Yes It works as you suggest if can be useful, this is the code: ED encapsuledData = new ED(mdm_message); encapsuledData.getTypeOfData().setValue("multipart"); encapsuledData.getDataSubtype().setValue("x-hl7-cda-level-one"); encapsuledData.getEncoding().setValue("A"); // MIME message with a xml a

Re: [HAPI-devel] CDA-basedMML in to the OBX-5 of a MDM^T02

2009-07-15 Thread alessandro
Thanks very much for the response I was thinking to write the MIME information adding String in the OBX-5; and then in particular I have to add some XML and a PDF document in this object, so I can add as you suggest with StringOutputStream Thanks Alessandro James Agnew ha scritto: > Hi Allesa

Re: [HAPI-devel] CDA-basedMML in to the OBX-5 of a MDM^T02

2009-07-15 Thread James Agnew
Hi Allesandro, Have you had any luck with this yet? I would imagine you could accomplish this by using a "StringOutputStream" to capture the output of the MimeMultipart's writeTo method, and then use that as the string to place in an encapsulated data object. Here's an example of how to create a