{
  "resourceType": "Encounter",
  "id": "Example-DataStandardsWales-Encounter-Inpatient",
  "meta": {
    "profile": [
      "https://fhir.hl7.org.uk/StructureDefinition/DataStandardsWales-Encounter"
    ]
  },
  "extension": [
    {
      "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-AdmissionMethod",
      "valueCodeableConcept": {
        "coding": [
          {
            "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-AdmissionMethodWales",
            "code": "13"
          }
        ]
      }
    },
    {
      "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-DischargeMethod",
      "valueCodeableConcept": {
        "coding": [
          {
            "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-DischargeMethodWales",
            "code": "2"
          }
        ]
      }
    }
  ],
  "status": "finished",
  "class": {
    "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
    "code": "IMP",
    "display": "inpatient encounter"
  },
  "subject": {
    "reference": "Patient/Example-DataStandardsWales-Patient-FtestLastname",
    "display": "Lastname, Ftest (NHS: 9912003444)"
  },
  "participant": [
    {
      "type": [
        {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
              "code": "CONS",
              "display": "consultant"
            }
          ]
        }
      ],
      "period": {
        "start": "2023-03-02T10:10:00+00:00",
        "end": "2023-03-02T10:10:00+00:00"
      },
      "individual": {
        "reference": "Practitioner/Example-DataStandardsWales-Practitioner-Doctor",
        "display": "Dr BELLAMY CHRIS (GMC: 2614324)"
      }
    }
  ],
  "period": {
    "start": "2023-02-25T17:07:00+00:00",
    "end": "2023-03-02T10:10:00+00:00"
  },
  "hospitalization": {
    "admitSource": {
      "coding": [
        {
          "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-SourceOfAdmissionWales",
          "code": "51",
          "display": "NHS HOSP OTHER PROV - GEN"
        }
      ]
    },
    "dischargeDisposition": {
      "coding": [
        {
          "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-DischargeDestinationWales",
          "code": "19",
          "display": "Own Home"
        }
      ]
    }
  },
  "location": [
    {
      "location": {
        "reference": "Location/Example-DataStandardsWales-Location-WardLW3",
        "display": "Ward LW3 (DENYS WARD LLANDOUGH)"
      }
    }
  ]
}