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

@@ -52,6 +52,11 @@ class PxRepository:
52
52
  from healthdatalayer.models.user.user import User
53
53
  user_obj = session.get(User, px.user_id)
54
54
  object.__setattr__(px, 'user', user_obj)
55
+
56
+ if px.nationality_id:
57
+ from healthdatalayer.models.client.nationality import Nationality
58
+ user_obj = session.get(Nationality, px.nationality_id)
59
+ object.__setattr__(px, 'nationality', user_obj)
55
60
 
56
61
  return px
57
62
 
@@ -90,6 +95,12 @@ class PxRepository:
90
95
  from healthdatalayer.models.user.user import User
91
96
  user_obj = session.get(User, px.user_id)
92
97
  object.__setattr__(px, 'user', user_obj)
98
+
99
+ if px.nationality_id:
100
+ from healthdatalayer.models.client.nationality import Nationality
101
+ user_obj = session.get(Nationality, px.nationality_id)
102
+ object.__setattr__(px, 'nationality', user_obj)
103
+
93
104
 
94
105
  return px
95
106
 
@@ -134,7 +145,12 @@ class PxRepository:
134
145
  from healthdatalayer.models.user.user import User
135
146
  user_obj = session.get(User, px.user_id)
136
147
  object.__setattr__(px, 'user', user_obj)
137
-
148
+ if px.nationality_id:
149
+ from healthdatalayer.models.client.nationality import Nationality
150
+ user_obj = session.get(Nationality, px.nationality_id)
151
+ object.__setattr__(px, 'nationality', user_obj)
152
+
153
+
138
154
  return results
139
155
 
140
156
  def list_all_command(self, active_only: bool = True, load_relations: bool = False) -> List[Px]:
@@ -177,6 +193,12 @@ class PxRepository:
177
193
  from healthdatalayer.models.user.user import User
178
194
  user_obj = session.get(User, px.user_id)
179
195
  object.__setattr__(px, 'user', user_obj)
196
+
197
+ if px.nationality_id:
198
+ from healthdatalayer.models.client.nationality import Nationality
199
+ user_obj = session.get(Nationality, px.nationality_id)
200
+ object.__setattr__(px, 'nationality', user_obj)
201
+
180
202
 
181
203
  return results
182
204
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: healthdatalayer
3
- Version: 1.6.1
3
+ Version: 1.6.2
4
4
  Summary: Health Datalayer to access data from different sources
5
5
  Author: Jesus Martinez
6
6
  Author-email: jesusmartinez@noosds.com
@@ -70,7 +70,7 @@ healthdatalayer/repositories/client_repositories/nationality_repository.py,sha25
70
70
  healthdatalayer/repositories/client_repositories/pathological_history_repository.py,sha256=RabXI8VCWHUHlHwtrYm2vQE_eyep2wrzOsemgYa5NPY,3082
71
71
  healthdatalayer/repositories/client_repositories/pet_repository.py,sha256=aUjti4bUniQbbUz5-bjgvUgDrSpPyggy9k5e-RAoYgc,4802
72
72
  healthdatalayer/repositories/client_repositories/profession_repository.py,sha256=ALnx_y_z9Jfx9rBDvOdnK1P1_lkqKmFBeR1GVXj3m3Q,2620
73
- healthdatalayer/repositories/client_repositories/px_repository.py,sha256=cTXDfKolG5aLdlQzXV98_r4Y1Qm5jYW9cUtntdw7e0k,10116
73
+ healthdatalayer/repositories/client_repositories/px_repository.py,sha256=vUcpc88LBTcQ4HlH_OGBXggwMGxCkND6U5b0J9oCSto,11330
74
74
  healthdatalayer/repositories/collaborator_repositories/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
75
75
  healthdatalayer/repositories/collaborator_repositories/collaborator_repository.py,sha256=jSKoM46Rp4MDjI1cotr2setidP9su8GKZBC5EsIr6Po,8329
76
76
  healthdatalayer/repositories/collaborator_repositories/collaborator_type_repository.py,sha256=7-bJqbxgsJtyRU7nV_YCZhKufYLlighWBWjglw70nUw,2858
@@ -99,7 +99,7 @@ healthdatalayer/repositories/user_repositories/__init__.py,sha256=47DEQpj8HBSa-_
99
99
  healthdatalayer/repositories/user_repositories/permission_repository.py,sha256=3L4y-zCkI2PIRo-L3FJRSk4g3nZnu6q35lEY4ACJyq4,9630
100
100
  healthdatalayer/repositories/user_repositories/role_repository.py,sha256=jIsbeAFFQQ_CZJqBMcOskuMXtT1Il6eiN0Y2BpVO1JE,6821
101
101
  healthdatalayer/repositories/user_repositories/user_repository.py,sha256=FUCNdRRGc12dq5XuwDT3btvDETt6HGXh_xQIPTLCAvk,9839
102
- healthdatalayer-1.6.1.dist-info/METADATA,sha256=tfw_0ka72WjF5eOVTS3rDYoo15DBiZ_vmbpMU3KBayk,827
103
- healthdatalayer-1.6.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
104
- healthdatalayer-1.6.1.dist-info/top_level.txt,sha256=6f1-gvpg533UEVuYsRJCDhdSDQUBwijyAHylyS4nG_4,16
105
- healthdatalayer-1.6.1.dist-info/RECORD,,
102
+ healthdatalayer-1.6.2.dist-info/METADATA,sha256=QOC65F9ClnWGl1E3T4-VDFsIg_Y9aDKZ2zq8tyYl8RE,827
103
+ healthdatalayer-1.6.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
104
+ healthdatalayer-1.6.2.dist-info/top_level.txt,sha256=6f1-gvpg533UEVuYsRJCDhdSDQUBwijyAHylyS4nG_4,16
105
+ healthdatalayer-1.6.2.dist-info/RECORD,,