Skip to content

Commit 397fb4f

Browse files
Add Medicaid eligibility under special circumstances (#3354)
* add ability to set medicaid eligible as a special circumstance * normalize i18n and rerack locales json * fix the id / label interaction * data entry mode * rm checked-ness. oops
1 parent 6323070 commit 397fb4f

File tree

5 files changed

+15
-0
lines changed

5 files changed

+15
-0
lines changed

app/javascript/locales.json

+2
Original file line numberDiff line numberDiff line change
@@ -6805,6 +6805,7 @@
68056805
"fetal_diagnosis": "Fetal diagnosis",
68066806
"homelessness": "Homelessness",
68076807
"incest": "Incest",
6808+
"medicaid_eligible": "Medicaid eligible",
68086809
"other_medical_issue": "Other medical issue",
68096810
"prison": "Prison",
68106811
"rape": "Rape",
@@ -11144,6 +11145,7 @@
1114411145
"fetal_diagnosis": "Diagnostico fetal",
1114511146
"homelessness": "La falta de vivienda",
1114611147
"incest": "Incesto",
11148+
"medicaid_eligible": "Elegible para medicaid",
1114711149
"other_medical_issue": "Otro problema médico",
1114811150
"prison": "Prisión",
1114911151
"rape": "Violación",

app/views/patients/_patient_information.html.erb

+6
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,12 @@
158158
checked: patient.special_circumstances.include?('Prison'),
159159
id: 'prison_patient_special_circumstances' },
160160
'Prison', '' %>
161+
<%= f.check_box :special_circumstances, {
162+
label: t('patient.information.special_circumstances.medicaid_eligible'),
163+
name: 'patient[special_circumstances][]',
164+
checked: patient.special_circumstances.include?('Medicaid eligible'),
165+
id: 'medicaid_eligible_patient_special_circumstances' },
166+
'Medicaid eligible', '' %>
161167
</div>
162168
</div>
163169
<% end %>

app/views/patients/data_entry.html.erb

+5
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,11 @@
193193
name: 'patient[special_circumstances][]',
194194
id: 'prison_patient_special_circumstances' },
195195
'Prison', '' %>
196+
<%= f.check_box :special_circumstances, {
197+
label: t('patient.information.special_circumstances.medicaid_eligible'),
198+
name: 'patient[special_circumstances][]',
199+
id: 'medicaid_eligible_patient_special_circumstances' },
200+
'Medicaid eligible', '' %>
196201
</div>
197202
</div>
198203
<% end %>

config/locales/en.yml

+1
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,7 @@ en:
511511
fetal_diagnosis: Fetal diagnosis
512512
homelessness: Homelessness
513513
incest: Incest
514+
medicaid_eligible: Medicaid eligible
514515
other_medical_issue: Other medical issue
515516
prison: Prison
516517
rape: Rape

config/locales/es.yml

+1
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,7 @@ es:
511511
fetal_diagnosis: Diagnostico fetal
512512
homelessness: La falta de vivienda
513513
incest: Incesto
514+
medicaid_eligible: Elegible para medicaid
514515
other_medical_issue: Otro problema médico
515516
prison: Prisión
516517
rape: Violación

0 commit comments

Comments
 (0)