care.emr.resources.common.quantity module¶
- class Quantity(*, value: float | None = None, unit: Coding | None = None, meta: dict | None = None, code: Coding | None = None)¶
Bases:
BaseModel
- model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}¶
A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
- model_fields: ClassVar[Dict[str, FieldInfo]] = {'code': FieldInfo(annotation=Union[Coding, NoneType], required=False, default=None, description='A computer processable form of the unit in some unit representation system.'), 'meta': FieldInfo(annotation=Union[dict, NoneType], required=False, default=None), 'unit': FieldInfo(annotation=Union[Coding, NoneType], required=False, default=None, description='A human-readable form of the unit.'), 'value': FieldInfo(annotation=Union[float, NoneType], required=False, default=None, description='The value of the measured amount. The value includes an implicit precision in the presentation of the value.')}¶
Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.
This replaces Model.__fields__ from Pydantic V1.
- class Ratio(*, numerator: Quantity, denominator: Quantity)¶
Bases:
BaseModel
- model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}¶
A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
- model_config: ClassVar[ConfigDict] = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_fields: ClassVar[Dict[str, FieldInfo]] = {'denominator': FieldInfo(annotation=Quantity, required=True), 'numerator': FieldInfo(annotation=Quantity, required=True)}¶
Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.
This replaces Model.__fields__ from Pydantic V1.