Hi,
   
   How to handle multiple PID returned in RSP^K22^RSP_K21 messages of
version 2.5 messages?

The structure of the message is as follows:
      
MSH|^~\&||3f0203ca-7da1-4c92-8dcf-743a5579673f|GENERIC|3f0203ca-7da1-4c92-8dcf-743a5579673f|20100610165524||RSP^K22^RSP_K21|20100610165524718543|P|2.5
MSA|AA|11312110
QAK|QRY11312110|OK|IHE PDQ Query
QPD|IHE PDQ Query|QRY11312110|@PID.5.2\S\Jack [email protected]\s\m
PID||3|5ab16eec-4eb0-4f78-ae45-f8759a83ee70^^^3f0203ca-7da1-4c92-8dcf-743a5579673f&&^PI~5ab16eec-4eb0-4f78-ae45-f8759a83ee70^^^EMR_3f0203ca-7da1-4c92-8dcf-743a5579673f&&^PI|5ab16eec-4eb0-4f78-ae45-f8759a83ee70^^^3f0203ca-7da1-4c92-8dcf-743a5579673f|Jack^Straw|Mommmmy|20001111|M||2028-9|Brigade
Street Las vegas^^New
York^10005^USA||(900)485-5344^PRN^PH^~(900)545-1200^prn^cp^~^net^x.400^[email protected]|(900)485-3333^WPN^PH^~(900)545-1234^wpn^cp^~^net^x.400^[email protected]|||CHR||123895678|1234^NY
QRI|5
PID||2|5ab16eec-4eb0-4f78-ae45-f8759a83ff10^^^3f0203ca-7da1-4c92-8dcf-743a5579673f&&^PI~5ab16eec-4eb0-4f78-ae45-f8759a83ff10^^^EMR_3f0203ca-7da1-4c92-8dcf-743a5579673f&&^PI|5ab16eec-4eb0-4f78-ae45-f8759a83ff10^^^3f0203ca-7da1-4c92-8dcf-743a5579673f|Jack^Straw^T|Mommmmy|20001111|M||2028-9|Brigade
Street Las vegas^^New
York^10005^USA||(900)485-5344^PRN^PH^~(900)545-1200^prn^cp^~^net^x.400^[email protected]|(900)485-3333^WPN^PH^~(900)545-1234^wpn^cp^~^net^x.400^[email protected]|||CHR||123891234|1234^NY
QRI|4.35708725


           I am unable to retrieve the values from 2nd PID segment. Say for
example I have to retrieve PID 3.1.1 and 3.4.1 of second PID segment, then
how can we get these values as Terser class is able to retrieve only the
first PID segment values?
                  I am not getting how to do this. Can anyone tell me how to
do it or share the piece of code?

Thanks & regards,
    depeche
-- 
View this message in context: 
http://old.nabble.com/How-to-handle-multiple-PID-returned-in-RSP%5EK22%5ERSP_K21-messages-of-version-2.5-messages--tp28854205p28854205.html
Sent from the hl7api-devel mailing list archive at Nabble.com.


------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Hl7api-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hl7api-devel

Reply via email to