<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="shr-entity-RelatedPerson" />
  <text>
    <status value="generated" />
    <div xmlns="http://www.w3.org/1999/xhtml">
      <p>
        <b>SHR RelatedPerson Profile</b>
      </p>
      <p>A person in a role defined in relationship to a patient</p>
      <p>
        <b>SHR Mapping Summary</b>
      </p>
      <p>
        <pre>shr.entity.RelatedPerson maps to RelatedPerson:
  Person.ActiveFlag maps to active
  Person.HumanName maps to name
  Person.DateOfBirth maps to birthDate
  Person.AdministrativeGender maps to gender
  Person.Address maps to address
  Person.Headshot maps to photo
  Person.ContactPoint maps to telecom
  RelationshipType maps to relationship
  EffectiveTimePeriod maps to period
</pre>
      </p>
    </div>
  </text>
  <url value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-RelatedPerson" />
  <identifier>
    <system value="http://standardhealthrecord.org" />
    <value value="shr.entity.RelatedPerson" />
  </identifier>
  <version value="0.0.1" />
  <name value="SHR RelatedPerson Profile" />
  <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 person in a role defined in relationship to a patient" />
  <purpose value="Need to track persons related to the patient or the healthcare process." />
  <fhirVersion value="3.0.1" />
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <mapping>
    <identity value="w5" />
    <uri value="http://hl7.org/fhir/w5" />
    <name value="W5 Mapping" />
  </mapping>
  <mapping>
    <identity value="v2" />
    <uri value="http://hl7.org/v2" />
    <name value="HL7 v2 Mapping" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="RelatedPerson" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
  <derivation value="constraint" />
  <differential>
    <element id="RelatedPerson:shr-entity-RelatedPerson">
      <path value="RelatedPerson" />
      <short value="SHR RelatedPerson Profile" />
      <definition value="A person in a role defined in relationship to a patient" />
    </element>
    <element id="RelatedPerson:shr-entity-RelatedPerson.extension:person">
      <path value="RelatedPerson.extension" />
      <sliceName value="person" />
      <definition value="A person relevant to the health or social situation of the subject (including the person of record him or herself)." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-Person-extension" />
      </type>
    </element>
    <element id="RelatedPerson:shr-entity-RelatedPerson.extension:relatedencounter">
      <path value="RelatedPerson.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="RelatedPerson:shr-entity-RelatedPerson.extension:author">
      <path value="RelatedPerson.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="RelatedPerson:shr-entity-RelatedPerson.extension:informant">
      <path value="RelatedPerson.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="RelatedPerson:shr-entity-RelatedPerson.extension:type">
      <path value="RelatedPerson.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="RelatedPerson:shr-entity-RelatedPerson.relationship">
      <path value="RelatedPerson.relationship" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="PatientRelationshipType" />
        </extension>
        <strength value="extensible" />
        <description value="The nature of the relationship between a patient and the related person" />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/relatedperson-relationshiptype" />
        </valueSetReference>
      </binding>
    </element>
  </differential>
</StructureDefinition>