Skip to content

Sperrbildschirm/PIN für eNOTF / Überarbeitung Protokollansicht / Überarbeitung eNOTF Variablen - #114

Merged
itshypax merged 7 commits into
mainfrom
medikamente-in-datenbank
Oct 13, 2025
Merged

Sperrbildschirm/PIN für eNOTF / Überarbeitung Protokollansicht / Überarbeitung eNOTF Variablen#114
itshypax merged 7 commits into
mainfrom
medikamente-in-datenbank

Conversation

@itshypax

Copy link
Copy Markdown
Collaborator

No description provided.

Implements a PIN-based authentication mechanism for the eNOTF system to enhance security.

Introduces a lock screen that requires a PIN to access the system.
After a period of inactivity, the system redirects the user to the lock screen.
Adds client-side activity tracking to manage session timeout and display inactivity warnings.
This commit introduces new features to the eNOTF protocol, specifically related to "NA-Nachforderung" (Notarzt-Nachforderung - Doctor Retrospective Demand) and "Einsatzverlauf Besonderheiten" (Mission History Special Features).

It adds database fields, UI elements and logic to capture these parameters during protocol completion. Also adds plausibility checks to ensure data consistency. The changes include:

- Adds 'na_nachf' and 'ebesonderheiten' fields to the database schema.
- Adds UI elements to capture 'ebesonderheiten' (mission specifics) as checkboxes.
- Conditionally adds 'na_nachf' (doctor follow-up) based on the protocol type.
- Includes plausibility checks for the new fields to improve data quality.
Adds a field to display "involved resources" on the print view.

Adds a field to display "special circumstances" on the protocol conclusion page.
This field shows a comma-separated list of selected special circumstances.
Dynamically adjusts the lock screen PIN length based on the configured `ENOTF_PIN` constant.
This ensures that the UI accurately reflects the required PIN length.
Additionally, the lock screen now automatically submits the PIN when the user enters the correct number of digits.
Improves the eNotfall protocol by adding new fields to the database schema to include additional assessment options.

Updates the UI with quickfill options for faster data entry. Also, changes several labels in the topbar for better clarity and to provide a more streamlined user experience.
Refactors print zoom functionality by wrapping the print paper in a zoom-wrapper, allowing for better control over scaling and layout.

This change also addresses overflow issues during zooming and ensures proper page breaking during printing, and correctly removes zoom wrapper during printing.
Updates the PIN middleware to enhance the timeout handling and session management.

Ensures that the return URL is only set if the user isn't already on the lockscreen.
Clears the last activity timestamp when redirecting to the lockscreen and upon entering the lockscreen to prevent bypasses after timeouts.
@itshypax itshypax linked an issue Oct 13, 2025 that may be closed by this pull request
@itshypax
itshypax merged commit fea6430 into main Oct 13, 2025
1 check passed
@itshypax itshypax linked an issue Oct 13, 2025 that may be closed by this pull request
@itshypax
itshypax deleted the medikamente-in-datenbank branch October 13, 2025 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sperrbildschirm/PIN für eNOTF eNOTF Medikamente in Datenbank

1 participant