link_ae_inpatient function

Link A&E to Inpatient records