<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="binary" />
  <text>
    <status value="extensions" />
    <div xmlns="http://www.w3.org/1999/xhtml">
      <p class="res-header-id">
        <b>Generated Narrative: StructureDefinition binary</b>
      </p>
      <a name="binary"></a>
      <a name="hcbinary"></a>
      <table border="0" cellpadding="0" cellspacing="0" class="xhtTableBorder0">
        <tr class="xhtRowBorder1">
          <th scope="col" style="" class="hierarchy xhtCellBorder0">
            <a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="The logical name of the element">Name</a>
          </th>
          <th scope="col" style="" class="hierarchy xhtCellBorder0">
            <a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Information about the use of the element">Flags</a>
          </th>
          <th scope="col" style="" class="hierarchy xhtCellBorder0">
            <a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Minimum and Maximum # of times the element can appear in the instance">Card.</a>
          </th>
          <th scope="col" style="; width: 100px" class="hierarchy xhtCellBorder0">
            <a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Reference to the type of the element">Type</a>
          </th>
          <th scope="col" style="" class="hierarchy xhtCellBorder0">
            <a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Additional information about the element">Description &amp; Constraints</a>
            <span style="float: right">
              <a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format">
                <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit" />
              </a>
            </span>
          </th>
        </tr>
        <tr class="xhtRowBorder0 xhtRowEven">
          <td style="background-image: url(tbl_bck1.png)" class="hierarchy xhtCellBorder0 xhtCellNoWrap">
            <img src="tbl_spacer.png" alt="" style="background-color: inherit" class="hierarchy" />
            <img src="icon_resource.png" alt="" style="background-color: white; background-color: inherit" title="Resource" class="hierarchy" />
            <a href="StructureDefinition-binary-definitions.html#Binary">Binary</a>
            <a name="Binary"></a>
          </td>
          <td style="" class="hierarchy xhtCellBorder0" />
          <td style="" class="hierarchy xhtCellBorder0">
            <span class="xhtPieceDeEmphasized">0</span>
            <span class="xhtPieceDeEmphasized">..</span>
            <span class="xhtPieceDeEmphasized">*</span>
          </td>
          <td style="" class="hierarchy xhtCellBorder0">
            <a href="http://hl7.org/fhir/R4/binary.html">Binary</a>
          </td>
          <td style="" class="hierarchy xhtCellBorder0">
            <span class="xhtPieceDeEmphasized">Pure binary content defined by a format other than FHIR</span>
          </td>
        </tr>
        <tr class="xhtRowBorder0 xhtRowOdd">
          <td style="background-image: url(tbl_bck10.png)" class="hierarchy xhtCellBorder0 xhtCellNoWrap">
            <img src="tbl_spacer.png" alt="" style="background-color: inherit" class="hierarchy" />
            <img src="tbl_vjoin.png" alt="" style="background-color: inherit" class="hierarchy" />
            <img src="icon_element.gif" alt="" style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy" />
            <span style="position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0" class="sr-only">Binary.</span>
            <a href="StructureDefinition-binary-definitions.html#Binary.language">language</a>
            <a name="Binary.language"></a>
          </td>
          <td style="" class="hierarchy xhtCellBorder0">
            <span style="padding-left: 3px; padding-right: 3px; color: white; background-color: #B60000" title="This element has obligations">O</span>
            <span style="position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0" class="sr-only"> This element has obligations. </span>
          </td>
          <td style="" class="hierarchy xhtCellBorder0">
            <span class="xhtPieceDeEmphasized">0</span>
            <span class="xhtPieceDeEmphasized">..</span>
            <span class="xhtPieceDeEmphasized">1</span>
          </td>
          <td style="" class="hierarchy xhtCellBorder0">
            <a href="http://hl7.org/fhir/R4/datatypes.html#code" class="xhtPieceDeEmphasized">code</a>
          </td>
          <td style="" class="hierarchy xhtCellBorder0">
            <span class="xhtPieceDeEmphasized">Language of the resource content</span>
            <table class="obligation grid">
              <tr>
                <td style="font-size: 11px">
                  <b>Obligations</b>
                </td>
                <td style="font-size: 11px">
                  <b>Actor</b>
                </td>
              </tr>
              <tr>
                <td style="font-size: 11px">
                  <b>SHALL</b>:<a href="http://hl7.org/fhir/extensions/5.3.0/CodeSystem-obligation.html#obligation-populate" title="Obligation Codes: populate">populate</a> &amp; <b>SHALL</b>:<a href="http://hl7.org/fhir/extensions/5.3.0/CodeSystem-obligation.html#obligation-persist" title="Obligation Codes: persist">persist</a> &amp; <b>SHALL</b>:<a href="http://hl7.org/fhir/extensions/5.3.0/CodeSystem-obligation.html#obligation-no-error" title="Obligation Codes: not error if present">no-error</a></td>
                <td style="font-size: 11px; opacity: 0.50;">
                  <a href="ActorDefinition-pcare-server.html">P-Care Server</a>
                </td>
              </tr>
            </table>
          </td>
        </tr>
        <tr class="xhtRowBorder0 xhtRowEven">
          <td style="background-image: url(tbl_bck10.png)" class="hierarchy xhtCellBorder0 xhtCellNoWrap">
            <img src="tbl_spacer.png" alt="" style="background-color: inherit" class="hierarchy" />
            <img src="tbl_vjoin.png" alt="" style="background-color: inherit" class="hierarchy" />
            <img src="icon_element.gif" alt="" style="background-color: white; background-color: inherit" title="Element" class="hierarchy" />
            <span style="position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0" class="sr-only">Binary.</span>
            <a href="StructureDefinition-binary-definitions.html#Binary.contentType">contentType</a>
            <a name="Binary.contentType"></a>
          </td>
          <td style="" class="hierarchy xhtCellBorder0">
            <span style="padding-left: 3px; padding-right: 3px; color: white; background-color: #B60000" title="This element has obligations">O</span>
            <span style="position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0" class="sr-only"> This element has obligations. </span>
          </td>
          <td style="" class="hierarchy xhtCellBorder0">
            <span class="xhtPieceDeEmphasized">1</span>
            <span class="xhtPieceDeEmphasized">..</span>
            <span class="xhtPieceDeEmphasized">1</span>
          </td>
          <td style="" class="hierarchy xhtCellBorder0">
            <a href="http://hl7.org/fhir/R4/datatypes.html#code" class="xhtPieceDeEmphasized">code</a>
          </td>
          <td style="" class="hierarchy xhtCellBorder0">
            <span class="xhtPieceDeEmphasized">MimeType of the binary content</span>
            <br class="binding" />
            <span class="xhtPieceBold binding">Binding: </span>
            <a href="ValueSet-pcare-binary-mime-type.html" title="http://fhir.infoway-inforoute.ca/p-care/ValueSet/pcare-binary-mime-type" class="binding">P-Care Binary MIME Types</a>
            <span class="binding"> (</span>
            <a href="http://hl7.org/fhir/R4/terminologies.html#required" title="To be conformant, the concept in this element SHALL be from the specified value set." class="binding">required</a>
            <span class="binding">)</span>
            <table class="obligation grid">
              <tr>
                <td style="font-size: 11px">
                  <b>Obligations</b>
                </td>
                <td style="font-size: 11px">
                  <b>Actor</b>
                </td>
              </tr>
              <tr>
                <td style="font-size: 11px">
                  <b>SHALL</b>:<a href="http://hl7.org/fhir/extensions/5.3.0/CodeSystem-obligation.html#obligation-populate" title="Obligation Codes: populate">populate</a> &amp; <b>SHALL</b>:<a href="http://hl7.org/fhir/extensions/5.3.0/CodeSystem-obligation.html#obligation-persist" title="Obligation Codes: persist">persist</a> &amp; <b>SHALL</b>:<a href="http://hl7.org/fhir/extensions/5.3.0/CodeSystem-obligation.html#obligation-no-error" title="Obligation Codes: not error if present">no-error</a></td>
                <td style="font-size: 11px; opacity: 0.50;">
                  <a href="ActorDefinition-pcare-server.html">P-Care Server</a>
                </td>
              </tr>
            </table>
          </td>
        </tr>
        <tr class="xhtRowBorder0 xhtRowOdd">
          <td style="background-image: url(tbl_bck01.png)" class="hierarchy xhtCellBorder0 xhtCellNoWrap">
            <img src="tbl_spacer.png" alt="" style="background-color: inherit" class="hierarchy" />
            <img src="tbl_vjoin_end.png" alt="" style="background-color: inherit" class="hierarchy" />
            <img src="icon_element.gif" alt="" style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy" />
            <span style="position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0" class="sr-only">Binary.</span>
            <a href="StructureDefinition-binary-definitions.html#Binary.data">data</a>
            <a name="Binary.data"></a>
          </td>
          <td style="" class="hierarchy xhtCellBorder0">
            <span style="padding-left: 3px; padding-right: 3px; color: white; background-color: #B60000" title="This element has obligations">O</span>
            <span style="position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0" class="sr-only"> This element has obligations. </span>
          </td>
          <td style="" class="hierarchy xhtCellBorder0">1..<span class="xhtPieceDeEmphasized">1</span></td>
          <td style="" class="hierarchy xhtCellBorder0">
            <a href="http://hl7.org/fhir/R4/datatypes.html#base64Binary" class="xhtPieceDeEmphasized">base64Binary</a>
          </td>
          <td style="" class="hierarchy xhtCellBorder0">
            <span class="xhtPieceDeEmphasized">The actual content</span>
            <table class="obligation grid">
              <tr>
                <td style="font-size: 11px">
                  <b>Obligations</b>
                </td>
                <td style="font-size: 11px">
                  <b>Actor</b>
                </td>
              </tr>
              <tr>
                <td style="font-size: 11px">
                  <b>SHALL</b>:<a href="http://hl7.org/fhir/extensions/5.3.0/CodeSystem-obligation.html#obligation-populate" title="Obligation Codes: populate">populate</a> &amp; <b>SHALL</b>:<a href="http://hl7.org/fhir/extensions/5.3.0/CodeSystem-obligation.html#obligation-persist" title="Obligation Codes: persist">persist</a> &amp; <b>SHALL</b>:<a href="http://hl7.org/fhir/extensions/5.3.0/CodeSystem-obligation.html#obligation-no-error" title="Obligation Codes: not error if present">no-error</a></td>
                <td style="font-size: 11px; opacity: 0.50;">
                  <a href="ActorDefinition-pcare-server.html">P-Care Server</a>
                </td>
              </tr>
            </table>
          </td>
        </tr>
        <tr class="xhtRowBorder0 xhtRowEven">
          <td style="background-image: url(tbl_bck003.png)" class="hierarchy xhtCellBorder0 xhtCellNoWrap">
            <img src="tbl_spacer.png" alt="" style="background-color: inherit" class="hierarchy" />
            <img src="tbl_blank.png" alt="" style="background-color: inherit" class="hierarchy" />
            <img src="tbl_vjoin_end.png" alt="" style="background-color: inherit" class="hierarchy" />
            <img src="icon_extension_simple.png" alt="" style="background-color: white; background-color: inherit" title="Simple Extension" class="hierarchy" />
            <span style="position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0" class="sr-only">Binary.data.</span>
            <a href="StructureDefinition-binary-definitions.html#Binary.data.extension">Slices for extension</a>
            <a name="Binary.data.extension"></a>
          </td>
          <td style="" class="hierarchy xhtCellBorder0" />
          <td style="" class="hierarchy xhtCellBorder0">
            <span class="xhtPieceDeEmphasized">0</span>
            <span class="xhtPieceDeEmphasized">..</span>
            <span class="xhtPieceDeEmphasized">*</span>
          </td>
          <td style="" class="hierarchy xhtCellBorder0">
            <a href="http://hl7.org/fhir/R4/extensibility.html#Extension" class="xhtPieceDeEmphasized">Extension</a>
          </td>
          <td style="" class="hierarchy xhtCellBorder0">
            <span class="xhtPieceDeEmphasized">Extension</span>
            <br />
            <span class="xhtPieceBold">Slice: </span>Unordered, Open by value:url</td>
        </tr>
        <tr class="xhtRowBorder0 xhtRowOdd">
          <td style="background-image: url(tbl_bck0024.png)" class="hierarchy xhtCellBorder0 xhtCellNoWrap">
            <img src="tbl_spacer.png" alt="" style="background-color: inherit" class="hierarchy" />
            <img src="tbl_blank.png" alt="" style="background-color: inherit" class="hierarchy" />
            <img src="tbl_blank.png" alt="" style="background-color: inherit" class="hierarchy" />
            <img src="tbl_vjoin_end_slicer.png" alt="" style="background-color: inherit" class="hierarchy" />
            <img src="icon_slice_item.png" alt="" style="background-color: #F7F7F7; background-color: inherit" title="Slice Item" class="hierarchy" />
            <span style="position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0" class="sr-only">Binary.data.Slices for extension.</span>
            <a href="StructureDefinition-binary-definitions.html#Binary.data.extension:ext-attachment-metadata" title="Extension URL = http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/pcare-attachment-metadata">extension:ext-attachment-metadata</a>
            <a name="Binary.data.extension:ext-attachment-metadata"></a>
          </td>
          <td style="" class="hierarchy xhtCellBorder0">
            <span style="padding-left: 3px; padding-right: 3px; color: white; background-color: #B60000" title="This element has obligations">O</span>
            <span style="position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0" class="sr-only"> This element has obligations. </span>
          </td>
          <td style="" class="hierarchy xhtCellBorder0">0..1</td>
          <td style="" class="hierarchy xhtCellBorder0">(Complex)</td>
          <td style="" class="hierarchy xhtCellBorder0">
            <span class="xhtPieceDeEmphasized">P-Care Attachment Metadata</span>
            <br />
            <span class="xhtPieceBold">URL: </span>
            <a href="StructureDefinition-pcare-attachment-metadata.html">http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/pcare-attachment-metadata</a>
            <table class="obligation grid">
              <tr>
                <td style="font-size: 11px">
                  <b>Obligations</b>
                </td>
                <td style="font-size: 11px">
                  <b>Actor</b>
                </td>
              </tr>
              <tr>
                <td style="font-size: 11px">
                  <b>SHALL</b>:<a href="http://hl7.org/fhir/extensions/5.3.0/CodeSystem-obligation.html#obligation-populate" title="Obligation Codes: populate">populate</a> &amp; <b>SHALL</b>:<a href="http://hl7.org/fhir/extensions/5.3.0/CodeSystem-obligation.html#obligation-persist" title="Obligation Codes: persist">persist</a> &amp; <b>SHALL</b>:<a href="http://hl7.org/fhir/extensions/5.3.0/CodeSystem-obligation.html#obligation-no-error" title="Obligation Codes: not error if present">no-error</a></td>
                <td style="font-size: 11px; opacity: 0.50;">
                  <a href="ActorDefinition-pcare-server.html">P-Care Server</a>
                </td>
              </tr>
            </table>
          </td>
        </tr>
        <tr>
          <td colspan="5" class="hierarchy">
            <br />
            <a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format">
              <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit" /> Documentation for this format</a>
          </td>
        </tr>
      </table>
    </div>
  </text>
  <url value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/binary" />
  <version value="0.1.0" />
  <name value="PCareBinary" />
  <title value="P-Care Binary" />
  <status value="draft" />
  <date value="2026-10-19T22:14:59+00:00" />
  <publisher value="Infoway" />
  <description value="A resource that represents the data of a single raw artifact as digital content accessible in its native format." />
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Binary" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Binary" />
  <derivation value="constraint" />
  <snapshot>
    <extension url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version">
      <valueString value="4.0.1" />
    </extension>
    <element id="Binary">
      <path value="Binary" />
      <short value="Pure binary content defined by a format other than FHIR" />
      <definition value="A resource that represents the data of a single raw artifact as digital content accessible in its native format.  A Binary resource can contain any content, whether text, image, pdf, zip archive, etc." />
      <comment value="Typically, Binary resources are used for handling content such as:  &#xA;&#xA;* CDA Documents (i.e. with XDS) &#xA;* PDF Documents &#xA;* 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>
      <isModifier value="false" />
      <isSummary value="false" />
      <mapping>
        <identity value="rim" />
        <map value="Entity. Role, or Act" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="ED" />
      </mapping>
    </element>
    <element id="Binary.id">
      <path value="Binary.id" />
      <short value="Logical id of this artifact" />
      <definition value="The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes." />
      <comment value="The only time that a resource does not have an id is when it is being submitted to the server using a create operation." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Resource.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="id" />
        </extension>
        <code value="http://hl7.org/fhirpath/System.String" />
      </type>
      <isModifier value="false" />
      <isSummary value="true" />
    </element>
    <element id="Binary.meta">
      <path value="Binary.meta" />
      <short value="Metadata about the resource" />
      <definition value="The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Resource.meta" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Meta" />
      </type>
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isModifier value="false" />
      <isSummary value="true" />
    </element>
    <element id="Binary.implicitRules">
      <path value="Binary.implicitRules" />
      <short value="A set of rules under which this content was created" />
      <definition value="A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc." />
      <comment value="Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Resource.implicitRules" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="uri" />
      </type>
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isModifier value="true" />
      <isModifierReason value="This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation" />
      <isSummary value="true" />
    </element>
    <element id="Binary.language">
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="name">
          <valueString value="pcare" />
        </extension>
        <extension url="code">
          <valueCode value="SHALL:populate" />
        </extension>
        <extension url="code">
          <valueCode value="SHALL:persist" />
        </extension>
        <extension url="code">
          <valueCode value="SHALL:no-error" />
        </extension>
        <extension url="documentation">
          <valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
        </extension>
        <extension url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/binary|0.1.0" />
        </extension>
      </extension>
      <path value="Binary.language" />
      <short value="Language of the resource content" />
      <definition value="The base language in which the resource is written." />
      <comment value="Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute)." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Resource.language" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="code" />
      </type>
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isModifier value="false" />
      <isSummary value="false" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet">
          <valueCanonical value="http://hl7.org/fhir/ValueSet/all-languages" />
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="Language" />
        </extension>
        <strength value="preferred" />
        <description value="A human language." />
        <valueSet value="http://hl7.org/fhir/ValueSet/languages|4.0.1" />
      </binding>
    </element>
    <element id="Binary.contentType">
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="name">
          <valueString value="pcare" />
        </extension>
        <extension url="code">
          <valueCode value="SHALL:populate" />
        </extension>
        <extension url="code">
          <valueCode value="SHALL:persist" />
        </extension>
        <extension url="code">
          <valueCode value="SHALL:no-error" />
        </extension>
        <extension url="documentation">
          <valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
        </extension>
        <extension url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/binary|0.1.0" />
        </extension>
      </extension>
      <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>
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isModifier value="false" />
      <isSummary value="true" />
      <binding>
        <strength value="required" />
        <valueSet value="http://fhir.infoway-inforoute.ca/p-care/ValueSet/pcare-binary-mime-type" />
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="ED.mediaType" />
      </mapping>
    </element>
    <element id="Binary.securityContext">
      <path value="Binary.securityContext" />
      <short value="Identifies another resource to use as proxy when enforcing access control" />
      <definition value="This element identifies another resource that can be used as a proxy of the security sensitivity to use when deciding and enforcing access control rules for the Binary resource. Given that the Binary resource contains very few elements that can be used to determine the sensitivity of the data and relationships to individuals, the referenced resource stands in as a proxy equivalent for this purpose. This referenced resource may be related to the Binary (e.g. Media, DocumentReference), or may be some non-related Resource purely as a security proxy. E.g. to identify that the binary resource relates to a patient, and access should only be granted to applications that have access to the patient." />
      <comment value="Very often, a server will also know of a resource that references the binary, and can automatically apply the appropriate access rules based on that reference. However, there are some circumstances where this is not appropriate, e.g. the binary is uploaded directly to the server without any linking resource, the binary is referred to from multiple different resources, and/or the binary is content such as an application logo that has less protection than any of the resources that reference it." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Binary.securityContext" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource|4.0.1" />
      </type>
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isModifier value="false" />
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Binary.data">
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="name">
          <valueString value="pcare" />
        </extension>
        <extension url="code">
          <valueCode value="SHALL:populate" />
        </extension>
        <extension url="code">
          <valueCode value="SHALL:persist" />
        </extension>
        <extension url="code">
          <valueCode value="SHALL:no-error" />
        </extension>
        <extension url="documentation">
          <valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
        </extension>
        <extension url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/binary|0.1.0" />
        </extension>
      </extension>
      <path value="Binary.data" />
      <short value="The actual content" />
      <definition value="The actual content, base64 encoded." />
      <comment 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.data" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="base64Binary" />
      </type>
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isModifier value="false" />
      <isSummary value="false" />
      <mapping>
        <identity value="rim" />
        <map value="ED.data" />
      </mapping>
    </element>
    <element id="Binary.data.id">
      <path value="Binary.data.id" />
      <representation value="xmlAttr" />
      <short value="xml:id (or equivalent in JSON)" />
      <definition value="unique id for the element within a resource (for internal references)" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="string" />
        </extension>
        <code value="http://hl7.org/fhirpath/System.String" />
      </type>
      <isModifier value="false" />
      <isSummary value="false" />
    </element>
    <element id="Binary.data.extension">
      <path value="Binary.data.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <ordered value="false" />
        <rules value="open" />
      </slicing>
      <short value="Extension" />
      <definition value="An Extension" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <isModifier value="false" />
      <isSummary value="false" />
    </element>
    <element id="Binary.data.extension:ext-attachment-metadata">
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="name">
          <valueString value="pcare" />
        </extension>
        <extension url="code">
          <valueCode value="SHALL:populate" />
        </extension>
        <extension url="code">
          <valueCode value="SHALL:persist" />
        </extension>
        <extension url="code">
          <valueCode value="SHALL:no-error" />
        </extension>
        <extension url="documentation">
          <valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
        </extension>
        <extension url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-source">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/binary|0.1.0" />
        </extension>
      </extension>
      <path value="Binary.data.extension" />
      <sliceName value="ext-attachment-metadata" />
      <short value="P-Care Attachment Metadata" />
      <definition value="An attachment's file identifier, download URL, and optional JWT token." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
        <profile value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/pcare-attachment-metadata" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <isModifier value="false" />
      <isSummary value="false" />
    </element>
    <element id="Binary.data.value">
      <path value="Binary.data.value" />
      <representation value="xmlAttr" />
      <short value="Primitive value for base64Binary" />
      <definition value="The actual value" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="base64Binary.value" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="base64Binary" />
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/regex">
          <valueString value="(\s*([0-9a-zA-Z\+/=]){4}\s*)+" />
        </extension>
        <code value="http://hl7.org/fhirpath/System.String" />
      </type>
      <isModifier value="false" />
      <isSummary value="false" />
    </element>
  </snapshot>
  <differential>
    <element id="Binary">
      <path value="Binary" />
    </element>
    <element id="Binary.language">
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="name">
          <valueString value="pcare" />
        </extension>
        <extension url="code">
          <valueCode value="SHALL:populate" />
        </extension>
        <extension url="code">
          <valueCode value="SHALL:persist" />
        </extension>
        <extension url="code">
          <valueCode value="SHALL:no-error" />
        </extension>
        <extension url="documentation">
          <valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
        </extension>
      </extension>
      <path value="Binary.language" />
    </element>
    <element id="Binary.contentType">
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="name">
          <valueString value="pcare" />
        </extension>
        <extension url="code">
          <valueCode value="SHALL:populate" />
        </extension>
        <extension url="code">
          <valueCode value="SHALL:persist" />
        </extension>
        <extension url="code">
          <valueCode value="SHALL:no-error" />
        </extension>
        <extension url="documentation">
          <valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
        </extension>
      </extension>
      <path value="Binary.contentType" />
      <binding>
        <strength value="required" />
        <valueSet value="http://fhir.infoway-inforoute.ca/p-care/ValueSet/pcare-binary-mime-type" />
      </binding>
    </element>
    <element id="Binary.data">
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="name">
          <valueString value="pcare" />
        </extension>
        <extension url="code">
          <valueCode value="SHALL:populate" />
        </extension>
        <extension url="code">
          <valueCode value="SHALL:persist" />
        </extension>
        <extension url="code">
          <valueCode value="SHALL:no-error" />
        </extension>
        <extension url="documentation">
          <valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
        </extension>
      </extension>
      <path value="Binary.data" />
      <min value="1" />
    </element>
    <element id="Binary.data.extension">
      <path value="Binary.data.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <ordered value="false" />
        <rules value="open" />
      </slicing>
    </element>
    <element id="Binary.data.extension:ext-attachment-metadata">
      <extension url="http://hl7.org/fhir/StructureDefinition/obligation">
        <extension url="name">
          <valueString value="pcare" />
        </extension>
        <extension url="code">
          <valueCode value="SHALL:populate" />
        </extension>
        <extension url="code">
          <valueCode value="SHALL:persist" />
        </extension>
        <extension url="code">
          <valueCode value="SHALL:no-error" />
        </extension>
        <extension url="documentation">
          <valueMarkdown value="P-Care server population, persistence, and acceptance requirements for this element." />
        </extension>
        <extension url="actor">
          <valueCanonical value="http://fhir.infoway-inforoute.ca/p-care/ActorDefinition/pcare-server" />
        </extension>
      </extension>
      <path value="Binary.data.extension" />
      <sliceName value="ext-attachment-metadata" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/pcare-attachment-metadata" />
      </type>
    </element>
  </differential>
</StructureDefinition>