“…Individuals with dementia were identified as those who had been registered with a dementia diagnosis (in the National Patient Registry or Psychiatric Central Research Registry) as the main or secondary diagnosis during admission or at an outpatient visit (ICD-8 codes: 290.10, 293.09-19, 290.11, 290.09-19; ICD-10 codes: F00.0, F00.1, F00.2, F00.9, F01.0, F01.1, F01.2, F01.3, F01.8, F01.9, F02.0, F03, G30.0, G30.1, G30.8, G30.9, G31.8, G31.9) and/or who had filled in a prescription for an antidementia drug (ATC: N06D) before the date of admission for the hip fracture. The individuals had to be ≥60 years at the time of the dementia diagnosis and/or first prescription, since the validity of diagnoses before that age has been shown to be low [26]. The remaining individuals formed the group without dementia.…”