adding simple check for patient_id existence in params and not 500