-
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 FamilyHistory command SDK definition
- Loading branch information
1 parent
3348685
commit a77fa6d
Showing
5 changed files
with
38 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,18 @@ | ||
from canvas_sdk.commands.base import _BaseCommand as BaseCommand | ||
|
||
|
||
class FamilyHistoryCommand(BaseCommand): | ||
"""A class for managing a Family History command within a specific note.""" | ||
|
||
class Meta: | ||
key = "familyHistory" | ||
commit_required_fields = ("family_history",) | ||
|
||
family_history: str | None = None | ||
relative: str | None = None | ||
note: str | None = None | ||
|
||
@property | ||
def values(self) -> dict: | ||
"""The Family History command's field values.""" | ||
return {"family_history": self.family_history, "relative": self.relative, "note": self.note} |
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