<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="spark1579" />
  <meta>
    <versionId value="spark1869" />
    <lastUpdated value="2015-10-18T13:22:19.062+00:00" />
  </meta>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
    <valueInteger value="3" />
  </extension>
  <url value="http://chftews-fusefhir.rhcloud.com/StructureDefinition/Binary" />
  <name value="Binary" />
  <status value="draft" />
  <date value="2015-09-22T20:02:49+10:00" />
  <description value="Base StructureDefinition for Binary Resource" />
  <requirements value="There are situations where it is useful or required to handle pure binary content using the same framework as other resources." />
  <fhirVersion value="1.0.1" />
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM" />
  </mapping>
  <mapping>
    <identity value="w5" />
    <uri value="http://hl7.org/fhir/w5" />
    <name value="W5 Mapping" />
  </mapping>
  <kind value="resource" />
  <constrainedType value="Binary" />
  <abstract value="false" />
  <base value="http://hl7.org/fhir/StructureDefinition/Binary" />
  <snapshot>
    <element>
      <path value="Binary" />
      <short value="Pure binary content defined by some other format than FHIR" />
      <definition value="A binary resource can contain any content, whether text, image, pdf, zip archive, etc." />
      <comments value="Typically, Binary resources are used for handling content such as:  * CDA Documents (i.e. with XDS) * PDF Documents * Images (the Media resource is preferred for handling images, but not possible when the content is already binary - e.g. XDS)." />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Binary" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Binary" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="infrastructure.structure" />
      </mapping>
    </element>
    <element>
      <path value="Binary.contentType" />
      <short value="MimeType of the binary content" />
      <definition value="MimeType of the binary content represented as a standard MimeType (BCP 13)." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Binary.contentType" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="code" />
      </type>
      <isSummary value="true" />
      <binding>
        <strength value="required" />
        <description value="The mime type of an attachment. Any valid mime type is allowed." />
        <valueSetUri value="http://www.rfc-editor.org/bcp/bcp13.txt" />
      </binding>
    </element>
    <element>
      <path value="Binary.content" />
      <short value="The actual content" />
      <definition value="The actual content, base64 encoded." />
      <comments value="If the content type is itself base64 encoding, then this will be base64 encoded twice - what is created by un-base64ing the content must be the specified content type." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Binary.content" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="base64Binary" />
      </type>
      <isSummary value="true" />
    </element>
  </snapshot>
  <differential>
    <element>
      <path value="Binary" />
      <short value="Pure binary content defined by some other format than FHIR" />
      <definition value="A binary resource can contain any content, whether text, image, pdf, zip archive, etc." />
      <comments value="Typically, Binary resources are used for handling content such as:  * CDA Documents (i.e. with XDS) * PDF Documents * Images (the Media resource is preferred for handling images, but not possible when the content is already binary - e.g. XDS)." />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Binary" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Binary" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="infrastructure.structure" />
      </mapping>
    </element>
  </differential>
</StructureDefinition>