Binary

Overview

The Binary resource can contain any clinical content such as text, images, and PDFs.  This resource is currently limited to Continuity of Care Documents (CCD) and diagnostic reports.

It is recommended to request all Binary resources only after obtaining a link to the resource via references from DiagnosticReport or DocumentReference. It is not recommended to start a workflow in the Binary resource. 

The consumer must populate the Accept header with either application/json+fhir or the format returned in the attachment.contentType of the referring resource. If the Accept is application/json+fhir, a FHIR Binary resource is returned with the raw data populated in the content. Otherwise, the raw data will be returned (not contained within a FHIR resource). For more information see the Binary Documentation.

The following fields are returned if valued:

Retrieve by id

List an individual Binary by its id:

GET /Binary/:id

Implementation Notes

Authorization Types

Requires both the appropriate Binary.read and DiagnosticReport.read scopes to be granted to the caller.

Headers

The DiagnosticReport.presentedForm.contentType should be used to set the Accept header. An Accept header of application/json+fhir could be supplied instead, if the JSON Binary resource is desired insetad of the raw data.

This resource will not accept the application/json mime type unless the underlying binary data is json.

Accept: application/json+fhir
Authorization: <OAuth2 Bearer Token>

FHIR Accept Example

Request

Accept: application/json+fhir
GET https://fhir-open.sandboxcerner.com/dstu2/0b8a0111-e8e6-4c26-a91c-5069cbc6b1ca/Binary/TR-5927259  

Response

Status: 200 OK
Content-Type: application/json+fhir
{
  "resourceType": "Binary",
  "id": "TR-5927259",
  "meta": {
    "versionId": "1273873",
    "lastUpdated": "2014-10-31T20:37:01.000Z"
  },
  "contentType": "text/html",
  "content": "PCFET0NUWVBFIGh0bWwgImFib3V0OmxlZ2FjeS1jb21wYXQiPg0KPGh0bWw+DQogIDxoZWFkPg0KICAgIDxtZXRhIGh0dHAtZXF1aXY9IkNvbnRlbnQtVHlwZSIgY29udGVudD0idGV4dC9odG1sOyBjaGFyc2V0PVVURi04IiAvPg0KICAgIDx0aXRsZT5SQURSUFQ8L3RpdGxlPg0KICA8L2hlYWQ+DQogIDxib2R5IG1hcmdpbndpZHRoPSI2IiBtYXJnaW5oZWlnaHQ9IjYiIGxlZnRtYXJnaW49IjYiIHRvcG1hcmdpbj0iNiI+DQogICAgPGRpdiB2YWxp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pdj4NCiAgICAgICAgICA8ZGl2IHN0eWxlPSJ3aGl0ZS1zcGFjZTogcHJlLXdyYXA7Ij48L2Rpdj4NCiAgICAgICAgPC9kaXY+DQogICAgICA8L2Rpdj4NCiAgICA8L2Rpdj4NCiAgPC9ib2R5Pg0KPC9odG1sPg=="
}

Native Accept Example

Request

Accept: text/html
GET https://fhir-open.sandboxcerner.com/dstu2/0b8a0111-e8e6-4c26-a91c-5069cbc6b1ca/Binary/TR-5927259  

Response

Status: 200 OK
Content-Type: text/html
<!DOCTYPE html "about:legacy-compat">
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>RADRPT</title>
  </head>
  <body marginwidth="6" marginheight="6" leftmargin="6" topmargin="6">
    <div valign="top">
      <div class="linked-rad-procedure" data-event-cd="4062551" data-event-id="283712" data-doc-status="AUTH">
        <div class="reason-for-exam" data-comment-id="6470451" data-comment-type="REASONFOREXM">
          <div class="subject" style="font-weight: bold; white-space: pre-wrap;">Reason for exam:</div>
          <div class="content" style="white-space: pre-wrap;">Dizziness
            <div style="white-space: pre-wrap;"></div>
          </div>
        </div>
      </div>
      <div class="section" data-doc-status="AUTH" data-is-addendum="false" data-subject="Report" data-event-id="283712" data-event-cd="4062668" data-section-sequence="0">
        <div class="subject" style="font-weight: bold; white-space: pre-wrap;">Report</div>
        <div class="content" style="font-family: Helvetica,sans-serif,Lucida Sans Unicode; font-size: 12pt; font-weight: normal; font-style: normal; text-decoration: none; color: rgb(0,0,0); background-color: transparent; margin-top: 0.0pt; margin-bottom: 0.0pt; text-indent: 0.0in; margin-left: 0.0in; margin-right: 0.0in; text-align: left; border-style: none; border-width: 0.0pt; border-color: rgb(0,0,0); padding: 0.0pt; white-space: pre-wrap;">
          <div style="font-size: 11pt;">Confirmed</div>
          <div style="white-space: pre-wrap;"></div>
        </div>
        <div class="sign-line-header" style="font-weight: bold; white-space: pre-wrap;">Signature Line:
          <div class="sign-line" style="white-space: pre-wrap;">***** Final *****

Signed (Electronic Signature):  10/31/2014 3:37 pm
Signed by:  Potter, Harry</div>
          <div style="white-space: pre-wrap;"></div>
        </div>
      </div>
    </div>
  </body>
</html>

Errors

The common errors may be returned.

$autogen-ccd-if

Generates the Continuity of Care Document (CCD) as a Binary for the supplied query parameters:

GET /Binary/$autogen-ccd-if?:parameters

Implementation Notes

Authorization Types

Requires both the appropriate Binary.read and DocumentReference.read scopes to be granted to the caller.

Parameters

Name Required? Type Description
patient Y reference A reference to the patient that is the subject of the CCD. Example: 14067892
start N date The start of the date range for which the CCD is to be generated. If not provided, then all records from the beginning of time are included. Example: 2014-09-24T12:00:00.000Z
end N date The end of the date range for which the CCD is to be generated. If not provided, then all records up to the current date are included. Example: 2016-09-24T12:00:00.000Z

Notes:

Headers

The DocumentReference.content.attachment.contentType should be used to set the Accept header. An Accept header of application/json+fhir could be supplied instead, if the JSON Binary resource is desired insetad of the raw data.

This resource will not accept the application/json mime type unless the underlying binary data is json.

Accept: application/json+fhir
Authorization: <OAuth2 Bearer Token>

FHIR Accept Example

Request

Accept: application/json+fhir
GET: https://fhir-open.sandboxcerner.com/dstu2/0b8a0111-e8e6-4c26-a91c-5069cbc6b1ca/Binary/$autogen-ccd-if?patient=1316035

Response

Status: 200 OK
Content-Type: application/json+fhir
{
  "resourceType": "Binary",
  "id": "d1ba1b55-1fe7-47bc-9c94-7393d2c25028",
  "meta": {
    "lastUpdated": "2017-01-03T10:29:43-06:00"
  },
  "contentType": "application/xml",
  "content": "PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48P3htbC1zdHlsZXNoZWV0IHR5cGU9InRleHQveHNsIiBocmVmPSJodHRwOi8vd3d3LmNlcm5lci5jb20vY2RhX3N0eWxlc2hlZXQvIj8+PENsaW5pY2FsRG9jdW1lbnQgeG1sbnM9InVybjpobDctb3JnOnYzIiB4bWxuczp4c2k9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4b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FsVGV4dD48L3ZhbHVlPjwvb2JzZXJ2YXRpb24+PC9lbnRyeVJlbGF0aW9uc2hpcD48L29ic2VydmF0aW9uPjwvZW50cnlSZWxhdGlvbnNoaXA+PC9hY3Q+PC9lbnRyeT48L3NlY3Rpb24+PC9jb21wb25lbnQ+PC9zdHJ1Y3R1cmVkQm9keT48L2NvbXBvbmVudD48L0NsaW5pY2FsRG9jdW1lbnQ+"
}

Native Accept Example

Request

Accept: application/xml
GET: https://fhir-open.sandboxcerner.com/dstu2/0b8a0111-e8e6-4c26-a91c-5069cbc6b1ca/Binary/$autogen-ccd-if?patient=1316035

Response

Status: 200 OK
Content-Type: application/xml
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="http://www.cerner.com/cda_stylesheet/"?>
<ClinicalDocument xmlns="urn:hl7-org:v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:outCdUtil="java:com.cerner.fsi.code.translation.OutboundCodeUtility" xmlns:cdUDO="java:com.cerner.fsi.udo.datatypes.CodeUDO" xmlns:sdtc="urn:hl7-org:sdtc" xmlns:oidEntity="java:com.cerner.fsi.code.translation.OIDEntityType" xsi:schemaLocation="urn:hl7-org:v3../../../CDA%20R2/cda-schemas-and-samples/infrastructure/cda/CDA.xsd" classCode="DOCCLIN" moodCode="EVN">
    <realmCode code="US"/>
    <typeId root="2.16.840.1.113883.1.3" extension="POCD_HD000040"/>
    <templateId root="2.16.840.1.113883.10.20.22.1.1"/>
    <templateId root="2.16.840.1.113883.10.20.22.1.2"/>
    <id root="2.3.2.3.2.3.999362" extension="1950007"/>
    <code code="34133-9" codeSystem="2.16.840.1.113883.6.1" displayName="Summarization of episode note"/>
    <title>Transition of Care/Referral Summary</title>
    <effectiveTime value="20170103103023.003-0600"/>
    <confidentialityCode code="N" displayName="Normal" codeSystem="2.16.840.1.113883.5.25"/>
    <languageCode code="en-US"/>
    <recordTarget typeCode="RCT" contextControlCode="OP">
        <patientRole classCode="PAT">
            <id root="2.2.2.2.2.2" extension="10000167" assigningAuthorityName="BWMC MRN"/>
            <addr nullFlavor="UNK"/>
            <telecom nullFlavor="NI"/>
            <patient classCode="PSN" determinerCode="INSTANCE">
                <name use="L">
                    <given>Hermione</given>
                    <family>Granger</family>
                </name>
                <administrativeGenderCode code="F" codeSystem="2.16.840.1.113883.5.1" codeSystemName="administrativeGender" displayName="Female">
                    <originalText>Female</originalText>
                </administrativeGenderCode>
                <birthTime value="19830315"/>
                <raceCode nullFlavor="NI"/>
                <ethnicGroupCode nullFlavor="NI"/>
                <languageCommunication>
                    <languageCode nullFlavor="NI"/>
                </languageCommunication>
            </patient>
        </patientRole>
    </recordTarget>
    <author typeCode="AUT" contextControlCode="OP">
        <time value="20170103103023.003-0600"/>
        <assignedAuthor classCode="ASSIGNED">
            <id nullFlavor="NI"/>
            <addr nullFlavor="NI"/>
            <telecom nullFlavor="NI"/>
            <assignedAuthoringDevice>
                <manufacturerModelName>Cerner Corporation</manufacturerModelName>
                <softwareName>Millennium Clinical Document Generator</softwareName>
            </assignedAuthoringDevice>
            <representedOrganization classCode="ORG" determinerCode="INSTANCE">
                <id root="2.3.2.3.2.3"/>
                <name>Baseline West Medical Center</name>
                <telecom use="WP" value="tel:(816)555-2121"/>
                <addr use="WP">
                    <streetAddressLine>8 Privett Drive</streetAddressLine>
                    <city>Sussex</city>
                    <state>LO</state>
                    <postalCode>11242</postalCode>
                    <country>UK</country>
                </addr>
            </representedOrganization>
        </assignedAuthor>
    </author>
    <documentationOf typeCode="DOC">
        <serviceEvent classCode="PCPR" moodCode="EVN">
            <effectiveTime>
                <low value="20140823154534.000-0500"/>
                <high value="20161229130841.000-0600"/>
            </effectiveTime>
            <performer typeCode="PRF">
                <functionCode code="PCP" codeSystem="2.16.840.1.113883.5.88" codeSystemName="HL7 ParticipationFunction" displayName="primary care physician"/>
                <assignedEntity>
                    <id nullFlavor="NI"/>
                </assignedEntity>
            </performer>
        </serviceEvent>
    </documentationOf>
    <component typeCode="COMP">
        <structuredBody classCode="DOCBODY" moodCode="EVN">
            <component typeCode="COMP" contextConductionInd="true">
                <section classCode="DOCSECT" moodCode="EVN">
                    <templateId root="2.16.840.1.113883.10.20.22.2.5"/>
                    <templateId root="2.16.840.1.113883.10.20.22.2.5.1"/>
                    <code code="11450-4" codeSystem="2.16.840.1.113883.6.1" displayName="Problem List" codeSystemName="LOINC"/>
                    <title>Problem List</title>
                    <text>
                        <table border="1" width="95%">
                            <colgroup>
                                <col width="20%"/>
                                <col width="20%"/>
                                <col width="20%"/>
                                <col width="20%"/>
                                <col width="20%"/>
                            </colgroup>
                            <thead>
                                <tr>
                                    <th>Condition</th>
                                    <th>Effective Dates</th>
                                    <th>Status</th>
                                    <th>Health Status</th>
                                    <th>Informant</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td>
                                        <content ID="PROBLEM1567402">Bloody stool</content>
                                    </td>
                                    <td> </td>
                                    <td>
                                        <content ID="PROBST1567402">Active</content>
                                    </td>
                                    <td>
                                        <content ID="PROBHST1567402"> </content>
                                    </td>
                                    <td> </td>
                                </tr>
                            </tbody>
                        </table>
                    </text>
                    <entry typeCode="DRIV" contextConductionInd="true">
                        <act classCode="ACT" moodCode="EVN">
                            <templateId root="2.16.840.1.113883.10.20.22.4.3"/>
                            <id root="C2D17DDA-E364-40B3-8886-C1DEF0D44112"/>
                            <code code="CONC" codeSystem="2.16.840.1.113883.5.6" displayName="Concern" codeSystemName="HL7ActClass"/>
                            <statusCode code="active"/>
                            <effectiveTime>
                                <low nullFlavor="NI"/>
                                <high nullFlavor="NI"/>
                            </effectiveTime>
                            <entryRelationship typeCode="SUBJ" inversionInd="false">
                                <observation classCode="OBS" moodCode="EVN">
                                    <templateId root="2.16.840.1.113883.10.20.22.4.4"/>
                                    <id root="760344C4-41D6-46E3-8D54-8658FF509599"/>
                                    <code code="55607006" displayName="Problem" codeSystem="2.16.840.1.113883.6.96"/>
                                    <text>
                                        <reference value="#PROBLEM1567402"/>
                                    </text>
                                    <statusCode code="completed"/>
                                    <effectiveTime>
                                        <low nullFlavor="NI"/>
                                        <high nullFlavor="NI"/>
                                    </effectiveTime>
                                    <value xsi:type="CD" code="405729008" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED CT" displayName="Hematochezia (finding)">
                                        <originalText>
                                            <reference value="#PROBLEM1567402"/>
                                        </originalText>
                                    </value>
                                    <author>
                                        <time value="20141021134958.000-0500"/>
                                        <assignedAuthor classCode="ASSIGNED">
                                            <id nullFlavor="NI"/>
                                            <addr nullFlavor="UNK"/>
                                            <assignedPerson>
                                                <name>
                                                    <given nullFlavor="NA"/>
                                                    <family nullFlavor="NA"/>
                                                </name>
                                            </assignedPerson>
                                        </assignedAuthor>
                                    </author>
                                    <entryRelationship typeCode="REFR">
                                        <observation classCode="OBS" moodCode="EVN">
                                            <templateId root="2.16.840.1.113883.10.20.22.4.6"/>
                                            <code code="33999-4" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Status"/>
                                            <text>
                                                <reference value="#PROBST1567402"/>
                                            </text>
                                            <statusCode code="completed"/>
                                            <value xsi:type="CD" code="55561003" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED CT">
                                                <originalText>
                                                    <reference value="#PROBST1567402"/>
                                                </originalText>
                                            </value>
                                        </observation>
                                    </entryRelationship>
                                </observation>
                            </entryRelationship>
                        </act>
                    </entry>
                </section>
            </component>
        </structuredBody>
    </component>
</ClinicalDocument>

Errors

The common errors may be returned.