-
Notifications
You must be signed in to change notification settings - Fork 15
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 marital status #53
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent, just a minor change
src/senaite/patient/vocabularies.py
Outdated
# value, token, title | ||
term = SimpleTerm(keyword, keyword, title) | ||
items.append(term) | ||
return SimpleVocabulary(sorted(items, key=lambda t: t.title)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, you are right!
We are sorting the vocabulary by title at the moment and overriding the manual sort order therefore.
Shall we just just drop the sorting in the vocabulary instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shall we just just drop the sorting in the vocabulary instead?
Yes please
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I removed the alphabetical sorting now for all vocabularies and allow instead manual reordering of the items.
Description of the issue/feature this PR addresses
This PR adds a new field to track the patient marital status:
The default available marital statuses are defined according to http://hl7.org/fhir/R4/valueset-marital-status.html
This list can be modified in the patient control panel:
Current behavior before PR
Marital status not tracked for patients
Desired behavior after PR is merged
Marital status is tracked for patients
--
I confirm I have tested this PR thoroughly and coded it according to PEP8
and Plone's Python styleguide standards.