<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="UKCore-RelatedPerson" />
  <url value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-RelatedPerson" />
  <version value="2.5.0" />
  <name value="UKCoreRelatedPerson" />
  <title value="UK Core Related Person" />
  <status value="active" />
  <date value="2024-07-11" />
  <publisher value="HL7 UK" />
  <contact>
    <name value="HL7 UK" />
    <telecom>
      <system value="email" />
      <value value="ukcore@hl7.org.uk" />
      <use value="work" />
      <rank value="1" />
    </telecom>
  </contact>
  <description value="This profile defines the UK constraints and extensions on the International FHIR resource [RelatedPerson](https://hl7.org/fhir/R4/RelatedPerson.html)." />
  <purpose value="This profile allows exchange of information about a person that is involved in the care for an individual, but who is not the target of healthcare, nor has a formal responsibility in the care process." />
  <copyright value="Copyright © 2021+ HL7 UK Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); you may not use this file except in compliance with the License. You may obtain a copy of the License at  http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an &quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. HL7® FHIR® standard Copyright © 2011+ HL7 The HL7® FHIR® standard is used under the FHIR license. You may obtain a copy of the FHIR license at  https://www.hl7.org/fhir/license.html." />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="RelatedPerson" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
  <derivation value="constraint" />
  <differential>
    <element id="RelatedPerson.extension:contactPreference">
      <path value="RelatedPerson.extension" />
      <sliceName value="contactPreference" />
      <short value="The preferred method of contact, contact times and written communication format given by a Patient or Related Person." />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-ContactPreference" />
      </type>
    </element>
    <element id="RelatedPerson.extension:copyCorrespondenceIndicator">
      <path value="RelatedPerson.extension" />
      <sliceName value="copyCorrespondenceIndicator" />
      <short value="Indicates that a Patient contact or RelatedPerson must be copied in to Patient correspondence." />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-CopyCorrespondenceIndicator" />
      </type>
    </element>
    <element id="RelatedPerson.active">
      <path value="RelatedPerson.active" />
      <short value="Whether this related person's record is in active use." />
      <mustSupport value="true" />
    </element>
    <element id="RelatedPerson.patient">
      <path value="RelatedPerson.patient" />
      <short value="The patient this person is related to." />
      <mustSupport value="true" />
    </element>
    <element id="RelatedPerson.relationship">
      <path value="RelatedPerson.relationship" />
      <short value="The nature of the relationship." />
      <mustSupport value="true" />
      <binding>
        <strength value="extensible" />
        <valueSet value="https://fhir.hl7.org.uk/ValueSet/UKCore-PersonRelationshipType" />
      </binding>
    </element>
    <element id="RelatedPerson.name">
      <path value="RelatedPerson.name" />
      <short value="A name associated with the person." />
      <mustSupport value="true" />
    </element>
    <element id="RelatedPerson.telecom">
      <path value="RelatedPerson.telecom" />
      <short value="A contact detail for the person." />
      <mustSupport value="true" />
    </element>
    <element id="RelatedPerson.telecom.system.extension:otherContactSystem">
      <path value="RelatedPerson.telecom.system.extension" />
      <sliceName value="otherContactSystem" />
      <short value="Information about other contact methods which could be used in addition to those listed in `ContactPoint.system`." />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-OtherContactSystem" />
      </type>
    </element>
    <element id="RelatedPerson.address">
      <path value="RelatedPerson.address" />
      <short value="Address where the related person can be contacted or visited." />
      <mustSupport value="true" />
    </element>
    <element id="RelatedPerson.communication.language">
      <path value="RelatedPerson.communication.language" />
      <binding>
        <strength value="required" />
        <description value="A language which may be used to communicate with the related person about the patient's health." />
        <valueSet value="http://hl7.org/fhir/ValueSet/all-languages" />
      </binding>
    </element>
  </differential>
</StructureDefinition>