SORMAS-Project
                                
                                 SORMAS-Project copied to clipboard
                                
                                    SORMAS-Project copied to clipboard
                            
                            
                            
                        Adjust processing of address fields in external messages
Feature Description
External messages coming from eSanté are sending address data as one string but it needs to be split into "street" and "house number" in SORMAS during processing.
Problem Description
Currently the processing only recognizes numbers in the address string as house numbers.
Examples: 123 Test Street --> "Test Street" as Street and "123" ad house number Tiny Road 1 --> "Tiny Road" as Street and "1" as house number
If the House number includes numbers (i.e. 32A or 3-5) it will not recognize the house number correctly.
Proposed Change
Change the processing so it will recognize "unusual" house numbers, no matter if they are in the beginning or in the end of the string.
Examples: 123A Test Street --> "Test Street" Street and "123A" as house number. Tiny Road 4-12 --> "Tiny Road" as Street and "4-12" as house number
Possible Alternatives
Additional Information
There are some edge cases that may be impossible to handle automatically when the string contains a space between the house number and the letter which is still part of the house number.
Examples: Central Street 4 C or 2 - 5 Christmas Road
We need to aware of these edge cases and see if we can find a solution for them if possible.