welkin.models.encounter
Classes
dict() -> new empty dictionary |
|
Generic enumeration. |
|
dict() -> new empty dictionary |
|
Built-in mutable sequence. |
Module Contents
- class welkin.models.encounter.EncounterDisposition
Bases:
welkin.models.base.Resourcedict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s
(key, value) pairs
- dict(iterable) -> new dictionary initialized as if via:
d = {} for k, v in iterable:
d[k] = v
- dict(**kwargs) -> new dictionary initialized with the name=value pairs
in the keyword argument list. For example: dict(one=1, two=2)
- get(patient_id: str, encounter_id: str)
Return the value for key if key is in the dictionary, else default.
- update(patient_id: str, encounter_id: str, **kwargs)
D.update([E, ]**F) -> None. Update D from dict/iterable E and F. If E is present and has a .keys() method, then does: for k in E: D[k] = E[k] If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v In either case, this is followed by: for k in F: D[k] = F[k]
- class welkin.models.encounter.EncounterStatus
Bases:
enum.EnumGeneric enumeration.
Derive from this class to define new enumerations.
- OPEN = 'OPEN'
- CANCELLED = 'CANCELLED'
- DRAFT = 'DRAFT'
- FINALIZED = 'FINALIZED'
- class welkin.models.encounter.Encounter
Bases:
welkin.models.base.Resourcedict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s
(key, value) pairs
- dict(iterable) -> new dictionary initialized as if via:
d = {} for k, v in iterable:
d[k] = v
- dict(**kwargs) -> new dictionary initialized with the name=value pairs
in the keyword argument list. For example: dict(one=1, two=2)
- subresources
- nested_objects
- create(patient_id: str)
- get(patient_id: str, related_data: bool = False)
Return the value for key if key is in the dictionary, else default.
- update(patient_id: str, **kwargs)
D.update([E, ]**F) -> None. Update D from dict/iterable E and F. If E is present and has a .keys() method, then does: for k in E: D[k] = E[k] If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v In either case, this is followed by: for k in F: D[k] = F[k]
- delete(patient_id: str)
- class welkin.models.encounter.Encounters
Bases:
welkin.models.base.CollectionBuilt-in mutable sequence.
If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified.
- resource
- iterator
- get(patient_id: str | None = None, user_id: str | None = None, related_data: bool | None = None, with_care_team: bool | None = None, only_with_calendar_event: bool | None = None, statuses: list | None = None, sort: str | None = None, *args, **kwargs)