Hi,

I've soved my problem by creating a custom ZFU segment and by extending 
the ADT_A01 class
Now everything works

FJ

Frederic JECKER a écrit :
> Moin list,
>
> For my first post i'd like to thank the dev team for their work.
> ... now the question :
>
> IHE-France has a private segment named ZFU :
> A major difference between the management of responsibilities between 
> the USA and France is that the responsibility for a patient is often 
> managed at the the level of a functional unit rather than at the level 
> of an attending doctor. For this purpose the Z Segment ZFU has been created.
>
> I'm using a PipeParser to parse messages, as ZFU is only used in france 
> I thought it normal not to find a getter for this segment.
> So I tried to access it through the Segment/Field/Repetition 
> (get("ZFU")....) and I obtain the following exception :
>
> - Instantiating msg of class ca.uhn.hl7v2.model.v231.message.ADT_A01
> ca.uhn.hl7v2.HL7Exception: ZFU does not exist in the group 
> ca.uhn.hl7v2.model.v231.message.ADT_A01
>     at ca.uhn.hl7v2.model.AbstractGroup.get(AbstractGroup.java:112)
>     at ca.uhn.hl7v2.model.AbstractGroup.get(AbstractGroup.java:98)
>     at TestHAPI.main(TestHAPI.java:24)
>
>
> How could I achieve to access the ZFU segment content ?
> Is there a way to work with the raw message (ie getting named segments, 
> and using field index to acces data) without to
> use the object representation of a message (ie class ADT_A01)
>
> Thanks
>
> Frederic
>
>
>
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Hl7api-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/hl7api-devel
>
>   

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Hl7api-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hl7api-devel

Reply via email to