Skip to content

Commit

Permalink
Move allergy intolerance spec around
Browse files Browse the repository at this point in the history
  • Loading branch information
vigneshhari committed Jan 7, 2025
1 parent 1de306c commit 6414e0d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions care/emr/resources/allergy_intolerance/spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ class AllergyIntoleranceOnSetSpec(EMRResource):
onset_datetime: datetime.datetime = None
onset_age: int = None
onset_string: str = None
recorded_date: datetime.datetime | None = None
last_occurrence: datetime.datetime | None = None
note: str


Expand All @@ -59,6 +57,8 @@ class AllergyIntoleranceWriteSpec(BaseAllergyIntoleranceSpec):
verification_status: VerificationStatusChoices
category: CategoryChoices
criticality: CriticalityChoices
last_occurrence: datetime.datetime | None = None
recorded_date: datetime.datetime | None = None

onset: AllergyIntoleranceOnSetSpec = {}

Expand Down Expand Up @@ -103,6 +103,8 @@ class AllergyIntrolanceSpecRead(BaseAllergyIntoleranceSpec):
code: Coding
encounter: UUID4
onset: AllergyIntoleranceOnSetSpec = dict
last_occurrence: datetime.datetime | None = None
recorded_date: datetime.datetime | None = None
created_by: dict = {}
updated_by: dict = {}

Expand Down

0 comments on commit 6414e0d

Please sign in to comment.