Release 5

This page is part of the FHIR Specification (v5.0.0: R5 - STU). This is the current published version. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3 R2

Example StructureDefinition/Attachment (XML)

Modeling and Methodology Work GroupMaturity Level: N/AStandards Status: Informative

Raw XML (canonical form + also see XML Format Specification)

StructureDefinition for Attachment

<?xml version="1.0" encoding="UTF-8"?>

<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="Attachment"/> 
  <text> 
    <status value="generated"/> 
    <div xmlns="http://www.w3.org/1999/xhtml">
      <table border="0" cellpadding="0" cellspacing="0" style="border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align:
       top;">
        <tr style="border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align:
         top">
          <th class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <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 class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <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 class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Minimum and Maximum # of times the the element can appear in the instance">Card.</a> 
          </th> 
          <th class="hierarchy" style="width: 100px">
            <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 class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <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 alt="doco" src="data:(snipped in html view)" style="background-color: inherit"/> 
              </a> 
            </span> 
          </th> 
        </tr> 
        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         white">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(data:image/png;bas
          e64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAAJUlEQVR4Xu3IIQEAAAgDsHd9/w4EQIOamFnaBgAA4M
          MKAACAKwNp30CqZFfFmwAAAABJRU5ErkJggg==)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: white; background-color: inherit" title="Element"/>  
            <a href="datatypes-definitions.html#Attachment" title="Attachment : For referring to data content defined in other formats.">Attachment</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="versions.html#std-process" style="padding-left: 3px; padding-right: 3px; border: 1px grey solid; font-weight: bold;
             color: black; background-color: #e6ffe6" title="Standards Status = Normative">N</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px"/> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="types.html#Element">Element</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">Content in a format defined elsewhere
            <br/>  
            <span style="font-style: italic" title="att-1">+ Rule: If the Attachment has data, it SHALL have a contentType</span> 
            <br/>  
            <br/>  Elements defined in Ancestors: 
            <a href="types.html#Element" title="Unique id for the element within a resource (for internal references). This may
             be any string value that does not contain spaces.">id</a> , 
            <a href="types.html#Element" title="May be used to represent additional information that is not part of the basic definition
             of the element. To make the use of extensions safe and managable, there is a strict
             set of governance applied to the definition and use of extensions. Though any implementer
             can define an extension, there is a set of requirements that SHALL be met as part
             of the definition of the extension.">extension</a> 
          </td> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         #F7F7F7">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image:
           url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAALUlEQVR4Xu3IoREAIAw
          EwfT6/ddA0GBAxO3NrLlKUj9263wAAAAvrgEAADClAVWFQIBRHMicAAAAAElFTkSuQmCC)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: #F7F7F7; background-color: inherit" title="Primitive Data Type"/>  
            <a href="datatypes-definitions.html#Attachment.contentType" title="Attachment.contentType : Identifies the type of the data in the attachment and
             allows a method to be chosen to interpret or render the data. Includes mime type
             parameters such as charset where appropriate.">contentType</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">
            <a href="elementdefinition-definitions.html#ElementDefinition.isSummary" style="padding-left: 3px; padding-right: 3px; color: black; null" title="This element is included in summaries">Σ</a> 
            <a href="conformance-rules.html#constraints" style="padding-left: 3px; padding-right: 3px; border: 1px maroon solid; font-weight: bold;
             color: #301212; background-color: #fdf4f4;" title="This element has or is affected by some invariants">C</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">0..1</td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">
            <a href="datatypes.html#code">code</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">Mime type of the content, with charset etc.
            <br/>  Binding: 
            <a href="valueset-mimetypes.html" title="The mime type of an attachment. Any valid mime type is allowed.">Mime Types</a>  (
            <a href="terminologies.html#required" title="To be conformant, the concept in this element SHALL be from the specified value
             set.">Required</a> )
            <br/>  
          </td> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         white">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(data:image/png;bas
          e64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAALUlEQVR4Xu3IoREAIAwEwfT6/ddA0GBAxO3NrLlKUj
          9263wAAAAvrgEAADClAVWFQIBRHMicAAAAAElFTkSuQmCC)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: white; background-color: inherit" title="Primitive Data Type"/>  
            <a href="datatypes-definitions.html#Attachment.language" title="Attachment.language : The human language of the content. The value can be any valid
             value according to BCP 47.">language</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="elementdefinition-definitions.html#ElementDefinition.isSummary" style="padding-left: 3px; padding-right: 3px; color: black; null" title="This element is included in summaries">Σ</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">0..1</td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="datatypes.html#code">code</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">Human language of the content (BCP-47)
            <br/>  Binding: 
            <a href="valueset-all-languages.html" title="IETF language tag for a human language.">All Languages</a>  (
            <a href="terminologies.html#required" title="To be conformant, the concept in this element SHALL be from the specified value
             set.">Required</a> )
            <table class="grid">
              <tr> 
                <td style="font-size: 11px">
                  <b> Additional Bindings</b> 
                </td> 
                <td style="font-size: 11px">Purpose</td> 
              </tr> 
              <tr> 
                <td style="font-size: 11px">
                  <a href="valueset-languages.html" title="http://hl7.org/fhir/ValueSet/languages">Common Languages</a> 
                </td> 
                <td style="font-size: 11px">
                  <a href="valueset-additional-binding-purpose.html#additional-binding-purpose-starter" title="This value set is a good set of codes to start with when designing your system">Starter Set</a> 
                </td> 
              </tr> 
            </table> 
            <br/>  
          </td> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         #F7F7F7">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image:
           url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAALUlEQVR4Xu3IoREAIAw
          EwfT6/ddA0GBAxO3NrLlKUj9263wAAAAvrgEAADClAVWFQIBRHMicAAAAAElFTkSuQmCC)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: #F7F7F7; background-color: inherit" title="Primitive Data Type"/>  
            <a href="datatypes-definitions.html#Attachment.data" title="Attachment.data : The actual data of the attachment - a sequence of bytes, base64
             encoded.">data</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">
            <a href="conformance-rules.html#constraints" style="padding-left: 3px; padding-right: 3px; border: 1px maroon solid; font-weight: bold;
             color: #301212; background-color: #fdf4f4;" title="This element has or is affected by some invariants">C</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">0..1</td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">
            <a href="datatypes.html#base64Binary">base64Binary</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">Data inline, base64ed
            <br/>  
          </td> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         white">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(data:image/png;bas
          e64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAALUlEQVR4Xu3IoREAIAwEwfT6/ddA0GBAxO3NrLlKUj
          9263wAAAAvrgEAADClAVWFQIBRHMicAAAAAElFTkSuQmCC)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: white; background-color: inherit" title="Primitive Data Type"/>  
            <a href="datatypes-definitions.html#Attachment.url" title="Attachment.url : A location where the data can be accessed.">url</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="elementdefinition-definitions.html#ElementDefinition.isSummary" style="padding-left: 3px; padding-right: 3px; color: black; null" title="This element is included in summaries">Σ</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">0..1</td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="datatypes.html#url">url</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">Uri where the data can be found
            <br/>  
          </td> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         #F7F7F7">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image:
           url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAALUlEQVR4Xu3IoREAIAw
          EwfT6/ddA0GBAxO3NrLlKUj9263wAAAAvrgEAADClAVWFQIBRHMicAAAAAElFTkSuQmCC)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: #F7F7F7; background-color: inherit" title="Primitive Data Type"/>  
            <a href="datatypes-definitions.html#Attachment.size" title="Attachment.size : The number of bytes of data that make up this attachment (before
             base64 encoding, if that is done).">size</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">
            <a href="elementdefinition-definitions.html#ElementDefinition.isSummary" style="padding-left: 3px; padding-right: 3px; color: black; null" title="This element is included in summaries">Σ</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">0..1</td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">
            <a href="datatypes.html#integer64">integer64</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">Number of bytes of content (if url provided)
            <br/>  
          </td> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         white">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(data:image/png;bas
          e64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAALUlEQVR4Xu3IoREAIAwEwfT6/ddA0GBAxO3NrLlKUj
          9263wAAAAvrgEAADClAVWFQIBRHMicAAAAAElFTkSuQmCC)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: white; background-color: inherit" title="Primitive Data Type"/>  
            <a href="datatypes-definitions.html#Attachment.hash" title="Attachment.hash : The calculated hash of the data using SHA-1. Represented using
             base64.">hash</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="elementdefinition-definitions.html#ElementDefinition.isSummary" style="padding-left: 3px; padding-right: 3px; color: black; null" title="This element is included in summaries">Σ</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">0..1</td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="datatypes.html#base64Binary">base64Binary</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">Hash of the data (sha-1, base64ed)
            <br/>  
          </td> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         #F7F7F7">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image:
           url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAALUlEQVR4Xu3IoREAIAw
          EwfT6/ddA0GBAxO3NrLlKUj9263wAAAAvrgEAADClAVWFQIBRHMicAAAAAElFTkSuQmCC)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: #F7F7F7; background-color: inherit" title="Primitive Data Type"/>  
            <a href="datatypes-definitions.html#Attachment.title" title="Attachment.title : A label or set of text to display in place of the data.">title</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">
            <a href="elementdefinition-definitions.html#ElementDefinition.isSummary" style="padding-left: 3px; padding-right: 3px; color: black; null" title="This element is included in summaries">Σ</a> 
            <a href="languages.html#translatable" style="padding-left: 3px; padding-right: 3px; color: black; null" title="This element is a candidate for being translated">T</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">0..1</td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">
            <a href="datatypes.html#string">string</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">Label to display in place of the data
            <br/>  
          </td> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         white">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(data:image/png;bas
          e64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAALUlEQVR4Xu3IoREAIAwEwfT6/ddA0GBAxO3NrLlKUj
          9263wAAAAvrgEAADClAVWFQIBRHMicAAAAAElFTkSuQmCC)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: white; background-color: inherit" title="Primitive Data Type"/>  
            <a href="datatypes-definitions.html#Attachment.creation" title="Attachment.creation : The date that the attachment was first created.">creation</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="elementdefinition-definitions.html#ElementDefinition.isSummary" style="padding-left: 3px; padding-right: 3px; color: black; null" title="This element is included in summaries">Σ</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">0..1</td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="datatypes.html#dateTime">dateTime</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">Date attachment was first created
            <br/>  
          </td> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         #F7F7F7">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image:
           url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAALUlEQVR4Xu3IoREAIAw
          EwfT6/ddA0GBAxO3NrLlKUj9263wAAAAvrgEAADClAVWFQIBRHMicAAAAAElFTkSuQmCC)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: #F7F7F7; background-color: inherit" title="Primitive Data Type"/>  
            <a href="datatypes-definitions.html#Attachment.height" title="Attachment.height : Height of the image in pixels (photo/video).">height</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">
            <a href="versions.html#std-process" style="padding-left: 3px; padding-right: 3px; border: 1px grey solid; font-weight: bold;
             color: black; background-color: #fff5e6" title="Standards Status = Trial Use">TU</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">0..1</td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">
            <a href="datatypes.html#positiveInt">positiveInt</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">Height of the image in pixels (photo/video)
            <br/>  
          </td> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         white">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(data:image/png;bas
          e64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAALUlEQVR4Xu3IoREAIAwEwfT6/ddA0GBAxO3NrLlKUj
          9263wAAAAvrgEAADClAVWFQIBRHMicAAAAAElFTkSuQmCC)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: white; background-color: inherit" title="Primitive Data Type"/>  
            <a href="datatypes-definitions.html#Attachment.width" title="Attachment.width : Width of the image in pixels (photo/video).">width</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="versions.html#std-process" style="padding-left: 3px; padding-right: 3px; border: 1px grey solid; font-weight: bold;
             color: black; background-color: #fff5e6" title="Standards Status = Trial Use">TU</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">0..1</td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="datatypes.html#positiveInt">positiveInt</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">Width of the image in pixels (photo/video)
            <br/>  
          </td> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         #F7F7F7">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image:
           url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAALUlEQVR4Xu3IoREAIAw
          EwfT6/ddA0GBAxO3NrLlKUj9263wAAAAvrgEAADClAVWFQIBRHMicAAAAAElFTkSuQmCC)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: #F7F7F7; background-color: inherit" title="Primitive Data Type"/>  
            <a href="datatypes-definitions.html#Attachment.frames" title="Attachment.frames : The number of frames in a photo. This is used with a multi-page
             fax, or an imaging acquisition context that takes multiple slices in a single image,
             or an animated gif. If there is more than one frame, this SHALL have a value in
             order to alert interface software that a multi-frame capable rendering widget is
             required.">frames</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">
            <a href="versions.html#std-process" style="padding-left: 3px; padding-right: 3px; border: 1px grey solid; font-weight: bold;
             color: black; background-color: #fff5e6" title="Standards Status = Trial Use">TU</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">0..1</td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">
            <a href="datatypes.html#positiveInt">positiveInt</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">Number of frames if &gt; 1 (photo)
            <br/>  
          </td> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         white">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(data:image/png;bas
          e64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAALUlEQVR4Xu3IoREAIAwEwfT6/ddA0GBAxO3NrLlKUj
          9263wAAAAvrgEAADClAVWFQIBRHMicAAAAAElFTkSuQmCC)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: white; background-color: inherit" title="Primitive Data Type"/>  
            <a href="datatypes-definitions.html#Attachment.duration" title="Attachment.duration : The duration of the recording in seconds - for audio and
             video.">duration</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="versions.html#std-process" style="padding-left: 3px; padding-right: 3px; border: 1px grey solid; font-weight: bold;
             color: black; background-color: #fff5e6" title="Standards Status = Trial Use">TU</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">0..1</td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">
            <a href="datatypes.html#decimal">decimal</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0
           solid; padding:0px 4px 0px 4px">Length in seconds (audio / video)
            <br/>  
          </td> 
        </tr> 

        <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         #F7F7F7">
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image:
           url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAACCAYAAACg/LjIAAAAJUlEQVR4Xu3IIQEAAAg
          DsHd9/w4EQIOamFnaBgAA4MMKAACAKwNp30CqZFfFmwAAAABJRU5ErkJggg==)">
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: inherit"/> 
            <img alt="." class="hierarchy" src="data:(snipped in html view)" style="background-color: #F7F7F7; background-color: inherit" title="Primitive Data Type"/>  
            <a href="datatypes-definitions.html#Attachment.pages" title="Attachment.pages : The number of pages when printed.">pages</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">
            <a href="versions.html#std-process" style="padding-left: 3px; padding-right: 3px; border: 1px grey solid; font-weight: bold;
             color: black; background-color: #fff5e6" title="Standards Status = Trial Use">TU</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">0..1</td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">
            <a href="datatypes.html#positiveInt">positiveInt</a> 
          </td> 
          <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px
           #F0F0F0 solid; padding:0px 4px 0px 4px">Number of printed pages
            <br/>  
          </td> 
        </tr> 

        <tr> 
          <td class="hierarchy" colspan="5">
            <br/>  
            <a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format">
              <img alt="doco" src="data:(snipped in html view)" style="background-color: inherit"/>  Documentation for this format
            </a> 
          </td> 
        </tr> 
      </table> 
    </div> 
  </text> 
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
    <valueCode value="normative"/> 
  </extension> 
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
    <valueCode value="4.0.0"/> 
  </extension> 
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-type-characteristics">
    <valueCode value="do-translations"/> 
  </extension> 
  <url value="http://hl7.org/fhir/StructureDefinition/Attachment"/> 
  <version value="5.0.0"/> 
  <name value="Attachment"/> 
  <status value="active"/> 
  <experimental value="false"/> 
  <date value="2023-03-26T15:21:02+11:00"/> 
  <publisher value="HL7 FHIR Standard"/> 
  <contact> 
    <telecom> 
      <system value="url"/> 
      <value value="http://hl7.org/fhir"/> 
    </telecom> 
  </contact> 
  <description value="Attachment Type: For referring to data content defined in other formats."/> 
  <jurisdiction> 
    <coding> 
      <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/> 
      <code value="001"/> 
      <display value="World"/> 
    </coding> 
  </jurisdiction> 
  <purpose value="Many models need to include data defined in other specifications that is complex
   and opaque to the healthcare model. This includes documents, media recordings,
   structured data, etc."/> 
  <fhirVersion value="5.0.0"/> 
  <mapping> 
    <identity value="v2"/> 
    <uri value="http://hl7.org/v2"/> 
    <name value="HL7 V2 Mapping"/> 
  </mapping> 
  <mapping> 
    <identity value="rim"/> 
    <uri value="http://hl7.org/v3"/> 
    <name value="RIM Mapping"/> 
  </mapping> 
  <kind value="complex-type"/> 
  <abstract value="false"/> 
  <type value="Attachment"/> 
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/DataType"/> 
  <derivation value="specialization"/> 
  <snapshot> 
    <element id="Attachment">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative"/> 
      </extension> 
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0"/> 
      </extension> 
      <path value="Attachment"/> 
      <short value="Content in a format defined elsewhere"/> 
      <definition value="For referring to data content defined in other formats."/> 
      <comment value="When providing a summary view (for example with Observation.value[x]) Attachment
       should be represented with a brief display text such as &quot;Signed Procedure
       Consent&quot;."/> 
      <min value="0"/> 
      <max value="*"/> 
      <base> 
        <path value="Attachment"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <constraint> 
        <key value="att-1"/> 
        <severity value="error"/> 
        <human value="If the Attachment has data, it SHALL have a contentType"/> 
        <expression value="data.empty() or contentType.exists()"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Attachment"/> 
      </constraint> 
      <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())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="n/a,ED"/> 
      </mapping> 
      <mapping> 
        <identity value="v2"/> 
        <map value="ED/RP"/> 
      </mapping> 
    </element> 
    <element id="Attachment.id">
      <path value="Attachment.id"/> 
      <representation value="xmlAttr"/> 
      <short value="Unique id for inter-element referencing"/> 
      <definition value="Unique id for the element within a resource (for internal references). This may
       be any string value that does not contain spaces."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="Element.id"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <!--  Note: special primitive values have a FHIRPath system type. e.g. this is compiler
       magic (j)  -->
      <type> 
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="id"/> 
        </extension> 
        <code value="http://hl7.org/fhirpath/System.String"/> 
      </type> 
      <condition value="ele-1"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="n/a"/> 
      </mapping> 
    </element> 
    <element id="Attachment.extension">
      <path value="Attachment.extension"/> 
      <slicing> 
        <discriminator> 
          <type value="value"/> 
          <path value="url"/> 
        </discriminator> 
        <description value="Extensions are always sliced by (at least) url"/> 
        <rules value="open"/> 
      </slicing> 
      <short value="Additional content defined by implementations"/> 
      <definition value="May be used to represent additional information that is not part of the basic definition
       of the element. To make the use of extensions safe and managable, there is a strict
       set of governance applied to the definition and use of extensions. Though any implementer
       can define an extension, there is a set of requirements that SHALL be met as part
       of the definition of the extension."/> 
      <comment value="There can be no stigma associated with the use of extensions by any application,
       project, or standard - regardless of the institution or jurisdiction that uses
       or defines the extensions.  The use of extensions is what allows the FHIR specification
       to retain a core level of simplicity for everyone."/> 
      <alias value="extensions"/> 
      <alias value="user content"/> 
      <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())"/> 
        <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()"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="n/a"/> 
      </mapping> 
    </element> 
    <element id="Attachment.contentType">
      <path value="Attachment.contentType"/> 
      <short value="Mime type of the content, with charset etc."/> 
      <definition value="Identifies the type of the data in the attachment and allows a method to be chosen
       to interpret or render the data. Includes mime type parameters such as charset
       where appropriate."/> 
      <requirements value="Processors of the data need to be able to know how to interpret the data."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="Attachment.contentType"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="code"/> 
      </type> 
      <example> 
        <label value="General"/> 
        <valueCode value="text/plain; charset=UTF-8, image/png"/> 
      </example> 
      <condition value="att-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())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <binding> 
        <extension url="http://hl7.org/fhir/tools/StructureDefinition/binding-definition">
          <valueString value="The mime type of an attachment. Any valid mime type is allowed."/> 
        </extension> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="MimeType"/> 
        </extension> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true"/> 
        </extension> 
        <strength value="required"/> 
        <description value="BCP 13 (RFCs 2045, 2046, 2047, 4288, 4289 and 2049)"/> 
        <valueSet value="http://hl7.org/fhir/ValueSet/mimetypes|5.0.0"/> 
      </binding> 
      <mapping> 
        <identity value="v2"/> 
        <map value="ED.2+ED.3/RP.2+RP.3. Note conversion may be needed if old style values are being
         used"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value="./mediaType, ./charset"/> 
      </mapping> 
    </element> 
    <element id="Attachment.language">
      <path value="Attachment.language"/> 
      <short value="Human language of the content (BCP-47)"/> 
      <definition value="The human language of the content. The value can be any valid value according to
       BCP 47."/> 
      <requirements value="Users need to be able to choose between the languages in a set of attachments."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="Attachment.language"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="code"/> 
      </type> 
      <example> 
        <label value="General"/> 
        <valueCode value="en-AU"/> 
      </example> 
      <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())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <binding> 
        <extension url="http://hl7.org/fhir/tools/StructureDefinition/binding-definition">
          <valueString value="IETF language tag for a human language."/> 
        </extension> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="Language"/> 
        </extension> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true"/> 
        </extension> 
        <strength value="required"/> 
        <description value="IETF language tag for a human language."/> 
        <valueSet value="http://hl7.org/fhir/ValueSet/all-languages|5.0.0"/> 
        <additional> 
          <purpose value="starter"/> 
          <valueSet value="http://hl7.org/fhir/ValueSet/languages"/> 
        </additional> 
      </binding> 
      <mapping> 
        <identity value="rim"/> 
        <map value="./language"/> 
      </mapping> 
    </element> 
    <element id="Attachment.data">
      <path value="Attachment.data"/> 
      <short value="Data inline, base64ed"/> 
      <definition value="The actual data of the attachment - a sequence of bytes, base64 encoded."/> 
      <comment value="The base64-encoded data SHALL be expressed in the same character set as the base
       resource XML or JSON."/> 
      <requirements value="The data needs to able to be transmitted inline."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="Attachment.data"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="base64Binary"/> 
      </type> 
      <condition value="att-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())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="v2"/> 
        <map value="ED.5"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value="./data"/> 
      </mapping> 
    </element> 
    <element id="Attachment.url">
      <path value="Attachment.url"/> 
      <short value="Uri where the data can be found"/> 
      <definition value="A location where the data can be accessed."/> 
      <comment value="If both data and url are provided, the url SHALL point to the same content as the
       data contains. Urls may be relative references or may reference transient locations
       such as a wrapping envelope using cid: though this has ramifications for using
       signatures. Relative URLs are interpreted relative to the service url, like a resource
       reference, rather than relative to the resource itself. If a URL is provided, it
       SHALL resolve to actual data."/> 
      <requirements value="The data needs to be transmitted by reference."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="Attachment.url"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="url"/> 
      </type> 
      <example> 
        <label value="General"/> 
        <valueUrl value="http://www.acme.com/logo-small.png"/> 
      </example> 
      <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())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="v2"/> 
        <map value="RP.1+RP.2 - if they refer to a URL (see v2.6)"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value="./reference/literal"/> 
      </mapping> 
    </element> 
    <element id="Attachment.size">
      <path value="Attachment.size"/> 
      <short value="Number of bytes of content (if url provided)"/> 
      <definition value="The number of bytes of data that make up this attachment (before base64 encoding,
       if that is done)."/> 
      <comment value="The number of bytes is redundant if the data is provided as a base64binary, but
       is useful if the data is provided as a url reference."/> 
      <requirements value="Representing the size allows applications to determine whether they should fetch
       the content automatically in advance, or refuse to fetch it at all."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="Attachment.size"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="integer64"/> 
      </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())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A (needs data type R3 proposal)"/> 
      </mapping> 
    </element> 
    <element id="Attachment.hash">
      <path value="Attachment.hash"/> 
      <short value="Hash of the data (sha-1, base64ed)"/> 
      <definition value="The calculated hash of the data using SHA-1. Represented using base64."/> 
      <comment value="The hash is calculated on the data prior to base64 encoding, if the data is based64
       encoded. The hash is not intended to support digital signatures. Where protection
       against malicious threats a digital signature should be considered, see [Provenance.signature
      ](provenance-definitions.html#Provenance.signature) for mechanism to protect a resource
       with a digital signature."/> 
      <requirements value="Included so that applications can verify that the contents of a location have not
       changed due to technical failures (e.g., storage rot, transport glitch, incorrect
       version)."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="Attachment.hash"/> 
        <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())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value=".integrityCheck[parent::ED/integrityCheckAlgorithm=&quot;SHA-1&quot;]"/> 
      </mapping> 
    </element> 
    <element id="Attachment.title">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true"/> 
      </extension> 
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true"/> 
      </extension> 
      <path value="Attachment.title"/> 
      <short value="Label to display in place of the data"/> 
      <definition value="A label or set of text to display in place of the data."/> 
      <comment value="May sometimes be derived from the source filename."/> 
      <requirements value="Applications need a label to display to a human user in place of the actual data
       if the data cannot be rendered or perceived by the viewer."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="Attachment.title"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="string"/> 
      </type> 
      <example> 
        <label value="General"/> 
        <valueString value="Official Corporate Logo"/> 
      </example> 
      <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())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="./title/data"/> 
      </mapping> 
    </element> 
    <element id="Attachment.creation">
      <path value="Attachment.creation"/> 
      <short value="Date attachment was first created"/> 
      <definition value="The date that the attachment was first created."/> 
      <requirements value="This is often tracked as an integrity issue for use of the attachment."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="Attachment.creation"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="dateTime"/> 
      </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())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A (needs data type R3 proposal)"/> 
      </mapping> 
    </element> 
    <element id="Attachment.height">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="trial-use"/> 
      </extension> 
      <path value="Attachment.height"/> 
      <short value="Height of the image in pixels (photo/video)"/> 
      <definition value="Height of the image in pixels (photo/video)."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="Attachment.height"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="positiveInt"/> 
      </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())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value=".outboundRelationship[typeCode=&quot;COMP].target[classCode=&quot;OBS&quot;, moodCode=&quot;E
        VN&quot;,code=&quot;&lt;CODE&gt;&quot;].value"/> 
      </mapping> 
    </element> 
    <element id="Attachment.width">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="trial-use"/> 
      </extension> 
      <path value="Attachment.width"/> 
      <short value="Width of the image in pixels (photo/video)"/> 
      <definition value="Width of the image in pixels (photo/video)."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="Attachment.width"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="positiveInt"/> 
      </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())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value=".outboundRelationship[typeCode=&quot;COMP].target[classCode=&quot;OBS&quot;, moodCode=&quot;E
        VN&quot;,code=&quot;&lt;CODE&gt;&quot;].value"/> 
      </mapping> 
    </element> 
    <element id="Attachment.frames">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="trial-use"/> 
      </extension> 
      <path value="Attachment.frames"/> 
      <short value="Number of frames if &gt; 1 (photo)"/> 
      <definition value="The number of frames in a photo. This is used with a multi-page fax, or an imaging
       acquisition context that takes multiple slices in a single image, or an animated
       gif. If there is more than one frame, this SHALL have a value in order to alert
       interface software that a multi-frame capable rendering widget is required."/> 
      <comment value="if the number of frames is not supplied, the value may be unknown. Applications
       should not assume that there is only one frame unless it is explicitly stated."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="Attachment.frames"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="positiveInt"/> 
      </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())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value=".outboundRelationship[typeCode=&quot;COMP].target[classCode=&quot;OBS&quot;, moodCode=&quot;E
        VN&quot;,code=&quot;&lt;CODE&gt;&quot;].value"/> 
      </mapping> 
    </element> 
    <element id="Attachment.duration">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="trial-use"/> 
      </extension> 
      <path value="Attachment.duration"/> 
      <short value="Length in seconds (audio / video)"/> 
      <definition value="The duration of the recording in seconds - for audio and video."/> 
      <comment value="The duration might differ from occurrencePeriod if recording was paused."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="Attachment.duration"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="decimal"/> 
      </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())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value=".outboundRelationship[typeCode=&quot;COMP].target[classCode=&quot;OBS&quot;, moodCode=&quot;E
        VN&quot;,code=&quot;&lt;CODE&gt;&quot;].value"/> 
      </mapping> 
    </element> 
    <element id="Attachment.pages">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="trial-use"/> 
      </extension> 
      <path value="Attachment.pages"/> 
      <short value="Number of printed pages"/> 
      <definition value="The number of pages when printed."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="Attachment.pages"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="positiveInt"/> 
      </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())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
    </element> 
  </snapshot> 
  <differential> 
    <element id="Attachment">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative"/> 
      </extension> 
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0"/> 
      </extension> 
      <path value="Attachment"/> 
      <short value="Content in a format defined elsewhere"/> 
      <definition value="For referring to data content defined in other formats."/> 
      <comment value="When providing a summary view (for example with Observation.value[x]) Attachment
       should be represented with a brief display text such as &quot;Signed Procedure
       Consent&quot;."/> 
      <min value="0"/> 
      <max value="*"/> 
      <constraint> 
        <key value="att-1"/> 
        <severity value="error"/> 
        <human value="If the Attachment has data, it SHALL have a contentType"/> 
        <expression value="data.empty() or contentType.exists()"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Attachment"/> 
      </constraint> 
      <mapping> 
        <identity value="v2"/> 
        <map value="ED/RP"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value="ED"/> 
      </mapping> 
    </element> 
    <element id="Attachment.contentType">
      <path value="Attachment.contentType"/> 
      <short value="Mime type of the content, with charset etc."/> 
      <definition value="Identifies the type of the data in the attachment and allows a method to be chosen
       to interpret or render the data. Includes mime type parameters such as charset
       where appropriate."/> 
      <requirements value="Processors of the data need to be able to know how to interpret the data."/> 
      <min value="0"/> 
      <max value="1"/> 
      <type> 
        <code value="code"/> 
      </type> 
      <example> 
        <label value="General"/> 
        <valueCode value="text/plain; charset=UTF-8, image/png"/> 
      </example> 
      <condition value="att-1"/> 
      <isSummary value="true"/> 
      <binding> 
        <extension url="http://hl7.org/fhir/tools/StructureDefinition/binding-definition">
          <valueString value="The mime type of an attachment. Any valid mime type is allowed."/> 
        </extension> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="MimeType"/> 
        </extension> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true"/> 
        </extension> 
        <strength value="required"/> 
        <description value="BCP 13 (RFCs 2045, 2046, 2047, 4288, 4289 and 2049)"/> 
        <valueSet value="http://hl7.org/fhir/ValueSet/mimetypes|5.0.0"/> 
      </binding> 
      <mapping> 
        <identity value="v2"/> 
        <map value="ED.2+ED.3/RP.2+RP.3. Note conversion may be needed if old style values are being
         used"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value="./mediaType, ./charset"/> 
      </mapping> 
    </element> 
    <element id="Attachment.language">
      <path value="Attachment.language"/> 
      <short value="Human language of the content (BCP-47)"/> 
      <definition value="The human language of the content. The value can be any valid value according to
       BCP 47."/> 
      <requirements value="Users need to be able to choose between the languages in a set of attachments."/> 
      <min value="0"/> 
      <max value="1"/> 
      <type> 
        <code value="code"/> 
      </type> 
      <example> 
        <label value="General"/> 
        <valueCode value="en-AU"/> 
      </example> 
      <isSummary value="true"/> 
      <binding> 
        <extension url="http://hl7.org/fhir/tools/StructureDefinition/binding-definition">
          <valueString value="IETF language tag for a human language."/> 
        </extension> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="Language"/> 
        </extension> 
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true"/> 
        </extension> 
        <strength value="required"/> 
        <description value="IETF language tag for a human language."/> 
        <valueSet value="http://hl7.org/fhir/ValueSet/all-languages|5.0.0"/> 
        <additional> 
          <purpose value="starter"/> 
          <valueSet value="http://hl7.org/fhir/ValueSet/languages"/> 
        </additional> 
      </binding> 
      <mapping> 
        <identity value="rim"/> 
        <map value="./language"/> 
      </mapping> 
    </element> 
    <element id="Attachment.data">
      <path value="Attachment.data"/> 
      <short value="Data inline, base64ed"/> 
      <definition value="The actual data of the attachment - a sequence of bytes, base64 encoded."/> 
      <comment value="The base64-encoded data SHALL be expressed in the same character set as the base
       resource XML or JSON."/> 
      <requirements value="The data needs to able to be transmitted inline."/> 
      <min value="0"/> 
      <max value="1"/> 
      <type> 
        <code value="base64Binary"/> 
      </type> 
      <condition value="att-1"/> 
      <mapping> 
        <identity value="v2"/> 
        <map value="ED.5"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value="./data"/> 
      </mapping> 
    </element> 
    <element id="Attachment.url">
      <path value="Attachment.url"/> 
      <short value="Uri where the data can be found"/> 
      <definition value="A location where the data can be accessed."/> 
      <comment value="If both data and url are provided, the url SHALL point to the same content as the
       data contains. Urls may be relative references or may reference transient locations
       such as a wrapping envelope using cid: though this has ramifications for using
       signatures. Relative URLs are interpreted relative to the service url, like a resource
       reference, rather than relative to the resource itself. If a URL is provided, it
       SHALL resolve to actual data."/> 
      <requirements value="The data needs to be transmitted by reference."/> 
      <min value="0"/> 
      <max value="1"/> 
      <type> 
        <code value="url"/> 
      </type> 
      <example> 
        <label value="General"/> 
        <valueUrl value="http://www.acme.com/logo-small.png"/> 
      </example> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="v2"/> 
        <map value="RP.1+RP.2 - if they refer to a URL (see v2.6)"/> 
      </mapping> 
      <mapping> 
        <identity value="rim"/> 
        <map value="./reference/literal"/> 
      </mapping> 
    </element> 
    <element id="Attachment.size">
      <path value="Attachment.size"/> 
      <short value="Number of bytes of content (if url provided)"/> 
      <definition value="The number of bytes of data that make up this attachment (before base64 encoding,
       if that is done)."/> 
      <comment value="The number of bytes is redundant if the data is provided as a base64binary, but
       is useful if the data is provided as a url reference."/> 
      <requirements value="Representing the size allows applications to determine whether they should fetch
       the content automatically in advance, or refuse to fetch it at all."/> 
      <min value="0"/> 
      <max value="1"/> 
      <type> 
        <code value="integer64"/> 
      </type> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A (needs data type R3 proposal)"/> 
      </mapping> 
    </element> 
    <element id="Attachment.hash">
      <path value="Attachment.hash"/> 
      <short value="Hash of the data (sha-1, base64ed)"/> 
      <definition value="The calculated hash of the data using SHA-1. Represented using base64."/> 
      <comment value="The hash is calculated on the data prior to base64 encoding, if the data is based64
       encoded. The hash is not intended to support digital signatures. Where protection
       against malicious threats a digital signature should be considered, see [Provenance.signature
      ](provenance-definitions.html#Provenance.signature) for mechanism to protect a resource
       with a digital signature."/> 
      <requirements value="Included so that applications can verify that the contents of a location have not
       changed due to technical failures (e.g., storage rot, transport glitch, incorrect
       version)."/> 
      <min value="0"/> 
      <max value="1"/> 
      <type> 
        <code value="base64Binary"/> 
      </type> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value=".integrityCheck[parent::ED/integrityCheckAlgorithm=&quot;SHA-1&quot;]"/> 
      </mapping> 
    </element> 
    <element id="Attachment.title">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true"/> 
      </extension> 
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true"/> 
      </extension> 
      <path value="Attachment.title"/> 
      <short value="Label to display in place of the data"/> 
      <definition value="A label or set of text to display in place of the data."/> 
      <comment value="May sometimes be derived from the source filename."/> 
      <requirements value="Applications need a label to display to a human user in place of the actual data
       if the data cannot be rendered or perceived by the viewer."/> 
      <min value="0"/> 
      <max value="1"/> 
      <type> 
        <code value="string"/> 
      </type> 
      <example> 
        <label value="General"/> 
        <valueString value="Official Corporate Logo"/> 
      </example> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="./title/data"/> 
      </mapping> 
    </element> 
    <element id="Attachment.creation">
      <path value="Attachment.creation"/> 
      <short value="Date attachment was first created"/> 
      <definition value="The date that the attachment was first created."/> 
      <requirements value="This is often tracked as an integrity issue for use of the attachment."/> 
      <min value="0"/> 
      <max value="1"/> 
      <type> 
        <code value="dateTime"/> 
      </type> 
      <isSummary value="true"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A (needs data type R3 proposal)"/> 
      </mapping> 
    </element> 
    <element id="Attachment.height">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="trial-use"/> 
      </extension> 
      <path value="Attachment.height"/> 
      <short value="Height of the image in pixels (photo/video)"/> 
      <definition value="Height of the image in pixels (photo/video)."/> 
      <min value="0"/> 
      <max value="1"/> 
      <type> 
        <code value="positiveInt"/> 
      </type> 
      <mapping> 
        <identity value="rim"/> 
        <map value=".outboundRelationship[typeCode=&quot;COMP].target[classCode=&quot;OBS&quot;, moodCode=&quot;E
        VN&quot;,code=&quot;&lt;CODE&gt;&quot;].value"/> 
      </mapping> 
    </element> 
    <element id="Attachment.width">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="trial-use"/> 
      </extension> 
      <path value="Attachment.width"/> 
      <short value="Width of the image in pixels (photo/video)"/> 
      <definition value="Width of the image in pixels (photo/video)."/> 
      <min value="0"/> 
      <max value="1"/> 
      <type> 
        <code value="positiveInt"/> 
      </type> 
      <mapping> 
        <identity value="rim"/> 
        <map value=".outboundRelationship[typeCode=&quot;COMP].target[classCode=&quot;OBS&quot;, moodCode=&quot;E
        VN&quot;,code=&quot;&lt;CODE&gt;&quot;].value"/> 
      </mapping> 
    </element> 
    <element id="Attachment.frames">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="trial-use"/> 
      </extension> 
      <path value="Attachment.frames"/> 
      <short value="Number of frames if &gt; 1 (photo)"/> 
      <definition value="The number of frames in a photo. This is used with a multi-page fax, or an imaging
       acquisition context that takes multiple slices in a single image, or an animated
       gif. If there is more than one frame, this SHALL have a value in order to alert
       interface software that a multi-frame capable rendering widget is required."/> 
      <comment value="if the number of frames is not supplied, the value may be unknown. Applications
       should not assume that there is only one frame unless it is explicitly stated."/> 
      <min value="0"/> 
      <max value="1"/> 
      <type> 
        <code value="positiveInt"/> 
      </type> 
      <mapping> 
        <identity value="rim"/> 
        <map value=".outboundRelationship[typeCode=&quot;COMP].target[classCode=&quot;OBS&quot;, moodCode=&quot;E
        VN&quot;,code=&quot;&lt;CODE&gt;&quot;].value"/> 
      </mapping> 
    </element> 
    <element id="Attachment.duration">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="trial-use"/> 
      </extension> 
      <path value="Attachment.duration"/> 
      <short value="Length in seconds (audio / video)"/> 
      <definition value="The duration of the recording in seconds - for audio and video."/> 
      <comment value="The duration might differ from occurrencePeriod if recording was paused."/> 
      <min value="0"/> 
      <max value="1"/> 
      <type> 
        <code value="decimal"/> 
      </type> 
      <mapping> 
        <identity value="rim"/> 
        <map value=".outboundRelationship[typeCode=&quot;COMP].target[classCode=&quot;OBS&quot;, moodCode=&quot;E
        VN&quot;,code=&quot;&lt;CODE&gt;&quot;].value"/> 
      </mapping> 
    </element> 
    <element id="Attachment.pages">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="trial-use"/> 
      </extension> 
      <path value="Attachment.pages"/> 
      <short value="Number of printed pages"/> 
      <definition value="The number of pages when printed."/> 
      <min value="0"/> 
      <max value="1"/> 
      <type> 
        <code value="positiveInt"/> 
      </type> 
    </element> 
  </differential> 
</StructureDefinition> 

Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.