<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="RelatedPerson" />
  <meta>
    <lastUpdated value="2021-01-02T08:58:31.578+11:00" />
  </meta>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-category">
    <valueString value="Base.Individuals" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
    <valueCode value="trial-use" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
    <valueInteger value="2" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category">
    <valueCode value="patient" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
    <valueCode value="pa" />
  </extension>
  <extension url="http://hl7.org/fhir/build/StructureDefinition/entered-in-error-status">
    <valueCode value=".active = false" />
  </extension>
  <url value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
  <version value="4.6.0" />
  <name value="RelatedPerson" />
  <status value="draft" />
  <date value="2021-01-02T08:58:31+11:00" />
  <publisher value="Health Level Seven International (Patient Administration)" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://hl7.org/fhir" />
    </telecom>
  </contact>
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://www.hl7.org/Special/committees/pafm/index.cfm" />
    </telecom>
  </contact>
  <description value="Information about a person that is involved in a patient's health or the care for a patient, but who is not the target of healthcare, nor has a formal responsibility in the care process." />
  <purpose value="Need to track persons related to the patient or the healthcare process." />
  <fhirVersion value="4.6.0" />
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <mapping>
    <identity value="interface" />
    <uri value="http://hl7.org/fhir/interface" />
    <name value="Interface Pattern" />
  </mapping>
  <mapping>
    <identity value="w5" />
    <uri value="http://hl7.org/fhir/fivews" />
    <name value="FiveWs Pattern 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/DomainResource" />
  <derivation value="specialization" />
  <differential>
    <element id="RelatedPerson">
      <extension url="http://hl7.org/fhir/build/StructureDefinition/committee-notes">
        <valueString value="Patient contact is defined as a person in role. Hence RelatedPerson should also be a person in role. Struggling with HL7 v3 mappings here." />
      </extension>
      <path value="RelatedPerson" />
      <short value="A person that is related to a patient, but who is not a direct target of care" />
      <definition value="Information about a person that is involved in a patient's health or the care for a patient, but who is not the target of healthcare, nor has a formal responsibility in the care process." />
      <min value="0" />
      <max value="*" />
      <mapping>
        <identity value="rim" />
        <map value="role" />
      </mapping>
      <mapping>
        <identity value="interface" />
        <map value="ParticipantLiving" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="administrative.individual" />
      </mapping>
    </element>
    <element id="RelatedPerson.identifier">
      <extension url="http://hl7.org/fhir/build/StructureDefinition/committee-notes">
        <valueString value="Keeping RelatedPerson.id cardinality as a matter of safety in the same manner as Person Activate." />
      </extension>
      <path value="RelatedPerson.identifier" />
      <short value="A human identifier for this person" />
      <definition value="Identifier for a person within a particular scope." />
      <comment value="RelatedPerson identifiers might not be unique across instances within a system, as a single human individual may be represented as many different RelatedPerson resources with different roles, periods, or relationships." />
      <requirements value="People are known by a variety of ids. Some institutions maintain several, and most collect identifiers for exchange with other organizations concerning the patient. Examples are national person identifier and local identifier." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Identifier" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.identifier" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="NK1-33" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".id" />
      </mapping>
      <mapping>
        <identity value="interface" />
        <map value="Participant.identifier" />
      </mapping>
    </element>
    <element id="RelatedPerson.active">
      <path value="RelatedPerson.active" />
      <short value="Whether this related person's record is in active use" />
      <definition value="Whether this related person record is in active use." />
      <comment value="This element is labeled as a modifier because it may be used to mark that the resource was created in error." />
      <requirements value="Need to be able to mark a related person record as not to be used, such as if it was created in error." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="boolean" />
      </type>
      <meaningWhenMissing value="This resource is generally assumed to be active if no value is provided for the active element" />
      <isModifier value="true" />
      <isModifierReason value="This element is labelled as a modifier because it is a status element that can indicate that a record should not be treated as valid" />
      <isSummary value="true" />
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.status" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".statusCode" />
      </mapping>
      <mapping>
        <identity value="interface" />
        <map value="Participant.active" />
      </mapping>
    </element>
    <element id="RelatedPerson.patient">
      <extension url="http://hl7.org/fhir/build/StructureDefinition/committee-notes">
        <valueString value="This rather complicated HL7 v3 mapping traverses the same path that the Patient resource has for contact but in opposite direction." />
      </extension>
      <path value="RelatedPerson.patient" />
      <short value="The patient this person is related to" />
      <definition value="The patient this person is related to." />
      <requirements value="We need to know which patient this RelatedPerson is related to." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="PID-3" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="scoper[classCode=PSN|ANM and determinerCode='INSTANCE']/playedRole[classCode='PAT']/id" />
      </mapping>
    </element>
    <element id="RelatedPerson.relationship">
      <path value="RelatedPerson.relationship" />
      <short value="The relationship of the related person to the patient" />
      <definition value="The nature of the relationship between the related person and the patient." />
      <comment value="The directionality of the relationship is from the RelatedPerson to the Patient. For example, if the Patient is a child, and the RelatedPerson is the mother, the relationship would be PRN (parent) or MTH (mother)." />
      <requirements value="We need to know the relationship with the patient since it influences the interpretation of the information attributed to this person." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="PatientRelationshipType" />
        </extension>
        <strength value="preferred" />
        <description value="The nature of the relationship between a patient and the related person." />
        <valueSet value="http://hl7.org/fhir/ValueSet/relatedperson-relationshiptype" />
      </binding>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.class" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="NK1-3" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="code" />
      </mapping>
    </element>
    <element id="RelatedPerson.name">
      <path value="RelatedPerson.name" />
      <short value="A name associated with the person" />
      <definition value="A name associated with the person." />
      <requirements value="Related persons need to be identified by name, but it is uncommon to need details about multiple other names for that person." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="HumanName" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="NK1-2" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="name" />
      </mapping>
      <mapping>
        <identity value="interface" />
        <map value="Participant.name" />
      </mapping>
    </element>
    <element id="RelatedPerson.telecom">
      <path value="RelatedPerson.telecom" />
      <short value="A contact detail for the person" />
      <definition value="A contact detail for the person, e.g. a telephone number or an email address." />
      <comment value="Person may have multiple ways to be contacted with different uses or applicable periods.  May need to have options for contacting the person urgently, and also to help with identification." />
      <requirements value="People have (primary) ways to contact them in some way such as phone, email." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="ContactPoint" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="NK1-5 / NK1-6 / NK1-40" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="telecom" />
      </mapping>
      <mapping>
        <identity value="interface" />
        <map value="ParticipantContactable.telecom" />
      </mapping>
    </element>
    <element id="RelatedPerson.gender">
      <path value="RelatedPerson.gender" />
      <short value="male | female | other | unknown" />
      <definition value="Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes." />
      <requirements value="Needed for identification of the person, in combination with (at least) name and birth date." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="AdministrativeGender" />
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true" />
        </extension>
        <extension url="http://hl7.org/fhir/build/StructureDefinition/v2-map">
          <valueString value="http://terminology.hl7.org/ValueSet/v2-0001" />
        </extension>
        <extension url="http://hl7.org/fhir/build/StructureDefinition/v3-map">
          <valueString value="http://terminology.hl7.org/ValueSet/v3-AdministrativeGender" />
        </extension>
        <strength value="required" />
        <description value="The gender of a person used for administrative purposes." />
        <valueSet value="http://hl7.org/fhir/ValueSet/administrative-gender" />
      </binding>
      <mapping>
        <identity value="v2" />
        <map value="NK1-15" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="administrativeGender" />
      </mapping>
      <mapping>
        <identity value="interface" />
        <map value="ParticipantLiving.gender" />
      </mapping>
    </element>
    <element id="RelatedPerson.birthDate">
      <path value="RelatedPerson.birthDate" />
      <short value="The date on which the related person was born" />
      <definition value="The date on which the related person was born." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="date" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="player.birthTime" />
      </mapping>
      <mapping>
        <identity value="interface" />
        <map value="ParticipantLiving.birthDate" />
      </mapping>
    </element>
    <element id="RelatedPerson.address">
      <path value="RelatedPerson.address" />
      <short value="Address where the related person can be contacted or visited" />
      <definition value="Address where the related person can be contacted or visited." />
      <requirements value="Need to keep track where the related person can be contacted per postal mail or visited." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Address" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="v2" />
        <map value="NK1-4" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="addr" />
      </mapping>
      <mapping>
        <identity value="interface" />
        <map value="ParticipantContactable.address" />
      </mapping>
    </element>
    <element id="RelatedPerson.photo">
      <path value="RelatedPerson.photo" />
      <short value="Image of the person" />
      <definition value="Image of the person." />
      <requirements value="Many EHR systems have the capability to capture an image of persons. Fits with newer social media usage too." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Attachment" />
      </type>
      <mapping>
        <identity value="v2" />
        <map value="OBX-5 - needs a profile" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="player[classCode='PSN' and determinerCode='INSTANCE']/desc" />
      </mapping>
      <mapping>
        <identity value="interface" />
        <map value="ParticipantLiving.photo" />
      </mapping>
    </element>
    <element id="RelatedPerson.period">
      <path value="RelatedPerson.period" />
      <short value="Period of time that this relationship is considered valid" />
      <definition value="The period of time during which this relationship is or was active. If there are no dates defined, then the interval is unknown." />
      <comment value="If an individual has a relationship with a patient over multiple, non-adjacent periods, there should be a distinct RelatedPerson instance for each period.  For example, if a person is a roommate for a period of time, moves out, and is later a roommate with the same person again, you would have two RelatedPerson instances." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Period" />
      </type>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.done[x]" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".effectiveTime" />
      </mapping>
    </element>
    <element id="RelatedPerson.communication">
      <path value="RelatedPerson.communication" />
      <short value="A language which may be used to communicate with the related person about the patient's health" />
      <definition value="A language which may be used to communicate with the related person about the patient's health." />
      <comment value="If no language is specified, this *implies* that the default local language is spoken.  If you need to convey proficiency for multiple modes, then you need multiple RelatedPerson.Communication associations.   If the RelatedPerson does not speak the default local language, then the Interpreter Required Standard can be used to explicitly declare that an interpreter is required." />
      <requirements value="If a related person does not speak the local language, interpreters may be required, so languages spoken and proficiency is an important things to keep track of both for patient and other persons of interest." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="BackboneElement" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="LanguageCommunication" />
      </mapping>
      <mapping>
        <identity value="interface" />
        <map value="ParticipantLiving.communication" />
      </mapping>
    </element>
    <element id="RelatedPerson.communication.language">
      <path value="RelatedPerson.communication.language" />
      <short value="The language which can be used to communicate with the related person about the patient's health" />
      <definition value="The ISO-639-1 alpha 2 code in lower case for the language, optionally followed by a hyphen and the ISO-3166-1 alpha 2 code for the region in upper case; e.g. &quot;en&quot; for English, or &quot;en-US&quot; for American English versus &quot;en-EN&quot; for England English." />
      <comment value="The structure aa-BB with this exact casing is one the most widely used notations for locale. However not all systems actually code this but instead have it as free text. Hence CodeableConcept instead of code as the data type." />
      <requirements value="Most systems in multilingual countries will want to convey language. Not all systems actually need the regional dialect." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <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>
        <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/build/StructureDefinition/definition">
          <valueString value="A human language." />
        </extension>
        <strength value="preferred" />
        <description value="IETF language tag" />
        <valueSet value="http://hl7.org/fhir/ValueSet/languages" />
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="player[classCode=PSN|ANM and determinerCode=INSTANCE]/languageCommunication/code" />
      </mapping>
    </element>
    <element id="RelatedPerson.communication.preferred">
      <path value="RelatedPerson.communication.preferred" />
      <short value="Language preference indicator" />
      <definition value="Indicates whether or not the related person prefers this language (over other languages he or she masters up a certain level)." />
      <comment value="This language is specifically identified for communicating healthcare information." />
      <requirements value="People that master multiple languages up to certain level may prefer one or more, i.e. feel more confident in communicating in a particular language making other languages sort of a fall back method." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="boolean" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="preferenceInd" />
      </mapping>
    </element>
  </differential>
</StructureDefinition>