This page is part of the FHIR Specification (v0.4.0: DSTU 2 Draft). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions 
Example Index:
| Basic Example. Describes the fathers death at age 74 from a heart attack | XML | JSON |
| Mother died from a stroke aged 56. Brother with diabetes. | XML | JSON |
XML
Basic Example. Describes the fathers death at age 74 from a heart attack (id = "father")
<FamilyHistory xmlns="http://hl7.org/fhir"> <id value="father"/> <text> <status value="generated"/> <div xmlns="http://www.w3.org/1999/xhtml"><!-- Snipped for brevity --></div> </text> <patient> <reference value="Patient/example"/> <display value="Peter Patient"/> </patient> <date value="2011-03-18"/> <relation> <relationship> <coding> <system value="http://hl7.org/fhir/familial-relationship"/> <code value="father"/> </coding> </relationship> <condition> <type> <coding> <system value="http://snomed.info/sct"/> <code value="315619001"/> <display value="Myocardial Infarction"/> </coding> <text value="Heart Attack"/> </type> <onsetAge> <value value="74"/> <units value="a"/> <system value="http://unitsofmeasure.org"/> </onsetAge> <note value="Was fishing at the time. At least he went doing someting he loved."/> </condition> </relation> </FamilyHistory>
JSON
Basic Example. Describes the fathers death at age 74 from a heart attack
{
"resourceType": "FamilyHistory",
"id": "father",
"text": {
"status": "generated",
"div": "<div>!-- Snipped for Brevity --></div>"
},
"patient": {
"reference": "Patient/example",
"display": "Peter Patient"
},
"date": "2011-03-18",
"relation": [
{
"relationship": {
"coding": [
{
"system": "http://hl7.org/fhir/familial-relationship",
"code": "father"
}
]
},
"condition": [
{
"type": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "315619001",
"display": "Myocardial Infarction"
}
],
"text": "Heart Attack"
},
"onsetAge": {
"value": 74,
"units": "a",
"system": "http://unitsofmeasure.org"
},
"note": "Was fishing at the time. At least he went doing someting he loved."
}
]
}
]
}
XML
Mother died from a stroke aged 56. Brother with diabetes. (id = "mother")
<FamilyHistory xmlns="http://hl7.org/fhir"> <id value="mother"/> <text> <status value="generated"/> <div xmlns="http://www.w3.org/1999/xhtml"><!-- Snipped for brevity --></div> </text> <patient> <reference value="Patient/100"/> <display value="Peter Patient"/> </patient> <relation> <relationship> <coding> <system value="http://hl7.org/fhir/familial-relationship"/> <code value="mother"/> </coding> </relationship> <condition> <type> <coding> <system value="http://snomed.info/sct"/> <code value="371041009"/> <display value="Embolic Stroke"/> </coding> <text value="Stroke"/> </type> <onsetAge> <value value="56"/> <units value="a"/> <system value="http://unitsofmeasure.org"/> </onsetAge> </condition> </relation> <relation> <relationship> <coding> <system value="http://hl7.org/fhir/familial-relationship"/> <code value="brother"/> </coding> </relationship> <condition> <type> <coding> <system value="http://snomed.info/sct"/> <code value="190372001"/> <display value="Type 1 Diabetes, Maturity Onset"/> </coding> <text value="Diabetes Mellitus"/> </type> </condition> </relation> </FamilyHistory>
JSON
Mother died from a stroke aged 56. Brother with diabetes.
{
"resourceType": "FamilyHistory",
"id": "mother",
"text": {
"status": "generated",
"div": "<div>!-- Snipped for Brevity --></div>"
},
"patient": {
"reference": "Patient/100",
"display": "Peter Patient"
},
"relation": [
{
"relationship": {
"coding": [
{
"system": "http://hl7.org/fhir/familial-relationship",
"code": "mother"
}
]
},
"condition": [
{
"type": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "371041009",
"display": "Embolic Stroke"
}
],
"text": "Stroke"
},
"onsetAge": {
"value": 56,
"units": "a",
"system": "http://unitsofmeasure.org"
}
}
]
},
{
"relationship": {
"coding": [
{
"system": "http://hl7.org/fhir/familial-relationship",
"code": "brother"
}
]
},
"condition": [
{
"type": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "190372001",
"display": "Type 1 Diabetes, Maturity Onset"
}
],
"text": "Diabetes Mellitus"
}
}
]
}
]
}
Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.