Hi,
How can we generate PIDs for ADT^A24 message? Any idea!!!!!!!!
Thanks,
depeche
Éamonn Ó Nualláin wrote:
>
> Hi,
>
> Just in case anyone runs into the same issue
>
> Regards,
>
> Éamonn
>
> String PID = "PID";
> RSP_K22 rsp = new RSP_K22();
> RSP_K22_QUERY_RESPONSE queryResponse = rsp.getQUERY_RESPONSE();
>
> PID pid = (PID )queryResponse.insertRepetition(PID, 0);
> PID pid2 = (PID )queryResponse.insertRepetition(PID, 1);
>
> rsp.getMSH().getMsh1_FieldSeparator().setValue("|");
> rsp.getMSH().getMsh2_EncodingCharacters().setValue("^~\\&");
>
> pid.getPatientName(0).getFamilyName().getSurname().setValue("Surname1");
> pid2.getPatientName(0).getFamilyName().getSurname().setValue("Surname2");
>
> pid2.encode();
>
> Parser parser = new DefaultXMLParser();
> String xml = parser.encode(queryResponse.getMessage());
> System.out.println(xml);
>
> ------------------------------------------------------------------------------
>
>
> _______________________________________________
> Hl7api-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/hl7api-devel
>
>
--
View this message in context:
http://old.nabble.com/PID-generation-in-RSP_K22.QUERY_RESPONSE%3A-solved-tp28691857p29332622.html
Sent from the hl7api-devel mailing list archive at Nabble.com.
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Hl7api-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hl7api-devel