care.emr.resources.common.monetary_component module

class MonetaryComponentType(*values)

Bases: str, Enum

base = 'base'
surcharge = 'surcharge'
discount = 'discount'
tax = 'tax'
informational = 'informational'
class MonetaryComponent(*, monetary_component_type: MonetaryComponentType, code: Coding | None = None, factor: float | None = None, amount: float | None = None, conditions: list[EvaluatorConditionSpec] = [])

Bases: BaseModel

monetary_component_type: MonetaryComponentType
code: Coding | None
factor: float | None
amount: float | None
conditions: list[EvaluatorConditionSpec]
base_no_conditions()
base_no_factor()
check_amount_and_factor()
check_amount_or_factor()
model_config: ClassVar[ConfigDict] = {}

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

class MonetaryComponents(root: RootModelRootType = PydanticUndefined)

Bases: RootModel

root: list[MonetaryComponent]
check_duplicate_codes()
check_single_base_component()
model_config: ClassVar[ConfigDict] = {}

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

class MonetaryComponentDefinition(*, monetary_component_type: MonetaryComponentType, code: Coding | None = None, factor: float | None = None, amount: float | None = None, conditions: list[EvaluatorConditionSpec] = [], title: str)

Bases: MonetaryComponent

title: str
check_duplicate_codes()
check_amount_or_factor()
check_base_absent()
model_config: ClassVar[ConfigDict] = {}

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