Added code to add the new patient with almost all the fields in the entity, and also code to check if any of the text fields are empty and if so show an alert to the user.