Skip to content

Commit

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

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

@classmethod
def perform_extra_serialization(cls, mapping, obj):
Expand All @@ -123,7 +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 = ""
note: str | None = None

@field_validator("code")
@classmethod
Expand Down

0 comments on commit ebdf501

Please sign in to comment.