{
  "resourceType": "Encounter",
  "meta": {
    "profile": [
      "https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-SHD-Encounter-1"
    ]
  },
  "contained": [
    {
      "resourceType": "Practitioner",
      "id": "shd-lead-clinician",
      "meta": {
        "profile": [
          "https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-SHD-Practitioner-1"
        ]
      },
      "name": [
        {
          "use": "official",
          "text": "Ms Laura Clarke"
        }
      ]
    },
    {
      "resourceType": "Location",
      "id": "shd-location",
      "meta": {
        "profile": [
          "https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-SHD-Location-1"
        ]
      },
      "name": "Ward 22",
      "managingOrganization": {
        "reference": "#shd-hospital"
      }
    },
    {
      "resourceType": "Organization",
      "id": "shd-hospital",
      "meta": {
        "profile": [
          "https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/CareConnect-SHD-Organization-1"
        ]
      },
      "identifier": [
        {
          "system": "https://fhir.nhs.uk/Id/ods-site-code",
          "value": "RK5BC"
        }
      ],
      "name": "King's Mill Hospital"
    }
  ],
  "extension": [
    {
      "extension": [
        {
          "url": "medicallyFitStatus",
          "valueCoding": {
            "system": "https://fhir.nottinghamshire.gov.uk/STU3/codesystem/SHD-MedicallyFitStatus",
            "code": "01"
          }
        },
        {
          "url": "dateDeemedMedicallyFit",
          "valueDateTime": "2021-04-13T08:56:00+00:00"
        }
      ],
      "url": "https://fhir.nottinghamshire.gov.uk/STU3/StructureDefinition/Extension-SHD-MedicallyFitDetails"
    }
  ],
  "identifier": [
    {
      "system": "https://fhir.nottinghamshire.gov.uk/encounter/identifier",
      "value": "{{encounterIdentifierValue}}"
    }
  ],
  "status": "in-progress",
  "type": [
    {
      "coding": [
        {
          "system": "https://fhir.nottinghamshire.gov.uk/encounter/type",
          "code": "supported-discharge"
        }
      ]
    }
  ],
  "participant": [
    {
      "individual": {
        "reference": "#shd-lead-clinician"
      }
    }
  ],
  "period": {
    "start": "2021-04-09T00:00:00+00:00",
    "end": "2021-04-17T00:00:00+00:00"
  },
  "reason": [
    {
      "text": "Description of the reason why the patient was admitted to hospital"
    }
  ],
  "location": [
    {
      "location": {
        "reference": "#shd-location"
      }
    }
  ]
}