Skip to content

Commit bca60f4

Browse files
more fields to IterationCohort
1 parent 4382752 commit bca60f4

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • src/eligibility_signposting_api/model

src/eligibility_signposting_api/model/rules.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
StartDate = NewType("StartDate", date)
3030
EndDate = NewType("EndDate", date)
3131
CohortLabel = NewType("CohortLabel", str)
32+
CohortGroup = NewType("CohortGroup", str)
33+
Description = NewType("Description", str)
3234
RuleStop = NewType("RuleStop", bool)
3335

3436

@@ -84,6 +86,9 @@ class RuleAttributeLevel(StrEnum):
8486

8587
class IterationCohort(BaseModel):
8688
cohort_label: CohortLabel | None = Field(None, alias="CohortLabel")
89+
cohort_group: CohortGroup | None = Field(None, alias="CohortGroup")
90+
positive_description: Description | None = Field(None, alias="PositiveDescription")
91+
negative_description: Description | None = Field(None, alias="NegativeDescription")
8792
priority: int | None = Field(None, alias="Priority")
8893

8994
model_config = {"populate_by_name": True, "extra": "ignore"}

0 commit comments

Comments
 (0)