Encounter-OpenInpatient

{
    "resourceType": "Encounter",
    "id": "NCR-EncounterExample-OpenInpatient",
    "meta": {
        "profile":  [
            "https://fhir.yhcr.nhs.uk/StructureDefinition/Interweave-Encounter",
            "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Encounter-1"
        ]
    },
    "contained":  [
        {
            "resourceType": "Condition",
            "id": "NCR-ConditionExample",
            "meta": {
                "profile":  [
                    "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Condition-1"
                ]
            },
            "clinicalStatus": "active",
            "code": {
                "coding":  [
                    {
                        "system": "http://snomed.info/sct",
                        "code": "263225007",
                        "display": "Fracture of proximal end of femur"
                    }
                ]
            },
            "bodySite":  [
                {
                    "coding":  [
                        {
                            "system": "http://snomed.info/sct",
                            "code": "774117004",
                            "display": "Bone structure of proximal left femu"
                        }
                    ]
                }
            ],
            "subject": {
                "reference": "Patient/9690937286",
                "display": "Mr Horace SKELLY"
            },
            "assertedDate": "2022-09-25",
            "asserter": {
                "reference": "NCR-PractitionerExample-Acute01",
                "display": "Dr Pat CLIFTON"
            }
        }
    ],
    "extension":  [
        {
            "url": "https://fhir.yhcr.nhs.uk/StructureDefinition/Extension-Interweave-R4EncounterServiceType",
            "valueCodeableConcept": {
                "coding":  [
                    {
                        "system": "http://snomed.info/sct",
                        "code": "23871000087101",
                        "display": "Adult dermatology service"
                    }
                ]
            }
        }
    ],
    "identifier":  [
        {
            "system": "http://fhir.nuh.nhs.uk/encounter/identifier",
            "value": "I2200722172S"
        }
    ],
    "status": "in-progress",
    "statusHistory":  [
        {
            "status": "in-progress",
            "period": {
                "start": "2022-09-25T19:23:34.283Z"
            }
        }
    ],
    "class": {
        "system": "http://hl7.org/fhir/v3/ActCode",
        "code": "ACUTE",
        "display": "inpatient acute"
    },
    "type":  [
        {
            "coding":  [
                {
                    "system": "http://snomed.info/sct",
                    "code": "185212007",
                    "display": "Seen in hospital ward"
                }
            ]
        }
    ],
    "priority": {
        "coding":  [
            {
                "system": "http://hl7.org/fhir/v3/ActPriority",
                "code": "EM",
                "display": "emergency"
            }
        ]
    },
    "subject": {
        "reference": "Patient/9690937286",
        "display": "Mr Horace SKELLY"
    },
    "participant":  [
        {
            "type":  [
                {
                    "coding":  [
                        {
                            "system": "http://hl7.org/fhir/v3/ParticipationType",
                            "code": "PPRF",
                            "display": "primary performer"
                        }
                    ]
                }
            ],
            "individual": {
                "reference": "Practitioner/NCR-PractitionerExample-Acute01",
                "display": "Dr Pat CLIFTON"
            }
        },
        {
            "type":  [
                {
                    "coding":  [
                        {
                            "system": "http://hl7.org/fhir/v3/ParticipationType",
                            "code": "ADM",
                            "display": "admitter"
                        }
                    ]
                }
            ],
            "individual": {
                "reference": "Practitioner/NCR-PractitionerExample-Acute01",
                "display": "Dr Pat CLIFTON"
            }
        },
        {
            "type":  [
                {
                    "coding":  [
                        {
                            "system": "http://hl7.org/fhir/v3/ParticipationType",
                            "code": "PART",
                            "display": "Participation"
                        }
                    ]
                }
            ],
            "individual": {
                "reference": "Practitioner/NCR-PractitionerExample-Acute02",
                "display": "Nisha BAINS"
            }
        }
    ],
    "period": {
        "start": "2022-09-25T19:23:34.283Z"
    },
    "reason":  [
        {
            "coding":  [
                {
                    "system": "http://snomed.info/sct",
                    "code": "1912002",
                    "display": "Fall"
                }
            ]
        }
    ],
    "diagnosis":  [
        {
            "condition": {
                "reference": "#NCR-ConditionExample",
                "display": "Fracture of proximal end of femur"
            },
            "role": {
                "coding":  [
                    {
                        "system": "http://hl7.org/fhir/diagnosis-role",
                        "code": "CC",
                        "display": "Chief complaint"
                    }
                ]
            },
            "rank": 1
        }
    ],
    "hospitalization": {
        "extension":  [
            {
                "extension":  [
                    {
                        "url": "status",
                        "valueCode": "ready"
                    },
                    {
                        "url": "predictedDate",
                        "valueDateTime": "2022-09-30T09:00:00Z"
                    },
                    {
                        "url": "actualDate",
                        "valueDateTime": "2022-10-03T10:20:00Z"
                    }
                ],
                "url": "https://fhir.yhcr.nhs.uk/StructureDefinition/Extension-Interweave-MedicallySafeForDischarge"
            }
        ]
    },
    "location":  [
        {
            "location": {
                "reference": "Location/NCR-LocationExample-Ward01",
                "display": "Queens Medical Centre: South Block: B Floor: Ward SB47"
            },
            "status": "completed",
            "period": {
                "start": "2022-09-25T19:23:34.283Z",
                "end": "2022-10-01T08:04:42.342Z"
            }
        },
        {
            "location": {
                "reference": "Location/NCR-LocationExample-Ward02",
                "display": "Queens Medical Centre: South Block: B Floor: Ward SB48"
            },
            "status": "active",
            "period": {
                "start": "2022-10-01T08:04:42.342Z"
            }
        }
    ]
}