healthdatalayer 1.5.6__py3-none-any.whl → 1.5.8__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.

@@ -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)
@@ -76,7 +76,7 @@ class OrganSystemReviewRepository:
76
76
 
77
77
  def delete_command(self, organ_system_review_id: UUID, soft_delete: bool = False)->None:
78
78
  with get_session(self.tenant) as session:
79
- existing_organ_system_review = session.get(MedicalVisit, organ_system_review_id)
79
+ existing_organ_system_review = session.get(OrganSystemReview, organ_system_review_id)
80
80
  if not existing_organ_system_review:
81
81
  raise ValueError(f"MedicalVisit with id {organ_system_review_id} does not exist")
82
82
 
@@ -76,7 +76,7 @@ class PhysicalExamRepository:
76
76
 
77
77
  def delete_command(self, physical_exam_id: UUID, soft_delete: bool = False)->None:
78
78
  with get_session(self.tenant) as session:
79
- existing_physical_exam = session.get(MedicalVisit, physical_exam_id)
79
+ existing_physical_exam = session.get(PhysicalExam, physical_exam_id)
80
80
  if not existing_physical_exam:
81
81
  raise ValueError(f"MedicalVisit with id {physical_exam_id} does not exist")
82
82
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: healthdatalayer
3
- Version: 1.5.6
3
+ Version: 1.5.8
4
4
  Summary: Health Datalayer to access data from different sources
5
5
  Author: Jesus Martinez
6
6
  Author-email: jesusmartinez@noosds.com
@@ -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=ZBY7CL172P68TWRWVTpzHO0_cnFzDRGz7aTy85Z8HPI,2056
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=4HgPzbm_OdaQvOHC5-QLQA35VTK83QkaqX-rUF2kVYk,1095
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=3CtXkXiFasuYEXGGHVfAKYu4VSsv8Xj8tTcR-dzqqmI,2567
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
@@ -90,14 +90,14 @@ healthdatalayer/repositories/medical_visit_repositories/medical_drug_recipe_repo
90
90
  healthdatalayer/repositories/medical_visit_repositories/medical_drug_repository.py,sha256=mJNN6_aAK3eY9IpFc16nT3IshObGcFE5fi27SK-Sjio,2401
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
- healthdatalayer/repositories/medical_visit_repositories/organ_system_review_repository.py,sha256=-BTfgzvt8VlE2FsBHX3snzRl2VDrRClqz-dJL3bLheE,4192
94
- healthdatalayer/repositories/medical_visit_repositories/physical_exam_repository.py,sha256=Q4R2-6fv57jqZrGUMFQw4YZgZGQbn8UmSRS3UhUSZQg,3877
93
+ healthdatalayer/repositories/medical_visit_repositories/organ_system_review_repository.py,sha256=7QNxpQIFcD6B8CX5fua8Qck75j24Y4uEkR_Lans1_0A,4197
94
+ healthdatalayer/repositories/medical_visit_repositories/physical_exam_repository.py,sha256=eCdokx60LB5hLfloqFhvsDj8UxFYXEDi6nqXO0TB18w,3877
95
95
  healthdatalayer/repositories/medical_visit_repositories/visit_triage_repository.py,sha256=9Up5M7wWo5GnaYdl6QvTamYaIG4dG_ALM0Su66rlj44,4140
96
96
  healthdatalayer/repositories/user_repositories/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
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.6.dist-info/METADATA,sha256=xwmSyEECE2TIDHHg9pdvSc1g00YqxECv6_ADMQK8YBA,827
101
- healthdatalayer-1.5.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
102
- healthdatalayer-1.5.6.dist-info/top_level.txt,sha256=6f1-gvpg533UEVuYsRJCDhdSDQUBwijyAHylyS4nG_4,16
103
- healthdatalayer-1.5.6.dist-info/RECORD,,
100
+ healthdatalayer-1.5.8.dist-info/METADATA,sha256=sSx2K1H-4AGHOmI2CUu6plxDEkBmWrA9FM9oSe0wNt0,827
101
+ healthdatalayer-1.5.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
102
+ healthdatalayer-1.5.8.dist-info/top_level.txt,sha256=6f1-gvpg533UEVuYsRJCDhdSDQUBwijyAHylyS4nG_4,16
103
+ healthdatalayer-1.5.8.dist-info/RECORD,,