healthdatalayer 1.5.3__tar.gz → 1.5.4__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.3 → healthdatalayer-1.5.4}/PKG-INFO +1 -1
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/repositories/medical_visit_repositories/medical_visit_repository.py +60 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer.egg-info/PKG-INFO +1 -1
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/setup.py +1 -1
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/README.md +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/__init__.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/config/__init__.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/config/config.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/config/db.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/config/vault.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/dtos/__init__.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/dtos/collaborator/__init__.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/dtos/collaborator/schedule_collaborator.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/__init__.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/bridge_area_floor_branch/__init__.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/bridge_area_floor_branch/area.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/bridge_area_floor_branch/branch.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/bridge_area_floor_branch/bridge_area_floor_branch.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/bridge_area_floor_branch/floor.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/bridge_area_floor_branch/room.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/bridge_area_floor_branch/system.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/client/__init__.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/client/address.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/client/city.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/client/client.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/client/client_type.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/client/education.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/client/emergency_contact.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/client/gender.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/client/marriage_status.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/client/nationality.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/client/pathological_history.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/client/pet.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/client/profession.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/client/px.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/client/state.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/collaborator/__init__.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/collaborator/collaborator.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/collaborator/collaborator_speciality.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/collaborator/collaborator_type.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/collaborator/speciality.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/lab/__init__.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/lab/client_lab.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/lab/measure_lab.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/lab/medical_lab.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/medical_visit/__init__.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/medical_visit/medical_diagnosis.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/medical_visit/medical_diagnosis_visit.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/medical_visit/medical_drug.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/medical_visit/medical_drug_recipe.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/medical_visit/medical_recipe_visit.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/medical_visit/medical_visit.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/medical_visit/organ_system_review.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/medical_visit/physical_exam.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/medical_visit/status_visit_enum.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/medical_visit/visit_triage.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/user/__init__.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/user/permission.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/user/permission_user.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/user/role.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/user/role_permission.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/user/role_user.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/user/user.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/repositories/__init__.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/repositories/client_repositories/__init__.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/repositories/client_repositories/address_repository.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/repositories/client_repositories/client_type_repository.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/repositories/client_repositories/education_repository.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/repositories/client_repositories/emergency_contact_repository.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/repositories/client_repositories/gender_repository.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/repositories/client_repositories/marriage_status_repository.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/repositories/client_repositories/nationality_repository.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/repositories/client_repositories/pathological_history_repository.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/repositories/client_repositories/pet_repository.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/repositories/client_repositories/profession_repository.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/repositories/client_repositories/px_repository.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/repositories/collaborator_repositories/__init__.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/repositories/collaborator_repositories/collaborator_repository.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/repositories/collaborator_repositories/collaborator_type_repository.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/repositories/collaborator_repositories/speciality_repository.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/repositories/infraestructure_repositories/__init__.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/repositories/infraestructure_repositories/area_repository.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/repositories/infraestructure_repositories/branch_repository.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/repositories/infraestructure_repositories/bridge_repository.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/repositories/infraestructure_repositories/floor_repository.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/repositories/infraestructure_repositories/room_repository.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/repositories/infraestructure_repositories/system_repository.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/repositories/lab_repositories/__init__.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/repositories/lab_repositories/measure_lab_repository.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/repositories/lab_repositories/medical_lab_repository.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/repositories/medical_visit_repositories/__init__.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/repositories/medical_visit_repositories/medical_diagnosis_repository.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/repositories/medical_visit_repositories/medical_diagnosis_visit_repository.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/repositories/medical_visit_repositories/medical_drug_recipe_repository.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/repositories/medical_visit_repositories/medical_drug_repository.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/repositories/medical_visit_repositories/medical_recipe_visit_repository.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/repositories/medical_visit_repositories/organ_system_review_repository.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/repositories/medical_visit_repositories/physical_exam_repository.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/repositories/medical_visit_repositories/visit_triage_repository.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/repositories/user_repositories/__init__.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/repositories/user_repositories/permission_repository.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/repositories/user_repositories/role_repository.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/repositories/user_repositories/user_repository.py +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer.egg-info/SOURCES.txt +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer.egg-info/dependency_links.txt +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer.egg-info/requires.txt +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer.egg-info/top_level.txt +0 -0
- {healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/setup.cfg +0 -0
|
@@ -120,7 +120,67 @@ class MedicalVisitRepository:
|
|
|
120
120
|
|
|
121
121
|
medical_visits = session.exec(statement).all()
|
|
122
122
|
return medical_visits
|
|
123
|
+
|
|
124
|
+
def get_by_daterange_command(self, start_date: datetime, end_date: datetime, active_only: bool = True, load_relations: bool = False) -> List[MedicalVisit]:
|
|
125
|
+
with get_session(self.tenant) as session:
|
|
126
|
+
statement = select(MedicalVisit).where(
|
|
127
|
+
MedicalVisit.visit_date >= start_date
|
|
128
|
+
)
|
|
129
|
+
|
|
130
|
+
if end_date is not None:
|
|
131
|
+
statement = statement.where(MedicalVisit.visit_date <= end_date)
|
|
132
|
+
if active_only:
|
|
133
|
+
statement = statement.where(MedicalVisit.is_active == True)
|
|
134
|
+
if load_relations:
|
|
135
|
+
statement = statement.options(
|
|
136
|
+
joinedload(MedicalVisit.client),
|
|
137
|
+
joinedload(MedicalVisit.collaborator),
|
|
138
|
+
joinedload(MedicalVisit.speciality),
|
|
139
|
+
selectinload(MedicalVisit.medical_diagnosis_visits),
|
|
140
|
+
selectinload(MedicalVisit.medical_recipe_visits),
|
|
141
|
+
selectinload(MedicalVisit.organ_system_reviews),
|
|
142
|
+
selectinload(MedicalVisit.physical_exams)
|
|
143
|
+
)
|
|
144
|
+
|
|
145
|
+
medical_visits = session.exec(statement).all()
|
|
146
|
+
return medical_visits
|
|
123
147
|
|
|
148
|
+
def get_by_targetdate_command(self, target_date: datetime, active_only: bool = True, load_relations: bool = False) -> List[MedicalVisit]:
|
|
149
|
+
with get_session(self.tenant) as session:
|
|
150
|
+
|
|
151
|
+
if isinstance(target_date, str):
|
|
152
|
+
try:
|
|
153
|
+
target_date = datetime.strptime(target_date, "%Y-%m-%d")
|
|
154
|
+
except ValueError:
|
|
155
|
+
raise ValueError("Invalid date format")
|
|
156
|
+
|
|
157
|
+
elif isinstance(target_date, date) and not isinstance(target_date, datetime):
|
|
158
|
+
target_date = datetime.combine(target_date, time.min)
|
|
159
|
+
|
|
160
|
+
start_of_day = datetime.combine(target_date.date(), datetime.min.time())
|
|
161
|
+
end_of_day = datetime.combine(target_date.date(), datetime.max.time())
|
|
162
|
+
|
|
163
|
+
statement = select(MedicalVisit).where(
|
|
164
|
+
MedicalVisit.visit_date >= start_of_day,
|
|
165
|
+
MedicalVisit.visit_date <= end_of_day
|
|
166
|
+
)
|
|
167
|
+
|
|
168
|
+
if active_only:
|
|
169
|
+
statement = statement.where(MedicalVisit.is_active == True)
|
|
170
|
+
if load_relations:
|
|
171
|
+
statement = statement.options(
|
|
172
|
+
joinedload(MedicalVisit.client),
|
|
173
|
+
joinedload(MedicalVisit.collaborator),
|
|
174
|
+
joinedload(MedicalVisit.speciality),
|
|
175
|
+
selectinload(MedicalVisit.medical_diagnosis_visits),
|
|
176
|
+
selectinload(MedicalVisit.medical_recipe_visits),
|
|
177
|
+
selectinload(MedicalVisit.organ_system_reviews),
|
|
178
|
+
selectinload(MedicalVisit.physical_exams)
|
|
179
|
+
)
|
|
180
|
+
|
|
181
|
+
medical_visits = session.exec(statement).all()
|
|
182
|
+
return medical_visits
|
|
183
|
+
|
|
124
184
|
def get_by_collaboratorid_and_daterange_command(self, collaborator_id: UUID, start_date: datetime, end_date: datetime, active_only: bool = True, load_relations: bool = False) -> List[MedicalVisit]:
|
|
125
185
|
with get_session(self.tenant) as session:
|
|
126
186
|
statement = select(MedicalVisit).where(
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/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
|
|
File without changes
|
{healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/client/client_type.py
RENAMED
|
File without changes
|
|
File without changes
|
{healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/client/emergency_contact.py
RENAMED
|
File without changes
|
|
File without changes
|
{healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/client/marriage_status.py
RENAMED
|
File without changes
|
{healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/client/nationality.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/collaborator/__init__.py
RENAMED
|
File without changes
|
{healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/collaborator/collaborator.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/collaborator/speciality.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/medical_visit/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/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
|
|
File without changes
|
{healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/medical_visit/visit_triage.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer/models/user/permission_user.py
RENAMED
|
File without changes
|
|
File without changes
|
{healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/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
|
|
File without changes
|
{healthdatalayer-1.5.3 → healthdatalayer-1.5.4}/healthdatalayer.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|