XML View
<FamilyMemberHistory xmlns="http://hl7.org/fhir">
    <id value="UKCore-Extension-AssociatedEncounter-Example" />
    <text>
        <status value="additional" />
        --- We have skipped the narrative for better readability of the resource ---
    </text>
    
    <extension url="https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-AssociatedEncounter">
        <valueReference>
            <reference value="Encounter/UKCore-Encounter-InpatientEncounter-Example" />
        </valueReference>
    </extension>
    
    <status value="partial" />
    <patient>
        <reference value="Patient/UKCore-Patient-RichardSmith-Example" />
        <display value="Richard Smith" />
    </patient>
    <date value="2023-05-09" />
    <relationship>
        <coding>
            <system value="http://terminology.hl7.org/CodeSystem/v3-RoleCode" />
            <code value="FTH" />
            <display value="father" />
        </coding>
    </relationship>
    <sex>
        <coding>
            <system value="http://hl7.org/fhir/administrative-gender" />
            <code value="male" />
            <display value="Male" />
        </coding>
    </sex>
    <bornDate value="1949-12-13" />
    <condition>
        <code>
            <coding>
                <system value="http://snomed.info/sct" />
                <code value="275121006" />
                <display value="Family history: Angina" />
            </coding>
        </code>
        <onsetAge>
            <value value="64" />
            <unit value="year" />
            <system value="http://unitsofmeasure.org" />
            <code value="a" />
        </onsetAge>
    </condition>
</FamilyMemberHistory>
 
  JSON View
{
    "resourceType": "FamilyMemberHistory",
    "id": "UKCore-Extension-AssociatedEncounter-Example",
    "text": {
        "status": "additional",
        --- We have skipped the narrative for better readability of the resource ---
    },
    "extension":  [
        {
            "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-AssociatedEncounter",
            "valueReference": {
                "reference": "Encounter/UKCore-Encounter-InpatientEncounter-Example"
            }
        }
    ],
    "status": "partial",
    "patient": {
        "reference": "Patient/UKCore-Patient-RichardSmith-Example",
        "display": "Richard Smith"
    },
    "date": "2023-05-09",
    "relationship": {
        "coding":  [
            {
                "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode",
                "code": "FTH",
                "display": "father"
            }
        ]
    },
    "sex": {
        "coding":  [
            {
                "system": "http://hl7.org/fhir/administrative-gender",
                "code": "male",
                "display": "Male"
            }
        ]
    },
    "bornDate": "1949-12-13",
    "condition":  [
        {
            "code": {
                "coding":  [
                    {
                        "system": "http://snomed.info/sct",
                        "code": "275121006",
                        "display": "Family history: Angina"
                    }
                ]
            },
            "onsetAge": {
                "value": 64,
                "unit": "year",
                "system": "http://unitsofmeasure.org",
                "code": "a"
            }
        }
    ]
}