Skip to content

Commit 639ade9

Browse files
committed
feat(spp_mis_demo_v2): add area assignments for HH10-12, IND1-2 and restructure use case references
1 parent 85ae4be commit 639ade9

2 files changed

Lines changed: 109 additions & 71 deletions

File tree

spp_mis_demo_v2/docs/USE_CASES.md

Lines changed: 84 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -230,52 +230,52 @@ receiving both cash (pension) and in-kind (food).
230230

231231
### Scenario 1: Payment failure and recovery
232232

233-
Show Dela Cruz household payment failure and recovery.
233+
Show HH1 household payment failure and recovery.
234234

235-
1. Open Dela Cruz household -> 4 members
235+
1. Open HH1 household -> 4 members
236236
2. Show Cash Transfer enrollment
237237
3. Show payment history: paid -> **failed** -> paid (reprocessed)
238238
4. Show successful reprocessing of failed payment
239239

240240
### Scenario 2: Program graduation via compliance failure
241241

242-
Show Santos household graduating from Cash Transfer after compliance failure.
242+
Show HH2 household graduating from Cash Transfer after compliance failure.
243243

244-
1. Open Santos household -> 5 members
244+
1. Open HH2 household -> 5 members
245245
2. Cash Transfer program -> show compliance manager (`per_capita_income < poverty_line`)
246246
3. Show cycle history: 3 cycles compliant, cycle 4 **non_compliant** (income improved)
247247
4. Show cycle 4 membership state: `non_compliant` — no entitlement generated
248248
5. Cash Transfer: **exited** (graduation triggered by compliance failure)
249249
6. Universal Child Grant: still **enrolled** (2 children x $50) — unaffected
250-
7. Open Maria Santos individually -> Food Assistance (dual enrollment continues)
250+
7. Open HH2M1 individually -> Food Assistance (dual enrollment continues)
251251

252252
### Scenario 3: Multi-generational household
253253

254-
Show Reyes household as a large multi-generational family.
254+
Show HH3 household as a large multi-generational family.
255255

256-
1. Open Reyes household -> 8 members (3 generations)
256+
1. Open HH3 household -> 8 members (3 generations)
257257
2. Show household composition: grandparents (72, 68), parents (45, 42), children (18,
258258
14, 10, 6)
259259
3. Show elderly members individually eligible for Elderly Social Pension
260260
4. Demonstrate household composition analysis
261261

262262
### Scenario 4: Emergency to long-term support
263263

264-
Show Gutierrez displaced family transitioning from emergency to cash transfer.
264+
Show HH4 displaced family transitioning from emergency to cash transfer.
265265

266-
1. Open Gutierrez household -> 7 members, displaced
266+
1. Open HH4 household -> 7 members, displaced
267267
2. Show Emergency Relief enrollment (fast-track 15-day cycles)
268268
3. Show vulnerability assessment (score: very_high)
269269
4. Show $400 Tier 2 payments
270270
5. Show transition to Cash Transfer (30-day cycles, $150)
271-
6. Open Ramon Gutierrez individually -> Food Assistance
271+
6. Open HH4M1 individually -> Food Assistance
272272

273273
### Scenario 5: Disability support
274274

275-
Show Martinez family with disabled child and pending reassessment.
275+
Show HH5 family with disabled child and pending reassessment.
276276

277-
1. Open Martinez household -> 3 members
278-
2. Show Miguel's disability status
277+
1. Open HH5 household -> 3 members
278+
2. Show HH5M3's disability status
279279
3. Show Disability Support Grant: $175 (base $100 + 1 member x $75)
280280
4. Show 3 payment records
281281
5. Show pending disability reassessment CR
@@ -284,47 +284,45 @@ Show Martinez family with disabled child and pending reassessment.
284284

285285
Show rejections working correctly.
286286

287-
1. Lorna Pascual -> rejected for Elderly Pension (age 55 < 65)
288-
2. Castillo household -> rejected for Cash Transfer (income 12,000 > 5,000)
289-
3. Navarro household -> rejected for Child Grant (0 children)
287+
1. HH7M1 -> rejected for Elderly Pension (age 55 < 65)
288+
2. HH8 household -> rejected for Cash Transfer (income 12,000 > 5,000)
289+
3. HH9 household -> rejected for Child Grant (0 children)
290290

291291
### Scenario 7: Dual enrollment
292292

293293
Show same person in individual + household programs.
294294

295-
1. Open Maria Santos individual -> enrolled in Food Assistance
296-
2. Open Santos household -> enrolled in Universal Child Grant, graduated from Cash
297-
Transfer
298-
3. Show both visible from Maria's profile
295+
1. Open HH2M1 individual -> enrolled in Food Assistance
296+
2. Open HH2 household -> enrolled in Universal Child Grant, graduated from Cash Transfer
297+
3. Show both visible from HH2M1's profile
299298

300299
### Scenario 8: Change request lifecycle
301300

302301
Show different CR types and states across 13 change requests.
303302

304-
1. Approved: Juan Dela Cruz `update_id` — corrected national ID
305-
2. Approved: Maria Santos `edit_individual` — phone/address update
306-
3. Pending (conflict): Maria Santos — two overlapping CRs
307-
4. Draft: Aquino `edit_group` — UI workflow demo
308-
5. Pending: Rosa Garcia `exit_registrant` — food assistance graduation (pending
309-
approval)
310-
6. Approved: Morales `add_member` — newborn added
311-
7. Pending: Morales `remove_member` — adult child moving out
312-
8. Pending: Bautista `transfer_member` — child to elderly relatives
313-
9. Approved: Navarro `change_hoh` — new head of household
314-
10. Draft: Maricel Ramos `create_group` — register new household
315-
11. Rejected: Bautista `split_household` — incomplete documentation
316-
12. Revision: Luis Fernandez `merge_registrants` — duplicate data quality
303+
1. Approved: HH1M1 `update_id` — corrected national ID
304+
2. Approved: HH2M1 `edit_individual` — phone/address update
305+
3. Pending (conflict): HH2M1 — two overlapping CRs
306+
4. Draft: HH10 `edit_group` — UI workflow demo
307+
5. Pending: HH6M1 `exit_registrant` — food assistance graduation (pending approval)
308+
6. Approved: HH11 `add_member` — newborn added
309+
7. Pending: HH11 `remove_member` — adult child moving out
310+
8. Pending: HH12 `transfer_member` — child to elderly relatives
311+
9. Approved: HH9 `change_hoh` — set HH9M2 as new head of household
312+
10. Draft: IND1 `create_group` — register new household
313+
11. Rejected: HH12 `split_household` — incomplete documentation
314+
12. Revision: IND2 `merge_registrants` — duplicate data quality
317315

318316
### Scenario 9: Compliance manager overview
319317

320-
Show how compliance criteria work on Cash Transfer — contrasting a failure (Santos) with
321-
a pass (Dela Cruz) on the same program.
318+
Show how compliance criteria work on Cash Transfer — contrasting a failure (HH2) with a
319+
pass (HH1) on the same program.
322320

323321
1. Open Cash Transfer program -> show compliance manager config
324322
2. Show CEL expression: `per_capita_income < poverty_line`
325-
3. Open Santos cycle membership -> state: `non_compliant` (income improved)
326-
4. Contrast with Dela Cruz cycle membership -> state: `enrolled` (compliant, per_capita
327-
1,000 < 5,000)
323+
3. Open HH2 cycle membership -> state: `non_compliant` (income improved)
324+
4. Contrast with HH1 cycle membership -> state: `enrolled` (compliant, per_capita 1,000
325+
< 5,000)
328326
5. Show Conditional Child Grant -> also has compliance manager
329327
(`per_capita_income < income_threshold`)
330328
6. **Key point:** Eligibility gates enrollment; compliance gates each cycle's payment
@@ -333,7 +331,7 @@ a pass (Dela Cruz) on the same program.
333331

334332
## References
335333

336-
### Constellation of included households
334+
### Constellation of included registrants
337335

338336
Each household and individual has locale-specific names. The demo generator selects
339337
names based on the configured locale (`fil_PH`, `fr_TG`, `si_LK`).
@@ -354,14 +352,6 @@ names based on the configured locale (`fil_PH`, `fr_TG`, `si_LK`).
354352
| HH10 | Aquino | Tetteh | Herath |
355353
| HH11 | Morales | Agbeko | Fernando |
356354
| HH12 | Bautista | Akakpo | Gunasekara |
357-
| HH13 | Ramos | Adjakly | Karunaratne |
358-
359-
#### Standalone individuals (not households)
360-
361-
| ID | Filipino | Togolese | Sri Lankan |
362-
| -------------- | -------------- | ---------------- | ------------------- |
363-
| Maricel Ramos | Maricel Ramos | Akossiwa Adjakly | Sanduni Karunaratne |
364-
| Luis Fernandez | Luis Fernandez | Messan Ameganvi | Dinesh Rajapaksa |
365355

366356
#### Household information
367357

@@ -544,9 +534,9 @@ names based on the configured locale (`fil_PH`, `fr_TG`, `si_LK`).
544534

545535
| | Geographic location |
546536
| ---------- | ------------------- |
547-
| Filipino | Marikina City |
548-
| Togolese | Tsevie |
549-
| Sri Lankan | Negombo |
537+
| Filipino | Manila |
538+
| Togolese | Kpalime Centre |
539+
| Sri Lankan | Mount Lavinia |
550540

551541
| Member ID | Role | Age | Gender | Filipino | Togolese | Sri Lankan |
552542
| --------- | ----- | --- | ------ | -------- | -------- | ---------- |
@@ -563,9 +553,9 @@ names based on the configured locale (`fil_PH`, `fr_TG`, `si_LK`).
563553

564554
| | Geographic location |
565555
| ---------- | ------------------- |
566-
| Filipino | Las Piñas City |
567-
| Togolese | Aného |
568-
| Sri Lankan | Gampaha |
556+
| Filipino | Dasmarinas |
557+
| Togolese | Tove |
558+
| Sri Lankan | Galle Fort |
569559

570560
| Member ID | Role | Age | Gender | Filipino | Togolese | Sri Lankan |
571561
| --------- | ------ | --- | ------ | -------- | -------- | ---------- |
@@ -583,9 +573,9 @@ names based on the configured locale (`fil_PH`, `fr_TG`, `si_LK`).
583573

584574
| | Geographic location |
585575
| ---------- | ------------------- |
586-
| Filipino | Muntinlupa City |
587-
| Togolese | Notsé |
588-
| Sri Lankan | Ratnapura |
576+
| Filipino | Commonwealth |
577+
| Togolese | Zio |
578+
| Sri Lankan | Gampaha |
589579

590580
| Member ID | Role | Age | Gender | Filipino | Togolese | Sri Lankan |
591581
| --------- | ------ | --- | ------ | -------- | -------- | ---------- |
@@ -597,21 +587,40 @@ names based on the configured locale (`fil_PH`, `fr_TG`, `si_LK`).
597587
| HH12M6 | Child | 13 | Female | Rosalie | Abla | Ruwanthi |
598588
| HH12M7 | Child | 9 | Male | Antonio | Komi | Mahesh |
599589

600-
##### Information about HH13
590+
---
601591

602-
| HH NN | Filipino | Togolese | Sri Lankan |
603-
| ----- | -------- | -------- | ----------- |
604-
| HH13 | Ramos | Adjakly | Karunaratne |
592+
#### Individuals used in stories
593+
594+
| ID | Filipino | Togolese | Sri Lankan |
595+
| ---- | -------------- | ---------------- | ------------------- |
596+
| IND1 | Maricel Ramos | Akossiwa Adjakly | Sanduni Karunaratne |
597+
| IND2 | Luis Fernandez | Messan Ameganvi | Dinesh Rajapaksa |
598+
599+
#### Individual information
600+
601+
##### Information about IND1
602+
603+
| ID | Age | Gender | Filipino | Togolese | Sri Lankan |
604+
| ---- | --- | ------ | ------------- | ---------------- | ------------------- |
605+
| IND1 | 35 | Female | Maricel Ramos | Akossiwa Adjakly | Sanduni Karunaratne |
605606

606607
| | Geographic location |
607608
| ---------- | ------------------- |
608-
| Filipino | Parañaque City |
609-
| Togolese | Bassar |
610-
| Sri Lankan | Kurunegala |
609+
| Filipino | Poblacion |
610+
| Togolese | Ogou |
611+
| Sri Lankan | Kalutara |
612+
613+
##### Information about IND2
611614

612-
| Member ID | Role | Age | Gender | Filipino | Togolese | Sri Lankan |
613-
| --------- | ---------- | --- | ------ | ------------- | ---------------- | ------------------- |
614-
| HH13M1 | Individual | 35 | Female | Maricel Ramos | Akossiwa Adjakly | Sanduni Karunaratne |
615+
| ID | Age | Gender | Filipino | Togolese | Sri Lankan |
616+
| ---- | --- | ------ | -------------- | --------------- | ---------------- |
617+
| IND2 | 40 | Male | Luis Fernandez | Messan Ameganvi | Dinesh Rajapaksa |
618+
619+
| | Geographic location |
620+
| ---------- | ------------------- |
621+
| Filipino | Real |
622+
| Togolese | Lacs |
623+
| Sri Lankan | Matara |
615624

616625
---
617626

@@ -712,9 +721,9 @@ names based on the configured locale (`fil_PH`, `fr_TG`, `si_LK`).
712721
| 8 | Remove member | Group | HH11 | Pending | Adult child moving out for university |
713722
| 9 | Transfer member | Group | HH12 | Pending | Transfer child to elderly relatives |
714723
| 10 | Change head of household | Group | HH9 | Approved | Set HH9M2 as new head of household |
715-
| 11 | Create group | | Maricel Ramos | Draft | Register new household |
724+
| 11 | Create group | Group | IND1 | Draft | Register new household |
716725
| 12 | Split household | Group | HH12 | Rejected | Incomplete documentation for property division |
717-
| 13 | Merge registrants | | Luis Fernandez | Revision | Merge duplicate registrations from data quality |
726+
| 13 | Merge registrants | Individual | IND2 | Revision | Merge duplicate registrations from data quality |
718727

719728
**CR types covered:** edit_individual, edit_group, update_id, exit_registrant,
720729
add_member, remove_member, transfer_member, change_hoh, create_group, split_household,
@@ -730,9 +739,8 @@ auto-applies when all approval tiers are completed.
730739

731740
### Geographic distribution
732741

733-
Each story household is assigned to an administrative area appropriate to its locale.
734-
Area assignments use level-3 areas (municipalities/communes/DS divisions) from the demo
735-
area data.
742+
Each story registrant is assigned to an administrative area appropriate to its locale
743+
from the demo area data.
736744

737745
| Character | HH | Philippines (fil_PH) | Togo (fr_TG) | Sri Lanka (si_LK) |
738746
| -------------------------------- | ----- | -------------------- | -------------- | ---------------------- |
@@ -745,6 +753,11 @@ area data.
745753
| Rejection demonstration | HH7M1 | Pasig City | Nyekonakpoe | Pettah |
746754
| Background story | HH8 | Taguig City | Adidogome | Dehiwala |
747755
| Extended family, disability | HH9 | Bacoor City | Baguida Centre | Hikkaduwa |
756+
| Single mother, CR demo | HH10 | Manila | Kpalime Centre | Mount Lavinia |
757+
| Family, add/remove member CR | HH11 | Dasmarinas | Tove | Galle Fort |
758+
| Large family, transfer/split CR | HH12 | Commonwealth | Zio | Gampaha |
759+
| Individual, create group CR | IND1 | Poblacion | Ogou | Kalutara |
760+
| Individual, merge CR | IND2 | Real | Lacs | Matara |
748761

749762
---
750763

spp_mis_demo_v2/models/mis_demo_generator.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3903,6 +3903,31 @@ def _load_geographic_data(self, stats):
39033903
"fr_TG": "spp_demo.area_tgo_baguida_centre",
39043904
"si_LK": "spp_demo.area_lka_hikkaduwa",
39053905
},
3906+
"amina_osman_household": {
3907+
"fil_PH": "spp_demo.area_phl_manila",
3908+
"fr_TG": "spp_demo.area_tgo_kpalime_centre",
3909+
"si_LK": "spp_demo.area_lka_mount_lavinia_gn",
3910+
},
3911+
"carlos_elena_morales": {
3912+
"fil_PH": "spp_demo.area_phl_dasmarinas",
3913+
"fr_TG": "spp_demo.area_tgo_kpalime_tove",
3914+
"si_LK": "spp_demo.area_lka_galle_fort",
3915+
},
3916+
"chen_large_family": {
3917+
"fil_PH": "spp_demo.area_phl_qc_commonwealth",
3918+
"fr_TG": "spp_demo.area_tgo_zio",
3919+
"si_LK": "spp_demo.area_lka_gampaha",
3920+
},
3921+
"grace_okonkwo": {
3922+
"fil_PH": "spp_demo.area_phl_makati_poblacion",
3923+
"fr_TG": "spp_demo.area_tgo_ogou",
3924+
"si_LK": "spp_demo.area_lka_kalutara",
3925+
},
3926+
"luis_fernandez": {
3927+
"fil_PH": "spp_demo.area_phl_calamba_real",
3928+
"fr_TG": "spp_demo.area_tgo_lacs",
3929+
"si_LK": "spp_demo.area_lka_matara",
3930+
},
39063931
}
39073932

39083933
def _assign_registrant_areas(self, stats):

0 commit comments

Comments
 (0)