Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo <[email protected]>
  • Loading branch information
Balcan committed Feb 2, 2024
1 parent bc3edd0 commit 0847a21
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import org.dhis2.commons.bindings.enrollmentImportConflicts
import org.dhis2.commons.bindings.program
import org.dhis2.commons.bindings.tei
import org.dhis2.commons.bindings.teiAttribute
import org.dhis2.commons.bindings.trackedEntityType
import org.dhis2.form.model.OptionSetConfiguration
import org.hisp.dhis.android.core.D2
import org.hisp.dhis.android.core.arch.repositories.scope.RepositoryScope
Expand All @@ -25,7 +26,7 @@ class EnrollmentConfiguration(private val d2: D2, private val enrollmentUid: Str
}

fun tei() = enrollment()?.trackedEntityInstance()?.let { d2.tei(it) }
fun trackedEntityType() = program()?.trackedEntityType()
fun trackedEntityType() = d2.trackedEntityType(program()?.trackedEntityType()?.uid()!!)
fun sections() = d2.programModule().programSections()
.withAttributes()
.byProgramUid().eq(enrollment()?.program())
Expand Down

0 comments on commit 0847a21

Please sign in to comment.