This page is part of the FHIR Specification (v0.11: DSTU 1 Ballot 3). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions

Resource Roadmap - Examples 4.4.4

Example Index:

Basic Example. Describes the fathers death at age 74 from a heart attackXMLJSON
Mother died from a stroke aged 56. Brother with diabetes.XMLJSON
Real-world patient exampleXMLJSON

Father 4.4.4.1

Basic Example. Describes the fathers death at age 74 from a heart attack

Basic Example. Describes the fathers death at age 74 from a heart attack (id = "father")

Raw XML

<FamilyHistory xmlns="http://hl7.org/fhir">
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml">Father died of a heart attack aged 74</div>
  </text>

  <subject>
    <type value="Patient"/>
    <reference value="patient/@example"/>
    <display value="Peter Patient"/>
  </subject>

  <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 Equivalent

Basic Example. Describes the fathers death at age 74 from a heart attack

{
  "FamilyHistory":{
    "text":{
      "status":{
        "value":"generated"
      },
      "div":"<div>Father died of a heart attack aged 74<\/div>"
    },
    "subject":{
      "type":{
        "value":"Patient"
      },
      "reference":{
        "value":"patient/@example"
      },
      "display":{
        "value":"Peter Patient"
      }
    },
    "relation":[
      {
        "relationship":{
          "coding":[
            {
              "system":{
                "value":"http://hl7.org/fhir/familial-relationship"
              },
              "code":{
                "value":"father"
              }
            }
          ]
        },
        "condition":[
          {
            "type":{
              "coding":[
                {
                  "system":{
                    "value":"http://snomed.info/sct"
                  },
                  "code":{
                    "value":"315619001"
                  },
                  "display":{
                    "value":"Myocardial Infarction"
                  }
                }
              ],
              "text":{
                "value":"Heart Attack"
              }
            },
            "onsetQuantity":{
              "value":{
                "value":"74"
              },
              "units":{
                "value":"a"
              },
              "system":{
                "value":"http://unitsofmeasure.org"
              }
            },
            "note":{
              "value":"Was fishing at the time. At least he went doing someting he loved."
            }
          }
        ]
      }
    ]
  }
}

Mother 4.4.4.2

Mother died from a stroke aged 56. Brother with diabetes.

Mother died from a stroke aged 56. Brother with diabetes. (id = "mother")

Raw XML

<FamilyHistory xmlns="http://hl7.org/fhir">
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml">Mother died of a stroke aged 56. Brother has diabetes</div>
  </text>
  <subject>
    <type value="Patient"/>
    <reference value="patient/@100"/>
    <display value="Peter Patient"/>
  </subject>
  <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 Equivalent

Mother died from a stroke aged 56. Brother with diabetes.

{
  "FamilyHistory":{
    "text":{
      "status":{
        "value":"generated"
      },
      "div":"<div>Mother died of a stroke aged 56. Brother has diabetes<\/div>"
    },
    "subject":{
      "type":{
        "value":"Patient"
      },
      "reference":{
        "value":"patient/@100"
      },
      "display":{
        "value":"Peter Patient"
      }
    },
    "relation":[
      {
        "relationship":{
          "coding":[
            {
              "system":{
                "value":"http://hl7.org/fhir/familial-relationship"
              },
              "code":{
                "value":"mother"
              }
            }
          ]
        },
        "condition":[
          {
            "type":{
              "coding":[
                {
                  "system":{
                    "value":"http://snomed.info/sct"
                  },
                  "code":{
                    "value":"371041009"
                  },
                  "display":{
                    "value":"Embolic Stroke"
                  }
                }
              ],
              "text":{
                "value":"Stroke"
              }
            },
            "onsetQuantity":{
              "value":{
                "value":"56"
              },
              "units":{
                "value":"a"
              },
              "system":{
                "value":"http://unitsofmeasure.org"
              }
            }
          }
        ]
      },
      {
        "relationship":{
          "coding":[
            {
              "system":{
                "value":"http://hl7.org/fhir/familial-relationship"
              },
              "code":{
                "value":"brother"
              }
            }
          ]
        },
        "condition":[
          {
            "type":{
              "coding":[
                {
                  "system":{
                    "value":"http://snomed.info/sct"
                  },
                  "code":{
                    "value":"190372001"
                  },
                  "display":{
                    "value":"Type 1 Diabetes, Maturity Onset"
                  }
                }
              ],
              "text":{
                "value":"Diabetes Mellitus"
              }
            }
          }
        ]
      }
    ]
  }
}