Module dbops.db_dataclasses
Dataclasses and NamedTuples representing db objects
Classes
class BatchInfo (date_of_service: datetime.date | datetime.datetime | str = datetime.datetime(1, 1, 1, 0, 0), batch_id: int = 0, batch_state: str | BatchState = '')-
container for the date of service, id, and state for a batch
Class variables
var batch_id : intvar batch_state : str | BatchStatevar date_of_service : datetime.date | datetime.datetime | str
Instance variables
prop active : bool-
Based on state. True once reconciled until coding complete.
prop closed : bool-
Based on state. True if cases should not be added.
prop is_new : bool-
Based on state. True if not released to coders.
prop open : bool-
Based on state. True if cases can be added.
Methods
def to_dict(self) ‑> dict[str, typing.Any]-
return
asdictrepresentation