If the patient_data is null Patient Portal get the pid for new patient is as null...