pull out patientId