From: Rafael W. <rw...@op...> - 2013-10-24 17:08:28
|
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 rw...@op... |