diff --git a/form/src/main/java/org/dhis2/form/data/DataEntryRepository.kt b/form/src/main/java/org/dhis2/form/data/DataEntryRepository.kt index fb0c4be745..a6447cbbfe 100644 --- a/form/src/main/java/org/dhis2/form/data/DataEntryRepository.kt +++ b/form/src/main/java/org/dhis2/form/data/DataEntryRepository.kt @@ -1,8 +1,13 @@ package org.dhis2.form.data +import androidx.paging.PagingData import io.reactivex.Flowable +import kotlinx.coroutines.flow.Flow +import kotlinx.coroutines.flow.MutableStateFlow +import org.dhis2.commons.periods.Period import org.dhis2.form.model.EventMode import org.dhis2.form.model.FieldUiModel +import org.dhis2.form.model.OptionSetConfiguration import org.hisp.dhis.android.core.common.ValidationStrategy interface DataEntryRepository { diff --git a/form/src/main/java/org/dhis2/form/data/EnrollmentRepository.kt b/form/src/main/java/org/dhis2/form/data/EnrollmentRepository.kt index 1cad5159f9..60601276bb 100644 --- a/form/src/main/java/org/dhis2/form/data/EnrollmentRepository.kt +++ b/form/src/main/java/org/dhis2/form/data/EnrollmentRepository.kt @@ -1,9 +1,13 @@ package org.dhis2.form.data +import androidx.paging.PagingData import io.reactivex.Flowable import io.reactivex.Single +import kotlinx.coroutines.flow.Flow +import kotlinx.coroutines.flow.emptyFlow import org.dhis2.commons.date.DateUtils import org.dhis2.commons.orgunitselector.OrgUnitSelectorScope +import org.dhis2.commons.periods.Period import org.dhis2.commons.resources.MetadataIconProvider import org.dhis2.form.data.metadata.EnrollmentConfiguration import org.dhis2.form.model.EnrollmentMode @@ -70,6 +74,8 @@ class EnrollmentRepository( } } + override fun fetchPeriods(): Flow> = emptyFlow() + override fun sectionUids(): Flowable> { val sectionUids = mutableListOf(ENROLLMENT_DATA_SECTION_UID) if (programSections.isEmpty()) {