List problems = Context.getPatientService().getProblems(patient.getPerson());
and get the error like this :
Caused by: java.lang.NoSuchMethodError: org.openmrs.api.PatientService.getProblems(Lorg/openmrs/Person;)Ljava/util/List;
at org.openmrs.module.cwmrs.auditlog.fragment.controller.EncounterFragmentController.controller(EncounterFragmentController.java:41)
… 91 more
Any idea what happens?
Note: this error also occurs when getting Allergy by patient
What I referred to is OpenMRS Platform, which is thus version 2.3.2.
The module you’re attempting to run on that instance was compiled and built against a much older version of the Platform. Hence the error you bumped into.
OpenMrs core means the platform that you are using (openmrs.war) and additionally you are plugging the different modules as per your need, which is referred as Reference Application Modules.