utils/utils library

Classes

Coordinate
CustomValidator
This class contains custom validators for form controls.
RegistrationDeliverySingleton
UniqueIdGeneration

Functions

allDosesDelivered(List<TaskModel>? tasks, ProjectCycle? selectedCycle, List<SideEffectModel>? sideEffects, IndividualModel? individualModel) bool
calculateDistance(Coordinate? start, Coordinate? end) double?
checkEligibilityForAgeAndSideEffect(DigitDOBAge age, ProjectTypeModel? projectType, TaskModel? tasks, List<SideEffectModel>? sideEffects) bool
  • Returns true if the individual is in the same cycle and is eligible for the next dose,
  • checkIfBeneficiaryReferred(List<ReferralModel>? referrals, ProjectCycle? currentCycle) bool
    checkIfBeneficiaryRefused(List<TaskModel>? tasks) bool
    checkStatus(List<TaskModel>? tasks, ProjectCycle? currentCycle) bool
    fetchProductVariant(ProjectCycleDelivery? currentDelivery, IndividualModel? individualModel, HouseholdModel? householdModel) → DeliveryDoseCriteria?
    getTaskStatus(Iterable<TaskModel> tasks) Status
    maskString(String input) String
    recordedSideEffect(ProjectCycle? selectedCycle, TaskModel? task, List<SideEffectModel>? sideEffects) bool