updated log creation with medical record number