{
  "resourceType": "Encounter",
  "id": "example",
  "meta": {
    "profile": [
      "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"
    ]
  },
  "text": {
    "status": "extensions",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative</b></p><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\">Resource \"example\" </p><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-qicore-encounter.html\">QICoreEncounter</a></p></div><blockquote><p><b>EncounterProcedureExtension</b></p><p><b>value</b>: Excision of appendix (procedure) <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"https://browser.ihtsdotools.org/\">SNOMED CT</a>#80146002)</span></p><p><b>value</b>: 1</p><p><b>value</b>: <a href=\"Procedure-example.html\">Procedure/example</a></p></blockquote><p><b>status</b>: in-progress</p><p><b>class</b>: inpatient encounter (Details: http://terminology.hl7.org/CodeSystem/v3-ActCode code IMP = 'inpatient encounter', stated as 'inpatient encounter')</p><p><b>type</b>: Inpatient Hospital Care <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"http://terminology.hl7.org/3.0.0/CodeSystem-CPT.html\">Current Procedural Terminology (CPT&reg;)</a>#99223)</span></p><p><b>subject</b>: <a href=\"Patient-example.html\">Patient/example</a> \" CHALMERS\"</p><h3>Diagnoses</h3><table class=\"grid\"><tr><td>-</td><td><b>Extension</b></td><td><b>Condition</b></td></tr><tr><td>*</td><td></td><td><a href=\"Condition-appendicitis-example.html\">Condition/appendicitis-example</a></td></tr></table></div>"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter-procedure",
      "extension": [
        {
          "url": "type",
          "valueCodeableConcept": {
            "coding": [
              {
                "system": "http://snomed.info/sct",
                "code": "80146002",
                "display": "Excision of appendix (procedure)"
              }
            ],
            "text": "Excision of appendix (procedure)"
          }
        },
        {
          "url": "rank",
          "valuePositiveInt": 1
        },
        {
          "url": "procedure",
          "valueReference": {
            "reference": "Procedure/example"
          }
        }
      ]
    }
  ],
  "status": "in-progress",
  "class": {
    "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
    "code": "IMP",
    "display": "inpatient encounter"
  },
  "type": [
    {
      "coding": [
        {
          "system": "http://www.ama-assn.org/go/cpt",
          "code": "99223",
          "display": "Inpatient Hospital Care"
        }
      ]
    }
  ],
  "subject": {
    "reference": "Patient/example"
  },
  "diagnosis": [
    {
      "extension": [
        {
          "url": "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter-diagnosisPresentOnAdmission",
          "valueCodeableConcept": {
            "coding": [
              {
                "system": "https://www.cms.gov/Medicare/Medicare-Fee-for-Service-Payment/HospitalAcqCond/Coding",
                "code": "Y",
                "display": "Yes"
              }
            ]
          }
        }
      ],
      "condition": {
        "reference": "Condition/appendicitis-example"
      }
    }
  ]
}