{
  "fields": [{"type":"int","id":"_id"},{"info":{"notes":"","type_override":"","label":"The data source that is reported from.  SMR04 covers psychiatric inpatient records."},"type":"text","id":"Dataset"},{"info":{"notes":"","type_override":"","label":"Denotes the financial years covered by this dataset.  Financial years start on 1 April and end on 31 March.  This file shows data for the six-year period from 1 April 2016 to 31 March 2022."},"type":"text","id":"TimeRange"},{"info":{"notes":"[Country label](https://www.opendata.nhs.scot/dataset/geography-codes-and-labels/resource/9c6e6c56-2697-4184-92c6-60d69c2b6792)","type_override":"","label":"9-digit code for NHS Scotland as a whole."},"type":"text","id":"Country"},{"info":{"notes":"","type_override":"","label":"Refers to the patient's age on discharge.  Ages have been arranged in seven different groups."},"type":"text","id":"AgeGroup"},{"info":{"notes":"","type_override":"","label":"The patient's sex, as recorded on discharge. "},"type":"text","id":"Sex"},{"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)","type_override":"","label":"A qualifier to give extra information about the discharge count."},"type":"text","id":"DischargesCountQF"},{"info":{"notes":"","type_override":"","label":"The total number of patients.  Patients are counted only once in each 6-year period under consideration here, regardless of whether they have had multiple discharges."},"type":"numeric","id":"PatientsCount"},{"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 patient count."},"type":"text","id":"PatientsCountQF"}],
  "records": [
    [1,"SMR04","2017-2022","S92000003","< 15","Male",992," ",21," "],
    [2,"SMR04","2017-2022","S92000003","15 - 24","Male",504," ",97," "],
    [3,"SMR04","2017-2022","S92000003","25 - 34","Male",216," ",108," "],
    [4,"SMR04","2017-2022","S92000003","35 - 44","Male",122," ",55," "],
    [5,"SMR04","2017-2022","S92000003","45 - 54","Male",120," ",68," "],
    [6,"SMR04","2017-2022","S92000003","55 - 64","Male",163," ",69," "],
    [7,"SMR04","2017-2022","S92000003","65+","Male",59," ",23," "],
    [8,"SMR04","2017-2022","S92000003","All ages","Male",2176,"d",441,"d"],
    [9,"SMR04","2017-2022","S92000003","< 15","Female",646," ",10," "],
    [10,"SMR04","2017-2022","S92000003","15 - 24","Female",597," ",83," "],
    [11,"SMR04","2017-2022","S92000003","25 - 34","Female",193," ",81," "],
    [12,"SMR04","2017-2022","S92000003","35 - 44","Female",143," ",60," "],
    [13,"SMR04","2017-2022","S92000003","45 - 54","Female",100," ",54," "],
    [14,"SMR04","2017-2022","S92000003","55 - 64","Female",92," ",49," "],
    [15,"SMR04","2017-2022","S92000003","65+","Female",16," ",13," "],
    [16,"SMR04","2017-2022","S92000003","All ages","Female",1787,"d",350,"d"],
    [17,"SMR04","2017-2022","S92000003","15 - 24","All",1101,"d",180,"d"],
    [18,"SMR04","2017-2022","S92000003","25 - 34","All",409,"d",189,"d"],
    [19,"SMR04","2017-2022","S92000003","35 - 44","All",265,"d",115,"d"],
    [20,"SMR04","2017-2022","S92000003","45 - 54","All",220,"d",122,"d"],
    [21,"SMR04","2017-2022","S92000003","55 - 64","All",255,"d",118,"d"],
    [22,"SMR04","2017-2022","S92000003","65+","All",75,"d",36,"d"],
    [23,"SMR04","2017-2022","S92000003","< 15","All",1638,"d",31,"d"],
    [24,"SMR04","2017-2022","S92000003","All ages","All",3963,"d",791,"d"]
]}
