healthdatalayer 1.5.7__py3-none-any.whl → 1.5.9__py3-none-any.whl
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/models/__init__.py +1 -0
- healthdatalayer/models/client/px.py +1 -1
- healthdatalayer/models/medical_visit/medical_visit.py +2 -1
- healthdatalayer/repositories/collaborator_repositories/collaborator_repository.py +1 -0
- healthdatalayer/repositories/medical_visit_repositories/medical_drug_repository.py +17 -2
- {healthdatalayer-1.5.7.dist-info → healthdatalayer-1.5.9.dist-info}/METADATA +1 -1
- {healthdatalayer-1.5.7.dist-info → healthdatalayer-1.5.9.dist-info}/RECORD +9 -9
- {healthdatalayer-1.5.7.dist-info → healthdatalayer-1.5.9.dist-info}/WHEEL +0 -0
- {healthdatalayer-1.5.7.dist-info → healthdatalayer-1.5.9.dist-info}/top_level.txt +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
|
|
@@ -6,7 +6,7 @@ healthdatalayer/config/vault.py,sha256=9yUMXjaTYSnqr0npcQXDsg6Z7G3DityqpmHl1x42z
|
|
|
6
6
|
healthdatalayer/dtos/__init__.py,sha256=yNIWA7EF04esaVDpSymVyeuaotsHdOjLzqk3ygbh59o,71
|
|
7
7
|
healthdatalayer/dtos/collaborator/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
8
|
healthdatalayer/dtos/collaborator/schedule_collaborator.py,sha256=SUD7BIMownZuW9h9GUaFy2U9jaDjZ1tB_9-KCv4H0mk,369
|
|
9
|
-
healthdatalayer/models/__init__.py,sha256=
|
|
9
|
+
healthdatalayer/models/__init__.py,sha256=Hz31SDpnjtFZZcf_uLt0MuGqE-_P2ZIsZlPQ_YYaetk,2117
|
|
10
10
|
healthdatalayer/models/bridge_area_floor_branch/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
11
11
|
healthdatalayer/models/bridge_area_floor_branch/area.py,sha256=g_u6RoorLJ7XUx7qcqXLavrHxpflHGi0p77f-3RPbVU,201
|
|
12
12
|
healthdatalayer/models/bridge_area_floor_branch/branch.py,sha256=lW2pbZVKkQeEWuShOLKFiNJAKt01mBswczk1hRELInw,515
|
|
@@ -27,7 +27,7 @@ healthdatalayer/models/client/nationality.py,sha256=k1CKQTQIJAJP_qmeYB-AkRQ1Q5x9
|
|
|
27
27
|
healthdatalayer/models/client/pathological_history.py,sha256=8jsOAaSGqk1M-60sLhoJuuz9MeUKbk693dARXgBriTY,1029
|
|
28
28
|
healthdatalayer/models/client/pet.py,sha256=y7jiNF_9Jri0_55geo2hweEj4zdsHKu9ZCelBwfVWeA,516
|
|
29
29
|
healthdatalayer/models/client/profession.py,sha256=eKX6Gf93qwQg2NyJsXKKbmEwQTxHvJCnOwQ5pxCpM0I,259
|
|
30
|
-
healthdatalayer/models/client/px.py,sha256=
|
|
30
|
+
healthdatalayer/models/client/px.py,sha256=Bs7wuIMfhOCfe3GnwB1q75Dc6yH9TpHKxRJ_6-A8kqs,1138
|
|
31
31
|
healthdatalayer/models/client/state.py,sha256=G_AJOKKfkufZw_axfwSrcL3ZVtKY1FOm0AmCcHfn9Ao,244
|
|
32
32
|
healthdatalayer/models/collaborator/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
33
33
|
healthdatalayer/models/collaborator/collaborator.py,sha256=Hju_VTUEgA22KJ5-lr-8dl8UsgeSEj2c5OxuGjU71oM,1064
|
|
@@ -44,7 +44,7 @@ healthdatalayer/models/medical_visit/medical_diagnosis_visit.py,sha256=3ZoWxhqln
|
|
|
44
44
|
healthdatalayer/models/medical_visit/medical_drug.py,sha256=zG3oqzq0fGZQNkY7AmFZQaHTG7BVQ3kGJ-tgLgfwNdc,829
|
|
45
45
|
healthdatalayer/models/medical_visit/medical_drug_recipe.py,sha256=DiygpjyX72sc5jD-h9hue5kU0T4YgZyLxD_qVacnxV0,657
|
|
46
46
|
healthdatalayer/models/medical_visit/medical_recipe_visit.py,sha256=W8E8RAOtow_-NbEr8SBHnoq_huJlx-6zDrJL98vzNQ4,1042
|
|
47
|
-
healthdatalayer/models/medical_visit/medical_visit.py,sha256=
|
|
47
|
+
healthdatalayer/models/medical_visit/medical_visit.py,sha256=l0DmP1NAdyt3uzpvmuI3BQlynptYZGQ-f12MDYi9Nic,2652
|
|
48
48
|
healthdatalayer/models/medical_visit/organ_system_review.py,sha256=fXWbuDfdy6QBBl-c5X14XBHpyCqLqqZdPNbzdq5H58U,1168
|
|
49
49
|
healthdatalayer/models/medical_visit/physical_exam.py,sha256=VaezGMp4eptJH-mco-SCumATkcpp2xSA6zBtw9LrMFM,1772
|
|
50
50
|
healthdatalayer/models/medical_visit/status_visit_enum.py,sha256=p4krEZXsXpeAtedCwlj1vcPMPM9y-LHWHfkOVEgZtBY,199
|
|
@@ -70,7 +70,7 @@ healthdatalayer/repositories/client_repositories/pet_repository.py,sha256=aUjti4
|
|
|
70
70
|
healthdatalayer/repositories/client_repositories/profession_repository.py,sha256=ALnx_y_z9Jfx9rBDvOdnK1P1_lkqKmFBeR1GVXj3m3Q,2620
|
|
71
71
|
healthdatalayer/repositories/client_repositories/px_repository.py,sha256=cTXDfKolG5aLdlQzXV98_r4Y1Qm5jYW9cUtntdw7e0k,10116
|
|
72
72
|
healthdatalayer/repositories/collaborator_repositories/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
73
|
-
healthdatalayer/repositories/collaborator_repositories/collaborator_repository.py,sha256=
|
|
73
|
+
healthdatalayer/repositories/collaborator_repositories/collaborator_repository.py,sha256=jSKoM46Rp4MDjI1cotr2setidP9su8GKZBC5EsIr6Po,8329
|
|
74
74
|
healthdatalayer/repositories/collaborator_repositories/collaborator_type_repository.py,sha256=7-bJqbxgsJtyRU7nV_YCZhKufYLlighWBWjglw70nUw,2858
|
|
75
75
|
healthdatalayer/repositories/collaborator_repositories/speciality_repository.py,sha256=tcAjp2OzFAnHpRKNdmw2Zsqvs7XdsO51h7cIJHt105s,2940
|
|
76
76
|
healthdatalayer/repositories/infraestructure_repositories/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -87,7 +87,7 @@ healthdatalayer/repositories/medical_visit_repositories/__init__.py,sha256=47DEQ
|
|
|
87
87
|
healthdatalayer/repositories/medical_visit_repositories/medical_diagnosis_repository.py,sha256=hwb5vh64ze72tFMSIUPNitC5t6pUCcO6pnI0gk-7LZU,4157
|
|
88
88
|
healthdatalayer/repositories/medical_visit_repositories/medical_diagnosis_visit_repository.py,sha256=5-QSverT7FN5nay2j_EevCqNAnuD--FTDVQnj0_WRhs,5508
|
|
89
89
|
healthdatalayer/repositories/medical_visit_repositories/medical_drug_recipe_repository.py,sha256=6rubP_KtheyJSvLmpBJwYuPKNsjhSvKi-_HM2QoP1hM,3141
|
|
90
|
-
healthdatalayer/repositories/medical_visit_repositories/medical_drug_repository.py,sha256=
|
|
90
|
+
healthdatalayer/repositories/medical_visit_repositories/medical_drug_repository.py,sha256=woyrx4vuV7hpxS9WOZNmCTsfWrZiXoMV2__x9lTqPJY,3011
|
|
91
91
|
healthdatalayer/repositories/medical_visit_repositories/medical_recipe_visit_repository.py,sha256=j4cJ4zURKILN3lkqfpXya29MQYFIMiTmJukOADBj5_c,4551
|
|
92
92
|
healthdatalayer/repositories/medical_visit_repositories/medical_visit_repository.py,sha256=vATKxoBimx_-VYtqnxx-6u4sdU7u8sjtE2y6Kr2uepM,17186
|
|
93
93
|
healthdatalayer/repositories/medical_visit_repositories/organ_system_review_repository.py,sha256=7QNxpQIFcD6B8CX5fua8Qck75j24Y4uEkR_Lans1_0A,4197
|
|
@@ -97,7 +97,7 @@ healthdatalayer/repositories/user_repositories/__init__.py,sha256=47DEQpj8HBSa-_
|
|
|
97
97
|
healthdatalayer/repositories/user_repositories/permission_repository.py,sha256=3L4y-zCkI2PIRo-L3FJRSk4g3nZnu6q35lEY4ACJyq4,9630
|
|
98
98
|
healthdatalayer/repositories/user_repositories/role_repository.py,sha256=jIsbeAFFQQ_CZJqBMcOskuMXtT1Il6eiN0Y2BpVO1JE,6821
|
|
99
99
|
healthdatalayer/repositories/user_repositories/user_repository.py,sha256=FUCNdRRGc12dq5XuwDT3btvDETt6HGXh_xQIPTLCAvk,9839
|
|
100
|
-
healthdatalayer-1.5.
|
|
101
|
-
healthdatalayer-1.5.
|
|
102
|
-
healthdatalayer-1.5.
|
|
103
|
-
healthdatalayer-1.5.
|
|
100
|
+
healthdatalayer-1.5.9.dist-info/METADATA,sha256=55bxMtiwWzQVEqdSgHZIDukDPbdjDq9wItzGvVN9QH0,827
|
|
101
|
+
healthdatalayer-1.5.9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
102
|
+
healthdatalayer-1.5.9.dist-info/top_level.txt,sha256=6f1-gvpg533UEVuYsRJCDhdSDQUBwijyAHylyS4nG_4,16
|
|
103
|
+
healthdatalayer-1.5.9.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|