mbu-dev-shared-components 4.4.6__tar.gz → 4.4.8__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-4.4.6 → mbu_dev_shared_components-4.4.8}/PKG-INFO +1 -1
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/mbu_dev_shared_components/solteqtand/application/journal_note.py +41 -1
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/mbu_dev_shared_components.egg-info/PKG-INFO +1 -1
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/pyproject.toml +1 -1
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/LICENSE +0 -0
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/README.md +0 -0
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/mbu_dev_shared_components/database/__init__.py +0 -0
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/mbu_dev_shared_components/database/connection.py +0 -0
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/mbu_dev_shared_components/database/constants.py +0 -0
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/mbu_dev_shared_components/database/logging.py +0 -0
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/mbu_dev_shared_components/database/utility.py +0 -0
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/mbu_dev_shared_components/getorganized/__init__.py +0 -0
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/mbu_dev_shared_components/getorganized/api.py +0 -0
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/mbu_dev_shared_components/getorganized/auth.py +0 -0
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/mbu_dev_shared_components/getorganized/cases.py +0 -0
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/mbu_dev_shared_components/getorganized/contacts.py +0 -0
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/mbu_dev_shared_components/getorganized/documents.py +0 -0
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/mbu_dev_shared_components/getorganized/objects.py +0 -0
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/mbu_dev_shared_components/google/__init__.py +0 -0
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/mbu_dev_shared_components/google/api/__init__.py +0 -0
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/mbu_dev_shared_components/google/api/auth.py +0 -0
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/mbu_dev_shared_components/google/workspace/__init__.py +0 -0
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/mbu_dev_shared_components/google/workspace/alerts.py +0 -0
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/mbu_dev_shared_components/msoffice365/__init__.py +0 -0
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/mbu_dev_shared_components/msoffice365/excel/__init__.py +0 -0
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/mbu_dev_shared_components/msoffice365/excel/excel_reader.py +0 -0
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/mbu_dev_shared_components/msoffice365/sharepoint_api/__init__.py +0 -0
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/mbu_dev_shared_components/msoffice365/sharepoint_api/files.py +0 -0
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/mbu_dev_shared_components/os2forms/__init__.py +0 -0
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/mbu_dev_shared_components/os2forms/documents.py +0 -0
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/mbu_dev_shared_components/os2forms/forms.py +0 -0
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/mbu_dev_shared_components/romexis/__init__.py +0 -0
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/mbu_dev_shared_components/romexis/db_handler.py +0 -0
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/mbu_dev_shared_components/romexis/helper_functions.py +0 -0
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/mbu_dev_shared_components/sap/__init__.py +0 -0
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/mbu_dev_shared_components/sap/create_invoice.py +0 -0
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/mbu_dev_shared_components/solteqtand/__init__.py +0 -0
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/mbu_dev_shared_components/solteqtand/application/__init__.py +0 -0
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/mbu_dev_shared_components/solteqtand/application/aftalebog.py +0 -0
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/mbu_dev_shared_components/solteqtand/application/app_handler.py +0 -0
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/mbu_dev_shared_components/solteqtand/application/appointment.py +0 -0
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/mbu_dev_shared_components/solteqtand/application/base_ui.py +0 -0
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/mbu_dev_shared_components/solteqtand/application/clinic.py +0 -0
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/mbu_dev_shared_components/solteqtand/application/document.py +0 -0
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/mbu_dev_shared_components/solteqtand/application/edi_portal.py +0 -0
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/mbu_dev_shared_components/solteqtand/application/event.py +0 -0
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/mbu_dev_shared_components/solteqtand/application/exceptions.py +0 -0
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/mbu_dev_shared_components/solteqtand/application/handler_base.py +0 -0
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/mbu_dev_shared_components/solteqtand/application/patient.py +0 -0
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/mbu_dev_shared_components/solteqtand/database/__init__.py +0 -0
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/mbu_dev_shared_components/solteqtand/database/db_handler.py +0 -0
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/mbu_dev_shared_components/utils/__init__.py +0 -0
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/mbu_dev_shared_components/utils/db_stored_procedure_executor.py +0 -0
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/mbu_dev_shared_components/utils/fernet_encryptor.py +0 -0
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/mbu_dev_shared_components/utils/file_handler.py +0 -0
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/mbu_dev_shared_components/utils/json_handler.py +0 -0
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/mbu_dev_shared_components.egg-info/SOURCES.txt +0 -0
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/mbu_dev_shared_components.egg-info/dependency_links.txt +0 -0
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/mbu_dev_shared_components.egg-info/requires.txt +0 -0
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/mbu_dev_shared_components.egg-info/top_level.txt +0 -0
- {mbu_dev_shared_components-4.4.6 → mbu_dev_shared_components-4.4.8}/setup.cfg +0 -0
|
@@ -12,16 +12,56 @@ class JournalNoteHandler(HandlerBase):
|
|
|
12
12
|
Handles the processing of journal notes in the Solteq Tand application.
|
|
13
13
|
"""
|
|
14
14
|
|
|
15
|
-
def
|
|
15
|
+
def _set_department_journals(self, department: str) -> None:
|
|
16
|
+
"""
|
|
17
|
+
Sets the department journal combobox to the given value.
|
|
18
|
+
|
|
19
|
+
Args:
|
|
20
|
+
department (str): The department journal to select. Matches on startswith,
|
|
21
|
+
so partial values like "Generel Journal - Påbegyndt" will match
|
|
22
|
+
"Generel Journal - Påbegyndt - 11-11-2024" etc.
|
|
23
|
+
Defaults to "Generel Journal - Påbegyndt".
|
|
24
|
+
|
|
25
|
+
Raises:
|
|
26
|
+
ValueError: If no department journal is found starting with the given value.
|
|
27
|
+
"""
|
|
28
|
+
|
|
29
|
+
combobox = self.app_window.ComboBoxControl(AutomationId="cmbDepartmentJournals")
|
|
30
|
+
combobox.SetFocus()
|
|
31
|
+
|
|
32
|
+
# Expand the combobox to load all options
|
|
33
|
+
expand_pattern = combobox.GetExpandCollapsePattern()
|
|
34
|
+
expand_pattern.Expand()
|
|
35
|
+
|
|
36
|
+
# Find the item that starts with the department string
|
|
37
|
+
for item in combobox.GetChildren():
|
|
38
|
+
if item.Name.startswith(department):
|
|
39
|
+
item.Click(simulateMove=False, waitTime=0)
|
|
40
|
+
return
|
|
41
|
+
|
|
42
|
+
raise ValueError(f"No department journal found starting with: '{department}'")
|
|
43
|
+
|
|
44
|
+
def create_journal_note(
|
|
45
|
+
self,
|
|
46
|
+
note_message: str,
|
|
47
|
+
checkmark_in_complete: bool,
|
|
48
|
+
department: str = "Generel Journal - Påbegyndt",
|
|
49
|
+
):
|
|
16
50
|
"""
|
|
17
51
|
Creates a journal note for the given patient.
|
|
18
52
|
|
|
19
53
|
Args:
|
|
20
54
|
note_message (str): The note message.
|
|
21
55
|
checkmark_in_complete (bool): Checks the checkmark in 'Afslut'.
|
|
56
|
+
department (str): The department journal to select. Matches on startswith,
|
|
57
|
+
so partial values like "Generel Journal - Påbegyndt" will match
|
|
58
|
+
"Generel Journal - Påbegyndt - 11-11-2024" etc.
|
|
59
|
+
Defaults to "Generel Journal - Påbegyndt".
|
|
22
60
|
"""
|
|
23
61
|
self.open_tab("Journal")
|
|
24
62
|
|
|
63
|
+
self._set_department_journals(department=department)
|
|
64
|
+
|
|
25
65
|
self.wait_for_control(
|
|
26
66
|
auto.DocumentControl, {"AutomationId": "RichTextBoxInput"}, search_depth=21
|
|
27
67
|
)
|
|
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
|
|
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
|