Skip to content

Commit

Permalink
Add note to condition spec
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad committed Jan 20, 2025
1 parent a053f09 commit f64433f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions care/emr/resources/condition/spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ class ConditionSpec(BaseConditionSpec):
code: Coding = Field(json_schema_extra={"slug": CARE_CODITION_CODE_VALUESET.slug})
encounter: UUID4
onset: ConditionOnSetSpec = {}
note: str = ""

@field_validator("code")
@classmethod
Expand Down Expand Up @@ -103,6 +104,7 @@ class ConditionSpecRead(BaseConditionSpec):
onset: ConditionOnSetSpec = dict
created_by: UserSpec = dict
updated_by: UserSpec = dict
note: str

@classmethod
def perform_extra_serialization(cls, mapping, obj):
Expand All @@ -121,6 +123,7 @@ class ConditionSpecUpdate(BaseConditionSpec):
severity: SeverityChoices | None = None
code: Coding = Field(json_schema_extra={"slug": CARE_CODITION_CODE_VALUESET.slug})
onset: ConditionOnSetSpec = {}
note: str = ""

@field_validator("code")
@classmethod
Expand Down

0 comments on commit f64433f

Please sign in to comment.