DARIAEngineering / dcaf_case_management

Rails-based case management system for abortion funds
MIT License
87 stars 245 forks source link

Add housing security status to patient information #3265

Open colinxfleming opened 2 months ago

colinxfleming commented 2 months ago

Thanks for creating an issue! Please fill out this form so we can be sure to have all the information we need, and to minimize back and forth.

Let's bump Homelessness off of special circumstances also since we're repping this datapoint more completely.

more accurate data tracking

Add a select to patient information with those fields. You can use Insurance Options as a pattern to follow.

lomky commented 2 months ago

@colinxfleming is the idea we will migrate the data currently stored in special circumstances to the new field, mapping checked to "Housing Insecure" and Unchecked as nil?

adunkman commented 2 months ago

I can take a look at this tonight at Civic Tech DC!

adunkman commented 2 months ago

Going with a slightly different list of options to match the common "no answer" answer and sentence casing convention —

[  nil, 'Housing secure', 'Housing insecure', 'Prefer not to answer' ]
adunkman commented 2 months ago

I was able to add the select & hide the existing field — it still needs an accompanying rake task to perform the data migration. I’ll open a draft PR with the progress, and anyone else should feel free to pick this up in the meantime.