<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="shr-entity-ExternalHealthRecord-extension" />
  <text>
    <status value="generated" />
    <div xmlns="http://www.w3.org/1999/xhtml">
      <p>
        <b>SHR ExternalHealthRecord Extension</b>
      </p>
      <p>A health record other than the current health record; may have been used to help populate the current record.</p>
    </div>
  </text>
  <url value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-ExternalHealthRecord-extension" />
  <identifier>
    <system value="http://standardhealthrecord.org" />
    <value value="shr.entity.ExternalHealthRecord" />
  </identifier>
  <version value="0.0.1" />
  <name value="SHR ExternalHealthRecord Extension" />
  <title value="SHR ExternalHealthRecord Extension" />
  <status value="draft" />
  <date value="2017-12-20" />
  <publisher value="The MITRE Corporation: Standard Health Record Collaborative" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://standardhealthrecord.org" />
    </telecom>
  </contact>
  <description value="A health record other than the current health record; may have been used to help populate the current record." />
  <fhirVersion value="3.0.1" />
  <kind value="complex-type" />
  <abstract value="false" />
  <contextType value="resource" />
  <context value="*" />
  <type value="Extension" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
  <derivation value="constraint" />
  <differential>
    <element id="Extension:externalhealthrecord">
      <path value="Extension" />
      <short value="SHR ExternalHealthRecord Extension" />
      <definition value="A health record other than the current health record; may have been used to help populate the current record." />
      <min value="0" />
      <max value="*" />
    </element>
    <element id="Extension:externalhealthrecord.extension:relatedencounter">
      <path value="Extension.extension" />
      <sliceName value="relatedencounter" />
      <definition value="If content was generated during a patient encounter, related encounter is the encounter where the information was gained." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-base-RelatedEncounter-extension" />
      </type>
    </element>
    <element id="Extension:externalhealthrecord.extension:author">
      <path value="Extension.extension" />
      <sliceName value="author" />
      <definition value="The person or organization who created the entry and is responsible for (and may certify) the content." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-base-Author-extension" />
      </type>
    </element>
    <element id="Extension:externalhealthrecord.extension:informant">
      <path value="Extension.extension" />
      <sliceName value="informant" />
      <definition value="The person or entity that provided the information in the entry, as distinct from who created the entry, e.g. the subject (patient), medical professional, family member, device or software program." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-base-Informant-extension" />
      </type>
    </element>
    <element id="Extension:externalhealthrecord.extension:type">
      <path value="Extension.extension" />
      <sliceName value="type" />
      <definition value="The most specific code (lowest level term) describing the kind or sort of thing being represented." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-Type-extension" />
      </type>
    </element>
    <element id="Extension:externalhealthrecord.extension:identifier">
      <path value="Extension.extension" />
      <sliceName value="identifier" />
      <definition value="A unique string that identifies a specific person or thing." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-core-Identifier-extension" />
      </type>
    </element>
    <element id="Extension:externalhealthrecord.extension:accesstime">
      <path value="Extension.extension" />
      <sliceName value="accesstime" />
      <definition value="Point in time when data was accessed." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-AccessTime-extension" />
      </type>
    </element>
    <element id="Extension:externalhealthrecord.url">
      <path value="Extension.url" />
      <type>
        <code value="uri" />
      </type>
      <fixedUri value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-ExternalHealthRecord-extension" />
    </element>
    <element id="Extension:externalhealthrecord.value[x]">
      <path value="Extension.value[x]" />
      <min value="0" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>