Skip to content

Commit

Permalink
Fix unit test to use appropriate diagnosis service
Browse files Browse the repository at this point in the history
  • Loading branch information
mseaton committed May 6, 2024
1 parent df5c208 commit 2e3d7eb
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
import org.openmrs.Provider;
import org.openmrs.Visit;
import org.openmrs.api.ConceptService;
import org.openmrs.api.context.Context;
import org.openmrs.contrib.testdata.TestDataManager;
import org.openmrs.module.emrapi.EmrApiConstants;
import org.openmrs.module.emrapi.EmrApiProperties;
import org.openmrs.module.emrapi.adt.reporting.definition.MostRecentAdmissionRequestVisitDataDefinition;
import org.openmrs.module.emrapi.concept.EmrConceptService;
Expand Down Expand Up @@ -69,6 +71,8 @@ public void setup() throws Exception {
dispositionDescriptor = ContextSensitiveMetadataTestUtils.setupDispositionDescriptor(conceptService, dispositionService);
diagnosisMetadata = ContextSensitiveMetadataTestUtils.setupDiagnosisMetadata(conceptService, emrApiProperties);
context = new VisitEvaluationContext();
Context.getAdministrationService().setGlobalProperty(EmrApiConstants.GP_USE_LEGACY_DIAGNOSIS_SERVICE, "true");
Context.flushSession();
}

@Test
Expand Down

0 comments on commit 2e3d7eb

Please sign in to comment.