mbu-dev-shared-components 0.3.2__tar.gz → 0.3.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.
- {mbu_dev_shared_components-0.3.2 → mbu_dev_shared_components-0.3.4}/PKG-INFO +1 -1
- {mbu_dev_shared_components-0.3.2 → mbu_dev_shared_components-0.3.4}/mbu_dev_shared_components/solteqtand/db_handler.py +40 -12
- {mbu_dev_shared_components-0.3.2 → mbu_dev_shared_components-0.3.4}/mbu_dev_shared_components.egg-info/PKG-INFO +1 -1
- {mbu_dev_shared_components-0.3.2 → mbu_dev_shared_components-0.3.4}/pyproject.toml +1 -1
- {mbu_dev_shared_components-0.3.2 → mbu_dev_shared_components-0.3.4}/LICENSE +0 -0
- {mbu_dev_shared_components-0.3.2 → mbu_dev_shared_components-0.3.4}/README.md +0 -0
- {mbu_dev_shared_components-0.3.2 → mbu_dev_shared_components-0.3.4}/mbu_dev_shared_components/getorganized/__init__.py +0 -0
- {mbu_dev_shared_components-0.3.2 → mbu_dev_shared_components-0.3.4}/mbu_dev_shared_components/getorganized/auth.py +0 -0
- {mbu_dev_shared_components-0.3.2 → mbu_dev_shared_components-0.3.4}/mbu_dev_shared_components/getorganized/cases.py +0 -0
- {mbu_dev_shared_components-0.3.2 → mbu_dev_shared_components-0.3.4}/mbu_dev_shared_components/getorganized/contacts.py +0 -0
- {mbu_dev_shared_components-0.3.2 → mbu_dev_shared_components-0.3.4}/mbu_dev_shared_components/getorganized/documents.py +0 -0
- {mbu_dev_shared_components-0.3.2 → mbu_dev_shared_components-0.3.4}/mbu_dev_shared_components/getorganized/objects.py +0 -0
- {mbu_dev_shared_components-0.3.2 → mbu_dev_shared_components-0.3.4}/mbu_dev_shared_components/google/__init__.py +0 -0
- {mbu_dev_shared_components-0.3.2 → mbu_dev_shared_components-0.3.4}/mbu_dev_shared_components/google/api/__init__.py +0 -0
- {mbu_dev_shared_components-0.3.2 → mbu_dev_shared_components-0.3.4}/mbu_dev_shared_components/google/api/auth.py +0 -0
- {mbu_dev_shared_components-0.3.2 → mbu_dev_shared_components-0.3.4}/mbu_dev_shared_components/google/workspace/__init__.py +0 -0
- {mbu_dev_shared_components-0.3.2 → mbu_dev_shared_components-0.3.4}/mbu_dev_shared_components/google/workspace/alerts.py +0 -0
- {mbu_dev_shared_components-0.3.2 → mbu_dev_shared_components-0.3.4}/mbu_dev_shared_components/msoffice365/__init__.py +0 -0
- {mbu_dev_shared_components-0.3.2 → mbu_dev_shared_components-0.3.4}/mbu_dev_shared_components/msoffice365/excel/__init__.py +0 -0
- {mbu_dev_shared_components-0.3.2 → mbu_dev_shared_components-0.3.4}/mbu_dev_shared_components/msoffice365/excel/excel_reader.py +0 -0
- {mbu_dev_shared_components-0.3.2 → mbu_dev_shared_components-0.3.4}/mbu_dev_shared_components/msoffice365/sharepoint_api/__init__.py +0 -0
- {mbu_dev_shared_components-0.3.2 → mbu_dev_shared_components-0.3.4}/mbu_dev_shared_components/msoffice365/sharepoint_api/files.py +0 -0
- {mbu_dev_shared_components-0.3.2 → mbu_dev_shared_components-0.3.4}/mbu_dev_shared_components/os2forms/__init__.py +0 -0
- {mbu_dev_shared_components-0.3.2 → mbu_dev_shared_components-0.3.4}/mbu_dev_shared_components/os2forms/documents.py +0 -0
- {mbu_dev_shared_components-0.3.2 → mbu_dev_shared_components-0.3.4}/mbu_dev_shared_components/os2forms/forms.py +0 -0
- {mbu_dev_shared_components-0.3.2 → mbu_dev_shared_components-0.3.4}/mbu_dev_shared_components/sap/__init__.py +0 -0
- {mbu_dev_shared_components-0.3.2 → mbu_dev_shared_components-0.3.4}/mbu_dev_shared_components/sap/create_invoice.py +0 -0
- {mbu_dev_shared_components-0.3.2 → mbu_dev_shared_components-0.3.4}/mbu_dev_shared_components/solteqtand/__init__.py +0 -0
- {mbu_dev_shared_components-0.3.2 → mbu_dev_shared_components-0.3.4}/mbu_dev_shared_components/solteqtand/app_handler.py +0 -0
- {mbu_dev_shared_components-0.3.2 → mbu_dev_shared_components-0.3.4}/mbu_dev_shared_components/utils/__init__.py +0 -0
- {mbu_dev_shared_components-0.3.2 → mbu_dev_shared_components-0.3.4}/mbu_dev_shared_components/utils/db_stored_procedure_executor.py +0 -0
- {mbu_dev_shared_components-0.3.2 → mbu_dev_shared_components-0.3.4}/mbu_dev_shared_components/utils/fernet_encryptor.py +0 -0
- {mbu_dev_shared_components-0.3.2 → mbu_dev_shared_components-0.3.4}/mbu_dev_shared_components/utils/file_handler.py +0 -0
- {mbu_dev_shared_components-0.3.2 → mbu_dev_shared_components-0.3.4}/mbu_dev_shared_components/utils/json_handler.py +0 -0
- {mbu_dev_shared_components-0.3.2 → mbu_dev_shared_components-0.3.4}/mbu_dev_shared_components.egg-info/SOURCES.txt +0 -0
- {mbu_dev_shared_components-0.3.2 → mbu_dev_shared_components-0.3.4}/mbu_dev_shared_components.egg-info/dependency_links.txt +0 -0
- {mbu_dev_shared_components-0.3.2 → mbu_dev_shared_components-0.3.4}/mbu_dev_shared_components.egg-info/requires.txt +0 -0
- {mbu_dev_shared_components-0.3.2 → mbu_dev_shared_components-0.3.4}/mbu_dev_shared_components.egg-info/top_level.txt +0 -0
- {mbu_dev_shared_components-0.3.2 → mbu_dev_shared_components-0.3.4}/setup.cfg +0 -0
|
@@ -107,7 +107,7 @@ class SolteqTandDatabase:
|
|
|
107
107
|
|
|
108
108
|
return base_query, params
|
|
109
109
|
|
|
110
|
-
def get_list_of_documents(self, filters=None, or_filters=None):
|
|
110
|
+
def get_list_of_documents(self, filters=None, or_filters=None, order_by=None, order_direction="ASC"):
|
|
111
111
|
"""
|
|
112
112
|
Retrieves a list of documents based on the specified filters.
|
|
113
113
|
|
|
@@ -156,10 +156,10 @@ class SolteqTandDatabase:
|
|
|
156
156
|
JOIN LatestActiveDocuments ds ON ds.entityId = p.patientId
|
|
157
157
|
WHERE 1=1
|
|
158
158
|
"""
|
|
159
|
-
final_query, params = self._construct_sql_statement(base_query, filters, or_filters)
|
|
159
|
+
final_query, params = self._construct_sql_statement(base_query, filters, or_filters, order_by, order_direction)
|
|
160
160
|
return self._execute_query(final_query, params)
|
|
161
161
|
|
|
162
|
-
def get_list_of_extern_dentist(self, filters=None, or_filters=None):
|
|
162
|
+
def get_list_of_extern_dentist(self, filters=None, or_filters=None, order_by=None, order_direction="ASC"):
|
|
163
163
|
"""
|
|
164
164
|
Retrieves a list of external dentists associated with the patient.
|
|
165
165
|
|
|
@@ -184,10 +184,10 @@ class SolteqTandDatabase:
|
|
|
184
184
|
JOIN [CLINIC] c on c.clinicId = p.privateClinicId
|
|
185
185
|
WHERE 1=1
|
|
186
186
|
"""
|
|
187
|
-
final_query, params = self._construct_sql_statement(base_query, filters, or_filters)
|
|
187
|
+
final_query, params = self._construct_sql_statement(base_query, filters, or_filters, order_by, order_direction)
|
|
188
188
|
return self._execute_query(final_query, params)
|
|
189
189
|
|
|
190
|
-
def get_list_of_bookings(self, filters=None, or_filters=None):
|
|
190
|
+
def get_list_of_bookings(self, filters=None, or_filters=None, order_by=None, order_direction="ASC"):
|
|
191
191
|
"""
|
|
192
192
|
Retrieves a list of bookings for the specified patient.
|
|
193
193
|
|
|
@@ -214,10 +214,10 @@ class SolteqTandDatabase:
|
|
|
214
214
|
JOIN BOOKINGTYPE bt on bt.BookingTypeID = b.BookingTypeID
|
|
215
215
|
WHERE 1=1
|
|
216
216
|
"""
|
|
217
|
-
final_query, params = self._construct_sql_statement(base_query, filters, or_filters)
|
|
217
|
+
final_query, params = self._construct_sql_statement(base_query, filters, or_filters, order_by, order_direction)
|
|
218
218
|
return self._execute_query(final_query, params)
|
|
219
219
|
|
|
220
|
-
def get_list_of_events(self, filters=None, or_filters=None):
|
|
220
|
+
def get_list_of_events(self, filters=None, or_filters=None, order_by=None, order_direction="ASC"):
|
|
221
221
|
"""
|
|
222
222
|
Retrieves a list of events related to the patient.
|
|
223
223
|
|
|
@@ -245,10 +245,10 @@ class SolteqTandDatabase:
|
|
|
245
245
|
JOIN [CLINIC] c ON c.clinicId = e.clinicId
|
|
246
246
|
WHERE 1=1
|
|
247
247
|
"""
|
|
248
|
-
final_query, params = self._construct_sql_statement(base_query, filters, or_filters)
|
|
248
|
+
final_query, params = self._construct_sql_statement(base_query, filters, or_filters, order_by, order_direction)
|
|
249
249
|
return self._execute_query(final_query, params)
|
|
250
250
|
|
|
251
|
-
def get_list_of_primary_dental_clinics(self, filters=None, or_filters=None):
|
|
251
|
+
def get_list_of_primary_dental_clinics(self, filters=None, or_filters=None, order_by=None, order_direction="ASC"):
|
|
252
252
|
"""
|
|
253
253
|
Retrieves details of the primary dental clinics associated with the patient.
|
|
254
254
|
|
|
@@ -271,10 +271,10 @@ class SolteqTandDatabase:
|
|
|
271
271
|
JOIN [CLINIC] c ON c.clinicId = p.preferredDentalClinicId
|
|
272
272
|
WHERE 1=1
|
|
273
273
|
"""
|
|
274
|
-
final_query, params = self._construct_sql_statement(base_query, filters, or_filters)
|
|
274
|
+
final_query, params = self._construct_sql_statement(base_query, filters, or_filters, order_by, order_direction)
|
|
275
275
|
return self._execute_query(final_query, params)
|
|
276
276
|
|
|
277
|
-
def get_list_of_journal_notes(self, filters=None, or_filters=None):
|
|
277
|
+
def get_list_of_journal_notes(self, filters=None, or_filters=None, order_by=None, order_direction="ASC"):
|
|
278
278
|
"""
|
|
279
279
|
Retrieves journal notes associated with the specified patient.
|
|
280
280
|
|
|
@@ -304,5 +304,33 @@ class SolteqTandDatabase:
|
|
|
304
304
|
PATIENT p ON p.patientId = f.patientId
|
|
305
305
|
WHERE 1=1
|
|
306
306
|
"""
|
|
307
|
-
final_query, params = self._construct_sql_statement(base_query, filters, or_filters)
|
|
307
|
+
final_query, params = self._construct_sql_statement(base_query, filters, or_filters, order_by, order_direction)
|
|
308
|
+
return self._execute_query(final_query, params)
|
|
309
|
+
|
|
310
|
+
def get_list_of_clinics(self, filters=None, or_filters=None, order_by=None, order_direction="ASC"):
|
|
311
|
+
"""
|
|
312
|
+
Retrieves a list of clinics.
|
|
313
|
+
|
|
314
|
+
Args:
|
|
315
|
+
filters (dict, optional): Filtering criteria for external dentists.
|
|
316
|
+
or_filters (list of dict, optional): OR conditions for filtering.
|
|
317
|
+
|
|
318
|
+
Returns:
|
|
319
|
+
list: A list of external dentist records.
|
|
320
|
+
"""
|
|
321
|
+
base_query = """
|
|
322
|
+
SELECT
|
|
323
|
+
clinicId
|
|
324
|
+
,name
|
|
325
|
+
,type
|
|
326
|
+
,streetAddress
|
|
327
|
+
,countyCode
|
|
328
|
+
,zip
|
|
329
|
+
,phoneNumber
|
|
330
|
+
,contractorId
|
|
331
|
+
FROM
|
|
332
|
+
[tmtdata_prod].[dbo].[CLINIC]
|
|
333
|
+
WHERE 1=1
|
|
334
|
+
"""
|
|
335
|
+
final_query, params = self._construct_sql_statement(base_query, filters, or_filters, order_by, order_direction)
|
|
308
336
|
return self._execute_query(final_query, params)
|
|
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
|