Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » OHF » Problem with PDQ Query - search patient by ID
Problem with PDQ Query - search patient by ID [message #588047] Tue, 09 December 2008 16:11
motorenshi is currently offline motorenshi
Messages: 4
Registered: July 2009
Junior Member
Hello,

I am new to OHF, HL7, and so on, so please be indulgent with me :)

I have retrieved a sample of code from here to test PDQ Queries. It
works correctly when i use the family name and given name as search
parameters
(methods 'addQueryPatientNameFamilyName("xxx")' and
'addQueryPatientNameGivenName("yyy")' of the class
'PdqConsumerDemographicQuery')

but not when i use the patient ID via the method addQueryPatientID(...) :
the request succeeds, but no patient is returned.

The Patient Demographics Supplier returns code AE in the response message
in the fields MSA and QAK as you can see:

MSH|^~\&|||||20081209160853+0100||RSP^K22^RSP_K22|16842| P|2.5
MSA|AE|9204906087768759031
QAK|9219524764640968042468002385343|AE
QPD|Q22^Find
Candidates^HL7|9219524764640968042468002385343|@PID.3.1^6537 54210~@PID.3.4.1^ADT_ESEL~@PID.3.4.2^1.3.6.1.4.1.21367.2008. 2.3.9~@PID.3.4.3^ISO


So, i wonder wether there would not have something that I would have
misunderstood regarding the method :

addQueryPatientID(idNumber, namespaceId, universalId, universalIdType)

To fill in the 4 parameters, since I did not see exactly what they
referred to, I got their values from the PDQ response to a PDQ query with
name and firstname on the patient I wanted, as following :

...
String[] id = response.getPatientIdentifier(i, j);
int cnt=j+1;
logger.debug(" " + cnt + " - Patient ID number: " + id[0]);
logger.debug(" " + cnt + " - Patient ID assigningAuthority: " + id[1]);
logger.debug(" " + cnt + " - Patient ID universalID: " + id[2]);
logger.debug(" " + cnt + " - Patient ID universalIDType: " + id[3]);
...

I assumed that the information above corresponded to what I needed, and i
called the addQueryPatient method with :

msg.addQueryPatientID("653754210", "ADT_ESEL",
"1.3.6.1.4.1.21367.2008.2.3.9", "ISO");


According to you, where does the problem come from?
What is exactly the parameter assigningAuthority? Does it well correspond
to the namespaceid?
The patient number used in the method (i.e. which is the one returned by
the PDQ Query with firstname and lastname), is the local ID of the patient
(i.e. the patient id defined on the client system). Is it the good
parameter? Or the method waits for an other number which does not have
anything to do with it?

Thanks in advance for your help.

Motorenshi
Previous Topic:set effectiveTime??
Next Topic:modify the CDA encoding
Goto Forum:
  


Current Time: Tue Sep 23 18:27:40 GMT 2014

Powered by FUDForum. Page generated in 0.01445 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software