{
  "fields": [{"type":"int","id":"_id"},{"info":{"notes":"","type_override":"","label":"The data source that is reported from.  SMR04 covers psychiatric records."},"type":"text","id":"Dataset"},{"info":{"notes":"","type_override":"","label":"Financial years start on 1 April and end on 31 March.  For example, financial year 2017/2018 covers the period 1 April 2017 – 31 March 2018."},"type":"text","id":"TimeRange"},{"info":{"notes":"[Country label](https://www.opendata.nhs.scot/dataset/geography-codes-and-labels/resource/9c6e6c56-2697-4184-92c6-60d69c2b6792)\r\n","type_override":"","label":"9-digit code for NHS Scotland as a whole."},"type":"text","id":"Country"},{"info":{"notes":"","type_override":"","label":"Indicates whether a discharge from an inpatient or day case episode is regular, irregular (e.g. self-discharge) or as a result of the patients death."},"type":"text","id":"DischargeType"},{"info":{"notes":"","type_override":"","label":"The total number of discharges.  A hospital discharge marks the end of an episode of care.  Discharges include deaths, transfers to other specialties, significant facilities and hospitals, and discharges home or to other regular place of residence. "},"type":"numeric","id":"DischargesCount"},{"info":{"notes":"[Qualifier information](https://www.opendata.nhs.scot/dataset/statistical-qualifiers/resource/b80f9af0-b115-4245-b591-fb22775226c4)\r\n","type_override":"","label":"A qualifier to give extra information about the discharge count."},"type":"text","id":"DischargesCountQF"}],
  "records": [
    [1,"SMR04","2017-2022","S92000003","10 - Regular discharge, no additional detail added",221," "],
    [2,"SMR04","2017-2022","S92000003","11 - Discharge from NHS inpatient/day case care",3113," "],
    [3,"SMR04","2017-2022","S92000003","12 - Transfer within the same Health Board/Health Care Provider",528," "],
    [4,"SMR04","2017-2022","S92000003","13 - Transfer to another Health Board/Health Care Provider",43," "],
    [5,"SMR04","2017-2022","S92000003","18 - Other type of regular discharge",26," "],
    [6,"SMR04","2017-2022","S92000003","19 - Regular discharge, type not known",2," "],
    [7,"SMR04","2017-2022","S92000003","1X - Regular Discharge",3933,"d"],
    [8,"SMR04","2017-2022","S92000003","21 - Patient discharged himself/herself against medical advice",16," "],
    [9,"SMR04","2017-2022","S92000003","22 - Patient discharged by relative",5," "],
    [10,"SMR04","2017-2022","S92000003","28 - Other type of irregular discharge",1," "],
    [11,"SMR04","2017-2022","S92000003","2X - Irregular Discharge",22,"d"],
    [12,"SMR04","2017-2022","S92000003","40 - Death, no additional detail added",2," "],
    [13,"SMR04","2017-2022","S92000003","42 - Death - No Post Mortem",3," "],
    [14,"SMR04","2017-2022","S92000003","43 - Death - whilst on pass",3," "],
    [15,"SMR04","2017-2022","S92000003","4X - Death",8,"d"]
]}
