Problem when downloading DocumentReference

94 views
Skip to first unread message
Assigned to mayur.rajen...@gmail.com by aaron....@oracle.com

Gadi Manor

unread,
Mar 10, 2021, 4:37:18 AM3/10/21
to Cerner FHIR Developers
Hi,

I successfully created a DocumentReference (id: 197458730, X-Request-id: f864197d-be6a-45dd-864a-e975603a2959) with an attachment of type pdf.

However when I downloaded it I get a pdf with some metadata about the patient and below a line that says that the external document could not be loaded.

Can you please advise how to proceed?

Thanks.
Gadi 

Mayur Rajendran (Cerner)

unread,
Mar 11, 2021, 5:15:03 PM3/11/21
to Cerner FHIR Developers
Hi Gadi,

We are investigating this and will post back once we can get this resolved.

Thanks,
Mayur (Cerner)

Gadi Manor

unread,
Mar 25, 2021, 2:56:43 AM3/25/21
to Cerner FHIR Developers
Hi Mayur,

Is there any update regarding the issue?

Mayur Rajendran (Cerner)

unread,
Mar 25, 2021, 5:23:02 PM3/25/21
to Cerner FHIR Developers
Hi Gadi,

The investigation is still ongoing, we do not have any updates right now, but will post back as soon as we can determine the root cause.

Thanks,
Mayur (Cerner)

Gadi Manor

unread,
Apr 14, 2021, 1:46:40 AM4/14/21
to Cerner FHIR Developers
Hi Mayur,

Any news about it?

Mayur Rajendran (Cerner)

unread,
Apr 14, 2021, 4:13:57 PM4/14/21
to Cerner FHIR Developers
Hi Gadi,

We're still investigating the root cause.  Would you mind providing the request body you are using on the write?  I think it might give us more insight into what is causing this.

Thanks,
Mayur (Cerner)

Gadi Manor

unread,
Apr 18, 2021, 5:43:19 AM4/18/21
to Cerner FHIR Developers
Hi Mayur,

Body:
{
"resourceType": "DocumentReference",
"status": "current",
"docStatus": "final",
"subject": {
"reference": "Patient/12724065"
},
"author": [
{
"reference": "Practitioner/12742069"
}
],
"type": {
"coding": [
{
"system": "http://loinc.org",
"code": "68608-9",
"display": "Wound Assessment",
"userSelected": true
}
],
"text": "Wound Assessment"
},
"content": [
{
"attachment": {
"contentType": "application/xml;charset=utf-8",
"data": "JVBERi0xLjUNCiXi48/TDQoxIDAgb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NCNi1FNTI3LUYyOUE0MkYxRTI2NzwveG1wTU06RG9jdW1lbnRJRD48eG1wTU06SW5zdGFuY2VJRD51dWlkOjk1MzYxM0ZELUM5NTEtRkQ5My1BNUU3LUMyNThGRjM5M0RFQjwveG1wTU06SW5zdGFuY2VJRD48L3JkZjpEZXNjcmlwdGlvbj4KCjwvcmRmOlJERj4KPC94OnhtcG1ldGE+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKPD94cGFja2V0IGVuZD0ndyc/Pg0KZW5kc3RyZWFtDQplbmRvYmoNCjcgMCBvYmoNCjw8L1R5cGUvQ2F0YWxvZy9QYWdlcyA4IDAgUi9NZXRhZGF0YSA5IDAgUj4+DQplbmRvYmoNCnhyZWYNCjAgMTANCjAwMDAwMDAwMDAgNjU1MzUgZg0KMDAwMDAwMDAxNyAwMDAwMCBuDQowMDAwMDAxMzQyIDAwMDAwIG4NCjAwMDAwMDEzMTIgMDAwMDAgbg0KMDAwMDAwMDE4NCAwMDAwMCBuDQowMDAwMDAxNjQ1IDAwMDAwIG4NCjAwMDAwMDE0NDEgMDAwMDAgbg0KMDAwMDAwMzUxNCAwMDAwMCBuDQowMDAwMDAxNzEyIDAwMDAwIG4NCjAwMDAwMDE3NjYgMDAwMDAgbg0KdHJhaWxlcg0KPDwNCi9TaXplIDEwDQovUm9vdCA3IDAgUg0KL0luZm8gNiAwIFINCi9JRCBbPDUxMTY5MEZFNzUxMzE0MkJBMzRGNjRCNDgyNjU0N0I1Pjw4QjZDNjZFNjI1NTk1RTRFOUIwNEY2RDc0MjU2NUE5Qz5dDQo+Pg0Kc3RhcnR4cmVmDQozNTc3DQolJUVPRg0K",
"title": "Wound Assessment",
"creation": "2020-07-29T21:02:04.000Z"
}
}
],
"context": {
"encounter": [
{
"reference": "Encounter/97953483"
}
],
"period": {
"start": "2000-01-01T00:00:00.000Z",
"end": "2000-01-02T01:00:00.000Z"
}
}
}

DocumentReference: 197472854
Binary: XR-197472854
X-Request-id: 8fe8c931-45d2-4ecc-bf28-f81172301d90 

Please let me know if need anything else.

Gadi
Message has been deleted

Nishanth Namana (Cerner)

unread,
Apr 19, 2021, 1:05:46 PM4/19/21
to Cerner FHIR Developers
Hello Gadi,

From the request body that you shared, we were able to find the root cause. The issue is, the data that you are trying to write is an encoded pdf but the contentType you mentioned says 'xml'. Can you please update your contextType to 'application/pdf'. Hopefully this should fix the issue.

Thank you,
- Nishanth (Cerner)

Gadi Manor

unread,
Apr 19, 2021, 1:31:02 PM4/19/21
to Cerner FHIR Developers
OMG!
I must have copied it from the create API doc by mistake.
The weird thing is that when I called the GET method it said that the content type is pdf.
Anyway, it seems to work now.

Thanks!
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages