Hello All,
Can anyone see why I can not update a person doing this:
Patient pa = patientService.getPatient(57); Integer pid = pa.getPersonId(); Person person = Context.getPersonService().getPerson(pid);
Concept concept = Context.getConceptService().getConcept(5002);
System.out.println("The patient pid: " + pid + " ...");
person.setGender("M");
//person.setDead(true);
//person.setDeathDate(Calendar.getInstance().getTime());
//person.setCauseOfDeath(concept);
Context.getPersonService().savePerson(person);
System.out.println(" dead patient updated...");
I am getting the error:
hibernate not-null property references a null or transient value: org.openmrs.PersonAttribute.value
Thanks.