SORMAS-Foundation / SORMAS-Project

SORMAS (Surveillance, Outbreak Response Management and Analysis System) is an early warning and management system to fight the spread of infectious diseases.
https://sormas.org
GNU General Public License v3.0
293 stars 143 forks source link

Phone Number Validation for E-Santé Reports – Remove and Store Non-Numeric Text #13147

Closed markusmann-vg closed 1 month ago

markusmann-vg commented 2 months ago

Feature Description

When importing an E-Santé report, some laboratories mistakenly include text in the phone number field, such as "(Mother)" after the phone number. Since we validate phone numbers and need them for SMS communication, this issue prevents proper validation.

Added Value/Benefit

Ensure phone numbers are formatted correctly for validation and further use (such as SMS sending). Retain any additional information provided in the phone number field in the comment section, so no information is lost.

Acceptance Criteria

Phone Number Validation:

Preservation of Removed Text:

Successful SMS Sending:

General Comment Field Updates:

Implementation Details

Mockups

No response

Additional Information

No response

richardbartha commented 1 month ago

Tested on localhost version 1.99.0 - SNAPSHOT (https://github.com/SORMAS-Foundation/SORMAS-Project/commits/0c557021cc987a83391e4d054f44f55ede18e358)