Using HL7 query module

I have installed HL7 ver 1.0 in openMRS standalone ver 1.8.2 and I am trying to send a url to get hl7 message but I am not getting the required response. I have checked for the patient ID and UUID in database and gave the query http://localhost:8082/openmrs-standalone/module/hl7query/ORUR01.htm?patientId=100&idTypeUuid=dce99c42-1691-11df-97a5-7038c432aabf

RESPONSE {“errorTrace”:null,“errorCode”:“400”,“error”:“MISSING_IDENTIFIER_TYPE”,“errorMessage”:“Cannot find a patient identifier type with uuid :\t dce99c42-1691-11df-97a5-7038c432aabf”,“errorDetails”:null}

Do you have a patient identifier type with this uuid “dce99c42-1691-11df-97a5-7038c432aabf”? https://demo.openmrs.org/openmrs/admin/patients/patientIdentifierType.list

mysql> select * from patient_identifier where patient_id=100; ±----------------------±-----------±-----------±----------------±----------±------------±--------±--------------------±-------±----------±------------±------------±-------------------------------------+ | patient_identifier_id | patient_id | identifier | identifier_type | preferred | location_id | creator | date_created | voided | voided_by | date_voided | void_reason | uuid | ±----------------------±-----------±-----------±----------------±----------±------------±--------±--------------------±-------±----------±— | 42 | 100 | 99AM-2 | 1 | 0 | 2 | 1 | 2006-01-18 00:00:00 | 0 | NULL | NULL | NULL | dce99c42-1691-11df-97a5-7038c432aabf | ±----------------------±-----------±-----------±----------------±----------±------------±--------±--------------------±-------±----------±—

=========================================================================================

mysql> select * from person where person_id=“100”; ±----------±-------±-----------±--------------------±-----±-----------±---------------±--------±--------------------±-----------±------------ | person_id | gender | birthdate | birthdate_estimated | dead | death_date | cause_of_death | creator | date_created | changed_by | date_changed | voided | voided_by | date_voided | void_reason | uuid | ±----------±-------±-----------±--------------------±-----±-----------±---------------±--------±--------------------±-----------±------------ | 100 | F | 1960-06-21 | 1 | 0 | NULL | NULL | 1 | 2006-01-18 00:00:00 | NULL | NULL | 0 | NULL | NULL | NULL | dd5579f9-1691-11df-97a5-7038c432aabf | ±----------±-------±-----------±--------------------±-----±-----------±---------------±--------±--------------------±-----------±------------

The uuid of the patient identifier type is got from “select * from patient_identifier_type”

Thanks for the help @dkayiwa . I have been trying this for a week, finally you made it happen.

Just one more thing I am getting messages without | symbol that is the message is coming in XML format. Why? How can I have it in HL7 format?

Eg- | ^~& OPENMRS 20170719102823 ORU R01 ORU_R01 1881e17d-d9ba-48d7-887b-6676c822b462 D C 2.5 RWA CLSM_V0.83 1 0 8d6c993e-c2cc-11de-8d13-0010c6dffd0f Unknown Location ADULTRETURN dd552fc1-1691-11df-97a5-7038c432aabf User Super UUID 20060511000000 0 1238 MEDICAL RECORD OBSERVATIONS CODE 0 bf9c6ada-1691-11df-97a5-7038c432aabf 1 CWE 1110 PATIENT REPORTED CURRENT TUBERCULOSIS PROPHYLAXIS CODE 1107 NONE CODE 20060516103603 2 CWE 1111 PATIENT REPORTED CURRENT TUBERCULOSIS TREATMENT CODE 1107 NONE CODE 20060516103603 3 CWE 1112 PATIENT REPORTED CURRENT CRYPTOCOCCUS TREATMENT CODE 1107 NONE CODE 20060516103603 4 CWE 1109 PATIENT REPORTED

Secondly, Is it possible to get HL7 message in the latest standalone version 2.6? Considering the hl7_query_module works on version 1.8.2 and there is no other available module for version 2.6. I have seen that there is inbuilt ORUR01 template in current version but there are only POST and DELETE HL7 queries for it. How can I GET HL7 query as well.