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 marital status #53

Merged
merged 9 commits into from
Oct 12, 2022
Merged

Add patient marital status #53

merged 9 commits into from
Oct 12, 2022

Conversation

ramonski
Copy link
Contributor

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.

@ramonski ramonski requested a review from xispa October 12, 2022 08:31
@ramonski ramonski added the enhancement New feature or request label Oct 12, 2022
Copy link
Member

@xispa xispa left a 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

# value, token, title
term = SimpleTerm(keyword, keyword, title)
items.append(term)
return SimpleVocabulary(sorted(items, key=lambda t: t.title))
Copy link
Member

Choose a reason for hiding this comment

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

I think is better to remove this sorting, the "Up"/"Down" buttons from the records field (by means of the allow_reorder parameter) do not longer make sense otherwise:

Captura de 2022-10-12 13-19-46

Copy link
Contributor Author

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?

Copy link
Member

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

Copy link
Contributor Author

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.

@xispa xispa merged commit 0970c2a into master Oct 12, 2022
@xispa xispa deleted the marital-status branch October 12, 2022 14:44
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