Create dynamic form API for a new campaign “Distribution of Filariasis Medicine for 3 days” under the Mitanin / Village Meetings section. The campaign should track coverage and calculate incentives based on sessions conducted.
Note: These changes are applicable only in Mitanin App.
Requirements:
Annual Mass Drug Administration (MDA) campaign for cases of Lymphatic Filariasis (LF)
In the Mitanin / Village Meetings section, create a new section with title “Filariasis MDA campaign” and create form with below fields and provide Add, view options:
Title: Lymphatic Filariasis (LF) Mass Drug Administration (MDA) campaign
| S No | Name of Data Field | Field Type | Value/ Options | Validation/ Logic/ Condition |
| Start Date | Date picker | Mandatory | Frequency yearly one campaign Allow future date up to 2 months from current month Allow back date up 1 month from current month |
|
| End Date | Date picker | Mandatory | This End date should be greater than ‘Start date’ Allow future date up to 1 months from ‘Start date’ |
|
| Number of Families | Numeric | 0-999 | only numeric allowed | |
| Number of Individuals | Numeric | 0-999 | only numeric allowed | |
| MDA campaign Photos | File Upload | Max allow 2 photos | Update with latest images | |
| View Photos | ||||
| Submit | History table: Show only 1 year (current year) data in the history table |
Incentive Logic:
- Incentive applies per session
- Incentive is generated only if the session meets coverage criteria
Acceptance Criteria:
- Campaign is visible under Mitanin / Village Meetings
- All required fields are available and mandatory
- Frequency is enforced as 6 months
- Incentive is correctly calculated per session
- Coverage criteria are validated (50 families or 250 individuals minimum)
- No duplicate incentives for the same session