-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Copy 2023 SPM into new 2024 version (#5043)
* clone 2023 SPM into 2024 SPM * additional 2023 -> 2024 SPM reference updates
- Loading branch information
Showing
32 changed files
with
2,879 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
drivers/hud_spm_report/app/models/hud_spm_report/fy2024/bed_night.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
### | ||
# Copyright 2016 - 2025 Green River Data Analysis, LLC | ||
# | ||
# License detail: https://github.com/greenriver/hmis-warehouse/blob/production/LICENSE.md | ||
### | ||
|
||
module HudSpmReport::Fy2024 | ||
class BedNight < GrdaWarehouseBase | ||
self.table_name = 'hud_report_spm_bed_nights' | ||
|
||
belongs_to :client, class_name: 'GrdaWarehouse::Hud::Client' | ||
belongs_to :enrollment, class_name: 'HudSpmReport::Fy2024::SpmEnrollment' | ||
belongs_to :episode, optional: true | ||
belongs_to :service, class_name: 'GrdaWarehouse::Hud::Service', optional: true | ||
end | ||
end |
36 changes: 36 additions & 0 deletions
36
drivers/hud_spm_report/app/models/hud_spm_report/fy2024/detail.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
### | ||
# Copyright 2016 - 2025 Green River Data Analysis, LLC | ||
# | ||
# License detail: https://github.com/greenriver/hmis-warehouse/blob/production/LICENSE.md | ||
### | ||
|
||
module HudSpmReport::Fy2024::Detail | ||
extend ActiveSupport::Concern | ||
|
||
included do | ||
private_class_method def self.header_label(col) | ||
case col.to_s | ||
when 'client_id' | ||
'Warehouse Client ID' | ||
when 'personal_id', 'enrollment.personal_id', 'exit_enrollment.personal_id' | ||
'HMIS Personal ID' | ||
when 'enrollment.first_name', 'exit_enrollment.first_name' | ||
'First Name' | ||
when 'enrollment.last_name', 'exit_enrollment.last_name' | ||
'Last Name' | ||
when 'exit_enrollment.enrollment.project.project_name' | ||
'Exited Project Name' | ||
when 'return_enrollment.enrollment.project.project_name' | ||
'Returned Project Name' | ||
when 'data_source_id' | ||
'Data Source ID' | ||
when 'los_under_threshold' | ||
'LOS Under Threshold' | ||
when 'previous_street_essh' | ||
'Previous Street ESSH' | ||
else | ||
col.humanize | ||
end | ||
end | ||
end | ||
end |
13 changes: 13 additions & 0 deletions
13
drivers/hud_spm_report/app/models/hud_spm_report/fy2024/enrollment_link.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
### | ||
# Copyright 2016 - 2025 Green River Data Analysis, LLC | ||
# | ||
# License detail: https://github.com/greenriver/hmis-warehouse/blob/production/LICENSE.md | ||
### | ||
|
||
module HudSpmReport::Fy2024 | ||
class EnrollmentLink < GrdaWarehouseBase | ||
self.table_name = 'hud_report_spm_enrollment_links' | ||
belongs_to :enrollment, class_name: 'HudSpmReport::Fy2024::SpmEnrollment' | ||
belongs_to :episode, optional: true | ||
end | ||
end |
Oops, something went wrong.