def update_datum(self, id: int): datum: sdk.Datum = sdk.get_datum(sdk.default_database, id) if id >= 0 else sdk.Datum() self.datum.id = id self.record_no = datum.record_no self.lab_no = datum.lab_no self.mcv = datum.mcv self.wbc = datum.wbc self.hb = datum.hb self.hct = datum.hct
def __init__(self): super().__init__() self.datum: sdk.Datum = sdk.Datum() self.database_path: str = sdk.default_database self._ids: list[int] = list()
def create_datum(self): sdk.add_datum(self.database_path, datum=sdk.Datum()) self.update_ids()
def __init__(self): super().__init__() self.datum: sdk.Datum = sdk.Datum() self.database_path: pathlib.Path = sdk.database_path self._ids: list[int] = list()