healthdatalayer 1.2.0__tar.gz → 1.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of healthdatalayer might be problematic. Click here for more details.
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/PKG-INFO +1 -1
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/bridge_area_floor_branch/branch.py +1 -1
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/client/emergency_contact.py +1 -1
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/client/pathological_history.py +1 -1
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/client/pet.py +1 -1
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/client/px.py +2 -2
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/collaborator/collaborator.py +4 -4
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/lab/client_lab.py +1 -1
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/medical_visit/medical_diagnosis_visit.py +2 -2
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/medical_visit/medical_drug.py +2 -2
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/medical_visit/medical_recipe_visit.py +3 -3
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/medical_visit/medical_visit.py +8 -8
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/medical_visit/organ_system_review.py +1 -1
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/medical_visit/physical_exam.py +1 -1
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/medical_visit/visit_triage.py +1 -1
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/user/permission.py +4 -4
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/user/role.py +4 -4
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/user/user.py +4 -4
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/repositories/client_repositories/address_repository.py +2 -2
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/repositories/client_repositories/client_type_repository.py +2 -2
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/repositories/client_repositories/education_repository.py +2 -2
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/repositories/client_repositories/gender_repository.py +2 -2
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/repositories/client_repositories/marriage_status_repository.py +2 -2
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/repositories/client_repositories/pet_repository.py +2 -2
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/repositories/client_repositories/profession_repository.py +2 -2
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/repositories/client_repositories/px_repository.py +26 -26
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/repositories/collaborator_repositories/collaborator_repository.py +7 -7
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/repositories/collaborator_repositories/collaborator_type_repository.py +2 -2
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/repositories/collaborator_repositories/speciality_repository.py +2 -2
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/repositories/infraestructure_repositories/area_repository.py +2 -2
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/repositories/infraestructure_repositories/branch_repository.py +2 -2
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/repositories/infraestructure_repositories/bridge_repository.py +3 -3
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/repositories/infraestructure_repositories/floor_repository.py +2 -2
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/repositories/infraestructure_repositories/room_repository.py +2 -2
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/repositories/infraestructure_repositories/system_repository.py +2 -2
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/repositories/lab_repositories/measure_lab_repository.py +2 -2
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/repositories/lab_repositories/medical_lab_repository.py +15 -15
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/repositories/medical_visit_repositories/medical_diagnosis_repository.py +2 -2
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/repositories/medical_visit_repositories/medical_diagnosis_visit_repository.py +3 -3
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/repositories/medical_visit_repositories/medical_drug_recipe_repository.py +2 -2
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/repositories/medical_visit_repositories/medical_drug_repository.py +2 -2
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/repositories/medical_visit_repositories/medical_recipe_visit_repository.py +2 -2
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/repositories/medical_visit_repositories/medical_visit_repository.py +2 -2
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/repositories/medical_visit_repositories/organ_system_review_repository.py +3 -3
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/repositories/medical_visit_repositories/physical_exam_repository.py +3 -3
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/repositories/medical_visit_repositories/visit_triage_repository.py +3 -3
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/repositories/user_repositories/permission_repository.py +4 -4
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/repositories/user_repositories/role_repository.py +4 -4
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/repositories/user_repositories/user_repository.py +4 -4
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer.egg-info/PKG-INFO +1 -1
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/setup.py +1 -1
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/README.md +0 -0
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/__init__.py +0 -0
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/config/__init__.py +0 -0
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/config/config.py +0 -0
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/config/db.py +0 -0
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/config/vault.py +0 -0
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/__init__.py +0 -0
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/bridge_area_floor_branch/__init__.py +0 -0
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/bridge_area_floor_branch/area.py +0 -0
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/bridge_area_floor_branch/bridge_area_floor_branch.py +0 -0
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/bridge_area_floor_branch/floor.py +0 -0
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/bridge_area_floor_branch/room.py +0 -0
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/bridge_area_floor_branch/system.py +0 -0
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/client/__init__.py +0 -0
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/client/address.py +0 -0
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/client/client.py +0 -0
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/client/client_type.py +0 -0
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/client/education.py +0 -0
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/client/gender.py +0 -0
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/client/marriage_status.py +0 -0
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/client/nationality.py +0 -0
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/client/profession.py +0 -0
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/collaborator/__init__.py +0 -0
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/collaborator/collaborator_speciality.py +0 -0
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/collaborator/collaborator_type.py +0 -0
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/collaborator/speciality.py +0 -0
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/lab/__init__.py +0 -0
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/lab/measure_lab.py +0 -0
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/lab/medical_lab.py +0 -0
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/medical_visit/__init__.py +0 -0
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/medical_visit/medical_diagnosis.py +0 -0
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/medical_visit/medical_drug_recipe.py +0 -0
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/user/__init__.py +0 -0
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/user/permission_user.py +0 -0
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/user/role_permission.py +0 -0
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/user/role_user.py +0 -0
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/repositories/__init__.py +0 -0
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/repositories/client_repositories/__init__.py +0 -0
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/repositories/collaborator_repositories/__init__.py +0 -0
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/repositories/infraestructure_repositories/__init__.py +0 -0
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/repositories/lab_repositories/__init__.py +0 -0
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/repositories/medical_visit_repositories/__init__.py +0 -0
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/repositories/user_repositories/__init__.py +0 -0
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer.egg-info/SOURCES.txt +0 -0
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer.egg-info/dependency_links.txt +0 -0
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer.egg-info/requires.txt +0 -0
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer.egg-info/top_level.txt +0 -0
- {healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/setup.cfg +0 -0
|
@@ -2,7 +2,7 @@ import uuid
|
|
|
2
2
|
from sqlmodel import SQLModel,Field,Relationship
|
|
3
3
|
from typing import Optional
|
|
4
4
|
|
|
5
|
-
from models.client.px import Px
|
|
5
|
+
from healthdatalayer.models.client.px import Px
|
|
6
6
|
|
|
7
7
|
class PathologicalHistory(SQLModel,table=True):
|
|
8
8
|
__tablename__ = "pathological_history"
|
|
@@ -2,11 +2,11 @@ from typing import Optional, TYPE_CHECKING
|
|
|
2
2
|
from sqlmodel import Field, Relationship
|
|
3
3
|
import uuid
|
|
4
4
|
|
|
5
|
-
from models import Client
|
|
5
|
+
from healthdatalayer.models import Client
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
if TYPE_CHECKING:
|
|
9
|
-
from models import ClientLab
|
|
9
|
+
from healthdatalayer.models import ClientLab
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
class Px(Client, table=True):
|
{healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/collaborator/collaborator.py
RENAMED
|
@@ -2,13 +2,13 @@ import uuid
|
|
|
2
2
|
from typing import Optional, List, TYPE_CHECKING
|
|
3
3
|
from sqlmodel import SQLModel, Field, Relationship
|
|
4
4
|
|
|
5
|
-
from models import User
|
|
6
|
-
from models import CollaboratorSpeciality
|
|
5
|
+
from healthdatalayer.models import User
|
|
6
|
+
from healthdatalayer.models import CollaboratorSpeciality
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
if TYPE_CHECKING:
|
|
10
|
-
from models import Speciality
|
|
11
|
-
from models import CollaboratorType
|
|
10
|
+
from healthdatalayer.models import Speciality
|
|
11
|
+
from healthdatalayer.models import CollaboratorType
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
class Collaborator(SQLModel, table=True):
|
|
@@ -3,7 +3,7 @@ from sqlmodel import SQLModel,Field,Relationship
|
|
|
3
3
|
from typing import Optional, TYPE_CHECKING
|
|
4
4
|
|
|
5
5
|
if TYPE_CHECKING:
|
|
6
|
-
from models.client.px import Px
|
|
6
|
+
from healthdatalayer.models.client.px import Px
|
|
7
7
|
|
|
8
8
|
class ClientLab(SQLModel,table=True):
|
|
9
9
|
__tablename__ = "client_lab"
|
|
@@ -2,10 +2,10 @@ import uuid
|
|
|
2
2
|
from datetime import datetime
|
|
3
3
|
from typing import Optional, TYPE_CHECKING
|
|
4
4
|
from sqlmodel import SQLModel, Field, Relationship
|
|
5
|
-
from models import MedicalDiagnosis
|
|
5
|
+
from healthdatalayer.models import MedicalDiagnosis
|
|
6
6
|
|
|
7
7
|
if TYPE_CHECKING:
|
|
8
|
-
from models import MedicalVisit
|
|
8
|
+
from healthdatalayer.models import MedicalVisit
|
|
9
9
|
|
|
10
10
|
class MedicalDiagnosisVisit(SQLModel, table=True):
|
|
11
11
|
__tablename__ = "medical_diagnosis_visit"
|
{healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/medical_visit/medical_drug.py
RENAMED
|
@@ -3,10 +3,10 @@ from datetime import datetime
|
|
|
3
3
|
from typing import Optional, List, TYPE_CHECKING
|
|
4
4
|
from sqlmodel import SQLModel, Field, Relationship
|
|
5
5
|
|
|
6
|
-
from models.medical_visit.medical_drug_recipe import MedicalDrugRecipe
|
|
6
|
+
from healthdatalayer.models.medical_visit.medical_drug_recipe import MedicalDrugRecipe
|
|
7
7
|
|
|
8
8
|
if TYPE_CHECKING:
|
|
9
|
-
from models.medical_visit.medical_recipe_visit import MedicalRecipeVisit
|
|
9
|
+
from healthdatalayer.models.medical_visit.medical_recipe_visit import MedicalRecipeVisit
|
|
10
10
|
|
|
11
11
|
class MedicalDrug(SQLModel, table=True):
|
|
12
12
|
__tablename__ = "medical_drug"
|
|
@@ -4,11 +4,11 @@ from typing import Optional, List, TYPE_CHECKING
|
|
|
4
4
|
from sqlmodel import SQLModel, Field, Relationship
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
from models import MedicalDrugRecipe
|
|
7
|
+
from healthdatalayer.models import MedicalDrugRecipe
|
|
8
8
|
|
|
9
9
|
if TYPE_CHECKING:
|
|
10
|
-
from models.medical_visit.medical_drug import MedicalDrug
|
|
11
|
-
from models import MedicalVisit
|
|
10
|
+
from healthdatalayer.models.medical_visit.medical_drug import MedicalDrug
|
|
11
|
+
from healthdatalayer.models import MedicalVisit
|
|
12
12
|
|
|
13
13
|
class MedicalRecipeVisit(SQLModel, table=True):
|
|
14
14
|
__tablename__ = "medical_recipe_visit"
|
|
@@ -3,16 +3,16 @@ from datetime import datetime
|
|
|
3
3
|
from typing import Optional, List, TYPE_CHECKING
|
|
4
4
|
from sqlmodel import SQLModel, Field, Relationship
|
|
5
5
|
|
|
6
|
-
from models import Collaborator
|
|
6
|
+
from healthdatalayer.models import Collaborator
|
|
7
7
|
|
|
8
|
-
from models import Speciality
|
|
9
|
-
from models import BridgeAreaFloorBranch
|
|
8
|
+
from healthdatalayer.models import Speciality
|
|
9
|
+
from healthdatalayer.models import BridgeAreaFloorBranch
|
|
10
10
|
if TYPE_CHECKING:
|
|
11
|
-
from models import Px
|
|
12
|
-
from models import MedicalDiagnosisVisit
|
|
13
|
-
from models import MedicalRecipeVisit
|
|
14
|
-
from models import OrganSystemReview
|
|
15
|
-
from models import PhysicalExam
|
|
11
|
+
from healthdatalayer.models import Px
|
|
12
|
+
from healthdatalayer.models import MedicalDiagnosisVisit
|
|
13
|
+
from healthdatalayer.models import MedicalRecipeVisit
|
|
14
|
+
from healthdatalayer.models import OrganSystemReview
|
|
15
|
+
from healthdatalayer.models import PhysicalExam
|
|
16
16
|
class MedicalVisit(SQLModel, table=True):
|
|
17
17
|
__tablename__ = "medical_visit"
|
|
18
18
|
|
|
@@ -2,7 +2,7 @@ import uuid
|
|
|
2
2
|
from typing import Optional,TYPE_CHECKING
|
|
3
3
|
from sqlmodel import SQLModel, Field, Relationship
|
|
4
4
|
if TYPE_CHECKING:
|
|
5
|
-
from models import MedicalVisit
|
|
5
|
+
from healthdatalayer.models import MedicalVisit
|
|
6
6
|
|
|
7
7
|
class OrganSystemReview(SQLModel, table=True):
|
|
8
8
|
__tablename__ = "organ_system_review"
|
|
@@ -3,7 +3,7 @@ from typing import Optional,TYPE_CHECKING
|
|
|
3
3
|
from sqlmodel import SQLModel, Field, Relationship
|
|
4
4
|
|
|
5
5
|
if TYPE_CHECKING:
|
|
6
|
-
from models import MedicalVisit
|
|
6
|
+
from healthdatalayer.models import MedicalVisit
|
|
7
7
|
|
|
8
8
|
class PhysicalExam(SQLModel, table=True):
|
|
9
9
|
__tablename__ = "physical_exam"
|
{healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/medical_visit/visit_triage.py
RENAMED
|
@@ -4,7 +4,7 @@ from sqlmodel import SQLModel, Field, Relationship
|
|
|
4
4
|
from decimal import Decimal
|
|
5
5
|
|
|
6
6
|
if TYPE_CHECKING:
|
|
7
|
-
from models.medical_visit.medical_visit import MedicalVisit
|
|
7
|
+
from healthdatalayer.models.medical_visit.medical_visit import MedicalVisit
|
|
8
8
|
|
|
9
9
|
class VisitTriage(SQLModel, table=True):
|
|
10
10
|
__tablename__ = "visit_triage"
|
|
@@ -2,12 +2,12 @@ import uuid
|
|
|
2
2
|
from sqlmodel import SQLModel, Field, Relationship
|
|
3
3
|
from typing import List, TYPE_CHECKING
|
|
4
4
|
|
|
5
|
-
from models.user.role_permission import RolePermission
|
|
6
|
-
from models.user.permission_user import PermissionUser
|
|
5
|
+
from healthdatalayer.models.user.role_permission import RolePermission
|
|
6
|
+
from healthdatalayer.models.user.permission_user import PermissionUser
|
|
7
7
|
|
|
8
8
|
if TYPE_CHECKING:
|
|
9
|
-
from models.user.user import User
|
|
10
|
-
from models.user.role import Role
|
|
9
|
+
from healthdatalayer.models.user.user import User
|
|
10
|
+
from healthdatalayer.models.user.role import Role
|
|
11
11
|
|
|
12
12
|
class Permission(SQLModel, table=True):
|
|
13
13
|
__tablename__ = "permission"
|
|
@@ -2,12 +2,12 @@ import uuid
|
|
|
2
2
|
from sqlmodel import SQLModel, Field, Relationship
|
|
3
3
|
from typing import List, TYPE_CHECKING
|
|
4
4
|
|
|
5
|
-
from models.user.role_user import RoleUser
|
|
6
|
-
from models.user.role_permission import RolePermission
|
|
5
|
+
from healthdatalayer.models.user.role_user import RoleUser
|
|
6
|
+
from healthdatalayer.models.user.role_permission import RolePermission
|
|
7
7
|
|
|
8
8
|
if TYPE_CHECKING:
|
|
9
|
-
from models.user.user import User
|
|
10
|
-
from models.user.permission import Permission
|
|
9
|
+
from healthdatalayer.models.user.user import User
|
|
10
|
+
from healthdatalayer.models.user.permission import Permission
|
|
11
11
|
|
|
12
12
|
class Role(SQLModel, table=True):
|
|
13
13
|
__tablename__ = "role"
|
|
@@ -3,11 +3,11 @@ from sqlmodel import SQLModel,Field, Relationship
|
|
|
3
3
|
from datetime import datetime
|
|
4
4
|
from typing import Optional, List, TYPE_CHECKING
|
|
5
5
|
|
|
6
|
-
from models.user.role_user import RoleUser
|
|
7
|
-
from models.user.permission_user import PermissionUser
|
|
6
|
+
from healthdatalayer.models.user.role_user import RoleUser
|
|
7
|
+
from healthdatalayer.models.user.permission_user import PermissionUser
|
|
8
8
|
|
|
9
|
-
from models.user.role import Role
|
|
10
|
-
from models.user.permission import Permission
|
|
9
|
+
from healthdatalayer.models.user.role import Role
|
|
10
|
+
from healthdatalayer.models.user.permission import Permission
|
|
11
11
|
|
|
12
12
|
class User(SQLModel,table=True):
|
|
13
13
|
__tablename__ = "user"
|
|
@@ -2,8 +2,8 @@ from typing import Optional, List
|
|
|
2
2
|
from uuid import UUID
|
|
3
3
|
from sqlmodel import select
|
|
4
4
|
|
|
5
|
-
from models import Address
|
|
6
|
-
from config.db import engines, get_session
|
|
5
|
+
from healthdatalayer.models import Address
|
|
6
|
+
from healthdatalayer.config.db import engines, get_session
|
|
7
7
|
|
|
8
8
|
class AddressRepository:
|
|
9
9
|
|
|
@@ -2,8 +2,8 @@ from typing import Optional, List
|
|
|
2
2
|
from uuid import UUID
|
|
3
3
|
from sqlmodel import select
|
|
4
4
|
|
|
5
|
-
from models import ClientType
|
|
6
|
-
from config.db import engines, get_session
|
|
5
|
+
from healthdatalayer.models import ClientType
|
|
6
|
+
from healthdatalayer.config.db import engines, get_session
|
|
7
7
|
|
|
8
8
|
class ClientTypeRepository:
|
|
9
9
|
def __init__(self, tenant: str):
|
|
@@ -2,8 +2,8 @@ from typing import Optional, List
|
|
|
2
2
|
from uuid import UUID
|
|
3
3
|
from sqlmodel import select
|
|
4
4
|
|
|
5
|
-
from models import Education
|
|
6
|
-
from config.db import engines, get_session
|
|
5
|
+
from healthdatalayer.models import Education
|
|
6
|
+
from healthdatalayer.config.db import engines, get_session
|
|
7
7
|
|
|
8
8
|
class EducationRepository:
|
|
9
9
|
|
|
@@ -2,8 +2,8 @@ from typing import Optional, List
|
|
|
2
2
|
from uuid import UUID
|
|
3
3
|
from sqlmodel import select
|
|
4
4
|
|
|
5
|
-
from models import Gender
|
|
6
|
-
from config.db import engines, get_session
|
|
5
|
+
from healthdatalayer.models import Gender
|
|
6
|
+
from healthdatalayer.config.db import engines, get_session
|
|
7
7
|
|
|
8
8
|
class GenderRepository:
|
|
9
9
|
|
|
@@ -2,8 +2,8 @@ from typing import Optional, List
|
|
|
2
2
|
from uuid import UUID
|
|
3
3
|
from sqlmodel import select
|
|
4
4
|
|
|
5
|
-
from models import MarriageStatus
|
|
6
|
-
from config.db import engines, get_session
|
|
5
|
+
from healthdatalayer.models import MarriageStatus
|
|
6
|
+
from healthdatalayer.config.db import engines, get_session
|
|
7
7
|
|
|
8
8
|
class MarriageStatusRepository:
|
|
9
9
|
|
|
@@ -3,8 +3,8 @@ from uuid import UUID
|
|
|
3
3
|
from sqlmodel import select
|
|
4
4
|
from sqlalchemy.orm import selectinload
|
|
5
5
|
|
|
6
|
-
from models import Pet
|
|
7
|
-
from config.db import engines, get_session
|
|
6
|
+
from healthdatalayer.models import Pet
|
|
7
|
+
from healthdatalayer.config.db import engines, get_session
|
|
8
8
|
|
|
9
9
|
class PetRepository:
|
|
10
10
|
def __init__(self, tenant: str):
|
|
@@ -2,8 +2,8 @@ from typing import Optional, List
|
|
|
2
2
|
from uuid import UUID
|
|
3
3
|
from sqlmodel import select
|
|
4
4
|
|
|
5
|
-
from models import Profession
|
|
6
|
-
from config.db import engines, get_session
|
|
5
|
+
from healthdatalayer.models import Profession
|
|
6
|
+
from healthdatalayer.config.db import engines, get_session
|
|
7
7
|
|
|
8
8
|
class ProfessionRepository:
|
|
9
9
|
|
|
@@ -2,8 +2,8 @@ from typing import Optional, List
|
|
|
2
2
|
from uuid import UUID
|
|
3
3
|
from sqlmodel import select
|
|
4
4
|
|
|
5
|
-
from models import Px
|
|
6
|
-
from config.db import engines, get_session
|
|
5
|
+
from healthdatalayer.models import Px
|
|
6
|
+
from healthdatalayer.config.db import engines, get_session
|
|
7
7
|
|
|
8
8
|
class PxRepository:
|
|
9
9
|
def __init__(self, tenant: str):
|
|
@@ -24,32 +24,32 @@ class PxRepository:
|
|
|
24
24
|
|
|
25
25
|
if px and load_relations:
|
|
26
26
|
if px.gender_id:
|
|
27
|
-
from models.client.gender import Gender
|
|
27
|
+
from healthdatalayer.models.client.gender import Gender
|
|
28
28
|
gender_obj = session.get(Gender, px.gender_id)
|
|
29
29
|
object.__setattr__(px, 'gender', gender_obj)
|
|
30
30
|
|
|
31
31
|
if px.address_id:
|
|
32
|
-
from models.client.address import Address
|
|
32
|
+
from healthdatalayer.models.client.address import Address
|
|
33
33
|
address_obj = session.get(Address, px.address_id)
|
|
34
34
|
object.__setattr__(px, 'address', address_obj)
|
|
35
35
|
|
|
36
36
|
if px.marriage_status_id:
|
|
37
|
-
from models.client.marriage_status import MarriageStatus
|
|
37
|
+
from healthdatalayer.models.client.marriage_status import MarriageStatus
|
|
38
38
|
marriage_status_obj = session.get(MarriageStatus, px.marriage_status_id)
|
|
39
39
|
object.__setattr__(px, 'marriage_status', marriage_status_obj)
|
|
40
40
|
|
|
41
41
|
if px.profession_id:
|
|
42
|
-
from models.client.profession import Profession
|
|
42
|
+
from healthdatalayer.models.client.profession import Profession
|
|
43
43
|
profession_obj = session.get(Profession, px.profession_id)
|
|
44
44
|
object.__setattr__(px, 'profession', profession_obj)
|
|
45
45
|
|
|
46
46
|
if px.education_id:
|
|
47
|
-
from models.client.education import Education
|
|
47
|
+
from healthdatalayer.models.client.education import Education
|
|
48
48
|
education_obj = session.get(Education, px.education_id)
|
|
49
49
|
object.__setattr__(px, 'education', education_obj)
|
|
50
50
|
|
|
51
51
|
if px.user_id:
|
|
52
|
-
from models.user.user import User
|
|
52
|
+
from healthdatalayer.models.user.user import User
|
|
53
53
|
user_obj = session.get(User, px.user_id)
|
|
54
54
|
object.__setattr__(px, 'user', user_obj)
|
|
55
55
|
|
|
@@ -62,32 +62,32 @@ class PxRepository:
|
|
|
62
62
|
|
|
63
63
|
if px and load_relations:
|
|
64
64
|
if px.gender_id:
|
|
65
|
-
from models.client.gender import Gender
|
|
65
|
+
from healthdatalayer.models.client.gender import Gender
|
|
66
66
|
gender_obj = session.get(Gender, px.gender_id)
|
|
67
67
|
object.__setattr__(px, 'gender', gender_obj)
|
|
68
68
|
|
|
69
69
|
if px.address_id:
|
|
70
|
-
from models.client.address import Address
|
|
70
|
+
from healthdatalayer.models.client.address import Address
|
|
71
71
|
address_obj = session.get(Address, px.address_id)
|
|
72
72
|
object.__setattr__(px, 'address', address_obj)
|
|
73
73
|
|
|
74
74
|
if px.marriage_status_id:
|
|
75
|
-
from models.client.marriage_status import MarriageStatus
|
|
75
|
+
from healthdatalayer.models.client.marriage_status import MarriageStatus
|
|
76
76
|
marriage_status_obj = session.get(MarriageStatus, px.marriage_status_id)
|
|
77
77
|
object.__setattr__(px, 'marriage_status', marriage_status_obj)
|
|
78
78
|
|
|
79
79
|
if px.profession_id:
|
|
80
|
-
from models.client.profession import Profession
|
|
80
|
+
from healthdatalayer.models.client.profession import Profession
|
|
81
81
|
profession_obj = session.get(Profession, px.profession_id)
|
|
82
82
|
object.__setattr__(px, 'profession', profession_obj)
|
|
83
83
|
|
|
84
84
|
if px.education_id:
|
|
85
|
-
from models.client.education import Education
|
|
85
|
+
from healthdatalayer.models.client.education import Education
|
|
86
86
|
education_obj = session.get(Education, px.education_id)
|
|
87
87
|
object.__setattr__(px, 'education', education_obj)
|
|
88
88
|
|
|
89
89
|
if px.user_id:
|
|
90
|
-
from models.user.user import User
|
|
90
|
+
from healthdatalayer.models.user.user import User
|
|
91
91
|
user_obj = session.get(User, px.user_id)
|
|
92
92
|
object.__setattr__(px, 'user', user_obj)
|
|
93
93
|
|
|
@@ -105,32 +105,32 @@ class PxRepository:
|
|
|
105
105
|
if load_relations:
|
|
106
106
|
for px in results:
|
|
107
107
|
if px.gender_id:
|
|
108
|
-
from models.client.gender import Gender
|
|
108
|
+
from healthdatalayer.models.client.gender import Gender
|
|
109
109
|
gender_obj = session.get(Gender, px.gender_id)
|
|
110
110
|
object.__setattr__(px, 'gender', gender_obj)
|
|
111
111
|
|
|
112
112
|
if px.address_id:
|
|
113
|
-
from models.client.address import Address
|
|
113
|
+
from healthdatalayer.models.client.address import Address
|
|
114
114
|
address_obj = session.get(Address, px.address_id)
|
|
115
115
|
object.__setattr__(px, 'address', address_obj)
|
|
116
116
|
|
|
117
117
|
if px.marriage_status_id:
|
|
118
|
-
from models.client.marriage_status import MarriageStatus
|
|
118
|
+
from healthdatalayer.models.client.marriage_status import MarriageStatus
|
|
119
119
|
marriage_status_obj = session.get(MarriageStatus, px.marriage_status_id)
|
|
120
120
|
object.__setattr__(px, 'marriage_status', marriage_status_obj)
|
|
121
121
|
|
|
122
122
|
if px.profession_id:
|
|
123
|
-
from models.client.profession import Profession
|
|
123
|
+
from healthdatalayer.models.client.profession import Profession
|
|
124
124
|
profession_obj = session.get(Profession, px.profession_id)
|
|
125
125
|
object.__setattr__(px, 'profession', profession_obj)
|
|
126
126
|
|
|
127
127
|
if px.education_id:
|
|
128
|
-
from models.client.education import Education
|
|
128
|
+
from healthdatalayer.models.client.education import Education
|
|
129
129
|
education_obj = session.get(Education, px.education_id)
|
|
130
130
|
object.__setattr__(px, 'education', education_obj)
|
|
131
131
|
|
|
132
132
|
if px.user_id:
|
|
133
|
-
from models.user.user import User
|
|
133
|
+
from healthdatalayer.models.user.user import User
|
|
134
134
|
user_obj = session.get(User, px.user_id)
|
|
135
135
|
object.__setattr__(px, 'user', user_obj)
|
|
136
136
|
|
|
@@ -148,32 +148,32 @@ class PxRepository:
|
|
|
148
148
|
if load_relations:
|
|
149
149
|
for px in results:
|
|
150
150
|
if px.gender_id:
|
|
151
|
-
from models.client.gender import Gender
|
|
151
|
+
from healthdatalayer.models.client.gender import Gender
|
|
152
152
|
gender_obj = session.get(Gender, px.gender_id)
|
|
153
153
|
object.__setattr__(px, 'gender', gender_obj)
|
|
154
154
|
|
|
155
155
|
if px.address_id:
|
|
156
|
-
from models.client.address import Address
|
|
156
|
+
from healthdatalayer.models.client.address import Address
|
|
157
157
|
address_obj = session.get(Address, px.address_id)
|
|
158
158
|
object.__setattr__(px, 'address', address_obj)
|
|
159
159
|
|
|
160
160
|
if px.marriage_status_id:
|
|
161
|
-
from models.client.marriage_status import MarriageStatus
|
|
161
|
+
from healthdatalayer.models.client.marriage_status import MarriageStatus
|
|
162
162
|
marriage_status_obj = session.get(MarriageStatus, px.marriage_status_id)
|
|
163
163
|
object.__setattr__(px, 'marriage_status', marriage_status_obj)
|
|
164
164
|
|
|
165
165
|
if px.profession_id:
|
|
166
|
-
from models.client.profession import Profession
|
|
166
|
+
from healthdatalayer.models.client.profession import Profession
|
|
167
167
|
profession_obj = session.get(Profession, px.profession_id)
|
|
168
168
|
object.__setattr__(px, 'profession', profession_obj)
|
|
169
169
|
|
|
170
170
|
if px.education_id:
|
|
171
|
-
from models.client.education import Education
|
|
171
|
+
from healthdatalayer.models.client.education import Education
|
|
172
172
|
education_obj = session.get(Education, px.education_id)
|
|
173
173
|
object.__setattr__(px, 'education', education_obj)
|
|
174
174
|
|
|
175
175
|
if px.user_id:
|
|
176
|
-
from models.user.user import User
|
|
176
|
+
from healthdatalayer.models.user.user import User
|
|
177
177
|
user_obj = session.get(User, px.user_id)
|
|
178
178
|
object.__setattr__(px, 'user', user_obj)
|
|
179
179
|
|
|
@@ -2,9 +2,9 @@ from typing import Optional, List
|
|
|
2
2
|
from uuid import UUID
|
|
3
3
|
from sqlmodel import select, or_
|
|
4
4
|
from sqlalchemy.orm import selectinload,joinedload
|
|
5
|
-
from models import Collaborator
|
|
6
|
-
from models import Speciality
|
|
7
|
-
from config.db import engines, get_session
|
|
5
|
+
from healthdatalayer.models import Collaborator
|
|
6
|
+
from healthdatalayer.models import Speciality
|
|
7
|
+
from healthdatalayer.config.db import engines, get_session
|
|
8
8
|
|
|
9
9
|
class CollaboratorRepository:
|
|
10
10
|
def __init__(self, tenant: str):
|
|
@@ -29,12 +29,12 @@ class CollaboratorRepository:
|
|
|
29
29
|
if load_relations:
|
|
30
30
|
|
|
31
31
|
if collaborator.collaborator_type_id:
|
|
32
|
-
from models.collaborator.collaborator_type import CollaboratorType
|
|
32
|
+
from healthdatalayer.models.collaborator.collaborator_type import CollaboratorType
|
|
33
33
|
collab_type_obj = session.get(CollaboratorType, collaborator.collaborator_type_id)
|
|
34
34
|
object.__setattr__(collaborator,'collaborator_type', collab_type_obj)
|
|
35
35
|
|
|
36
36
|
if collaborator.user_id:
|
|
37
|
-
from models.user.user import User
|
|
37
|
+
from healthdatalayer.models.user.user import User
|
|
38
38
|
user_obj = session.get(User, collaborator.user_id)
|
|
39
39
|
object.__setattr__(collaborator,'user',user_obj)
|
|
40
40
|
|
|
@@ -89,12 +89,12 @@ class CollaboratorRepository:
|
|
|
89
89
|
|
|
90
90
|
for collaborator in collaborators:
|
|
91
91
|
if collaborator.collaborator_type_id:
|
|
92
|
-
from models.collaborator.collaborator_type import CollaboratorType
|
|
92
|
+
from healthdatalayer.models.collaborator.collaborator_type import CollaboratorType
|
|
93
93
|
collab_type_obj = session.get(CollaboratorType, collaborator.collaborator_type_id)
|
|
94
94
|
object.__setattr__(collaborator,'collaborator_type', collab_type_obj)
|
|
95
95
|
|
|
96
96
|
if collaborator.user_id:
|
|
97
|
-
from models.user.user import User
|
|
97
|
+
from healthdatalayer.models.user.user import User
|
|
98
98
|
user_obj = session.get(User, collaborator.user_id)
|
|
99
99
|
object.__setattr__(collaborator,'user',user_obj)
|
|
100
100
|
return collaborators
|
|
@@ -2,8 +2,8 @@ from typing import Optional, List
|
|
|
2
2
|
from uuid import UUID
|
|
3
3
|
from sqlmodel import select
|
|
4
4
|
|
|
5
|
-
from models import CollaboratorType
|
|
6
|
-
from config.db import engines, get_session
|
|
5
|
+
from healthdatalayer.models import CollaboratorType
|
|
6
|
+
from healthdatalayer.config.db import engines, get_session
|
|
7
7
|
|
|
8
8
|
class CollaboratorTypeRepository:
|
|
9
9
|
def __init__(self, tenant: str):
|
|
@@ -2,8 +2,8 @@ from typing import Optional, List
|
|
|
2
2
|
from uuid import UUID
|
|
3
3
|
from sqlmodel import select
|
|
4
4
|
|
|
5
|
-
from models import Speciality
|
|
6
|
-
from config.db import engines, get_session
|
|
5
|
+
from healthdatalayer.models import Speciality
|
|
6
|
+
from healthdatalayer.config.db import engines, get_session
|
|
7
7
|
|
|
8
8
|
class SpecialityRepository:
|
|
9
9
|
def __init__(self, tenant: str):
|
|
@@ -2,8 +2,8 @@ from typing import Optional, List
|
|
|
2
2
|
from uuid import UUID
|
|
3
3
|
from sqlmodel import select
|
|
4
4
|
|
|
5
|
-
from models import Area
|
|
6
|
-
from config.db import engines, get_session
|
|
5
|
+
from healthdatalayer.models import Area
|
|
6
|
+
from healthdatalayer.config.db import engines, get_session
|
|
7
7
|
|
|
8
8
|
class AreaRepository:
|
|
9
9
|
def __init__(self, tenant: str):
|
|
@@ -2,8 +2,8 @@ from typing import Optional, List
|
|
|
2
2
|
from uuid import UUID
|
|
3
3
|
from sqlmodel import select
|
|
4
4
|
|
|
5
|
-
from models import Branch
|
|
6
|
-
from config.db import engines, get_session
|
|
5
|
+
from healthdatalayer.models import Branch
|
|
6
|
+
from healthdatalayer.config.db import engines, get_session
|
|
7
7
|
|
|
8
8
|
class BranchRepository:
|
|
9
9
|
def __init__(self, tenant: str):
|
|
@@ -3,9 +3,9 @@ from uuid import UUID
|
|
|
3
3
|
from sqlmodel import select
|
|
4
4
|
from sqlalchemy.orm import selectinload,joinedload
|
|
5
5
|
|
|
6
|
-
from models import BridgeAreaFloorBranch
|
|
7
|
-
from models import Branch
|
|
8
|
-
from config.db import engines, get_session
|
|
6
|
+
from healthdatalayer.models import BridgeAreaFloorBranch
|
|
7
|
+
from healthdatalayer.models import Branch
|
|
8
|
+
from healthdatalayer.config.db import engines, get_session
|
|
9
9
|
|
|
10
10
|
class BridgeAreaFloorBranchRepository:
|
|
11
11
|
def __init__(self, tenant: str):
|
|
@@ -2,8 +2,8 @@ from typing import Optional, List
|
|
|
2
2
|
from uuid import UUID
|
|
3
3
|
from sqlmodel import select
|
|
4
4
|
|
|
5
|
-
from models import Floor
|
|
6
|
-
from config.db import engines, get_session
|
|
5
|
+
from healthdatalayer.models import Floor
|
|
6
|
+
from healthdatalayer.config.db import engines, get_session
|
|
7
7
|
|
|
8
8
|
class FloorRepository:
|
|
9
9
|
def __init__(self, tenant: str):
|
|
@@ -2,8 +2,8 @@ from typing import Optional, List
|
|
|
2
2
|
from uuid import UUID
|
|
3
3
|
from sqlmodel import select
|
|
4
4
|
|
|
5
|
-
from models import Room
|
|
6
|
-
from config.db import engines, get_session
|
|
5
|
+
from healthdatalayer.models import Room
|
|
6
|
+
from healthdatalayer.config.db import engines, get_session
|
|
7
7
|
|
|
8
8
|
class RoomRepository:
|
|
9
9
|
def __init__(self, tenant: str):
|
|
@@ -2,8 +2,8 @@ from typing import Optional, List
|
|
|
2
2
|
from uuid import UUID
|
|
3
3
|
from sqlmodel import select
|
|
4
4
|
|
|
5
|
-
from models import System
|
|
6
|
-
from config.db import engines, get_session
|
|
5
|
+
from healthdatalayer.models import System
|
|
6
|
+
from healthdatalayer.config.db import engines, get_session
|
|
7
7
|
|
|
8
8
|
class SystemRepository:
|
|
9
9
|
def __init__(self, tenant: str):
|
|
@@ -2,8 +2,8 @@ from typing import Optional, List
|
|
|
2
2
|
from uuid import UUID
|
|
3
3
|
from sqlmodel import select
|
|
4
4
|
|
|
5
|
-
from models import MeasureLab
|
|
6
|
-
from config.db import engines, get_session
|
|
5
|
+
from healthdatalayer.models import MeasureLab
|
|
6
|
+
from healthdatalayer.config.db import engines, get_session
|
|
7
7
|
|
|
8
8
|
class MeasureLabRepository:
|
|
9
9
|
def __init__(self, tenant: str):
|
|
@@ -2,9 +2,9 @@ from typing import Optional, List
|
|
|
2
2
|
from uuid import UUID
|
|
3
3
|
from sqlmodel import select
|
|
4
4
|
|
|
5
|
-
from models import MedicalLab
|
|
6
|
-
from models import Px
|
|
7
|
-
from config.db import engines, get_session
|
|
5
|
+
from healthdatalayer.models import MedicalLab
|
|
6
|
+
from healthdatalayer.models import Px
|
|
7
|
+
from healthdatalayer.config.db import engines, get_session
|
|
8
8
|
|
|
9
9
|
class MedicalLabRepository:
|
|
10
10
|
def __init__(self, tenant: str):
|
|
@@ -25,11 +25,11 @@ class MedicalLabRepository:
|
|
|
25
25
|
|
|
26
26
|
if medical_lab and load_relations:
|
|
27
27
|
if medical_lab.measure_lab_id:
|
|
28
|
-
from models import MeasureLab
|
|
28
|
+
from healthdatalayer.models import MeasureLab
|
|
29
29
|
measure_lab_obj = session.get(MeasureLab, medical_lab.measure_lab_id)
|
|
30
30
|
object.__setattr__(medical_lab, 'measure_lab', measure_lab_obj)
|
|
31
31
|
|
|
32
|
-
from models.lab.client_lab import ClientLab
|
|
32
|
+
from healthdatalayer.models.lab.client_lab import ClientLab
|
|
33
33
|
statement = select(ClientLab).where(ClientLab.medical_lab_id == medical_lab_id)
|
|
34
34
|
client_labs = session.exec(statement).all()
|
|
35
35
|
|
|
@@ -50,11 +50,11 @@ class MedicalLabRepository:
|
|
|
50
50
|
|
|
51
51
|
if medical_lab and load_relations:
|
|
52
52
|
if medical_lab.measure_lab_id:
|
|
53
|
-
from models import MeasureLab
|
|
53
|
+
from healthdatalayer.models import MeasureLab
|
|
54
54
|
measure_lab_obj = session.get(MeasureLab, medical_lab.measure_lab_id)
|
|
55
55
|
object.__setattr__(medical_lab, 'measure_lab', measure_lab_obj)
|
|
56
56
|
|
|
57
|
-
from models.lab.client_lab import ClientLab
|
|
57
|
+
from healthdatalayer.models.lab.client_lab import ClientLab
|
|
58
58
|
statement_cl = select(ClientLab).where(ClientLab.medical_lab_id == medical_lab.medical_lab_id)
|
|
59
59
|
client_labs = session.exec(statement_cl).all()
|
|
60
60
|
|
|
@@ -74,8 +74,8 @@ class MedicalLabRepository:
|
|
|
74
74
|
results = session.exec(statement).all()
|
|
75
75
|
|
|
76
76
|
if load_relations:
|
|
77
|
-
from models import MeasureLab
|
|
78
|
-
from models.lab.client_lab import ClientLab
|
|
77
|
+
from healthdatalayer.models import MeasureLab
|
|
78
|
+
from healthdatalayer.models.lab.client_lab import ClientLab
|
|
79
79
|
|
|
80
80
|
for medical_lab in results:
|
|
81
81
|
if medical_lab.measure_lab_id:
|
|
@@ -105,8 +105,8 @@ class MedicalLabRepository:
|
|
|
105
105
|
results = session.exec(statement).all()
|
|
106
106
|
|
|
107
107
|
if load_relations:
|
|
108
|
-
from models import MeasureLab
|
|
109
|
-
from models.lab.client_lab import ClientLab
|
|
108
|
+
from healthdatalayer.models import MeasureLab
|
|
109
|
+
from healthdatalayer.models.lab.client_lab import ClientLab
|
|
110
110
|
|
|
111
111
|
for medical_lab in results:
|
|
112
112
|
if medical_lab.measure_lab_id:
|
|
@@ -175,7 +175,7 @@ class MedicalLabRepository:
|
|
|
175
175
|
def get_medical_lab_patients_command(self, medical_lab_id: UUID) -> List[Px]:
|
|
176
176
|
"""Get all patients associated with a medical lab"""
|
|
177
177
|
with get_session(self.tenant) as session:
|
|
178
|
-
from models.lab.client_lab import ClientLab
|
|
178
|
+
from healthdatalayer.models.lab.client_lab import ClientLab
|
|
179
179
|
|
|
180
180
|
statement = select(ClientLab).where(ClientLab.medical_lab_id == medical_lab_id)
|
|
181
181
|
client_labs = session.exec(statement).all()
|
|
@@ -191,7 +191,7 @@ class MedicalLabRepository:
|
|
|
191
191
|
def assign_patient_command(self, medical_lab_id: UUID, px_id: UUID) -> Optional[MedicalLab]:
|
|
192
192
|
"""Assign a patient to a medical lab"""
|
|
193
193
|
with get_session(self.tenant) as session:
|
|
194
|
-
from models.lab.client_lab import ClientLab
|
|
194
|
+
from healthdatalayer.models.lab.client_lab import ClientLab
|
|
195
195
|
|
|
196
196
|
medical_lab = session.get(MedicalLab, medical_lab_id)
|
|
197
197
|
if not medical_lab:
|
|
@@ -219,7 +219,7 @@ class MedicalLabRepository:
|
|
|
219
219
|
def remove_patient_command(self, medical_lab_id: UUID, px_id: UUID) -> Optional[MedicalLab]:
|
|
220
220
|
"""Remove a patient from a medical lab"""
|
|
221
221
|
with get_session(self.tenant) as session:
|
|
222
|
-
from models.lab.client_lab import ClientLab
|
|
222
|
+
from healthdatalayer.models.lab.client_lab import ClientLab
|
|
223
223
|
|
|
224
224
|
medical_lab = session.get(MedicalLab, medical_lab_id)
|
|
225
225
|
if not medical_lab:
|
|
@@ -242,7 +242,7 @@ class MedicalLabRepository:
|
|
|
242
242
|
def is_patient_assigned_command(self, medical_lab_id: UUID, px_id: UUID) -> bool:
|
|
243
243
|
"""Check if a patient is assigned to a medical lab"""
|
|
244
244
|
with get_session(self.tenant) as session:
|
|
245
|
-
from models.lab.client_lab import ClientLab
|
|
245
|
+
from healthdatalayer.models.lab.client_lab import ClientLab
|
|
246
246
|
|
|
247
247
|
result = session.exec(
|
|
248
248
|
select(ClientLab).where(
|
|
@@ -2,8 +2,8 @@ from typing import Optional, List
|
|
|
2
2
|
from uuid import UUID
|
|
3
3
|
from sqlmodel import select
|
|
4
4
|
|
|
5
|
-
from models import MedicalDiagnosis
|
|
6
|
-
from config.db import engines, get_session
|
|
5
|
+
from healthdatalayer.models import MedicalDiagnosis
|
|
6
|
+
from healthdatalayer.config.db import engines, get_session
|
|
7
7
|
|
|
8
8
|
class MedicalDiagnosisRepository:
|
|
9
9
|
def __init__(self, tenant: str):
|
|
@@ -2,9 +2,9 @@ from typing import Optional, List
|
|
|
2
2
|
from uuid import UUID
|
|
3
3
|
from sqlmodel import select, or_
|
|
4
4
|
from sqlalchemy.orm import selectinload,joinedload
|
|
5
|
-
from models import MedicalDiagnosisVisit
|
|
6
|
-
from models import MedicalVisit
|
|
7
|
-
from config.db import engines, get_session
|
|
5
|
+
from healthdatalayer.models import MedicalDiagnosisVisit
|
|
6
|
+
from healthdatalayer.models import MedicalVisit
|
|
7
|
+
from healthdatalayer.config.db import engines, get_session
|
|
8
8
|
|
|
9
9
|
class MedicalDiagnosisVisitRepository:
|
|
10
10
|
def __init__(self, tenant: str):
|
|
@@ -2,8 +2,8 @@ from typing import Optional, List
|
|
|
2
2
|
from uuid import UUID
|
|
3
3
|
from sqlmodel import select
|
|
4
4
|
from sqlalchemy.orm import selectinload,joinedload
|
|
5
|
-
from models import MedicalDrugRecipe
|
|
6
|
-
from config.db import engines, get_session
|
|
5
|
+
from healthdatalayer.models import MedicalDrugRecipe
|
|
6
|
+
from healthdatalayer.config.db import engines, get_session
|
|
7
7
|
|
|
8
8
|
class MedicalDrugRecipeRepository:
|
|
9
9
|
def __init__(self, tenant: str):
|
|
@@ -2,8 +2,8 @@ from typing import Optional, List
|
|
|
2
2
|
from uuid import UUID
|
|
3
3
|
from sqlmodel import select
|
|
4
4
|
|
|
5
|
-
from models import MedicalDrug
|
|
6
|
-
from config.db import engines, get_session
|
|
5
|
+
from healthdatalayer.models import MedicalDrug
|
|
6
|
+
from healthdatalayer.config.db import engines, get_session
|
|
7
7
|
|
|
8
8
|
class MedicalDrugRepository:
|
|
9
9
|
def __init__(self, tenant: str):
|
|
@@ -2,8 +2,8 @@ from typing import Optional, List
|
|
|
2
2
|
from uuid import UUID
|
|
3
3
|
from sqlmodel import select, or_
|
|
4
4
|
from sqlalchemy.orm import selectinload,joinedload
|
|
5
|
-
from models import MedicalRecipeVisit
|
|
6
|
-
from config.db import engines, get_session
|
|
5
|
+
from healthdatalayer.models import MedicalRecipeVisit
|
|
6
|
+
from healthdatalayer.config.db import engines, get_session
|
|
7
7
|
|
|
8
8
|
class MedicalRecipeVisitRepository:
|
|
9
9
|
def __init__(self, tenant: str):
|
|
@@ -2,8 +2,8 @@ from typing import Optional, List
|
|
|
2
2
|
from uuid import UUID
|
|
3
3
|
from sqlmodel import select, or_
|
|
4
4
|
from sqlalchemy.orm import selectinload,joinedload
|
|
5
|
-
from models import MedicalVisit
|
|
6
|
-
from config.db import engines, get_session
|
|
5
|
+
from healthdatalayer.models import MedicalVisit
|
|
6
|
+
from healthdatalayer.config.db import engines, get_session
|
|
7
7
|
|
|
8
8
|
class MedicalVisitRepository:
|
|
9
9
|
def __init__(self, tenant: str):
|
|
@@ -2,9 +2,9 @@ from typing import Optional, List
|
|
|
2
2
|
from uuid import UUID
|
|
3
3
|
from sqlmodel import select, or_
|
|
4
4
|
from sqlalchemy.orm import selectinload,joinedload
|
|
5
|
-
from models import OrganSystemReview
|
|
6
|
-
from models import MedicalVisit
|
|
7
|
-
from config.db import engines, get_session
|
|
5
|
+
from healthdatalayer.models import OrganSystemReview
|
|
6
|
+
from healthdatalayer.models import MedicalVisit
|
|
7
|
+
from healthdatalayer.config.db import engines, get_session
|
|
8
8
|
|
|
9
9
|
class OrganSystemReviewRepository:
|
|
10
10
|
def __init__(self, tenant: str):
|
|
@@ -2,9 +2,9 @@ from typing import Optional, List
|
|
|
2
2
|
from uuid import UUID
|
|
3
3
|
from sqlmodel import select, or_
|
|
4
4
|
from sqlalchemy.orm import selectinload,joinedload
|
|
5
|
-
from models import PhysicalExam
|
|
6
|
-
from models import MedicalVisit
|
|
7
|
-
from config.db import engines, get_session
|
|
5
|
+
from healthdatalayer.models import PhysicalExam
|
|
6
|
+
from healthdatalayer.models import MedicalVisit
|
|
7
|
+
from healthdatalayer.config.db import engines, get_session
|
|
8
8
|
|
|
9
9
|
class PhysicalExamRepository:
|
|
10
10
|
def __init__(self, tenant: str):
|
|
@@ -2,9 +2,9 @@ from typing import Optional, List
|
|
|
2
2
|
from uuid import UUID
|
|
3
3
|
from sqlmodel import select, or_
|
|
4
4
|
from sqlalchemy.orm import selectinload,joinedload
|
|
5
|
-
from models import VisitTriage
|
|
6
|
-
from models import MedicalVisit
|
|
7
|
-
from config.db import engines, get_session
|
|
5
|
+
from healthdatalayer.models import VisitTriage
|
|
6
|
+
from healthdatalayer.models import MedicalVisit
|
|
7
|
+
from healthdatalayer.config.db import engines, get_session
|
|
8
8
|
|
|
9
9
|
class VisitTriageRepository:
|
|
10
10
|
def __init__(self, tenant: str):
|
|
@@ -3,10 +3,10 @@ from uuid import UUID
|
|
|
3
3
|
from sqlmodel import select
|
|
4
4
|
from sqlalchemy.orm import selectinload
|
|
5
5
|
|
|
6
|
-
from models import Permission
|
|
7
|
-
from models import Role
|
|
8
|
-
from models import User
|
|
9
|
-
from config.db import engines, get_session
|
|
6
|
+
from healthdatalayer.models import Permission
|
|
7
|
+
from healthdatalayer.models import Role
|
|
8
|
+
from healthdatalayer.models import User
|
|
9
|
+
from healthdatalayer.config.db import engines, get_session
|
|
10
10
|
|
|
11
11
|
class PermissionRepository:
|
|
12
12
|
def __init__(self, tenant: str):
|
|
@@ -3,10 +3,10 @@ from uuid import UUID
|
|
|
3
3
|
from sqlmodel import select
|
|
4
4
|
from sqlalchemy.orm import selectinload
|
|
5
5
|
|
|
6
|
-
from models import Role
|
|
7
|
-
from models import Permission
|
|
8
|
-
from models import User
|
|
9
|
-
from config.db import engines, get_session
|
|
6
|
+
from healthdatalayer.models import Role
|
|
7
|
+
from healthdatalayer.models import Permission
|
|
8
|
+
from healthdatalayer.models import User
|
|
9
|
+
from healthdatalayer.config.db import engines, get_session
|
|
10
10
|
|
|
11
11
|
class RoleRepository:
|
|
12
12
|
def __init__(self, tenant: str):
|
|
@@ -3,10 +3,10 @@ from uuid import UUID
|
|
|
3
3
|
from sqlmodel import select
|
|
4
4
|
from sqlalchemy.orm import selectinload
|
|
5
5
|
|
|
6
|
-
from models import User
|
|
7
|
-
from models import Role
|
|
8
|
-
from models import Permission
|
|
9
|
-
from config.db import engines, get_session
|
|
6
|
+
from healthdatalayer.models import User
|
|
7
|
+
from healthdatalayer.models import Role
|
|
8
|
+
from healthdatalayer.models import Permission
|
|
9
|
+
from healthdatalayer.config.db import engines, get_session
|
|
10
10
|
|
|
11
11
|
class UserRepository:
|
|
12
12
|
def __init__(self, tenant: str):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/client/client_type.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/client/marriage_status.py
RENAMED
|
File without changes
|
{healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/client/nationality.py
RENAMED
|
File without changes
|
|
File without changes
|
{healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/collaborator/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/collaborator/speciality.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/medical_visit/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/user/permission_user.py
RENAMED
|
File without changes
|
{healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer/models/user/role_permission.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{healthdatalayer-1.2.0 → healthdatalayer-1.3.0}/healthdatalayer.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|