care.emr.resources.inventory.product.spec module

class ProductStatusOptions(*values)

Bases: str, Enum

active = 'active'
inactive = 'inactive'
entered_in_error = 'entered_in_error'
class ProductBatch(*, lot_number: str | None = None)

Bases: BaseModel

lot_number: str | None
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class BaseProductSpec(*, meta: dict = {}, id: Annotated[UUID, UuidVersion(uuid_version=4)] | None = None, status: ProductStatusOptions, batch: ProductBatch | None = None, expiration_date: datetime | None = None, extensions: dict)

Bases: EMRResource

Base model for healthcare service

id: Annotated[UUID, UuidVersion(uuid_version=4)] | None
status: ProductStatusOptions
batch: ProductBatch | None
expiration_date: datetime | None
extensions: dict
classmethod validate_extensions(v)
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class ProductWriteSpec(*, meta: dict = {}, id: Annotated[UUID, UuidVersion(uuid_version=4)] | None = None, status: ProductStatusOptions, batch: ProductBatch | None = None, expiration_date: datetime | None = None, extensions: dict, product_knowledge: str, charge_item_definition: str | None = None)

Bases: BaseProductSpec

Payment reconciliation write specification

product_knowledge: str
charge_item_definition: str | None
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 ProductUpdateSpec(*, meta: dict = {}, id: Annotated[UUID, UuidVersion(uuid_version=4)] | None = None, status: ProductStatusOptions, batch: ProductBatch | None = None, expiration_date: datetime | None = None, extensions: dict, charge_item_definition: str | None = None)

Bases: BaseProductSpec

Payment reconciliation write specification

charge_item_definition: str | None
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 ProductReadSpec(*, meta: dict = {}, id: Annotated[UUID, UuidVersion(uuid_version=4)] | None = None, status: ProductStatusOptions, batch: ProductBatch | None = None, expiration_date: datetime | None = None, extensions: dict, product_knowledge: dict, charge_item_definition: dict | None = None)

Bases: BaseProductSpec

Invoice read specification

product_knowledge: dict
charge_item_definition: dict | None
classmethod perform_extra_serialization(mapping, obj)
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].