care.emr.resources.organization.spec module¶
- class OrganizationTypeChoices(*values)¶
-
- team = 'team'¶
- govt = 'govt'¶
- role = 'role'¶
- product_supplier = 'product_supplier'¶
- class OrganizationBaseSpec(*, meta: dict = {}, id: str = None, active: bool = True, org_type: OrganizationTypeChoices, name: str, description: str = '', metadata: dict = {})¶
Bases:
EMRResource- org_type: OrganizationTypeChoices¶
- model_config: ClassVar[ConfigDict] = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class OrganizationUpdateSpec(*, meta: dict = {}, id: str = None, active: bool = True, org_type: OrganizationTypeChoices, name: str, description: str = '', metadata: dict = {})¶
Bases:
OrganizationBaseSpec- model_config: ClassVar[ConfigDict] = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class OrganizationWriteSpec(*, meta: dict = {}, id: str = None, active: bool = True, org_type: OrganizationTypeChoices, name: str, description: str = '', metadata: dict = {}, parent: Annotated[UUID, UuidVersion(uuid_version=4)] | None = None)¶
Bases:
OrganizationBaseSpec- validate_parent_organization()¶
- perform_extra_deserialization(is_update, obj)¶
- model_config: ClassVar[ConfigDict] = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class OrganizationReadSpec(*, meta: dict = {}, id: str = None, active: bool = True, org_type: OrganizationTypeChoices, name: str, description: str = '', metadata: dict = {}, level_cache: int = 0, system_generated: bool, has_children: bool, parent: dict)¶
Bases:
OrganizationBaseSpec- classmethod perform_extra_serialization(mapping, obj)¶
- model_config: ClassVar[ConfigDict] = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class OrganizationRetrieveSpec(*, meta: dict = {}, id: str = None, active: bool = True, org_type: OrganizationTypeChoices, name: str, description: str = '', metadata: dict = {}, level_cache: int = 0, system_generated: bool, has_children: bool, parent: dict, permissions: list[str] = [])¶
Bases:
OrganizationReadSpec- classmethod perform_extra_user_serialization(mapping, obj, user)¶
- model_config: ClassVar[ConfigDict] = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].