|Problem with PDQ Query - search patient by ID [message #588047]
||Tue, 09 December 2008 16:11
Registered: July 2009
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
(methods 'addQueryPatientNameFamilyName("xxx")' and
'addQueryPatientNameGivenName("yyy")' of the class
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:
Candidates^HL7|9219524764640968042468002385343|@PID.3.1^6537 54210~@PID.3.4.1^ADT_ESEL~@PID.3.4.2^18.104.22.168.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);
logger.debug(" " + cnt + " - Patient ID number: " + id);
logger.debug(" " + cnt + " - Patient ID assigningAuthority: " + id);
logger.debug(" " + cnt + " - Patient ID universalID: " + id);
logger.debug(" " + cnt + " - Patient ID universalIDType: " + id);
I assumed that the information above corresponded to what I needed, and i
called the addQueryPatient method with :
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.
Powered by FUDForum
. Page generated in 0.03808 seconds