Thanks Aaron , I was able to do it with your recommendation.
I created a DocumentReference object and the ID is (
201527020)
URL to retrieve the DocumentReference :
https://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/DocumentReference/201527020In the response of the Get Document Reference API , in the Attachment object you have the
URL attribute that point to the
Binary API Snipped code of the Response
"attachment": {
"contentType": "text/html",
"url": "https://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Binary/R-201527020", "title": "AX note [867006]",
"creation": "2022-12-21T17:44:33.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-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Binary/XML-201527020", "title": "AX note [867006]",
"creation": "2022-12-21T17:44:33.000Z"
},
The second URL (application/xml) , it is working fine. (
https://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Binary/XML-201527020)
But the First UR (
text/html)
is not working ---- it is returning an
unauthorized error (https://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Binary/R-201527020)