From: Tripp, B. <Bry...@uh...> - 2005-04-25 14:22:06
|
Hi Micha=EBl,=20 QPD is a special case because the fields are different for different messages. You have to use the getField(number, rep) method, which will return Varies for higher fields. For example ((Varies) qpd.getField(4, 0)).setData(...). =20 Bryan=20 -----Original Message----- From: hl7...@li... on behalf of Micha=EBl = Vastrat Sent: Thu 4/21/2005 1:53 PM To: hl7...@li... Subject: [HAPI-devel] Problem with QBP_Q23 Message =20 I've a problem to create the message QBP^Q23 like specified in the HL7 = 2.5 documentation. The message to create is : =20 MSH|^&~\|CLINREG|WESTCLIN|HOSPMPI|HOSP|199912121135-0600||QBP^Q23^QBP_Q21= |1| D|2.5 QPD|Q23^Get Corresponding IDs^HL7nnnn|111069|112234^^^METRO HOSPITAL|^^^WESTCLINIC~^^^SOUTH LAB| RCP||I| =20 The problem is that the QPD segment have only 3 fields. =20 1. Message Query Name (CE) 2. QueryTag (ST) 3. UserParametersInsuccessivefields (Varies) =20 =20 Then to add the value in the QPD-3 (112234^^^METRO HOSPITAL), I do the following: =20 QPD qpd; CX personIdentidier =3D new CX(); personIdentidier.getIDNumber().setValue(patientId); personIdentidier.getAssigningAuthority().getNamespaceID().setValue(this.p= ati entIdAssigningAuthority); qpd.getUserParametersInsuccessivefields().setData(personIdentidier); =20 But how I can add the QPD-4 (|^^^WESTCLINIC~^^^SOUTH LAB) like required = in the HL7 documentation? =20 Can you help me please? =20 Micha=EBl Vastrat Solution Architect Polymedis s.a. TVA: BE 0862.454.516 RPM Mons Parc Initialis - rue Descartes, 2 B-7000 Mons T=E9l.: +32(0) 65321598 www.polymedis.com =20 |