Fixed medical card template update, medical card creation for new
patient, updating medical card for patient.