Re: [HAPI-devel] Custom Messages

2015-12-17 Thread Davies, Brian
It truly does help. I will try this out. My message is of an entirely new type ORM_QO1 from a third party application and so I will be extending the AbstractMessage class. I take it this should be no problem as long as I utilize the HapiContext as you've indicated. Again many thanks for your hel

Re: [HAPI-devel] Custom Messages

2015-12-17 Thread Ian Vowles
If you arrange your custom classes in a package structure for the custom message (let's use our ORMIS sending system as an example) like this: xxx.xxx.ormis.group - contains any custom group definitions OBSERVATION.java ORMIS_ORDER_OBSERVATION.java PATIENT.java VISIT.java xxx.xxx.ormis.segment -

[HAPI-devel] Custom Messages

2015-12-17 Thread Davies, Brian
Hi All, I am aware that in order for custom messages to be loaded by a CustomModelFactory they need to be registered in the eventmap. However, I am only able to find the eventmap in ca.uhn.hl7v2.parser.eventmap with the associated 2.5.properties for version 2.5 say. Does it mean that I would ha

Re: [HAPI-devel] Escaping Encoded characters

2015-12-17 Thread Davies, Brian
Thank you very much for your response. Thank you for clarifying my misunderstanding, gratefully appreciated! From: Ian Vowles [mailto:[email protected]] Sent: Wednesday, December 16, 2015 5:50 PM To: [email protected] Subject: Re: [HAPI-devel] Escaping Encoded characte

Re: [HAPI-devel] Escaping Encoded characters

2015-12-17 Thread Jeremy Huiskamp
I think Brian's confusion here is partially about initQuickstart() adding an unexpected value in MSH-9-3. Similar to your suggestion, Ian, I think what Brian might be looking for is something like this to remove the value afterward: ORR_O02 o02 = new ORR_O02(); o02.initQuickstart(