{
  "resourceType": "Encounter",
  "id": "encounter1",
  "status": "finished",
  "class": {
    "system": "http://terminology.hl7.org/ValueSet/encounter-class",
    "version": "2.0.1",
    "code": "IMP",
    "display": "inpatient encounter",
    "userSelected": false
  },
  "subject": {
    "reference": "Patient/patient1",
    "display": "John Doe"
  },
  "participant": [
    {
      "type": [
        {
          "text": "End-responsible physician"
        }
      ],
      "period": {
        "start": "2023-12-01T07:00:00Z",
        "end": "2023-12-02T12:00:00Z"
      },
      "individual": {
        "reference": "Practitioner/practitioner1",
        "display": "Internal Medicine Specialist"
      }
    },
    {
      "type": [
        {
          "text": "End-responsible physician"
        }
      ],
      "period": {
        "start": "2023-12-02T12:00:00Z",
        "end": "2023-12-04T10:00:00Z"
      },
      "individual": {
        "reference": "Practitioner/practitioner2",
        "display": "Intensive Care Specialist"
      }
    },
    {
      "type": [
        {
          "text": "End-responsible physician"
        }
      ],
      "period": {
        "start": "2023-12-04T10:00:00Z",
        "end": "2023-12-05T18:00:00Z"
      },
      "individual": {
        "reference": "Practitioner/practitioner1",
        "display": "Internal Medicine Specialist"
      }
    }
  ],
  "period": {
    "start": "2023-12-01T07:00:00Z",
    "end": "2023-12-05T18:00:00Z"
  },
  "hospitalization": {
    "id": "hospitalization1",
    "admitSource": {
      "coding": [
        {
          "system": "http://hl7.org/fhir/ValueSet/encounter-admit-source",
          "code": "emergency",
          "display": "Emergency Room"
        }
      ]
    },
    "dischargeDisposition": {
      "coding": [
        {
          "system": "http://hl7.org/fhir/ValueSet/encounter-discharge-disposition",
          "code": "home",
          "display": "Home"
        }
      ]
    }
  },
  "location": [
    {
      "location": {
        "reference": "Location/internal1",
        "display": "Internal Medicine Ward"
      },
      "physicalType": {
        "coding": [
          {
            "system": "http://terminology.hl7.org/CodeSystem/location-physical-type",
            "code": "wi",
            "display": "Ward"
          }
        ]
      },
      "period": {
        "start": "2023-12-01T07:00:00Z",
        "end": "2023-12-02T12:00:00Z"
      }
    },
    {
      "location": {
        "reference": "Location/icu1",
        "display": "ICU"
      },
      "physicalType": {
        "coding": [
          {
            "system": "http://terminology.hl7.org/CodeSystem/location-physical-type",
            "code": "wi",
            "display": "Ward"
          }
        ]
      },
      "period": {
        "start": "2023-12-02T12:00:00Z",
        "end": "2023-12-04T10:00:00Z"
      }
    },
    {
      "location": {
        "reference": "Location/internal1",
        "display": "Internal Medicine Ward"
      },
      "physicalType": {
        "coding": [
          {
            "system": "http://terminology.hl7.org/CodeSystem/location-physical-type",
            "code": "wi",
            "display": "Ward"
          }
        ]
      },
      "period": {
        "start": "2023-12-04T10:00:00Z",
        "end": "2023-12-05T18:00:00Z"
      }
    }
  ]
}