This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Continuous Inpatient Stay (CIS) is an identifier for an unbroken period of time that | |
-- a patient spends as an inpatient. A patient may change consultant, significant | |
-- facility, speciality and/or hospital during a continuous inpatient stay. CIS can | |
-- be provided with Scottish SMR datasets. However, there are various rules associated | |
-- with CIS assignment that don't always map to study requirements (or are not | |
-- implemented correct - especially with older SMR records). The code below assigns | |
-- a naive CIS to an SMR dataset. That is, a given CIS will be assigned to contiguous | |
-- records based soley on date. No consideration is given to origin of record or type | |
-- of admission. |