healthdatalayer 1.4.2__tar.gz → 1.4.3__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.
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/PKG-INFO +1 -1
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/repositories/collaborator_repositories/collaborator_repository.py +18 -33
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer.egg-info/PKG-INFO +1 -1
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/setup.py +1 -1
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/README.md +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/__init__.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/config/__init__.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/config/config.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/config/db.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/config/vault.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/__init__.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/bridge_area_floor_branch/__init__.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/bridge_area_floor_branch/area.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/bridge_area_floor_branch/branch.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/bridge_area_floor_branch/bridge_area_floor_branch.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/bridge_area_floor_branch/floor.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/bridge_area_floor_branch/room.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/bridge_area_floor_branch/system.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/client/__init__.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/client/address.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/client/client.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/client/client_type.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/client/education.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/client/emergency_contact.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/client/gender.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/client/marriage_status.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/client/nationality.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/client/pathological_history.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/client/pet.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/client/profession.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/client/px.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/collaborator/__init__.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/collaborator/collaborator.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/collaborator/collaborator_speciality.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/collaborator/collaborator_type.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/collaborator/speciality.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/lab/__init__.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/lab/client_lab.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/lab/measure_lab.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/lab/medical_lab.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/medical_visit/__init__.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/medical_visit/medical_diagnosis.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/medical_visit/medical_diagnosis_visit.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/medical_visit/medical_drug.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/medical_visit/medical_drug_recipe.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/medical_visit/medical_recipe_visit.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/medical_visit/medical_visit.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/medical_visit/organ_system_review.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/medical_visit/physical_exam.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/medical_visit/visit_triage.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/user/__init__.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/user/permission.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/user/permission_user.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/user/role.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/user/role_permission.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/user/role_user.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/user/user.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/repositories/__init__.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/repositories/client_repositories/__init__.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/repositories/client_repositories/address_repository.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/repositories/client_repositories/client_type_repository.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/repositories/client_repositories/education_repository.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/repositories/client_repositories/emergency_contact_repository.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/repositories/client_repositories/gender_repository.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/repositories/client_repositories/marriage_status_repository.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/repositories/client_repositories/nationality_repository.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/repositories/client_repositories/pathological_history_repository.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/repositories/client_repositories/pet_repository.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/repositories/client_repositories/profession_repository.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/repositories/client_repositories/px_repository.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/repositories/collaborator_repositories/__init__.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/repositories/collaborator_repositories/collaborator_type_repository.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/repositories/collaborator_repositories/speciality_repository.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/repositories/infraestructure_repositories/__init__.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/repositories/infraestructure_repositories/area_repository.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/repositories/infraestructure_repositories/branch_repository.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/repositories/infraestructure_repositories/bridge_repository.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/repositories/infraestructure_repositories/floor_repository.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/repositories/infraestructure_repositories/room_repository.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/repositories/infraestructure_repositories/system_repository.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/repositories/lab_repositories/__init__.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/repositories/lab_repositories/measure_lab_repository.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/repositories/lab_repositories/medical_lab_repository.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/repositories/medical_visit_repositories/__init__.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/repositories/medical_visit_repositories/medical_diagnosis_repository.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/repositories/medical_visit_repositories/medical_diagnosis_visit_repository.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/repositories/medical_visit_repositories/medical_drug_recipe_repository.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/repositories/medical_visit_repositories/medical_drug_repository.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/repositories/medical_visit_repositories/medical_recipe_visit_repository.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/repositories/medical_visit_repositories/medical_visit_repository.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/repositories/medical_visit_repositories/organ_system_review_repository.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/repositories/medical_visit_repositories/physical_exam_repository.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/repositories/medical_visit_repositories/visit_triage_repository.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/repositories/user_repositories/__init__.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/repositories/user_repositories/permission_repository.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/repositories/user_repositories/role_repository.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/repositories/user_repositories/user_repository.py +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer.egg-info/SOURCES.txt +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer.egg-info/dependency_links.txt +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer.egg-info/requires.txt +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer.egg-info/top_level.txt +0 -0
- {healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/setup.cfg +0 -0
|
@@ -23,20 +23,11 @@ class CollaboratorRepository:
|
|
|
23
23
|
with get_session(self.tenant) as session:
|
|
24
24
|
if load_relations:
|
|
25
25
|
statement = select(Collaborator).where(Collaborator.collaborator_id == collaborator_id).options(
|
|
26
|
-
selectinload(Collaborator.
|
|
26
|
+
selectinload(Collaborator.collaborator_type),
|
|
27
|
+
joinedload(Collaborator.user),
|
|
28
|
+
selectinload(Collaborator.specialties)
|
|
27
29
|
)
|
|
28
30
|
collaborator = session.exec(statement).first()
|
|
29
|
-
if load_relations:
|
|
30
|
-
|
|
31
|
-
if collaborator.collaborator_type_id:
|
|
32
|
-
from healthdatalayer.models.collaborator.collaborator_type import CollaboratorType
|
|
33
|
-
collab_type_obj = session.get(CollaboratorType, collaborator.collaborator_type_id)
|
|
34
|
-
object.__setattr__(collaborator,'collaborator_type', collab_type_obj)
|
|
35
|
-
|
|
36
|
-
if collaborator.user_id:
|
|
37
|
-
from healthdatalayer.models.user.user import User
|
|
38
|
-
user_obj = session.get(User, collaborator.user_id)
|
|
39
|
-
object.__setattr__(collaborator,'user',user_obj)
|
|
40
31
|
|
|
41
32
|
return collaborator
|
|
42
33
|
else:
|
|
@@ -47,11 +38,15 @@ class CollaboratorRepository:
|
|
|
47
38
|
statement = (
|
|
48
39
|
select(Collaborator)
|
|
49
40
|
.join(CollaboratorSpeciality)
|
|
50
|
-
.where(CollaboratorSpeciality.speciality_id == speciality_id)
|
|
41
|
+
.where(CollaboratorSpeciality.speciality_id == speciality_id, Collaborator.is_active == True)
|
|
51
42
|
)
|
|
52
43
|
|
|
53
44
|
if load_relations:
|
|
54
|
-
statement = statement.options(
|
|
45
|
+
statement = statement.options(
|
|
46
|
+
selectinload(Collaborator.collaborator_type),
|
|
47
|
+
joinedload(Collaborator.user),
|
|
48
|
+
selectinload(Collaborator.specialties)
|
|
49
|
+
)
|
|
55
50
|
|
|
56
51
|
collaborators = session.exec(statement).all()
|
|
57
52
|
|
|
@@ -92,29 +87,19 @@ class CollaboratorRepository:
|
|
|
92
87
|
def get_all_command(self, active_only: bool = True,load_related: bool = False) -> List[Collaborator]:
|
|
93
88
|
with get_session(self.tenant) as session:
|
|
94
89
|
|
|
90
|
+
statement = select(Collaborator)
|
|
95
91
|
|
|
96
92
|
if load_related:
|
|
97
93
|
|
|
98
|
-
statement =
|
|
99
|
-
selectinload(Collaborator.
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
collaborators = session.exec(statement).all()
|
|
104
|
-
|
|
105
|
-
for collaborator in collaborators:
|
|
106
|
-
if collaborator.collaborator_type_id:
|
|
107
|
-
from healthdatalayer.models.collaborator.collaborator_type import CollaboratorType
|
|
108
|
-
collab_type_obj = session.get(CollaboratorType, collaborator.collaborator_type_id)
|
|
109
|
-
object.__setattr__(collaborator,'collaborator_type', collab_type_obj)
|
|
110
|
-
|
|
111
|
-
if collaborator.user_id:
|
|
112
|
-
from healthdatalayer.models.user.user import User
|
|
113
|
-
user_obj = session.get(User, collaborator.user_id)
|
|
114
|
-
object.__setattr__(collaborator,'user',user_obj)
|
|
115
|
-
return collaborators
|
|
94
|
+
statement = statement.options(
|
|
95
|
+
selectinload(Collaborator.collaborator_type),
|
|
96
|
+
joinedload(Collaborator.user),
|
|
97
|
+
selectinload(Collaborator.specialties)
|
|
98
|
+
)
|
|
116
99
|
|
|
117
|
-
|
|
100
|
+
if active_only:
|
|
101
|
+
statement = statement.where(Collaborator.is_active == True)
|
|
102
|
+
|
|
118
103
|
return session.exec(statement).all()
|
|
119
104
|
|
|
120
105
|
def update_command(self, collaborator: Collaborator) -> Collaborator:
|
|
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
|
|
File without changes
|
{healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/client/client_type.py
RENAMED
|
File without changes
|
|
File without changes
|
{healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/client/emergency_contact.py
RENAMED
|
File without changes
|
|
File without changes
|
{healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/client/marriage_status.py
RENAMED
|
File without changes
|
{healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/client/nationality.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/collaborator/__init__.py
RENAMED
|
File without changes
|
{healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/collaborator/collaborator.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/collaborator/speciality.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/medical_visit/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/medical_visit/medical_drug.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/medical_visit/visit_triage.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer/models/user/permission_user.py
RENAMED
|
File without changes
|
|
File without changes
|
{healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
{healthdatalayer-1.4.2 → healthdatalayer-1.4.3}/healthdatalayer.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|