Event local identifier system-generated number to 1 char N M The NHI number, Event type code, Event start datetime, distinguish two or more events of the Facility code and Event local identifier for a unique key for same type occurring on the same day at checking duplicates on insert or checking for existence on the same facility. delete. Use 9 first then ‘8,7,6…1’. Legal status date The date from which a healthcare user's 8 char CCYYMMDD M Partial dates not allowed. legal status applies. At one mandatory for psychiatric inpatient events (Event type ‘IM’). Must be after the Date of birth. Must be on or before the date portion of end datetime. May be before the date portion of Event start datetime. Must be on or after the Legal Status Start Date for the legal status code provided. Must be on or before the Legal Status End Date for the legal status code provided. Legal status code Code describing a healthcare user’s legal 2 char AA M At one mandatory for psychiatric inpatient events (Event status under the appropriate section of the type ‘IM’). Mental Health (Compulsory Assessment Left justified, ie, the second character can be a space. and Treatment) Act 1992, the Alcoholism and Drug Addiction Act 1966, the Code must be present in the Legal Status code table. Intellectual Disability (Compulsory Care and Rehabilitation) Act 2003, or the Criminal Procedure (Mentally Impaired Persons) Act 2003.
Event local identifier system-generated number to distinguish two or more events of the same type occurring on the same day at the same facility. 1 char N M The NHI number, Event type code, Event start datetime, Facility code and Event local identifier for a unique key for checking duplicates on insert or checking for existence on delete. Use 9 first then ‘8,7,6…1’. Legal status date The date from which a healthcare user's legal status applies. 8 char CCYYMMDD M Partial dates not allowed. At one mandatory for psychiatric inpatient events (Event type ‘IM’). Must be after the Date of birth. Must be on or before the date portion of end datetime. May be before the date portion of Event start datetime. Must be on or after the Legal Status Start Date for the legal status code provided. Must be on or before the Legal Status End Date for the legal status code provided. Legal status code Code describing a healthcare user’s legal status under the appropriate section of the Mental Health (Compulsory Assessment and Treatment) Act 1992, the Alcoholism and Drug Addiction Act 1966, the Intellectual Disability (Compulsory Care and Rehabilitation) Act 2003, or the Criminal Procedure (Mentally Impaired Persons) Act 2003. 2 char AA M At one mandatory for psychiatric inpatient events (Event type ‘IM’). Left justified, ie, the second character can be a space. Code must be present in the Legal Status code table.
nmds_file_specification_v15.6.docx