{
  "resourceType" : "Encounter",
  "id" : "example",
  "meta" : {
    "profile" : ["http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-encounter"]
  },
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: Encounter example</b></p><a name=\"example\"> </a><a name=\"hcexample\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-us-quality-core-encounter.html\">US Quality Core Encounter</a></p></div><p><b>identifier</b>: <code>http://hospital.example.org/encounter-ids</code>/ENC-2026-987654\u00a0(use:\u00a0official,\u00a0)</p><p><b>status</b>: Finished</p><p><b>class</b>: <a href=\"http://terminology.hl7.org/7.2.0/CodeSystem-v3-ActCode.html#v3-ActCode-IMP\">ActCode: IMP</a> (inpatient encounter)</p><p><b>type</b>: <span title=\"Codes:{http://snomed.info/sct 32485007}, {http://www.ama-assn.org/go/cpt 99223}\">Inpatient Hospital Admission</span></p><p><b>priority</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v3-ActPriority UR}\">urgent</span></p><p><b>subject</b>: <a href=\"Patient-example.html\">Example Patient</a></p><p><b>period</b>: 2026-08-01 10:30:00-0400 --&gt; 2026-08-05 14:00:00-0400</p><h3>Diagnoses</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Extension</b></td><td><b>Condition</b></td><td><b>Use</b></td><td><b>Rank</b></td></tr><tr><td style=\"display: none\">*</td><td/><td><a href=\"Condition-appendicitis-example.html\">Appendicitis</a></td><td><span title=\"Codes:{http://terminology.hl7.org/CodeSystem/diagnosis-role AD}\">Admission diagnosis</span></td><td>1</td></tr></table><h3>Hospitalizations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>DischargeDisposition</b></td></tr><tr><td style=\"display: none\">*</td><td><span title=\"Codes:{http://terminology.hl7.org/CodeSystem/discharge-disposition home}\">Discharged to Home</span></td></tr></table><h3>Locations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Location</b></td><td><b>Status</b></td><td><b>Period</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"Location-example.html\">South Wing, second floor</a></td><td>Completed</td><td>2026-08-01 11:00:00-0400 --&gt; 2026-08-05 14:00:00-0400</td></tr></table></div>"
  },
  "identifier" : [{
    "use" : "official",
    "system" : "http://hospital.example.org/encounter-ids",
    "value" : "ENC-2026-987654"
  }],
  "status" : "finished",
  "class" : {
    "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode",
    "code" : "IMP",
    "display" : "inpatient encounter"
  },
  "type" : [{
    "coding" : [{
      "system" : "http://snomed.info/sct",
      "code" : "32485007",
      "display" : "Hospital admission"
    },
    {
      "system" : "http://www.ama-assn.org/go/cpt",
      "code" : "99223",
      "display" : "Initial hospital inpatient or observation care, per day, for the evaluation and management of a patient, which requires a medically appropriate history and/or examination and high level of medical decision making. When using total time on the date of the encounter for code selection, 75 minutes must be met or exceeded."
    }],
    "text" : "Inpatient Hospital Admission"
  }],
  "priority" : {
    "coding" : [{
      "system" : "http://terminology.hl7.org/CodeSystem/v3-ActPriority",
      "code" : "UR",
      "display" : "urgent"
    }]
  },
  "subject" : {
    "reference" : "Patient/example",
    "display" : "Example Patient"
  },
  "period" : {
    "start" : "2026-08-01T10:30:00-04:00",
    "end" : "2026-08-05T14:00:00-04:00"
  },
  "diagnosis" : [{
    "extension" : [{
      "url" : "http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-diagnosis-present-on-admission",
      "valueCodeableConcept" : {
        "coding" : [{
          "system" : "https://www.cms.gov/Medicare/Medicare-Fee-for-Service-Payment/HospitalAcqCond/Coding",
          "code" : "Y"
        }],
        "text" : "Yes"
      }
    }],
    "condition" : {
      "reference" : "Condition/appendicitis-example",
      "display" : "Appendicitis"
    },
    "use" : {
      "coding" : [{
        "system" : "http://terminology.hl7.org/CodeSystem/diagnosis-role",
        "code" : "AD",
        "display" : "Admission diagnosis"
      }]
    },
    "rank" : 1
  }],
  "hospitalization" : {
    "dischargeDisposition" : {
      "coding" : [{
        "system" : "http://terminology.hl7.org/CodeSystem/discharge-disposition",
        "code" : "home",
        "display" : "Home"
      }],
      "text" : "Discharged to Home"
    }
  },
  "location" : [{
    "location" : {
      "reference" : "Location/example",
      "display" : "South Wing, second floor"
    },
    "status" : "completed",
    "period" : {
      "start" : "2026-08-01T11:00:00-04:00",
      "end" : "2026-08-05T14:00:00-04:00"
    }
  }]
}