Hi Dave,
I have an update to your question. I ran a quick test against Bahmni's OpenMRS demo server -- I just registered a test patient. Here is what the "identifiers" block in OpenMRS's response looks like, when CommCare asks for the patient's details:
// ...
"identifiers": [
{
"display": "Patient Identifier = BAH203001",
"identifier": "BAH203001",
"identifierType": {
"display": "Patient Identifier",
"links": [
{
"rel": "self",
"uri": "http://localhost:8050/openmrs/ws/rest/v1/patientidentifiertype/81433852-3f10-11e4-adec-0800271c1b75"
}
],
"uuid": "81433852-3f10-11e4-adec-0800271c1b75"
},
"links": [
{
"rel": "self",
"uri": "http://localhost:8050/openmrs/ws/rest/v1/patient/9f4c5218-198c-413e-b3f0-2bbc036566c9/identifier/6d036cd9-1211-473c-94fd-6f19962a0fa1"
},
{
"rel": "full",
"uri": "http://localhost:8050/openmrs/ws/rest/v1/patient/9f4c5218-198c-413e-b3f0-2bbc036566c9/identifier/6d036cd9-1211-473c-94fd-6f19962a0fa1?v=full"
}
],
"location": null,
"preferred": true,
"resourceVersion": "1.8",
"uuid": "6d036cd9-1211-473c-94fd-6f19962a0fa1",
"voided": false
}
],
// ...
You can find the full response at this URL -- https://demo.mybahmni.org/openmrs/ws/rest/v1/patient/9f4c5218-198c-413e-b3f0-2bbc036566c9?v=full -- The credentials for the demo server are superman / Admin123 ( https://bahmni.atlassian.net/wiki/spaces/BAH/pages/61997323/Bahmni+Online+Demo ) I'm sure the demo server gets reset every 24 hours, so you may need to register another patient.
As you can see, that's a lot more detail in the response above than what would cause the error you are experiencing:
// ...
"identifiers": [
{
"display": "XY EMR ID = A1BCDE",
"links": [
{
"rel": "self",
"resourceAlias": "identifier",
"uri": "https://example.org:443/openmrs/ws/rest/v1/patient/ee293e16-9560-4156-8ff4-43f3cfdbedaf/identifier/2d53cb49-688b-4175-8dba-ce704bf1246b"
}
],
"uuid": "2d53cb49-688b-4175-8dba-ce704bf1246b"
}
],
// ...
I strongly encourage you to dive into Project Settings > Remote API Logs in CommCare HQ. There you will see all details (except for credentials) of the requests that CommCare HQ sends, and the responses.
(As you will see from "Request params" in the logs, CommCare always requests full verbosity (v=full
) when fetching patient details, so I don't think that can explain the difference between the response from the Bahmni demo server and the response you are getting.)
I hope that helps.
Norman