Skip to content

Commit

Permalink
Merge pull request #813 from greenriver/ea/non-hmis-export
Browse files Browse the repository at this point in the history
Non-HMIS export gender fixes
  • Loading branch information
eanders authored May 28, 2024
2 parents 891beaf + f80316b commit d8f4163
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
4 changes: 3 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,8 @@ GEM
responders (3.1.1)
actionpack (>= 5.2)
railties (>= 5.2)
rexml (3.2.6)
rexml (3.2.8)
strscan (>= 3.0.9)
roo (2.10.1)
nokogiri (~> 1)
rubyzip (>= 1.3.0, < 3.0.0)
Expand Down Expand Up @@ -654,6 +655,7 @@ GEM
net-sftp (>= 2.1.2)
net-ssh (>= 2.8.0)
ssrf_filter (1.1.2)
strscan (3.1.0)
temple (0.10.3)
terser (1.2.2)
execjs (>= 0.3.0, < 3)
Expand Down
12 changes: 10 additions & 2 deletions app/models/deidentified_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,11 @@ def download_headers
'Requires elevator access',
Translation.translate('Part of a family'),
Translation.translate('Chronically homeless family'),
'Gender',
'Woman (Girl, if child)',
'Man (Boy, if child)',
'Non-Binary',
'Transgender',
'Questioning',
Translation.translate('Date days homeless verified'),
'Who verified days homeless',
'Total monthly income',
Expand Down Expand Up @@ -129,7 +133,11 @@ def download_data
current_assessment.requires_elevator_access,
current_assessment.family_member,
current_assessment.calculated_chronic_homelessness,
gender,
female,
male,
no_single_gender,
transgender,
questioning,
current_assessment.date_days_homeless_verified,
current_assessment.who_verified_days_homeless,
current_assessment.income_total_monthly,
Expand Down
2 changes: 1 addition & 1 deletion app/views/clients/_pathways_homelessness.haml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
%li.c-detailed-list__item
%span.c-detailed-list__label Last Seen Locations
%span.c-detailed-list__value.text-right
- @client.last_seen_projects.each do |project|
- @client.last_seen_projects&.each do |project|
.contact= project
%li.c-detailed-list__item
%span.c-detailed-list__label= @column_data[:chronic_homeless][:title]
Expand Down

0 comments on commit d8f4163

Please sign in to comment.