care.emr.resources.account.spec module

class AccountStatusOptions(*values)

Bases: str, Enum

active = 'active'
inactive = 'inactive'
entered_in_error = 'entered_in_error'
on_hold = 'on_hold'
class AccountBillingStatusOptions(*values)

Bases: str, Enum

open = 'open'
carecomplete_notbilled = 'carecomplete_notbilled'
billing = 'billing'
closed_baddebt = 'closed_baddebt'
closed_voided = 'closed_voided'
closed_completed = 'closed_completed'
closed_combined = 'closed_combined'
class AccountSpec(*, meta: dict = {}, id: Annotated[UUID, UuidVersion(uuid_version=4)] | None = None, status: AccountStatusOptions, billing_status: AccountBillingStatusOptions, name: str, service_period: PeriodSpec, description: str | None = None)

Bases: EMRResource

Base model for Account

id: Annotated[UUID, UuidVersion(uuid_version=4)] | None
status: AccountStatusOptions
billing_status: AccountBillingStatusOptions
name: str
service_period: PeriodSpec
description: str | None
model_config: ClassVar[ConfigDict] = {}

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

class AccountCreateSpec(*, meta: dict = {}, id: Annotated[UUID, UuidVersion(uuid_version=4)] | None = None, status: AccountStatusOptions, billing_status: AccountBillingStatusOptions, name: str, service_period: PeriodSpec, description: str | None = None, patient: Annotated[UUID, UuidVersion(uuid_version=4)])

Bases: AccountSpec

Account create specification

patient: Annotated[UUID, UuidVersion(uuid_version=4)]
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 AccountMinimalReadSpec(*, meta: dict = {}, id: Annotated[UUID, UuidVersion(uuid_version=4)] | None = None, status: AccountStatusOptions, billing_status: AccountBillingStatusOptions, name: str, service_period: PeriodSpec, description: str | None = None, total_net: Decimal, total_gross: Decimal, total_paid: Decimal, total_balance: Decimal, total_billable_charge_items: Decimal, calculated_at: datetime, created_date: datetime, modified_date: datetime)

Bases: AccountSpec

Account read specification

total_net: Decimal
total_gross: Decimal
total_paid: Decimal
total_balance: Decimal
total_billable_charge_items: Decimal
calculated_at: datetime
created_date: datetime
modified_date: datetime
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 AccountReadSpec(*, meta: dict = {}, id: Annotated[UUID, UuidVersion(uuid_version=4)] | None = None, status: AccountStatusOptions, billing_status: AccountBillingStatusOptions, name: str, service_period: PeriodSpec, description: str | None = None, total_net: Decimal, total_gross: Decimal, total_paid: Decimal, total_balance: Decimal, total_billable_charge_items: Decimal, calculated_at: datetime, created_date: datetime, modified_date: datetime, patient: dict, tags: list[dict] = [])

Bases: AccountMinimalReadSpec

Account read specification

patient: dict
tags: list[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 AccountRetrieveSpec(*, meta: dict = {}, id: Annotated[UUID, UuidVersion(uuid_version=4)] | None = None, status: AccountStatusOptions, billing_status: AccountBillingStatusOptions, name: str, service_period: PeriodSpec, description: str | None = None, total_net: Decimal, total_gross: Decimal, total_paid: Decimal, total_balance: Decimal, total_billable_charge_items: Decimal, calculated_at: datetime, created_date: datetime, modified_date: datetime, patient: dict, tags: list[dict] = [], cached_items: list = [], total_price_components: dict)

Bases: AccountReadSpec

Account retrieve specification

cached_items: list
total_price_components: dict
model_config: ClassVar[ConfigDict] = {}

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