mbu-dev-shared-components 2.0.0__tar.gz → 2.0.1__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-2.0.0 → mbu_dev_shared_components-2.0.1}/PKG-INFO +1 -1
- mbu_dev_shared_components-2.0.1/mbu_dev_shared_components/solteqtand/__init__.py +8 -0
- mbu_dev_shared_components-2.0.1/mbu_dev_shared_components/solteqtand/application/__init__.py +4 -0
- {mbu_dev_shared_components-2.0.0 → mbu_dev_shared_components-2.0.1}/mbu_dev_shared_components/solteqtand/application/app_handler.py +25 -36
- {mbu_dev_shared_components-2.0.0 → mbu_dev_shared_components-2.0.1}/mbu_dev_shared_components/solteqtand/application/appointment.py +2 -3
- {mbu_dev_shared_components-2.0.0 → mbu_dev_shared_components-2.0.1}/mbu_dev_shared_components/solteqtand/application/clinic.py +2 -2
- {mbu_dev_shared_components-2.0.0 → mbu_dev_shared_components-2.0.1}/mbu_dev_shared_components/solteqtand/application/document.py +2 -2
- {mbu_dev_shared_components-2.0.0 → mbu_dev_shared_components-2.0.1}/mbu_dev_shared_components/solteqtand/application/edi_portal.py +2 -2
- {mbu_dev_shared_components-2.0.0 → mbu_dev_shared_components-2.0.1}/mbu_dev_shared_components/solteqtand/application/event.py +2 -2
- mbu_dev_shared_components-2.0.1/mbu_dev_shared_components/solteqtand/application/handler_base.py +13 -0
- {mbu_dev_shared_components-2.0.0 → mbu_dev_shared_components-2.0.1}/mbu_dev_shared_components/solteqtand/application/patient.py +2 -2
- {mbu_dev_shared_components-2.0.0 → mbu_dev_shared_components-2.0.1}/mbu_dev_shared_components.egg-info/PKG-INFO +1 -1
- {mbu_dev_shared_components-2.0.0 → mbu_dev_shared_components-2.0.1}/mbu_dev_shared_components.egg-info/SOURCES.txt +1 -0
- {mbu_dev_shared_components-2.0.0 → mbu_dev_shared_components-2.0.1}/pyproject.toml +1 -1
- mbu_dev_shared_components-2.0.0/mbu_dev_shared_components/solteqtand/__init__.py +0 -32
- mbu_dev_shared_components-2.0.0/mbu_dev_shared_components/solteqtand/application/__init__.py +0 -1
- {mbu_dev_shared_components-2.0.0 → mbu_dev_shared_components-2.0.1}/LICENSE +0 -0
- {mbu_dev_shared_components-2.0.0 → mbu_dev_shared_components-2.0.1}/README.md +0 -0
- {mbu_dev_shared_components-2.0.0 → mbu_dev_shared_components-2.0.1}/mbu_dev_shared_components/database/__init__.py +0 -0
- {mbu_dev_shared_components-2.0.0 → mbu_dev_shared_components-2.0.1}/mbu_dev_shared_components/database/constants.py +0 -0
- {mbu_dev_shared_components-2.0.0 → mbu_dev_shared_components-2.0.1}/mbu_dev_shared_components/database/logging.py +0 -0
- {mbu_dev_shared_components-2.0.0 → mbu_dev_shared_components-2.0.1}/mbu_dev_shared_components/database/utility.py +0 -0
- {mbu_dev_shared_components-2.0.0 → mbu_dev_shared_components-2.0.1}/mbu_dev_shared_components/getorganized/__init__.py +0 -0
- {mbu_dev_shared_components-2.0.0 → mbu_dev_shared_components-2.0.1}/mbu_dev_shared_components/getorganized/auth.py +0 -0
- {mbu_dev_shared_components-2.0.0 → mbu_dev_shared_components-2.0.1}/mbu_dev_shared_components/getorganized/cases.py +0 -0
- {mbu_dev_shared_components-2.0.0 → mbu_dev_shared_components-2.0.1}/mbu_dev_shared_components/getorganized/contacts.py +0 -0
- {mbu_dev_shared_components-2.0.0 → mbu_dev_shared_components-2.0.1}/mbu_dev_shared_components/getorganized/documents.py +0 -0
- {mbu_dev_shared_components-2.0.0 → mbu_dev_shared_components-2.0.1}/mbu_dev_shared_components/getorganized/objects.py +0 -0
- {mbu_dev_shared_components-2.0.0 → mbu_dev_shared_components-2.0.1}/mbu_dev_shared_components/google/__init__.py +0 -0
- {mbu_dev_shared_components-2.0.0 → mbu_dev_shared_components-2.0.1}/mbu_dev_shared_components/google/api/__init__.py +0 -0
- {mbu_dev_shared_components-2.0.0 → mbu_dev_shared_components-2.0.1}/mbu_dev_shared_components/google/api/auth.py +0 -0
- {mbu_dev_shared_components-2.0.0 → mbu_dev_shared_components-2.0.1}/mbu_dev_shared_components/google/workspace/__init__.py +0 -0
- {mbu_dev_shared_components-2.0.0 → mbu_dev_shared_components-2.0.1}/mbu_dev_shared_components/google/workspace/alerts.py +0 -0
- {mbu_dev_shared_components-2.0.0 → mbu_dev_shared_components-2.0.1}/mbu_dev_shared_components/msoffice365/__init__.py +0 -0
- {mbu_dev_shared_components-2.0.0 → mbu_dev_shared_components-2.0.1}/mbu_dev_shared_components/msoffice365/excel/__init__.py +0 -0
- {mbu_dev_shared_components-2.0.0 → mbu_dev_shared_components-2.0.1}/mbu_dev_shared_components/msoffice365/excel/excel_reader.py +0 -0
- {mbu_dev_shared_components-2.0.0 → mbu_dev_shared_components-2.0.1}/mbu_dev_shared_components/msoffice365/sharepoint_api/__init__.py +0 -0
- {mbu_dev_shared_components-2.0.0 → mbu_dev_shared_components-2.0.1}/mbu_dev_shared_components/msoffice365/sharepoint_api/files.py +0 -0
- {mbu_dev_shared_components-2.0.0 → mbu_dev_shared_components-2.0.1}/mbu_dev_shared_components/os2forms/__init__.py +0 -0
- {mbu_dev_shared_components-2.0.0 → mbu_dev_shared_components-2.0.1}/mbu_dev_shared_components/os2forms/documents.py +0 -0
- {mbu_dev_shared_components-2.0.0 → mbu_dev_shared_components-2.0.1}/mbu_dev_shared_components/os2forms/forms.py +0 -0
- {mbu_dev_shared_components-2.0.0 → mbu_dev_shared_components-2.0.1}/mbu_dev_shared_components/romexis/__init__.py +0 -0
- {mbu_dev_shared_components-2.0.0 → mbu_dev_shared_components-2.0.1}/mbu_dev_shared_components/romexis/db_handler.py +0 -0
- {mbu_dev_shared_components-2.0.0 → mbu_dev_shared_components-2.0.1}/mbu_dev_shared_components/romexis/helper_functions.py +0 -0
- {mbu_dev_shared_components-2.0.0 → mbu_dev_shared_components-2.0.1}/mbu_dev_shared_components/sap/__init__.py +0 -0
- {mbu_dev_shared_components-2.0.0 → mbu_dev_shared_components-2.0.1}/mbu_dev_shared_components/sap/create_invoice.py +0 -0
- {mbu_dev_shared_components-2.0.0 → mbu_dev_shared_components-2.0.1}/mbu_dev_shared_components/solteqtand/application/base_ui.py +0 -0
- {mbu_dev_shared_components-2.0.0 → mbu_dev_shared_components-2.0.1}/mbu_dev_shared_components/solteqtand/application/exceptions.py +0 -0
- {mbu_dev_shared_components-2.0.0 → mbu_dev_shared_components-2.0.1}/mbu_dev_shared_components/solteqtand/database/__init__.py +0 -0
- {mbu_dev_shared_components-2.0.0 → mbu_dev_shared_components-2.0.1}/mbu_dev_shared_components/solteqtand/database/db_handler.py +0 -0
- {mbu_dev_shared_components-2.0.0 → mbu_dev_shared_components-2.0.1}/mbu_dev_shared_components/utils/__init__.py +0 -0
- {mbu_dev_shared_components-2.0.0 → mbu_dev_shared_components-2.0.1}/mbu_dev_shared_components/utils/db_stored_procedure_executor.py +0 -0
- {mbu_dev_shared_components-2.0.0 → mbu_dev_shared_components-2.0.1}/mbu_dev_shared_components/utils/fernet_encryptor.py +0 -0
- {mbu_dev_shared_components-2.0.0 → mbu_dev_shared_components-2.0.1}/mbu_dev_shared_components/utils/file_handler.py +0 -0
- {mbu_dev_shared_components-2.0.0 → mbu_dev_shared_components-2.0.1}/mbu_dev_shared_components/utils/json_handler.py +0 -0
- {mbu_dev_shared_components-2.0.0 → mbu_dev_shared_components-2.0.1}/mbu_dev_shared_components.egg-info/dependency_links.txt +0 -0
- {mbu_dev_shared_components-2.0.0 → mbu_dev_shared_components-2.0.1}/mbu_dev_shared_components.egg-info/requires.txt +0 -0
- {mbu_dev_shared_components-2.0.0 → mbu_dev_shared_components-2.0.1}/mbu_dev_shared_components.egg-info/top_level.txt +0 -0
- {mbu_dev_shared_components-2.0.0 → mbu_dev_shared_components-2.0.1}/setup.cfg +0 -0
|
@@ -1,56 +1,45 @@
|
|
|
1
|
-
|
|
1
|
+
"""This module contains the PatientHandler class, which manages patient-related actions in the Solteq Tand application."""
|
|
2
2
|
import os
|
|
3
|
-
import time
|
|
4
3
|
import uiautomation as auto
|
|
5
4
|
|
|
6
5
|
from .base_ui import BaseUI
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
from .edi_portal import EDIHandler
|
|
11
|
-
from .clinic import ClinicHandler
|
|
12
|
-
from .event import EventHandler
|
|
13
|
-
from .exceptions import (
|
|
14
|
-
ManualProcessingRequiredError,
|
|
15
|
-
NotMatchingError,
|
|
16
|
-
PatientNotFoundError,
|
|
17
|
-
)
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
class SolteqTandApp(
|
|
21
|
-
BaseUI,
|
|
22
|
-
PatientHandler,
|
|
23
|
-
DocumentHandler,
|
|
24
|
-
AppointmentHandler,
|
|
25
|
-
EDIHandler,
|
|
26
|
-
ClinicHandler,
|
|
27
|
-
EventHandler
|
|
28
|
-
):
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class SolteqTandApp(BaseUI):
|
|
29
9
|
"""
|
|
30
10
|
Main application handler for Solteq Tand, integrating various components.
|
|
31
|
-
|
|
32
|
-
Inherits from:
|
|
33
|
-
BaseUI: Provides basic UI interaction methods.
|
|
34
|
-
PatientHandler: Handles patient-related operations.
|
|
35
|
-
DocumentHandler: Manages document operations.
|
|
36
|
-
AppointmentHandler: Manages appointment operations.
|
|
37
|
-
EDIHandler: Handles EDI portal interactions.
|
|
38
|
-
ClinicHandler: Manages clinic-related operations.
|
|
39
|
-
EventHandler: Processes events in the application.
|
|
11
|
+
Inherits from BaseUI for core UI methods, and composes all feature handlers.
|
|
40
12
|
"""
|
|
41
|
-
|
|
13
|
+
|
|
42
14
|
def __init__(self, app_path: str, username: str = None, password: str = None):
|
|
43
15
|
"""
|
|
44
16
|
Initializes the Solteq Tand application handler.
|
|
45
|
-
|
|
46
17
|
Args:
|
|
47
18
|
app_path (str): Path to the Solteq Tand application executable.
|
|
19
|
+
username (str): Username for login.
|
|
20
|
+
password (str): Password for login.
|
|
48
21
|
"""
|
|
22
|
+
super().__init__()
|
|
49
23
|
self.app_path = app_path
|
|
50
24
|
self.username = username
|
|
51
25
|
self.password = password
|
|
52
26
|
self.app_window = None
|
|
53
|
-
|
|
27
|
+
|
|
28
|
+
# Compose feature handlers, passing this App as parent
|
|
29
|
+
from .patient import PatientHandler
|
|
30
|
+
from .appointment import AppointmentHandler
|
|
31
|
+
from .document import DocumentHandler
|
|
32
|
+
from .edi_portal import EDIHandler
|
|
33
|
+
from .clinic import ClinicHandler
|
|
34
|
+
from .event import EventHandler
|
|
35
|
+
|
|
36
|
+
self.patient = PatientHandler(self)
|
|
37
|
+
self.appointment = AppointmentHandler(self)
|
|
38
|
+
self.document = DocumentHandler(self)
|
|
39
|
+
self.edi = EDIHandler(self)
|
|
40
|
+
self.clinic = ClinicHandler(self)
|
|
41
|
+
self.event = EventHandler(self)
|
|
42
|
+
|
|
54
43
|
def start_application(self):
|
|
55
44
|
"""
|
|
56
45
|
Starts the application using the specified path.
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import uiautomation as auto
|
|
2
2
|
|
|
3
|
-
from .
|
|
3
|
+
from .handler_base import HandlerBase
|
|
4
4
|
from .exceptions import ManualProcessingRequiredError
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
class AppointmentHandler(
|
|
7
|
+
class AppointmentHandler(HandlerBase):
|
|
8
8
|
"""
|
|
9
9
|
Handles appointment-related UI interactions.
|
|
10
10
|
"""
|
|
11
|
-
|
|
12
11
|
def get_list_of_appointments(self) -> dict:
|
|
13
12
|
"""
|
|
14
13
|
Gets list of appointments as found in patient window
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import uiautomation as auto
|
|
2
2
|
|
|
3
|
-
from .
|
|
3
|
+
from .handler_base import HandlerBase
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
class ClinicHandler(
|
|
6
|
+
class ClinicHandler(HandlerBase):
|
|
7
7
|
"""
|
|
8
8
|
Handles changing the primart clinic for a patient (if it's not "Tandplejen Aarhus").
|
|
9
9
|
"""
|
|
@@ -6,10 +6,10 @@ import psutil
|
|
|
6
6
|
from docx2pdf import convert
|
|
7
7
|
import uiautomation as auto
|
|
8
8
|
|
|
9
|
-
from .
|
|
9
|
+
from .handler_base import HandlerBase
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
class DocumentHandler(
|
|
12
|
+
class DocumentHandler(HandlerBase):
|
|
13
13
|
"""
|
|
14
14
|
Handles everything under the “Dokumenter” sub-tab in a patient's record,
|
|
15
15
|
including creating a document, merging from a template, converting DOCX → PDF,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import uiautomation as auto
|
|
2
2
|
|
|
3
|
-
from .
|
|
3
|
+
from .handler_base import HandlerBase
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
class EventHandler(
|
|
6
|
+
class EventHandler(HandlerBase):
|
|
7
7
|
"""
|
|
8
8
|
Handles “Hændelser” under “Stamkort”—specifically processes “Afgang til klinik 751”.
|
|
9
9
|
"""
|
mbu_dev_shared_components-2.0.1/mbu_dev_shared_components/solteqtand/application/handler_base.py
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"""This module handles the base functionality."""
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class HandlerBase:
|
|
5
|
+
"""
|
|
6
|
+
Base class for all feature‐handlers. Delegates unknown attributes
|
|
7
|
+
(methods & properties) up to the main App instance.
|
|
8
|
+
"""
|
|
9
|
+
def __init__(self, parent):
|
|
10
|
+
self._parent = parent
|
|
11
|
+
|
|
12
|
+
def __getattr__(self, name):
|
|
13
|
+
return getattr(self._parent, name)
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import time
|
|
3
3
|
import uiautomation as auto
|
|
4
4
|
|
|
5
|
-
from .
|
|
5
|
+
from .handler_base import HandlerBase
|
|
6
6
|
from .exceptions import PatientNotFoundError, NotMatchingError
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
class PatientHandler(
|
|
9
|
+
class PatientHandler(HandlerBase):
|
|
10
10
|
"""Handles all patient-related actions in the Solteq Tand application."""
|
|
11
11
|
|
|
12
12
|
def get_ssn_stamkort(self):
|
|
@@ -44,6 +44,7 @@ mbu_dev_shared_components/solteqtand/application/document.py
|
|
|
44
44
|
mbu_dev_shared_components/solteqtand/application/edi_portal.py
|
|
45
45
|
mbu_dev_shared_components/solteqtand/application/event.py
|
|
46
46
|
mbu_dev_shared_components/solteqtand/application/exceptions.py
|
|
47
|
+
mbu_dev_shared_components/solteqtand/application/handler_base.py
|
|
47
48
|
mbu_dev_shared_components/solteqtand/application/patient.py
|
|
48
49
|
mbu_dev_shared_components/solteqtand/database/__init__.py
|
|
49
50
|
mbu_dev_shared_components/solteqtand/database/db_handler.py
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"""
|
|
2
|
-
This module provides the main entry point for the Solteq Tand application.
|
|
3
|
-
"""
|
|
4
|
-
from .application import (
|
|
5
|
-
app_handler,
|
|
6
|
-
appointment,
|
|
7
|
-
base_ui,
|
|
8
|
-
clinic,
|
|
9
|
-
document,
|
|
10
|
-
edi_portal,
|
|
11
|
-
event,
|
|
12
|
-
patient,
|
|
13
|
-
exceptions,
|
|
14
|
-
helper_functions,
|
|
15
|
-
SolteqTandApp
|
|
16
|
-
)
|
|
17
|
-
from .database import SolteqTandDatabase
|
|
18
|
-
|
|
19
|
-
__all__ = [
|
|
20
|
-
"app_handler",
|
|
21
|
-
"appointment",
|
|
22
|
-
"base_ui",
|
|
23
|
-
"clinic",
|
|
24
|
-
"document",
|
|
25
|
-
"edi_portal",
|
|
26
|
-
"event",
|
|
27
|
-
"patient",
|
|
28
|
-
"exceptions",
|
|
29
|
-
"helper_functions",
|
|
30
|
-
"SolteqTandApp",
|
|
31
|
-
"SolteqTandDatabase"
|
|
32
|
-
]
|
mbu_dev_shared_components-2.0.0/mbu_dev_shared_components/solteqtand/application/__init__.py
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
from .app_handler import SolteqTandApp
|
|
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
|