XML View
<FamilyMemberHistory xmlns="http://hl7.org/fhir">
    <id value="UKCore-FamilyMemberHistory-FatherDiabetes-Example" />
    <status value="partial" />
    <patient>
        <reference value="Patient/UKCore-Patient-RichardSmith-Example" />
        <display value="Richard Smith" />
    </patient>
    <date value="2023-02-07" />
    <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="430678008" />
                <display value="Family history of diabetes mellitus type 1" />
            </coding>
            <text value="Diabetes Mellitues Type 1" />
        </code>
        <onsetAge>
            <value value="64" />
            <unit value="yr" />
            <system value="http://unitsofmeasure.org" />
            <code value="a" />
        </onsetAge>
    </condition>
</FamilyMemberHistory>
 
  JSON View
{
    "resourceType": "FamilyMemberHistory",
    "id": "UKCore-FamilyMemberHistory-FatherDiabetes-Example",
    "status": "partial",
    "patient": {
        "reference": "Patient/UKCore-Patient-RichardSmith-Example",
        "display": "Richard Smith"
    },
    "date": "2023-02-07",
    "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": "430678008",
                        "display": "Family history of diabetes mellitus type 1"
                    }
                ],
                "text": "Diabetes Mellitues Type 1"
            },
            "onsetAge": {
                "value": 64,
                "unit": "yr",
                "system": "http://unitsofmeasure.org",
                "code": "a"
            }
        }
    ]
}