Encounter-ClosedInpatient

{
    "resourceType": "Encounter",
    "id": "NCR-EncounterExample-ClosedInpatient",
    "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-ConditionExample1",
            "meta": {
                "profile":  [
                    "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Condition-1"
                ]
            },
            "clinicalStatus": "active",
            "category":  [
                {
                    "coding":  [
                        {
                            "system": "http://hl7.org/fhir/condition-category",
                            "code": "encounter-diagnosis",
                            "display": "Encounter Diagnosis"
                        }
                    ]
                }
            ],
            "code": {
                "coding":  [
                    {
                        "system": "http://hl7.org/fhir/sid/icd-10",
                        "code": "T855",
                        "display": "Mechanical complication of gastrointestinal prosthetic devices, implants and grafts"
                    }
                ]
            },
            "subject": {
                "reference": "Patient/9690937286",
                "display": "Mr Horace SKELLY"
            },
            "context": {
                "reference": "Encounter/NCR-EncounterExample-ClosedInpatient"
            },
            "onsetDateTime": "2022-05-29",
            "assertedDate": "2022-05-29T07:55:30.047+00:00",
            "asserter": {
                "display": "Dr Manu Bjorn  (C1234567)"
            }
        },
        {
            "resourceType": "Condition",
            "id": "NCR-ConditionExample2",
            "meta": {
                "profile":  [
                    "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Condition-1"
                ]
            },
            "clinicalStatus": "active",
            "category":  [
                {
                    "coding":  [
                        {
                            "system": "http://hl7.org/fhir/condition-category",
                            "code": "encounter-diagnosis",
                            "display": "Encounter Diagnosis"
                        }
                    ]
                }
            ],
            "code": {
                "coding":  [
                    {
                        "system": "http://hl7.org/fhir/sid/icd-10",
                        "code": "T857",
                        "display": "Infection and inflammatory reaction due to other internal prosthetic devices, implants and grafts"
                    }
                ]
            },
            "subject": {
                "reference": "Patient/9690937286",
                "display": "Mr Horace SKELLY"
            },
            "context": {
                "reference": "Encounter/NCR-EncounterExample-ClosedInpatient"
            },
            "onsetDateTime": "2022-05-29",
            "assertedDate": "2022-05-29T07:55:30.047+00:00",
            "asserter": {
                "display": "Dr Manu Bjorn  (C1234567)"
            }
        },
        {
            "resourceType": "Condition",
            "id": "NCR-ConditionExample3",
            "meta": {
                "profile":  [
                    "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Condition-1"
                ]
            },
            "clinicalStatus": "active",
            "category":  [
                {
                    "coding":  [
                        {
                            "system": "http://hl7.org/fhir/condition-category",
                            "code": "encounter-diagnosis",
                            "display": "Encounter Diagnosis"
                        }
                    ]
                }
            ],
            "code": {
                "coding":  [
                    {
                        "system": "http://hl7.org/fhir/sid/icd-10",
                        "code": "Y833",
                        "display": "Surgical operation with formation of external stoma"
                    }
                ]
            },
            "subject": {
                "reference": "Patient/9690937286",
                "display": "Mr Horace SKELLY"
            },
            "context": {
                "reference": "Encounter/NCR-EncounterExample-ClosedInpatient"
            },
            "onsetDateTime": "2022-05-29",
            "assertedDate": "2022-05-29T07:55:30.047+00:00",
            "asserter": {
                "display": "Dr Manu Bjorn  (C1234567)"
            }
        },
        {
            "resourceType": "Condition",
            "id": "NCR-ConditionExample4",
            "meta": {
                "profile":  [
                    "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Condition-1"
                ]
            },
            "clinicalStatus": "active",
            "category":  [
                {
                    "coding":  [
                        {
                            "system": "http://hl7.org/fhir/condition-category",
                            "code": "encounter-diagnosis",
                            "display": "Encounter Diagnosis"
                        }
                    ]
                }
            ],
            "code": {
                "coding":  [
                    {
                        "system": "http://hl7.org/fhir/sid/icd-10",
                        "code": "K432",
                        "display": "Incisional hernia without obstruction or gangrene"
                    }
                ]
            },
            "subject": {
                "reference": "Patient/9690937286",
                "display": "Mr Horace SKELLY"
            },
            "context": {
                "reference": "Encounter/NCR-EncounterExample-ClosedInpatient"
            },
            "onsetDateTime": "2022-05-29",
            "assertedDate": "2022-05-29T07:55:30.047+00:00",
            "asserter": {
                "display": "Dr Manu Bjorn  (C1234567)"
            }
        },
        {
            "resourceType": "Condition",
            "id": "NCR-ConditionExample5",
            "meta": {
                "profile":  [
                    "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Condition-1"
                ]
            },
            "clinicalStatus": "active",
            "category":  [
                {
                    "coding":  [
                        {
                            "system": "http://hl7.org/fhir/condition-category",
                            "code": "encounter-diagnosis",
                            "display": "Encounter Diagnosis"
                        }
                    ]
                }
            ],
            "code": {
                "coding":  [
                    {
                        "system": "http://hl7.org/fhir/sid/icd-10",
                        "code": "K219",
                        "display": "Gastro-oesophageal reflux disease without oesophagitis"
                    }
                ]
            },
            "subject": {
                "reference": "Patient/9690937286",
                "display": "Mr Horace SKELLY"
            },
            "context": {
                "reference": "Encounter/NCR-EncounterExample-ClosedInpatient"
            },
            "onsetDateTime": "2022-05-29",
            "assertedDate": "2022-05-29T07:55:30.047+00:00",
            "asserter": {
                "display": "Dr Manu Bjorn  (C1234567)"
            }
        },
        {
            "resourceType": "Condition",
            "id": "NCR-ConditionExample6",
            "meta": {
                "profile":  [
                    "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Condition-1"
                ]
            },
            "clinicalStatus": "active",
            "category":  [
                {
                    "coding":  [
                        {
                            "system": "http://hl7.org/fhir/condition-category",
                            "code": "encounter-diagnosis",
                            "display": "Encounter Diagnosis"
                        }
                    ]
                }
            ],
            "code": {
                "coding":  [
                    {
                        "system": "http://hl7.org/fhir/sid/icd-10",
                        "code": "J459",
                        "display": "Asthma, unspecified"
                    }
                ]
            },
            "subject": {
                "reference": "Patient/9690937286",
                "display": "Mr Horace SKELLY"
            },
            "context": {
                "reference": "Encounter/NCR-EncounterExample-ClosedInpatient"
            },
            "onsetDateTime": "2022-05-29",
            "assertedDate": "2022-05-29T07:55:30.047+00:00",
            "asserter": {
                "display": "Dr Manu Bjorn  (C1234567)"
            }
        },
        {
            "resourceType": "Condition",
            "id": "NCR-ConditionExample7",
            "meta": {
                "profile":  [
                    "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Condition-1"
                ]
            },
            "clinicalStatus": "active",
            "category":  [
                {
                    "coding":  [
                        {
                            "system": "http://hl7.org/fhir/condition-category",
                            "code": "encounter-diagnosis",
                            "display": "Encounter Diagnosis"
                        }
                    ]
                }
            ],
            "code": {
                "coding":  [
                    {
                        "system": "http://hl7.org/fhir/sid/icd-10",
                        "code": "Z931",
                        "display": "Gastrostomy status"
                    }
                ]
            },
            "subject": {
                "reference": "Patient/9690937286",
                "display": "Mr Horace SKELLY"
            },
            "context": {
                "reference": "Encounter/NCR-EncounterExample-ClosedInpatient"
            },
            "onsetDateTime": "2022-05-29",
            "assertedDate": "2022-05-29T07:55:30.047+00:00",
            "asserter": {
                "display": "Dr Manu Bjorn  (C1234567)"
            }
        }
    ],
    "extension":  [
        {
            "url": "https://fhir.yhcr.nhs.uk/StructureDefinition/Extension-Interweave-R4EncounterServiceType",
            "valueCodeableConcept": {
                "coding":  [
                    {
                        "system": "http://snomed.info/sct",
                        "code": "310151004",
                        "display": "Gastrointestinal surgery service"
                    }
                ]
            }
        }
    ],
    "identifier":  [
        {
            "system": "http://fhir.nuh.nhs.uk/encounter/identifier",
            "value": "I2200722123S"
        }
    ],
    "status": "finished",
    "statusHistory":  [
        {
            "status": "in-progress",
            "period": {
                "start": "2022-05-26T10:00:00Z",
                "end": "2022-05-28T17:00:00Z"
            }
        },
        {
            "status": "finished",
            "period": {
                "start": "2022-05-28T17:00:00Z"
            }
        }
    ],
    "class": {
        "system": "http://hl7.org/fhir/v3/ActCode",
        "code": "IMP",
        "display": "inpatient encounter"
    },
    "type":  [
        {
            "coding":  [
                {
                    "system": "http://snomed.info/sct",
                    "code": "185212007",
                    "display": "Seen in hospital ward"
                }
            ]
        }
    ],
    "priority": {
        "coding":  [
            {
                "system": "http://hl7.org/fhir/v3/ActPriority",
                "code": "EL",
                "display": "elective"
            }
        ]
    },
    "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-05-26T10:00:00Z",
        "end": "2022-05-28T17:00:00Z"
    },
    "reason":  [
        {
            "coding":  [
                {
                    "system": "http://snomed.info/sct",
                    "code": "119292006",
                    "display": "Disorder of gastrointestinal tract"
                }
            ]
        }
    ],
    "diagnosis":  [
        {
            "condition": {
                "reference": "#NCR-ConditionExample1",
                "display": "Mechanical complication of gastrointestinal prosthetic devices, implants and grafts"
            },
            "role": {
                "coding":  [
                    {
                        "system": "http://hl7.org/fhir/diagnosis-role",
                        "code": "CC",
                        "display": "Chief complaint"
                    }
                ]
            },
            "rank": 1
        },
        {
            "condition": {
                "reference": "#NCR-ConditionExample2",
                "display": "Infection and inflammatory reaction due to other internal prosthetic devices, implants and grafts"
            },
            "role": {
                "coding":  [
                    {
                        "system": "http://hl7.org/fhir/diagnosis-role",
                        "code": "DD",
                        "display": "Discharge diagnosis"
                    }
                ]
            },
            "rank": 2
        },
        {
            "condition": {
                "reference": "#NCR-ConditionExample3",
                "display": "Surgical operation with formation of external stoma"
            },
            "role": {
                "coding":  [
                    {
                        "system": "http://hl7.org/fhir/diagnosis-role",
                        "code": "DD",
                        "display": "Discharge diagnosis"
                    }
                ]
            },
            "rank": 2
        },
        {
            "condition": {
                "reference": "#NCR-ConditionExample4",
                "display": "Incisional hernia without obstruction or gangrene"
            },
            "role": {
                "coding":  [
                    {
                        "system": "http://hl7.org/fhir/diagnosis-role",
                        "code": "DD",
                        "display": "Discharge diagnosis"
                    }
                ]
            },
            "rank": 2
        },
        {
            "condition": {
                "reference": "#NCR-ConditionExample5",
                "display": "Gastro-oesophageal reflux disease without oesophagitis"
            },
            "role": {
                "coding":  [
                    {
                        "system": "http://hl7.org/fhir/diagnosis-role",
                        "code": "DD",
                        "display": "Discharge diagnosis"
                    }
                ]
            },
            "rank": 2
        },
        {
            "condition": {
                "reference": "#NCR-ConditionExample6",
                "display": "Asthma, unspecified"
            },
            "role": {
                "coding":  [
                    {
                        "system": "http://hl7.org/fhir/diagnosis-role",
                        "code": "DD",
                        "display": "Discharge diagnosis"
                    }
                ]
            },
            "rank": 2
        },
        {
            "condition": {
                "reference": "#NCR-ConditionExample7",
                "display": "Gastrostomy status"
            },
            "role": {
                "coding":  [
                    {
                        "system": "http://hl7.org/fhir/diagnosis-role",
                        "code": "DD",
                        "display": "Discharge diagnosis"
                    }
                ]
            },
            "rank": 2
        }
    ],
    "hospitalization": {
        "extension":  [
            {
                "url": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-AdmissionMethod-1",
                "valueCodeableConcept": {
                    "coding":  [
                        {
                            "system": "https://fhir.hl7.org.uk/STU3/CodeSystem/CareConnect-AdmissionMethod-1",
                            "code": "13",
                            "display": "Planned"
                        }
                    ]
                }
            },
            {
                "url": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-DischargeMethod-1",
                "valueCodeableConcept": {
                    "coding":  [
                        {
                            "system": "https://fhir.hl7.org.uk/STU3/CodeSystem/CareConnect-DischargeMethod-1",
                            "code": "1",
                            "display": "Patient discharged on clinical advice or with clinical consent"
                        }
                    ]
                }
            },
            {
                "extension":  [
                    {
                        "url": "status",
                        "valueCode": "ready"
                    },
                    {
                        "url": "predictedDate",
                        "valueDateTime": "2022-05-28"
                    },
                    {
                        "url": "actualDate",
                        "valueDateTime": "2022-05-29T12:30:00Z"
                    }
                ],
                "url": "https://fhir.yhcr.nhs.uk/StructureDefinition/Extension-Interweave-MedicallySafeForDischarge"
            }
        ],
        "origin": {
            "reference": "#NCRLocationHouseAdmissionExample",
            "display": "3 Bowesfield Crescent, Stockton-On-Tees, TS18 3BL"
        },
        "admitSource": {
            "coding":  [
                {
                    "system": "https://fhir.hl7.org.uk/STU3/CodeSystem/CareConnect-SourceOfAdmission-1",
                    "code": "19",
                    "display": "Usual place of residence unless listed below, for example, a private dwelling whether owner occupied or owned by Local Authority, housing association or other landlord. This includes wardened accommodation but not residential accommodation where health care is provided. It also includes Patients with no fixed abode."
                }
            ]
        },
        "destination": {
            "reference": "#NCRLocationHouseAdmissionExample",
            "display": "3 Bowesfield Crescent, Stockton-On-Tees, TS18 3BL"
        },
        "dischargeDisposition": {
            "coding":  [
                {
                    "system": "https://fhir.yhcr.nhs.uk/CodeSystem/Interweave-DischargeDestination-1",
                    "code": "19",
                    "display": "Usual place of residence unless listed below, for example, a private dwelling whether owner occupied or owned by Local Authority, housing association or other landlord. This includes wardened accommodation but not residential accommodation where health care is provided. It also includes Patients with no fixed abode."
                }
            ]
        }
    },
    "location":  [
        {
            "location": {
                "reference": "Location/NCR-LocationExample-Ward01",
                "display": "Queens Medical Centre: South Block: B Floor: Ward SB47"
            },
            "status": "completed",
            "period": {
                "start": "2022-05-26T10:00:00Z",
                "end": "2022-05-27T09:10:00Z"
            }
        },
        {
            "location": {
                "reference": "Location/NCR-LocationExample-Ward02",
                "display": "Queens Medical Centre: South Block: B Floor: Ward SB48"
            },
            "status": "completed",
            "period": {
                "start": "2022-05-27T09:10:00Z",
                "end": "2022-05-28T17:00:00Z"
            }
        }
    ]
}