<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="UKCore-FamilyMemberHistory" />
  <url value="https://fhir.hl7.org.uk/StructureDefinition/UKCore-FamilyMemberHistory" />
  <version value="2.0.0" />
  <name value="UKCoreFamilyMemberHistory" />
  <title value="UK Core Family Member History" />
  <status value="active" />
  <date value="2026-02-25" />
  <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 [FamilyMemberHistory](https://hl7.org/fhir/R4/familymemberhistory.html)." />
  <purpose value="This profile allows exchange of information about health events and conditions for a person related to the patient relevant in the context of care." />
  <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="FamilyMemberHistory" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/FamilyMemberHistory" />
  <derivation value="constraint" />
  <differential>
    <element id="FamilyMemberHistory.extension:associatedEncounter">
      <path value="FamilyMemberHistory.extension" />
      <sliceName value="associatedEncounter" />
      <short value="This extension is used to reference an associated encounter." />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-AssociatedEncounter" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="FamilyMemberHistory.status">
      <path value="FamilyMemberHistory.status" />
      <short value="A code specifying the status of the record of the family history of a specific family member." />
      <mustSupport value="true" />
    </element>
    <element id="FamilyMemberHistory.dataAbsentReason">
      <path value="FamilyMemberHistory.dataAbsentReason" />
      <binding>
        <strength value="extensible" />
      </binding>
    </element>
    <element id="FamilyMemberHistory.patient">
      <path value="FamilyMemberHistory.patient" />
      <short value="The person who this history concerns." />
      <mustSupport value="true" />
    </element>
    <element id="FamilyMemberHistory.date">
      <path value="FamilyMemberHistory.date" />
      <short value="The date (and possibly time) when the family member history was recorded or last updated." />
      <mustSupport value="true" />
    </element>
    <element id="FamilyMemberHistory.name">
      <path value="FamilyMemberHistory.name" />
      <short value="Allows greater ease in ensuring the same person is being talked about." />
      <mustSupport value="true" />
    </element>
    <element id="FamilyMemberHistory.relationship">
      <path value="FamilyMemberHistory.relationship" />
      <short value="Relationship to the subject." />
      <mustSupport value="true" />
      <binding>
        <strength value="extensible" />
        <valueSet value="https://fhir.hl7.org.uk/ValueSet/UKCore-PersonRelationshipType" />
      </binding>
    </element>
    <element id="FamilyMemberHistory.condition">
      <path value="FamilyMemberHistory.condition" />
      <short value="Condition that the related person had." />
      <mustSupport value="true" />
    </element>
    <element id="FamilyMemberHistory.condition.code">
      <path value="FamilyMemberHistory.condition.code" />
      <binding>
        <strength value="preferred" />
      </binding>
    </element>
    <element id="FamilyMemberHistory.condition.outcome">
      <path value="FamilyMemberHistory.condition.outcome" />
      <binding>
        <strength value="preferred" />
      </binding>
    </element>
  </differential>
</StructureDefinition>