Search in sources :

Example 1 with EmrConceptService

use of org.openmrs.module.emrapi.concept.EmrConceptService in project openmrs-module-coreapps by openmrs.

the class ParserEncounterIntoSimpleObjectsTest method setUp.

@Before
public void setUp() throws Exception {
    emrApiProperties = mock(EmrApiProperties.class);
    conceptService = mock(ConceptService.class);
    locationService = mock(LocationService.class);
    dispositionService = mock(DispositionService.class);
    MockMetadataTestUtil.setupMockConceptService(conceptService, emrApiProperties);
    emrConceptService = mock(EmrConceptService.class);
    diagnosisMetadata = MockMetadataTestUtil.setupDiagnosisMetadata(emrApiProperties, conceptService);
    dispositionDescriptor = MockMetadataTestUtil.setupDispositionDescriptor(conceptService);
    when(dispositionService.getDispositionDescriptor()).thenReturn(dispositionDescriptor);
    TestUiUtils testUiUtils = new TestUiUtils();
    testUiUtils.setMockFormattingConcepts(true);
    uiUtils = testUiUtils;
    encounter = new Encounter();
    parser = new ParserEncounterIntoSimpleObjects(encounter, uiUtils, emrApiProperties, locationService, dispositionService);
}
Also used : DispositionService(org.openmrs.module.emrapi.disposition.DispositionService) LocationService(org.openmrs.api.LocationService) TestUiUtils(org.openmrs.module.appui.TestUiUtils) EmrApiProperties(org.openmrs.module.emrapi.EmrApiProperties) Encounter(org.openmrs.Encounter) EmrConceptService(org.openmrs.module.emrapi.concept.EmrConceptService) ConceptService(org.openmrs.api.ConceptService) EmrConceptService(org.openmrs.module.emrapi.concept.EmrConceptService) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 Encounter (org.openmrs.Encounter)1 ConceptService (org.openmrs.api.ConceptService)1 LocationService (org.openmrs.api.LocationService)1 TestUiUtils (org.openmrs.module.appui.TestUiUtils)1 EmrApiProperties (org.openmrs.module.emrapi.EmrApiProperties)1 EmrConceptService (org.openmrs.module.emrapi.concept.EmrConceptService)1 DispositionService (org.openmrs.module.emrapi.disposition.DispositionService)1