care.emr.resources.organization.spec module

class OrganizationTypeChoices(*values)

Bases: str, Enum

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

id: str
active: bool
org_type: OrganizationTypeChoices
name: str
description: str
metadata: dict
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

parent: Annotated[UUID, UuidVersion(uuid_version=4)] | None
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

level_cache: int
system_generated: bool
has_children: bool
parent: dict
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

permissions: list[str]
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].