#13261 Automatic processing for Luxembourg to match only national hea…#13315
Merged
obinna-h-n merged 1 commit intodevelopmentfrom Mar 25, 2025
Merged
Conversation
…lth ID This commit changes the `handlePickOrCreatePerson` method that handles the process of picking an existing or creating a new person entity. The logic is split into localized and a default implementation. * **Localized Implementation :** The `localizedHandlePickOrCreatePerson` method handles the process specifically for Luxembourg. It uses the national health ID for matching. If the origin persons national health ID is blank or invalid the process is canceled. If no match is found, a new person entity is created. If multiple matches are found, the process is cancelled. This method does nothing and returns false for other countries, allowing for future localized implementations. * **Default Implementation:** The `defaultHandlePickOrCreatePerson` method provides a fallback strategy. It prioritizes matching by national health ID. If no national health ID is provided or no exact match is found, it checks for similar person names. If similar persons are found, the process is cancelled. Otherwise, a new person entity is created. * **Dispatching Logic:** The `handlePickOrCreatePerson` method now dispatches the processing to the localized implementation first. If the localized implementation returns false (meaning it didn't handle the request, e.g., for a different country), the default implementation is used.
2 tasks
Contributor
|
SonarCloud analysis: https://sonarcloud.io/dashboard?id=SORMAS-Project&pullRequest=13315 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adapted the Luxembourg automated processing to associate a person only based on a matching health id.