Skip to content

#13261 Automatic processing for Luxembourg to match only national hea…#13315

Merged
obinna-h-n merged 1 commit intodevelopmentfrom
feature-13261_change_automatic_processing_LU
Mar 25, 2025
Merged

#13261 Automatic processing for Luxembourg to match only national hea…#13315
obinna-h-n merged 1 commit intodevelopmentfrom
feature-13261_change_automatic_processing_LU

Conversation

@raulbob
Copy link
Copy Markdown
Contributor

@raulbob raulbob commented Mar 24, 2025

Adapted the Luxembourg automated processing to associate a person only based on a matching health id.

…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.
@raulbob raulbob linked an issue Mar 24, 2025 that may be closed by this pull request
2 tasks
@sormas-vitagroup
Copy link
Copy Markdown
Contributor

@obinna-h-n obinna-h-n merged commit f5a6344 into development Mar 25, 2025
7 of 9 checks passed
@obinna-h-n obinna-h-n deleted the feature-13261_change_automatic_processing_LU branch March 25, 2025 09:03
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.

Change automatic processing for Luxembourg to match only national health ID

3 participants