Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Issue 661: Use 'Sex Not Entered' for patients with missing gender on … #662

Merged
merged 2 commits into from
Sep 27, 2016

Conversation

akong
Copy link
Contributor

@akong akong commented Sep 23, 2016

Fixes #661 .

Changes proposed in this pull request:

  • Use 'Sex Not Entered' for patients without gender entered for reports.

cc @HospitalRun/core-maintainers

Copy link
Member

@jkleinsc jkleinsc left a comment

Choose a reason for hiding this comment

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

@akong thanks for the PR! Just need to localize the text (see code comment) and this should be good to go.

var sexGrouping = patientBySex[visit.get('patient.sex')];
var sex = visit.get('patient.sex');
if (!sex) {
sex = 'Sex Not Entered';
Copy link
Member

Choose a reason for hiding this comment

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

@akong Can you localize the text here? You can put the label under patient.labels.sexNotEntered in the localization file at app/locales/en/translations.js and then you can pull it in to the controller by calling

this.get('i18n').t('patients.labels.sexNotEntered'),

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Got it! Will update the PR later today.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jkleinsc Updated the pull request with the suggested changes.

@tangollama
Copy link
Member

@jkleinsc any idea why greenkeeper is not reporting a status? I'm inclined to merge the change, but I don't want to break our established process.

Copy link
Member

@jkleinsc jkleinsc left a comment

Choose a reason for hiding this comment

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

@akong looks good to me. I'll merge it in. Thanks!

@jkleinsc jkleinsc merged commit f8af165 into HospitalRun:master Sep 27, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants