care.emr.resources.inventory.inventory_item.spec module

class InventoryItemStatusOptions(*values)

Bases: str, Enum

active = 'active'
inactive = 'inactive'
entered_in_error = 'entered_in_error'
class BaseInventoryItemSpec(*, meta: dict = {}, id: Annotated[UUID, UuidVersion(uuid_version=4)] | None = None, status: InventoryItemStatusOptions)

Bases: EMRResource

Base model for inventory item

id: Annotated[UUID, UuidVersion(uuid_version=4)] | None
status: InventoryItemStatusOptions
model_config: ClassVar[ConfigDict] = {}

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

class InventoryItemWriteSpec(*, meta: dict = {}, id: Annotated[UUID, UuidVersion(uuid_version=4)] | None = None, status: InventoryItemStatusOptions)

Bases: BaseInventoryItemSpec

Inventory item write specification

model_config: ClassVar[ConfigDict] = {}

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

class InventoryItemReadSpec(*, meta: dict = {}, id: Annotated[UUID, UuidVersion(uuid_version=4)] | None = None, status: InventoryItemStatusOptions, net_content: float, product: float, location: dict)

Bases: BaseInventoryItemSpec

Supply delivery read specification

net_content: float
product: float
location: 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 InventoryItemRetrieveSpec(*, meta: dict = {}, id: Annotated[UUID, UuidVersion(uuid_version=4)] | None = None, status: InventoryItemStatusOptions, net_content: float, product: float, location: dict)

Bases: InventoryItemReadSpec

model_config: ClassVar[ConfigDict] = {}

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