healthdatalayer 1.5.7__tar.gz → 1.5.9__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.5.7 → healthdatalayer-1.5.9}/PKG-INFO +1 -1
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/__init__.py +1 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/client/px.py +1 -1
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/medical_visit/medical_visit.py +2 -1
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/repositories/collaborator_repositories/collaborator_repository.py +1 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/repositories/medical_visit_repositories/medical_drug_repository.py +17 -2
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer.egg-info/PKG-INFO +1 -1
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/setup.py +1 -1
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/README.md +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/__init__.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/config/__init__.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/config/config.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/config/db.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/config/vault.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/dtos/__init__.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/dtos/collaborator/__init__.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/dtos/collaborator/schedule_collaborator.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/bridge_area_floor_branch/__init__.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/bridge_area_floor_branch/area.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/bridge_area_floor_branch/branch.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/bridge_area_floor_branch/bridge_area_floor_branch.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/bridge_area_floor_branch/floor.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/bridge_area_floor_branch/room.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/bridge_area_floor_branch/system.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/client/__init__.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/client/address.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/client/city.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/client/client.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/client/client_type.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/client/education.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/client/emergency_contact.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/client/gender.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/client/marriage_status.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/client/nationality.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/client/pathological_history.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/client/pet.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/client/profession.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/client/state.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/collaborator/__init__.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/collaborator/collaborator.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/collaborator/collaborator_speciality.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/collaborator/collaborator_type.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/collaborator/speciality.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/lab/__init__.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/lab/client_lab.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/lab/measure_lab.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/lab/medical_lab.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/medical_visit/__init__.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/medical_visit/medical_diagnosis.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/medical_visit/medical_diagnosis_visit.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/medical_visit/medical_drug.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/medical_visit/medical_drug_recipe.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/medical_visit/medical_recipe_visit.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/medical_visit/organ_system_review.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/medical_visit/physical_exam.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/medical_visit/status_visit_enum.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/medical_visit/visit_triage.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/user/__init__.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/user/permission.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/user/permission_user.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/user/role.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/user/role_permission.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/user/role_user.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/user/user.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/repositories/__init__.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/repositories/client_repositories/__init__.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/repositories/client_repositories/address_repository.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/repositories/client_repositories/client_type_repository.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/repositories/client_repositories/education_repository.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/repositories/client_repositories/emergency_contact_repository.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/repositories/client_repositories/gender_repository.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/repositories/client_repositories/marriage_status_repository.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/repositories/client_repositories/nationality_repository.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/repositories/client_repositories/pathological_history_repository.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/repositories/client_repositories/pet_repository.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/repositories/client_repositories/profession_repository.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/repositories/client_repositories/px_repository.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/repositories/collaborator_repositories/__init__.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/repositories/collaborator_repositories/collaborator_type_repository.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/repositories/collaborator_repositories/speciality_repository.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/repositories/infraestructure_repositories/__init__.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/repositories/infraestructure_repositories/area_repository.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/repositories/infraestructure_repositories/branch_repository.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/repositories/infraestructure_repositories/bridge_repository.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/repositories/infraestructure_repositories/floor_repository.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/repositories/infraestructure_repositories/room_repository.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/repositories/infraestructure_repositories/system_repository.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/repositories/lab_repositories/__init__.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/repositories/lab_repositories/measure_lab_repository.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/repositories/lab_repositories/medical_lab_repository.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/repositories/medical_visit_repositories/__init__.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/repositories/medical_visit_repositories/medical_diagnosis_repository.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/repositories/medical_visit_repositories/medical_diagnosis_visit_repository.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/repositories/medical_visit_repositories/medical_drug_recipe_repository.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/repositories/medical_visit_repositories/medical_recipe_visit_repository.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/repositories/medical_visit_repositories/medical_visit_repository.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/repositories/medical_visit_repositories/organ_system_review_repository.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/repositories/medical_visit_repositories/physical_exam_repository.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/repositories/medical_visit_repositories/visit_triage_repository.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/repositories/user_repositories/__init__.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/repositories/user_repositories/permission_repository.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/repositories/user_repositories/role_repository.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/repositories/user_repositories/user_repository.py +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer.egg-info/SOURCES.txt +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer.egg-info/dependency_links.txt +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer.egg-info/requires.txt +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer.egg-info/top_level.txt +0 -0
- {healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/setup.cfg +0 -0
|
@@ -46,6 +46,7 @@ from .medical_visit.organ_system_review import OrganSystemReview
|
|
|
46
46
|
from .medical_visit.physical_exam import PhysicalExam
|
|
47
47
|
from .medical_visit.visit_triage import VisitTriage
|
|
48
48
|
from .medical_visit.medical_visit import MedicalVisit
|
|
49
|
+
from .medical_visit.status_visit_enum import StatusVisitEnum
|
|
49
50
|
|
|
50
51
|
|
|
51
52
|
|
|
@@ -15,7 +15,7 @@ class Px(Client, table=True):
|
|
|
15
15
|
last_name: str
|
|
16
16
|
phone: Optional[str] = None
|
|
17
17
|
email: Optional[str] = None
|
|
18
|
-
|
|
18
|
+
medical_record_number: Optional[str] = None
|
|
19
19
|
marriage_status_id: Optional[uuid.UUID] = Field(default=None, foreign_key="marriage_status.marriage_status_id")
|
|
20
20
|
profession_id: Optional[uuid.UUID] = Field(default=None, foreign_key="profession.profession_id")
|
|
21
21
|
education_id: Optional[uuid.UUID] = Field(default=None, foreign_key="education.education_id")
|
|
@@ -33,12 +33,13 @@ class MedicalVisit(SQLModel, table=True):
|
|
|
33
33
|
|
|
34
34
|
next_followup_visit_id:Optional[uuid.UUID]=Field(default=None,foreign_key="medical_visit.medical_visit_id")
|
|
35
35
|
|
|
36
|
-
overall_diagnosis:str
|
|
36
|
+
overall_diagnosis:Optional[str]=Field(default=None)
|
|
37
37
|
|
|
38
38
|
bridge_area_floor_branch_id:Optional[uuid.UUID]=Field(default=None,foreign_key="bridge_area_floor_branch.bridge_area_floor_branch_id")
|
|
39
39
|
bridge_area_floor_branch: Optional[BridgeAreaFloorBranch] = Relationship()
|
|
40
40
|
|
|
41
41
|
reason_visit:Optional[str]=Field(default=None)
|
|
42
|
+
current_illness: Optional[str]=Field(default=None)
|
|
42
43
|
rest: Optional[bool] = Field(default=None)
|
|
43
44
|
rest_hours: Optional[int] = Field(default=None)
|
|
44
45
|
rest_date_start: Optional[datetime] = Field(default=None)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from typing import Optional, List
|
|
2
2
|
from uuid import UUID
|
|
3
|
-
from sqlmodel import select
|
|
3
|
+
from sqlmodel import select,or_
|
|
4
4
|
|
|
5
5
|
from healthdatalayer.models import MedicalDrug
|
|
6
6
|
from healthdatalayer.config.db import engines, get_session
|
|
@@ -60,4 +60,19 @@ class MedicalDrugRepository:
|
|
|
60
60
|
session.delete(db_medical_drug)
|
|
61
61
|
|
|
62
62
|
session.commit()
|
|
63
|
-
return True
|
|
63
|
+
return True
|
|
64
|
+
|
|
65
|
+
def get_by_name_code_ilike_command(self, name:str, active_only: bool = True) -> List[MedicalDrug]:
|
|
66
|
+
with get_session(self.tenant) as session:
|
|
67
|
+
statement = select(MedicalDrug).where(
|
|
68
|
+
or_(
|
|
69
|
+
MedicalDrug.drug_name.ilike(f"%{name}%"),
|
|
70
|
+
MedicalDrug.drug_code.ilike(f"%{name}%")
|
|
71
|
+
)
|
|
72
|
+
)
|
|
73
|
+
|
|
74
|
+
if active_only:
|
|
75
|
+
statement = statement.where(MedicalDrug.is_active == True)
|
|
76
|
+
|
|
77
|
+
medical_diagnosis = session.exec(statement).all()
|
|
78
|
+
return medical_diagnosis
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/dtos/collaborator/__init__.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
|
{healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/client/client_type.py
RENAMED
|
File without changes
|
|
File without changes
|
{healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/client/emergency_contact.py
RENAMED
|
File without changes
|
|
File without changes
|
{healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/client/marriage_status.py
RENAMED
|
File without changes
|
{healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/client/nationality.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/collaborator/__init__.py
RENAMED
|
File without changes
|
{healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/collaborator/collaborator.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/collaborator/speciality.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/medical_visit/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/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.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/medical_visit/visit_triage.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/healthdatalayer/models/user/permission_user.py
RENAMED
|
File without changes
|
|
File without changes
|
{healthdatalayer-1.5.7 → healthdatalayer-1.5.9}/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.5.7 → healthdatalayer-1.5.9}/healthdatalayer.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|