care.emr.resources.specimen.spec module¶
- class SpecimenStatusOptions(*values)¶
-
Status options for specimen
- draft = 'draft'¶
- available = 'available'¶
- unsatisfactory = 'unsatisfactory'¶
- entered_in_error = 'entered_in_error'¶
- class QuantitySpec(*, value: float, unit: Coding)¶
Bases:
BaseModelRepresents a quantity with value and unit
- model_config: ClassVar[ConfigDict] = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class DurationSpec(*, value: int, unit: Coding)¶
Bases:
BaseModelDuration specification using value and unit
- model_config: ClassVar[ConfigDict] = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class CollectionSpec(*, collector: ~typing.Annotated[~uuid.UUID, ~pydantic.types.UuidVersion(uuid_version=4)] | None = None, collected_date_time: ~datetime.datetime | None = None, quantity: ~care.emr.resources.specimen.spec.QuantitySpec | None = None, method: ~care.emr.utils.valueset_coding_type.ValueSetBoundCoding.__class_getitem__.<locals>.BoundCoding | None = None, procedure: ~typing.Annotated[~uuid.UUID, ~pydantic.types.UuidVersion(uuid_version=4)] | None = None, body_site: ~care.emr.utils.valueset_coding_type.ValueSetBoundCoding.__class_getitem__.<locals>.BoundCoding | None = None, fasting_status_codeable_concept: ~care.emr.utils.valueset_coding_type.ValueSetBoundCoding.__class_getitem__.<locals>.BoundCoding | None = None, fasting_status_duration: ~care.emr.resources.specimen.spec.DurationSpec | None = None)¶
Bases:
BaseModelSpecimen collection details
- quantity: QuantitySpec | None¶
- method: BoundCoding | None¶
- body_site: BoundCoding | None¶
- fasting_status_codeable_concept: BoundCoding | None¶
- fasting_status_duration: DurationSpec | None¶
- classmethod validate_collector(collector)¶
- serialize_model()¶
- model_config: ClassVar[ConfigDict] = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class ProcessingSpec(*, description: str, method: ~care.emr.utils.valueset_coding_type.ValueSetBoundCoding.__class_getitem__.<locals>.BoundCoding | None = None, performer: ~typing.Annotated[~uuid.UUID, ~pydantic.types.UuidVersion(uuid_version=4)] | None = None, time_date_time: str)¶
Bases:
BaseModelSpecimen processing details
- method: BoundCoding | None¶
- classmethod validate_performer(performer)¶
- serialize_model()¶
- model_config: ClassVar[ConfigDict] = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class BaseSpecimenSpec(*, meta: dict = {}, id: ~typing.Annotated[~uuid.UUID, ~pydantic.types.UuidVersion(uuid_version=4)] | None = None, accession_identifier: str = '', status: ~care.emr.resources.specimen.spec.SpecimenStatusOptions, specimen_type: ~care.emr.utils.valueset_coding_type.ValueSetBoundCoding.__class_getitem__.<locals>.BoundCoding, received_time: str | None = None, collection: ~care.emr.resources.specimen.spec.CollectionSpec | None = None, processing: list[~care.emr.resources.specimen.spec.ProcessingSpec] = [], condition: list[~care.emr.utils.valueset_coding_type.ValueSetBoundCoding.__class_getitem__.<locals>.BoundCoding] = [], note: str | None = None)¶
Bases:
EMRResourceBase model for specimen
- status: SpecimenStatusOptions¶
- specimen_type: BoundCoding¶
- collection: CollectionSpec | None¶
- processing: list[ProcessingSpec]¶
- condition: list[~care.emr.utils.valueset_coding_type.ValueSetBoundCoding.__class_getitem__.<locals>.BoundCoding]¶
- model_config: ClassVar[ConfigDict] = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class SpecimenUpdateSpec(*, meta: dict = {}, id: ~typing.Annotated[~uuid.UUID, ~pydantic.types.UuidVersion(uuid_version=4)] | None = None, accession_identifier: str = '', status: ~care.emr.resources.specimen.spec.SpecimenStatusOptions | None = None, specimen_type: ~care.emr.utils.valueset_coding_type.ValueSetBoundCoding.__class_getitem__.<locals>.BoundCoding | None = None, received_time: str | None = None, collection: ~care.emr.resources.specimen.spec.CollectionSpec | None = None, processing: list[~care.emr.resources.specimen.spec.ProcessingSpec] = [], condition: list[~care.emr.utils.valueset_coding_type.ValueSetBoundCoding.__class_getitem__.<locals>.BoundCoding] = [], note: str | None = None)¶
Bases:
BaseSpecimenSpecSpecimen update specification
- status: SpecimenStatusOptions | None¶
- specimen_type: BoundCoding | None¶
- model_config: ClassVar[ConfigDict] = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class SpecimenCreateSpec(*, meta: dict = {}, id: ~typing.Annotated[~uuid.UUID, ~pydantic.types.UuidVersion(uuid_version=4)] | None = None, accession_identifier: str = '', status: ~care.emr.resources.specimen.spec.SpecimenStatusOptions, specimen_type: ~care.emr.utils.valueset_coding_type.ValueSetBoundCoding.__class_getitem__.<locals>.BoundCoding, received_time: str | None = None, collection: ~care.emr.resources.specimen.spec.CollectionSpec | None = None, processing: list[~care.emr.resources.specimen.spec.ProcessingSpec] = [], condition: list[~care.emr.utils.valueset_coding_type.ValueSetBoundCoding.__class_getitem__.<locals>.BoundCoding] = [], note: str | None = None, subject_patient: ~typing.Annotated[~uuid.UUID, ~pydantic.types.UuidVersion(uuid_version=4)], subject_encounter: ~typing.Annotated[~uuid.UUID, ~pydantic.types.UuidVersion(uuid_version=4)], request: ~typing.Annotated[~uuid.UUID, ~pydantic.types.UuidVersion(uuid_version=4)] | None = None)¶
Bases:
BaseSpecimenSpecSpecimen creation specification
- model_config: ClassVar[ConfigDict] = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class SpecimenReadSpec(*, meta: dict = {}, id: ~typing.Annotated[~uuid.UUID, ~pydantic.types.UuidVersion(uuid_version=4)] | None = None, accession_identifier: str = '', status: ~care.emr.resources.specimen.spec.SpecimenStatusOptions, specimen_type: ~care.emr.utils.valueset_coding_type.ValueSetBoundCoding.__class_getitem__.<locals>.BoundCoding, received_time: str | None = None, collection: ~care.emr.resources.specimen.spec.CollectionSpec | None = None, processing: list[~care.emr.resources.specimen.spec.ProcessingSpec] = [], condition: list[~care.emr.utils.valueset_coding_type.ValueSetBoundCoding.__class_getitem__.<locals>.BoundCoding] = [], note: str | None = None, specimen_definition: dict | None = None)¶
Bases:
BaseSpecimenSpecSpecimen read specification
- 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 SpecimenRetrieveSpec(*, meta: dict = {}, id: ~typing.Annotated[~uuid.UUID, ~pydantic.types.UuidVersion(uuid_version=4)] | None = None, accession_identifier: str = '', status: ~care.emr.resources.specimen.spec.SpecimenStatusOptions, specimen_type: ~care.emr.utils.valueset_coding_type.ValueSetBoundCoding.__class_getitem__.<locals>.BoundCoding, received_time: str | None = None, collection: ~care.emr.resources.specimen.spec.CollectionSpec | None = None, processing: list[~care.emr.resources.specimen.spec.ProcessingSpec] = [], condition: list[~care.emr.utils.valueset_coding_type.ValueSetBoundCoding.__class_getitem__.<locals>.BoundCoding] = [], note: str | None = None, specimen_definition: dict | None = None, service_request: dict | None = None)¶
Bases:
SpecimenReadSpecSpecimen retrieve specification
- classmethod perform_extra_serialization(mapping, obj)¶
- model_config: ClassVar[ConfigDict] = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].