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

Add Patient Identifiers #30

Merged
merged 15 commits into from
Feb 18, 2022
Merged

Add Patient Identifiers #30

merged 15 commits into from
Feb 18, 2022

Conversation

ramonski
Copy link
Contributor

Description of the issue/feature this PR addresses

This PR adds configurable identifiers for patients.

Identifiers can be e.g. Drivers License, Voter ID, Passport ID etc.
and can be configured in the Patient setup:

SENAITE LIMS 2022-02-18 1 PM-45-38

Multiple identifiers can then be added to a patient:

Ramon Bartl — SENAITE LIMS 2022-02-18 1 PM-48-22

Note: Identifiers that are in use can not be deleted! Only the title can be changed afterwards.

Current behavior before PR

No identifiers for patients available

Desired behavior after PR is merged

Identifiers can be configured for patients

I confirm I have tested this PR thoroughly and coded it according to PEP8
and Plone's Python styleguide standards.

@ramonski ramonski added the enhancement New feature or request label Feb 18, 2022
@ramonski ramonski requested a review from xispa February 18, 2022 12:49
@ramonski ramonski changed the title Added Patient Identifiers Add Patient Identifiers Feb 18, 2022
# check if there are patients that use one of the removed keys
brains = patient_search({"patient_identifier_keys": removed})
if brains:
raise Invalid(_("Can not delete identifiers that are in use"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beautiful, this is called "attention to detail" ❤️

@xispa xispa merged commit 55eaaf3 into master Feb 18, 2022
@xispa xispa deleted the patient-identifiers branch February 18, 2022 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

2 participants