Search in sources :

Example 6 with EmrApiProperties

use of org.openmrs.module.emrapi.EmrApiProperties in project openmrs-module-pihcore by PIH.

the class ZplLabLabelTemplateTest method setup.

@Before
public void setup() {
    primaryIdentifierType = new PatientIdentifierType();
    template = new ZplLabLabelTemplate();
    EmrApiProperties emrApiProperties = mock(EmrApiProperties.class);
    when(emrApiProperties.getPrimaryIdentifierType()).thenReturn(primaryIdentifierType);
    template.setEmrApiProperties(emrApiProperties);
}
Also used : EmrApiProperties(org.openmrs.module.emrapi.EmrApiProperties) ZplLabLabelTemplate(org.openmrs.module.pihcore.printer.template.ZplLabLabelTemplate) PatientIdentifierType(org.openmrs.PatientIdentifierType) Before(org.junit.Before)

Aggregations

EmrApiProperties (org.openmrs.module.emrapi.EmrApiProperties)6 Before (org.junit.Before)4 Encounter (org.openmrs.Encounter)3 PatientIdentifierType (org.openmrs.PatientIdentifierType)3 EncounterType (org.openmrs.EncounterType)2 Location (org.openmrs.Location)2 Visit (org.openmrs.Visit)2 ConceptService (org.openmrs.api.ConceptService)2 DispositionService (org.openmrs.module.emrapi.disposition.DispositionService)2 Test (org.junit.Test)1 Matchers.anyString (org.mockito.Matchers.anyString)1 Patient (org.openmrs.Patient)1 LocationService (org.openmrs.api.LocationService)1 TestUiUtils (org.openmrs.module.appui.TestUiUtils)1 CodedOrFreeTextObsTagHandler (org.openmrs.module.coreapps.htmlformentry.CodedOrFreeTextObsTagHandler)1 EncounterDiagnosesTagHandler (org.openmrs.module.coreapps.htmlformentry.EncounterDiagnosesTagHandler)1 EncounterDispositionTagHandler (org.openmrs.module.coreapps.htmlformentry.EncounterDispositionTagHandler)1 AdtService (org.openmrs.module.emrapi.adt.AdtService)1 EmrConceptService (org.openmrs.module.emrapi.concept.EmrConceptService)1 CodedOrFreeTextAnswer (org.openmrs.module.emrapi.diagnosis.CodedOrFreeTextAnswer)1