-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add UpdateDiagnosis command SDK definition
- Loading branch information
1 parent
ad56f11
commit f751d07
Showing
5 changed files
with
47 additions
and
2 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
from canvas_sdk.commands.base import _BaseCommand as BaseCommand | ||
|
||
|
||
class UpdateDiagnosisCommand(BaseCommand): | ||
"""A class for managing an Update Diagnosis command within a specific note.""" | ||
|
||
class Meta: | ||
key = "updateDiagnosis" | ||
commit_required_fields = ( | ||
"condition_code", | ||
"new_condition_code", | ||
) | ||
|
||
condition_code: str | None = None | ||
new_condition_code: str | None = None | ||
background: str | None = None | ||
narrative: str | None = None | ||
|
||
@property | ||
def values(self) -> dict: | ||
"""The Update Diagnosis command's field values.""" | ||
return { | ||
"condition_code": self.condition_code, | ||
"new_condition_code": self.new_condition_code, | ||
"background": self.background, | ||
"narrative": self.narrative, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters