Rearchitect ProgramType logic to be more robust
lomky opened this issue · comments
Description
At the moment the knowledge of ProgramTypes lives in two places:
utils/getClaimDetails.ts
- who needs to know which to display, a simple listgetScenarioContent
- who needs it to determine BYE scenarios: UI, PUA, DUA, the federal extentions, or other.
DRY up this code to avoid duplication of the lists of ProgramTypes. We want to avoid narrowly tailoring, as well, in case we later need to analyze Program Types in another way.
Acceptance Criteria
- There is one canonical list of Program Types
- Claim Details can show the Program Type
- Scenario Content can determine BYE
- Program types can be analyzed another way, if needed for future scenarios, without a large refactor