healthdatalayer 1.4.0__tar.gz → 1.4.2__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.4.0 → healthdatalayer-1.4.2}/PKG-INFO +1 -1
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/repositories/collaborator_repositories/collaborator_repository.py +17 -2
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/repositories/infraestructure_repositories/bridge_repository.py +4 -2
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer.egg-info/PKG-INFO +1 -1
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/setup.py +1 -1
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/README.md +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/__init__.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/config/__init__.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/config/config.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/config/db.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/config/vault.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/models/__init__.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/models/bridge_area_floor_branch/__init__.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/models/bridge_area_floor_branch/area.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/models/bridge_area_floor_branch/branch.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/models/bridge_area_floor_branch/bridge_area_floor_branch.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/models/bridge_area_floor_branch/floor.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/models/bridge_area_floor_branch/room.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/models/bridge_area_floor_branch/system.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/models/client/__init__.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/models/client/address.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/models/client/client.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/models/client/client_type.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/models/client/education.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/models/client/emergency_contact.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/models/client/gender.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/models/client/marriage_status.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/models/client/nationality.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/models/client/pathological_history.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/models/client/pet.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/models/client/profession.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/models/client/px.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/models/collaborator/__init__.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/models/collaborator/collaborator.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/models/collaborator/collaborator_speciality.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/models/collaborator/collaborator_type.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/models/collaborator/speciality.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/models/lab/__init__.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/models/lab/client_lab.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/models/lab/measure_lab.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/models/lab/medical_lab.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/models/medical_visit/__init__.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/models/medical_visit/medical_diagnosis.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/models/medical_visit/medical_diagnosis_visit.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/models/medical_visit/medical_drug.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/models/medical_visit/medical_drug_recipe.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/models/medical_visit/medical_recipe_visit.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/models/medical_visit/medical_visit.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/models/medical_visit/organ_system_review.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/models/medical_visit/physical_exam.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/models/medical_visit/visit_triage.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/models/user/__init__.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/models/user/permission.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/models/user/permission_user.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/models/user/role.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/models/user/role_permission.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/models/user/role_user.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/models/user/user.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/repositories/__init__.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/repositories/client_repositories/__init__.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/repositories/client_repositories/address_repository.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/repositories/client_repositories/client_type_repository.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/repositories/client_repositories/education_repository.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/repositories/client_repositories/emergency_contact_repository.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/repositories/client_repositories/gender_repository.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/repositories/client_repositories/marriage_status_repository.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/repositories/client_repositories/nationality_repository.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/repositories/client_repositories/pathological_history_repository.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/repositories/client_repositories/pet_repository.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/repositories/client_repositories/profession_repository.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/repositories/client_repositories/px_repository.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/repositories/collaborator_repositories/__init__.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/repositories/collaborator_repositories/collaborator_type_repository.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/repositories/collaborator_repositories/speciality_repository.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/repositories/infraestructure_repositories/__init__.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/repositories/infraestructure_repositories/area_repository.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/repositories/infraestructure_repositories/branch_repository.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/repositories/infraestructure_repositories/floor_repository.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/repositories/infraestructure_repositories/room_repository.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/repositories/infraestructure_repositories/system_repository.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/repositories/lab_repositories/__init__.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/repositories/lab_repositories/measure_lab_repository.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/repositories/lab_repositories/medical_lab_repository.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/repositories/medical_visit_repositories/__init__.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/repositories/medical_visit_repositories/medical_diagnosis_repository.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/repositories/medical_visit_repositories/medical_diagnosis_visit_repository.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/repositories/medical_visit_repositories/medical_drug_recipe_repository.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/repositories/medical_visit_repositories/medical_drug_repository.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/repositories/medical_visit_repositories/medical_recipe_visit_repository.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/repositories/medical_visit_repositories/medical_visit_repository.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/repositories/medical_visit_repositories/organ_system_review_repository.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/repositories/medical_visit_repositories/physical_exam_repository.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/repositories/medical_visit_repositories/visit_triage_repository.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/repositories/user_repositories/__init__.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/repositories/user_repositories/permission_repository.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/repositories/user_repositories/role_repository.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/repositories/user_repositories/user_repository.py +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer.egg-info/SOURCES.txt +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer.egg-info/dependency_links.txt +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer.egg-info/requires.txt +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer.egg-info/top_level.txt +0 -0
- {healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/setup.cfg +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
from typing import Optional, List
|
|
2
2
|
from uuid import UUID
|
|
3
|
-
from sqlmodel import select, or_
|
|
3
|
+
from sqlmodel import select, or_, join
|
|
4
4
|
from sqlalchemy.orm import selectinload,joinedload
|
|
5
5
|
from healthdatalayer.models import Collaborator
|
|
6
|
-
from healthdatalayer.models import Speciality
|
|
6
|
+
from healthdatalayer.models import Speciality, CollaboratorSpeciality
|
|
7
7
|
from healthdatalayer.config.db import engines, get_session
|
|
8
8
|
|
|
9
9
|
class CollaboratorRepository:
|
|
@@ -41,6 +41,21 @@ class CollaboratorRepository:
|
|
|
41
41
|
return collaborator
|
|
42
42
|
else:
|
|
43
43
|
return session.get(Collaborator, collaborator_id)
|
|
44
|
+
|
|
45
|
+
def get_by_speciality_id_command(self, speciality_id: UUID, load_relations: bool = False) -> List[Collaborator]:
|
|
46
|
+
with get_session(self.tenant) as session:
|
|
47
|
+
statement = (
|
|
48
|
+
select(Collaborator)
|
|
49
|
+
.join(CollaboratorSpeciality)
|
|
50
|
+
.where(CollaboratorSpeciality.speciality_id == speciality_id)
|
|
51
|
+
)
|
|
52
|
+
|
|
53
|
+
if load_relations:
|
|
54
|
+
statement = statement.options(selectinload(Collaborator.specialties))
|
|
55
|
+
|
|
56
|
+
collaborators = session.exec(statement).all()
|
|
57
|
+
|
|
58
|
+
return collaborators
|
|
44
59
|
|
|
45
60
|
def get_by_ruc_name_code_command(self, content: str, active_only: bool = True, load_relations : bool = False)->List[Collaborator]:
|
|
46
61
|
with get_session(self.tenant) as session:
|
|
@@ -27,7 +27,8 @@ class BridgeAreaFloorBranchRepository:
|
|
|
27
27
|
statement = statement.options(
|
|
28
28
|
selectinload(BridgeAreaFloorBranch.branch).selectinload(Branch.system),
|
|
29
29
|
selectinload(BridgeAreaFloorBranch.area),
|
|
30
|
-
selectinload(BridgeAreaFloorBranch.floor)
|
|
30
|
+
selectinload(BridgeAreaFloorBranch.floor),
|
|
31
|
+
selectinload(BridgeAreaFloorBranch.room)
|
|
31
32
|
)
|
|
32
33
|
bridge = session.exec(statement).first()
|
|
33
34
|
|
|
@@ -45,7 +46,8 @@ class BridgeAreaFloorBranchRepository:
|
|
|
45
46
|
statement = statement.options(
|
|
46
47
|
selectinload(BridgeAreaFloorBranch.branch).selectinload(Branch.system),
|
|
47
48
|
selectinload(BridgeAreaFloorBranch.area),
|
|
48
|
-
selectinload(BridgeAreaFloorBranch.floor)
|
|
49
|
+
selectinload(BridgeAreaFloorBranch.floor),
|
|
50
|
+
selectinload(BridgeAreaFloorBranch.room)
|
|
49
51
|
)
|
|
50
52
|
|
|
51
53
|
results = session.exec(statement).all()
|
|
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.0 → healthdatalayer-1.4.2}/healthdatalayer/models/client/client_type.py
RENAMED
|
File without changes
|
|
File without changes
|
{healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/models/client/emergency_contact.py
RENAMED
|
File without changes
|
|
File without changes
|
{healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/models/client/marriage_status.py
RENAMED
|
File without changes
|
{healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/models/client/nationality.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/models/collaborator/__init__.py
RENAMED
|
File without changes
|
{healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/models/collaborator/collaborator.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/models/collaborator/speciality.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/models/medical_visit/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/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.0 → healthdatalayer-1.4.2}/healthdatalayer/models/medical_visit/visit_triage.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer/models/user/permission_user.py
RENAMED
|
File without changes
|
|
File without changes
|
{healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/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
|
{healthdatalayer-1.4.0 → healthdatalayer-1.4.2}/healthdatalayer.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|