Search in sources :

Example 1 with PatientToAppointmentDataDefinition

use of org.openmrs.module.appointmentscheduling.reporting.data.definition.PatientToAppointmentDataDefinition in project openmrs-module-mirebalais by PIH.

the class MirebalaisHospitalActivatorComponentTest method verifyDailyAppointmentsDataSetUpdated.

private void verifyDailyAppointmentsDataSetUpdated() {
    AppointmentDataSetDefinition dsd = (AppointmentDataSetDefinition) dataSetDefinitionService.getDefinition(AppointmentSchedulingUIConstants.DAILY_SCHEDULED_APPOINTMENT_DATA_SET_DEFINITION_UUID, AppointmentDataSetDefinition.class);
    RowPerObjectColumnDefinition identifierColumn = (RowPerObjectColumnDefinition) dsd.getColumnDefinition("identifier");
    PatientToAppointmentDataDefinition patientToAppointmentDataDefinition = (PatientToAppointmentDataDefinition) identifierColumn.getDataDefinition().getParameterizable();
    PatientIdentifierDataDefinition patientIdentifierDataDefinition = (PatientIdentifierDataDefinition) patientToAppointmentDataDefinition.getJoinedDefinition();
    assertThat(patientIdentifierDataDefinition.getTypes().size(), is(1));
    assertThat(patientIdentifierDataDefinition.getTypes().get(0), is(paperRecordProperties.getPaperRecordIdentifierType()));
}
Also used : AppointmentDataSetDefinition(org.openmrs.module.appointmentscheduling.reporting.dataset.definition.AppointmentDataSetDefinition) PatientIdentifierDataDefinition(org.openmrs.module.reporting.data.patient.definition.PatientIdentifierDataDefinition) PatientToAppointmentDataDefinition(org.openmrs.module.appointmentscheduling.reporting.data.definition.PatientToAppointmentDataDefinition) RowPerObjectColumnDefinition(org.openmrs.module.reporting.dataset.column.definition.RowPerObjectColumnDefinition)

Aggregations

PatientToAppointmentDataDefinition (org.openmrs.module.appointmentscheduling.reporting.data.definition.PatientToAppointmentDataDefinition)1 AppointmentDataSetDefinition (org.openmrs.module.appointmentscheduling.reporting.dataset.definition.AppointmentDataSetDefinition)1 PatientIdentifierDataDefinition (org.openmrs.module.reporting.data.patient.definition.PatientIdentifierDataDefinition)1 RowPerObjectColumnDefinition (org.openmrs.module.reporting.dataset.column.definition.RowPerObjectColumnDefinition)1