getMaxLookaheadDays

abstract fun getMaxLookaheadDays(visitTypeShortName: VisitTypeShortName, ehrSystemName: String): DataObserver<Int>

Fetches the maximum number of days beyond Today that getProviderTimeslots can return results for.

Return

The maximum number of days beyond Today that getProviderTimeslots can return results for.

Parameters

visitTypeShortName

The short name of the ProviderVisitType to check the max lookahead days for.

ehrSystemName

The name of the EHR system in which the max lookahead days should be checked. This can be determined based on the org.dexcare.services.provider.models.ProviderDepartment that a visit will potentially be booked to.

Throws

When visitTypeShortName or ehrSystemName are empty string