rishabh997
(Rishabh Agarwal)
June 22, 2020, 12:34pm
10
The error seems to occur at
}
return "redirect:" + ui.pageLink("coreapps", "clinicianfacing/patient", SimpleObject.create("patientId", patient.getId(), "returnUrl", returnUrl));
} catch (APIException e) {
log.error(e.getMessage(), e);
return "redirect:" + ui.pageLink("coreapps", "markPatientDead", SimpleObject.create("patientId", patient.getId(), "returnUrl", returnUrl));
}
}
private Collection<ConceptAnswer> getConceptAnswers(Integer conceptId) {
Collection<ConceptAnswer> conceptAnswers = null;
Concept concept = Context.getConceptService().getConcept(conceptId);
if (concept != null) {
conceptAnswers = concept.getAnswers();
}
return conceptAnswers;
}
/**
* The Method closeActiveVisitsAfterDeath closes all active visits when a patient dies.
* @param patient
*/
Looking at this, I think modifications might be needed in conceptService as well. I am not familiar with the code of core-apps, but can give a try. Will need to setup IDE first for this.