2024-07-24 04:30:01 +08:00
|
|
|
from felicity.apps.abstract.repository import BaseRepository
|
2024-09-22 23:15:27 +08:00
|
|
|
from felicity.apps.patient.entities import (
|
|
|
|
Identification,
|
|
|
|
Patient,
|
|
|
|
PatientIdentification,
|
|
|
|
)
|
2024-07-21 15:06:51 +08:00
|
|
|
|
|
|
|
|
2024-07-22 16:20:56 +08:00
|
|
|
class PatientRepository(BaseRepository[Patient]):
|
2024-07-21 15:06:51 +08:00
|
|
|
def __init__(self) -> None:
|
2024-07-22 16:20:56 +08:00
|
|
|
super().__init__(Patient)
|
2024-07-21 15:06:51 +08:00
|
|
|
|
|
|
|
|
2024-07-28 03:52:31 +08:00
|
|
|
class IdentificationRepository(BaseRepository[Identification]):
|
2024-07-21 15:06:51 +08:00
|
|
|
def __init__(self) -> None:
|
2024-07-24 17:04:53 +08:00
|
|
|
super().__init__(Identification)
|
2024-07-21 15:06:51 +08:00
|
|
|
|
|
|
|
|
2024-07-28 03:52:31 +08:00
|
|
|
class PatientIdentificationRepository(BaseRepository[PatientIdentification]):
|
2024-07-21 15:06:51 +08:00
|
|
|
def __init__(self) -> None:
|
2024-07-24 17:04:53 +08:00
|
|
|
super().__init__(PatientIdentification)
|