v1
ehr_server_knowledge record, v1 — canonical aliases.
Consumers and the record registry import from here and never touch the inner
module names, mirroring flow_specs/v1/__init__.py.
Module
Submodules
- bitfount.cache.types.ehr_server_knowledge.v1.migrations - No inbound migration — this is the base version.
- bitfount.cache.types.ehr_server_knowledge.v1.model - Pydantic record for the
ehr_server_knowledgecache table (v1). - bitfount.cache.types.ehr_server_knowledge.v1.schema - SQLAlchemy ORM for the
ehr_server_knowledgecache table (v1). - bitfount.cache.types.ehr_server_knowledge.v1.store - CRUD for the
ehr_server_knowledgerecord (v1).
Classes
Record
class Record(**data: Any):One thing an EHR server has shown it cannot do.
kind, resource_type, subject, detail and wait_seconds mean what
they mean on bitfount.externals.ehr.service.knowledge_store.Finding.
due_at is when the finding is next tested or, for a confirmed finding,
when it lapses.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be
validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
Variables
- static
detail : str | None
- static
due_at : datetime.datetime | None
- static
ehr_key : str
- static
kind : str
- static
model_config
- static
resource_type : str
- static
subject : str
- static
tags : dict[str, typing.Any] | None
- static
updated_at : datetime.datetime
- static
wait_seconds : float | None
ORM
class ORM(**kwargs):SQLAlchemy model for the ehr_server_knowledge cache table.
One row per finding about one EHR server: a resource type it does not
serve, a search param it refused or was blamed for, or a search that stopped
answering. Every process on the pod that talks to the same EHR reads and
writes the same rows, so what one process learns or clears is acted on by
the others from two minutes after the write at the latest (see
bitfount.externals.ehr.service.pod_cache_knowledge_store.SNAPSHOT_MAX_AGE).
Holds no patient data: subjects are param names or a search's filters, which exclude patient-identifying params.
A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and
values in kwargs.
Only keys that are present as attributes of the instance's class are allowed. These could be, for example, any mapped columns or relationships.
Ancestors
Variables
-
detail : sqlalchemy.orm.base.Mapped[str | None]
-
due_at : sqlalchemy.orm.base.Mapped[str | None]
-
ehr_key : sqlalchemy.orm.base.Mapped[str]
-
kind : sqlalchemy.orm.base.Mapped[str]
-
resource_type : sqlalchemy.orm.base.Mapped[str]
-
subject : sqlalchemy.orm.base.Mapped[str]
-
tags : sqlalchemy.orm.base.Mapped[dict[str, typing.Any] | None]
-
updated_at : sqlalchemy.orm.base.Mapped[str]
-
wait_seconds : sqlalchemy.orm.base.Mapped[float | None]