Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically set Place of Stay according to Adress #13206

Open
2 tasks
SORMAS-JanBoehme opened this issue Dec 10, 2024 · 1 comment
Open
2 tasks

Automatically set Place of Stay according to Adress #13206

SORMAS-JanBoehme opened this issue Dec 10, 2024 · 1 comment
Labels
feature A new feature to be developed (ticket type) lu Adaptations requested by or implemented for Luxembourg pertussis

Comments

@SORMAS-JanBoehme
Copy link

Feature Description

When a case is created automatically from a lab result, the "Place of Stay" should be set automatically by the system if a corresponding facility can be identified.

Added Value/Benefit

This will increase speed of data entry as well as quality of the data by automatically filling in information if possible.

Acceptance Criteria

  • Place of Stay is automatically selected and linked to the correct facility if possible
  • Place of Stay is set to "Home" if no facility could be identified

Implementation Details

When a case is created automatically from a positive lab result the following logic should be performed:

  1. Does the lab message contain an address of a facility?
  2. No --> Set "place of stay" to "Home", End of logic
  3. Yes --> Go to 4
  4. Does the Street, House Number, Postal Code and City is an EXACT match (see below for definition of "exact") to a an active facility stored in SORMAS?
  5. No --> Set "place of stay" to "Home", End of logic
  6. Yes --> Got to 7
  7. Set "Place of Stay" to facility
  8. Set "Facility Category", "Facility Type" and "Facility" to the correct values for the matching facility
  9. End of logic

Edge cases:

  • Provided address matches to more than one active facility in SORMAS --> Use the first result as the matched facility

Definition of an "exact" match:
For each field, the string needs to contain the exact same characters (inluding special characters like umlauts and accents) in the exact same order after the following actions:

  • Trim all spaces from the string (" Test Street ôn the Hill " becomes "TestStreetôntheHill") - Reason: Avoid mistakes from someone entering spaces in the beginning, the end or forgetting spaces in the middle
  • Convert to lowercase ("TestStreetôntheHill" becomes "teststreetônthehill" - Reason: Avoid typos by humans or automatic conversion of data by the lab system

Mockups

No response

Additional Information

No response

@SORMAS-JanBoehme SORMAS-JanBoehme added feature A new feature to be developed (ticket type) lu Adaptations requested by or implemented for Luxembourg pertussis labels Dec 10, 2024
@SORMAS-JanBoehme
Copy link
Author

@markusmann-vg This is not directly related to Pertussis but came up during the discussions on those topics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature to be developed (ticket type) lu Adaptations requested by or implemented for Luxembourg pertussis
Projects
None yet
Development

No branches or pull requests

2 participants