Create a unique patient level id (if it does not already exist)
Source:R/augment-avoncap.R
derive_patient_identifier.Rd
The patient identifier is derived from the record number or the first record number (ensuring it matches) an entry in the record number. This deals with multiple admissions in the data set. In the patient identifiable NHS data this is the NHS number.