Dear HAPI team,
I'm facing with a coding problem with HAPI Java Library I can't find the
solution.
I'm building a MDM message from scratch and this message must contain the
following segments: MSH, PID, TXA and OBX. Overall, the API and documentation
is rather clear about most of methods and objects I need in order to achieve
this. Unfortunately I have an issue with the TXA segment and particularly with
the "Primary Activity Provider Code Name" (XCN) field. Here is my code:
mdm.getTXA().getSetIDTXA().setValue("1");
mdm.getTXA().getDocumentType().setValue("DI");
mdm.getTXA().getDocumentContentPresentation().setValue("AP");
mdm.getTXA().getPrimaryActivityProviderCodeName()[0].getIDNumber().setValue("1111111");
mdm.getTXA().getPrimaryActivityProviderCodeName()[0].getFamilyName().getSurname().setValue("Doe");
mdm.getTXA().getPrimaryActivityProviderCodeName()[0].getGivenName().setValue("John");
mdm.getTXA().getActivityDateTime().setValue(today);
mdm.getTXA().getOriginationDateTime().setValue(today);
mdm.getTXA().getTranscriptionDateTime().setValue(today);
mdm.getTXA().getUniqueDocumentNumber().getNamespaceID().setValue("345841142141");
mdm.getTXA().getDocumentCompletionStatus().setValue("AU");
The "TXA.getPrimaryActivityProviderCodeName()" method seems to return an empty
array of XCB objects, so my approach can't work. I searched several way to set
or fill this empty array, without success. I'm very interested in a solution to
properly set the Primary Activity Provider Code Name field.
Thank you for your time and your work, it is much appreciated.
Rafaël Warnault
r...@opale.pro
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
Hl7api-devel mailing list
Hl7api-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hl7api-devel