care.emr.resources.charge_item_definition.spec module¶
- class ChargeItemDefinitionStatusOptions(*values)¶
-
- draft = 'draft'¶
- active = 'active'¶
- retired = 'retired'¶
- class ChargeItemDefinitionSpec(*, meta: dict = {}, id: Annotated[UUID, UuidVersion(uuid_version=4)] | None = None, status: ChargeItemDefinitionStatusOptions, title: str, derived_from_uri: str | None = None, description: str | None = None, purpose: str | None = None, price_components: list[MonetaryComponent])¶
Bases:
EMRResourceBase model for ChargeItemDefinition
- price_components: list[MonetaryComponent]¶
- model_config: ClassVar[ConfigDict] = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class ChargeItemDefinitionWriteSpec(*, meta: dict = {}, id: Annotated[UUID, UuidVersion(uuid_version=4)] | None = None, status: ChargeItemDefinitionStatusOptions, title: str, derived_from_uri: str | None = None, description: str | None = None, purpose: str | None = None, price_components: list[MonetaryComponent], slug_value: Annotated[str, MinLen(min_length=5), MaxLen(max_length=36), AfterValidator(func=slug_validator)], category: Annotated[str, FieldInfo(annotation=NoneType, required=True, metadata=[MinLen(min_length=7), MaxLen(max_length=75)]), AfterValidator(func=extended_slug_validator)] | None = None)¶
Bases:
ChargeItemDefinitionSpec- slug_value: Annotated[str, FieldInfo(annotation=NoneType, required=True, metadata=[MinLen(min_length=5), MaxLen(max_length=36)]), AfterValidator(func=slug_validator)]¶
- category: Annotated[str, FieldInfo(annotation=NoneType, required=True, metadata=[MinLen(min_length=7), MaxLen(max_length=75)]), AfterValidator(func=extended_slug_validator)] | None¶
- classmethod check_components_with_duplicate_codes(price_components: list[MonetaryComponent])¶
- 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 ChargeItemDefinitionReadSpec(*, meta: dict = {}, id: Annotated[UUID, UuidVersion(uuid_version=4)] | None = None, status: ChargeItemDefinitionStatusOptions, title: str, derived_from_uri: str | None = None, description: str | None = None, purpose: str | None = None, price_components: list[MonetaryComponent], version: int | None = None, category: dict | None = None, slug_config: dict, slug: str)¶
Bases:
ChargeItemDefinitionSpecChargeItemDefinition read specification
- classmethod perform_extra_serialization(mapping, obj)¶
- model_config: ClassVar[ConfigDict] = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].