mbu-dev-shared-components 0.0.57__tar.gz → 0.0.58__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.0.58/.github/dependabot.yml +6 -0
- {mbu_dev_shared_components-0.0.57/mbu_dev_shared_components.egg-info → mbu_dev_shared_components-0.0.58}/PKG-INFO +1 -1
- {mbu_dev_shared_components-0.0.57 → mbu_dev_shared_components-0.0.58}/mbu_dev_shared_components/solteqtand/app_handler.py +10 -1
- {mbu_dev_shared_components-0.0.57 → mbu_dev_shared_components-0.0.58}/mbu_dev_shared_components/solteqtand/db_handler.py +29 -17
- {mbu_dev_shared_components-0.0.57 → mbu_dev_shared_components-0.0.58/mbu_dev_shared_components.egg-info}/PKG-INFO +1 -1
- {mbu_dev_shared_components-0.0.57 → mbu_dev_shared_components-0.0.58}/mbu_dev_shared_components.egg-info/SOURCES.txt +1 -0
- {mbu_dev_shared_components-0.0.57 → mbu_dev_shared_components-0.0.58}/.gitignore +0 -0
- {mbu_dev_shared_components-0.0.57 → mbu_dev_shared_components-0.0.58}/.pylintrc +0 -0
- {mbu_dev_shared_components-0.0.57 → mbu_dev_shared_components-0.0.58}/LICENSE +0 -0
- {mbu_dev_shared_components-0.0.57 → mbu_dev_shared_components-0.0.58}/README.md +0 -0
- {mbu_dev_shared_components-0.0.57 → mbu_dev_shared_components-0.0.58}/mbu_dev_shared_components/getorganized/__init__.py +0 -0
- {mbu_dev_shared_components-0.0.57 → mbu_dev_shared_components-0.0.58}/mbu_dev_shared_components/getorganized/auth.py +0 -0
- {mbu_dev_shared_components-0.0.57 → mbu_dev_shared_components-0.0.58}/mbu_dev_shared_components/getorganized/cases.py +0 -0
- {mbu_dev_shared_components-0.0.57 → mbu_dev_shared_components-0.0.58}/mbu_dev_shared_components/getorganized/contacts.py +0 -0
- {mbu_dev_shared_components-0.0.57 → mbu_dev_shared_components-0.0.58}/mbu_dev_shared_components/getorganized/documents.py +0 -0
- {mbu_dev_shared_components-0.0.57 → mbu_dev_shared_components-0.0.58}/mbu_dev_shared_components/getorganized/objects.py +0 -0
- {mbu_dev_shared_components-0.0.57 → mbu_dev_shared_components-0.0.58}/mbu_dev_shared_components/google/__init__.py +0 -0
- {mbu_dev_shared_components-0.0.57 → mbu_dev_shared_components-0.0.58}/mbu_dev_shared_components/google/api/__init__.py +0 -0
- {mbu_dev_shared_components-0.0.57 → mbu_dev_shared_components-0.0.58}/mbu_dev_shared_components/google/api/auth.py +0 -0
- {mbu_dev_shared_components-0.0.57 → mbu_dev_shared_components-0.0.58}/mbu_dev_shared_components/google/workspace/__init__.py +0 -0
- {mbu_dev_shared_components-0.0.57 → mbu_dev_shared_components-0.0.58}/mbu_dev_shared_components/google/workspace/alerts.py +0 -0
- {mbu_dev_shared_components-0.0.57 → mbu_dev_shared_components-0.0.58}/mbu_dev_shared_components/msoffice365/__init__.py +0 -0
- {mbu_dev_shared_components-0.0.57 → mbu_dev_shared_components-0.0.58}/mbu_dev_shared_components/msoffice365/excel/__init__.py +0 -0
- {mbu_dev_shared_components-0.0.57 → mbu_dev_shared_components-0.0.58}/mbu_dev_shared_components/msoffice365/excel/excel_reader.py +0 -0
- {mbu_dev_shared_components-0.0.57 → mbu_dev_shared_components-0.0.58}/mbu_dev_shared_components/msoffice365/sharepoint_api/__init__.py +0 -0
- {mbu_dev_shared_components-0.0.57 → mbu_dev_shared_components-0.0.58}/mbu_dev_shared_components/msoffice365/sharepoint_api/files.py +0 -0
- {mbu_dev_shared_components-0.0.57 → mbu_dev_shared_components-0.0.58}/mbu_dev_shared_components/os2forms/__init__.py +0 -0
- {mbu_dev_shared_components-0.0.57 → mbu_dev_shared_components-0.0.58}/mbu_dev_shared_components/os2forms/documents.py +0 -0
- {mbu_dev_shared_components-0.0.57 → mbu_dev_shared_components-0.0.58}/mbu_dev_shared_components/os2forms/forms.py +0 -0
- {mbu_dev_shared_components-0.0.57 → mbu_dev_shared_components-0.0.58}/mbu_dev_shared_components/sap/__init__.py +0 -0
- {mbu_dev_shared_components-0.0.57 → mbu_dev_shared_components-0.0.58}/mbu_dev_shared_components/sap/create_invoice.py +0 -0
- {mbu_dev_shared_components-0.0.57 → mbu_dev_shared_components-0.0.58}/mbu_dev_shared_components/solteqtand/__init__.py +0 -0
- {mbu_dev_shared_components-0.0.57 → mbu_dev_shared_components-0.0.58}/mbu_dev_shared_components/utils/__init__.py +0 -0
- {mbu_dev_shared_components-0.0.57 → mbu_dev_shared_components-0.0.58}/mbu_dev_shared_components/utils/db_stored_procedure_executor.py +0 -0
- {mbu_dev_shared_components-0.0.57 → mbu_dev_shared_components-0.0.58}/mbu_dev_shared_components/utils/fernet_encryptor.py +0 -0
- {mbu_dev_shared_components-0.0.57 → mbu_dev_shared_components-0.0.58}/mbu_dev_shared_components/utils/file_handler.py +0 -0
- {mbu_dev_shared_components-0.0.57 → mbu_dev_shared_components-0.0.58}/mbu_dev_shared_components/utils/json_handler.py +0 -0
- {mbu_dev_shared_components-0.0.57 → mbu_dev_shared_components-0.0.58}/mbu_dev_shared_components.egg-info/dependency_links.txt +0 -0
- {mbu_dev_shared_components-0.0.57 → mbu_dev_shared_components-0.0.58}/mbu_dev_shared_components.egg-info/requires.txt +0 -0
- {mbu_dev_shared_components-0.0.57 → mbu_dev_shared_components-0.0.58}/mbu_dev_shared_components.egg-info/top_level.txt +0 -0
- {mbu_dev_shared_components-0.0.57 → mbu_dev_shared_components-0.0.58}/pyproject.toml +0 -0
- {mbu_dev_shared_components-0.0.57 → mbu_dev_shared_components-0.0.58}/setup.cfg +0 -0
|
@@ -254,7 +254,7 @@ class SolteqTandApp:
|
|
|
254
254
|
tab_button.SetFocus()
|
|
255
255
|
tab_button.SendKeys('{ENTER}')
|
|
256
256
|
|
|
257
|
-
def create_document(self, document_full_path: str = None, document_type: str = None):
|
|
257
|
+
def create_document(self, document_full_path: str = None, document_type: str = None, document_description: str = None):
|
|
258
258
|
"""
|
|
259
259
|
Creates a new document under the 'Dokumenter' tab.
|
|
260
260
|
|
|
@@ -313,6 +313,15 @@ class SolteqTandApp:
|
|
|
313
313
|
)
|
|
314
314
|
document_type_button.Click(simulateMove=False, waitTime=0)
|
|
315
315
|
|
|
316
|
+
if document_description:
|
|
317
|
+
description_text_field = self.find_element_by_property(
|
|
318
|
+
control=create_document_window,
|
|
319
|
+
control_type=auto.ControlType.DocumentControl,
|
|
320
|
+
automation_id="richTextBoxDescription"
|
|
321
|
+
)
|
|
322
|
+
value_pattern = description_text_field.GetPattern(auto.PatternId.ValuePattern)
|
|
323
|
+
value_pattern.SetValue(document_description)
|
|
324
|
+
|
|
316
325
|
button_create_document = self.find_element_by_property(
|
|
317
326
|
control=create_document_window,
|
|
318
327
|
control_type=auto.ControlType.PaneControl,
|
|
@@ -38,12 +38,15 @@ class SolteqTandDatabase:
|
|
|
38
38
|
result = {'data': dict(zip(columns, row)) for row in rows}
|
|
39
39
|
return result
|
|
40
40
|
|
|
41
|
-
def check_if_document_exists(self, filename: str, documenttype: str = None):
|
|
41
|
+
def check_if_document_exists(self, filename: str, documenttype: str = None, form_id: str = None):
|
|
42
42
|
"""
|
|
43
|
-
Checks if a document with the given filename exists for the specified patient
|
|
43
|
+
Checks if a document with the given filename exists for the specified patient,
|
|
44
|
+
optionally filtering by document type and form ID.
|
|
44
45
|
|
|
45
46
|
Args:
|
|
46
47
|
filename (str): Name of the file to search for.
|
|
48
|
+
documenttype (str, optional): Type of the document to filter by.
|
|
49
|
+
form_id (str, optional): Form ID to filter by.
|
|
47
50
|
|
|
48
51
|
Returns:
|
|
49
52
|
list: A list of matching document records.
|
|
@@ -71,27 +74,36 @@ class SolteqTandDatabase:
|
|
|
71
74
|
FROM [tmtdata_prod].[dbo].[DocumentStore] ds
|
|
72
75
|
JOIN DocumentStoreStatus dss ON ds.DocumentId = dss.DocumentId
|
|
73
76
|
)
|
|
74
|
-
SELECT
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
77
|
+
SELECT
|
|
78
|
+
ds.DocumentId,
|
|
79
|
+
ds.entityId,
|
|
80
|
+
ds.OriginalFilename,
|
|
81
|
+
ds.UniqueFilename,
|
|
82
|
+
ds.DocumentType,
|
|
83
|
+
ds.DocumentDescription,
|
|
84
|
+
ds.DocumentCreatedDate,
|
|
85
|
+
ds.DocumentLastEditedDate,
|
|
86
|
+
ds.SentToNemSMS,
|
|
87
|
+
p.cpr
|
|
83
88
|
FROM [tmtdata_prod].[dbo].[PATIENT] p
|
|
84
89
|
JOIN LatestActiveDocuments ds ON ds.entityId = p.patientId
|
|
85
90
|
WHERE ds.rn = 1
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
91
|
+
AND ds.DocumentStoreStatusId = 1
|
|
92
|
+
AND p.cpr = ?
|
|
93
|
+
AND ds.OriginalFilename = ?
|
|
89
94
|
"""
|
|
95
|
+
|
|
96
|
+
params = [self.ssn, filename]
|
|
97
|
+
|
|
90
98
|
if documenttype:
|
|
91
99
|
query += " AND ds.DocumentType = ?"
|
|
92
|
-
params
|
|
93
|
-
|
|
94
|
-
|
|
100
|
+
params.append(documenttype)
|
|
101
|
+
|
|
102
|
+
if form_id:
|
|
103
|
+
query += " AND ds.DocumentDescription = ?"
|
|
104
|
+
params.append(form_id)
|
|
105
|
+
|
|
106
|
+
params = tuple(params)
|
|
95
107
|
|
|
96
108
|
return self._execute_query(query, params)
|
|
97
109
|
|
|
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
|