fixed bugs, wrote more tests, made the PatientServiceTest class cover create and update when calling jsonToModel or resourceToModel.