Hi Team,
I observed a case where I'm hitting the DocumentReference endpoint for a patient.
Workflow or API calls:
https://fhir-ehr-code.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/DocumentReference?patient=12724066
Result:(trimmed for better readability)
"content": [
{
"attachment": {
"contentType": "application/pdf",
"url": "https://fhir-ehr-code.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Binary/XR-206142019",
"creation": "2029-05-12T21:17:30.000Z"
},
"format": {
"system": "http://ihe.net/fhir/ValueSet/IHE.FormatCode.codesystem",
"code": "urn:ihe:iti:xds:2017:mimeTypeSufficient",
"display": "mimeType Sufficient"
}
},
{
"attachment": {
"contentType": "application/xml",
"url": "https://fhir-ehr-code.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Binary/XML-206142019",
"creation": "2029-05-12T21:17:30.000Z"
},
"format": {
"system": "http://ihe.net/fhir/ValueSet/IHE.FormatCode.codesystem",
"code": "urn:ihe:iti:xds:2017:mimeTypeSufficient",
"display": "mimeType Sufficient"
}
}
]
From the above response, we are getting 2 documents(pdf & xml) for the same patient and category:
XR-206142019 & XML-206142019
In my understanding, both the above should have the same content in them but in different formats. But, when I make the subsequent Binary endpoint calls for both docs, XML just gives a bunch of timestamps with no patient info.
In short, XML seems to be incorrect. Is this just a sandbox behaviour? Or can happen with production environment as well?
Thanks,
Mayank Porwal