care.emr.resources.medication.dispense.spec module

class MedicationDispenseStatus(*values)

Bases: str, Enum

preparation = 'preparation'
in_progress = 'in_progress'
cancelled = 'cancelled'
on_hold = 'on_hold'
completed = 'completed'
entered_in_error = 'entered_in_error'
stopped = 'stopped'
declined = 'declined'
class MedicationDispenseNotPerformedReason(*values)

Bases: str, Enum

outofstock = 'outofstock'
washout = 'washout'
surg = 'surg'
sintol = 'sintol'
sddi = 'sddi'
sdupther = 'sdupther'
saig = 'saig'
preg = 'preg'
class MedicationDispenseCategory(*values)

Bases: str, Enum

inpatient = 'inpatient'
outpatient = 'outpatient'
community = 'community'
class SubstitutionType(*values)

Bases: str, Enum

E = 'E'
EC = 'EC'
BC = 'BC'
G = 'G'
TE = 'TE'
TB = 'TB'
TG = 'TG'
F = 'F'
N = 'N'
class SubstitutionReason(*values)

Bases: str, Enum

CT = 'CT'
FP = 'FP'
OS = 'OS'
RR = 'RR'
class MedicationDispenseSubstitution(*, was_substituted: bool, substitution_type: SubstitutionType, reason: SubstitutionReason)

Bases: BaseModel

was_substituted: bool
substitution_type: SubstitutionType
reason: SubstitutionReason
model_config: ClassVar[ConfigDict] = {}

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

class BaseMedicationDispenseSpec(*, meta: dict = {}, id: Annotated[UUID, UuidVersion(uuid_version=4)] = None, status: MedicationDispenseStatus, not_performed_reason: MedicationDispenseNotPerformedReason | None = None, category: MedicationDispenseCategory | None = None, when_prepared: datetime | None = None, when_handed_over: datetime | None = None, note: str | None = None, dosage_instruction: list[DosageInstruction] = [], substitution: MedicationDispenseSubstitution | None = None)

Bases: EMRResource

id: Annotated[UUID, UuidVersion(uuid_version=4)]
status: MedicationDispenseStatus
not_performed_reason: MedicationDispenseNotPerformedReason | None
category: MedicationDispenseCategory | None
when_prepared: datetime | None
when_handed_over: datetime | None
note: str | None
dosage_instruction: list[DosageInstruction]
substitution: MedicationDispenseSubstitution | None
model_config: ClassVar[ConfigDict] = {}

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

class CreateDispenseOrder(*, name: str | None = None, note: str | None = None, alternate_identifier: str)

Bases: BaseModel

name: str | None
note: str | None
alternate_identifier: str
model_config: ClassVar[ConfigDict] = {}

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

class MedicationDispenseWriteSpec(*, meta: dict = {}, id: Annotated[UUID, UuidVersion(uuid_version=4)] = None, status: MedicationDispenseStatus, not_performed_reason: MedicationDispenseNotPerformedReason | None = None, category: MedicationDispenseCategory | None = None, when_prepared: datetime | None = None, when_handed_over: datetime | None = None, note: str | None = None, dosage_instruction: list[DosageInstruction] = [], substitution: MedicationDispenseSubstitution | None = None, encounter: Annotated[UUID, UuidVersion(uuid_version=4)], location: Annotated[UUID, UuidVersion(uuid_version=4)], authorizing_request: Annotated[UUID, UuidVersion(uuid_version=4)] | None = None, item: Annotated[UUID, UuidVersion(uuid_version=4)], quantity: float, days_supply: float | None = None, fully_dispensed: bool | None = None, order: Annotated[UUID, UuidVersion(uuid_version=4)] | None = None, create_dispense_order: CreateDispenseOrder | None = None)

Bases: BaseMedicationDispenseSpec

encounter: Annotated[UUID, UuidVersion(uuid_version=4)]
location: Annotated[UUID, UuidVersion(uuid_version=4)]
authorizing_request: Annotated[UUID, UuidVersion(uuid_version=4)] | None
item: Annotated[UUID, UuidVersion(uuid_version=4)]
quantity: float
days_supply: float | None
fully_dispensed: bool | None
order: Annotated[UUID, UuidVersion(uuid_version=4)] | None
create_dispense_order: CreateDispenseOrder | None
validate_prescription()
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 MedicationDispenseUpdateSpec(*, meta: dict = {}, id: Annotated[UUID, UuidVersion(uuid_version=4)] = None, status: MedicationDispenseStatus, not_performed_reason: MedicationDispenseNotPerformedReason | None = None, category: MedicationDispenseCategory | None = None, when_prepared: datetime | None = None, when_handed_over: datetime | None = None, note: str | None = None, dosage_instruction: list[DosageInstruction] = [], substitution: MedicationDispenseSubstitution | None = None, fully_dispensed: bool | None = None, order: Annotated[UUID, UuidVersion(uuid_version=4)] | None = None)

Bases: BaseMedicationDispenseSpec

fully_dispensed: bool | None
order: Annotated[UUID, UuidVersion(uuid_version=4)] | 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 MedicationDispenseReadSpec(*, meta: dict = {}, id: Annotated[UUID, UuidVersion(uuid_version=4)] = None, status: MedicationDispenseStatus, not_performed_reason: MedicationDispenseNotPerformedReason | None = None, category: MedicationDispenseCategory | None = None, when_prepared: datetime | None = None, when_handed_over: datetime | None = None, note: str | None = None, dosage_instruction: list[DosageInstruction] = [], substitution: MedicationDispenseSubstitution | None = None, item: dict, charge_item: dict | None = None, created_date: datetime, modified_date: datetime, location: dict, quantity: float, authorizing_request: dict | None = None, order: dict | None = None)

Bases: BaseMedicationDispenseSpec

item: dict
charge_item: dict | None
created_date: datetime
modified_date: datetime
location: dict
quantity: float
authorizing_request: dict | None
order: 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].

class MedicationDispenseRetrieveSpec(*, meta: dict = {}, id: Annotated[UUID, UuidVersion(uuid_version=4)] = None, status: MedicationDispenseStatus, not_performed_reason: MedicationDispenseNotPerformedReason | None = None, category: MedicationDispenseCategory | None = None, when_prepared: datetime | None = None, when_handed_over: datetime | None = None, note: str | None = None, dosage_instruction: list[DosageInstruction] = [], substitution: MedicationDispenseSubstitution | None = None, order: dict | None = None, charge_item: dict | None = None)

Bases: BaseMedicationDispenseSpec

order: dict | None
charge_item: 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].