Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[data model] Dupont Park page 5: emergency contact #382

Open
kevko opened this issue Feb 23, 2016 · 2 comments
Open

[data model] Dupont Park page 5: emergency contact #382

kevko opened this issue Feb 23, 2016 · 2 comments

Comments

@kevko
Copy link
Member

kevko commented Feb 23, 2016

From Stacey:

  • Emergency contact not populated.
@kevko kevko changed the title [PDF] Dupont Park page 5 [PDF] Dupont Park page 5: emergency contact Feb 23, 2016
@mlouie
Copy link
Contributor

mlouie commented Jul 20, 2016

@jrunningen Looking through this, I think this might related to how we collect data or map it to the PDF. In the Contacts section of the online form, we allow case workers to specify the relationship type, but it doesn't look like we can use that information to populate a form that explicitly asks for an Emergency Contact.

@jrunningen
Copy link
Contributor

In /districthousing/app/models:
$ grep when *.rb | grep -i emerg
doesn't give any results, so it looks like we don't have any regexes that look for PDF field names starting with EmergencyContact. We should add some. The Dupont Park PDF specifically wants these fields:

EmergencyContactName
EmergencyContactStreet
EmergencyContactPhone
EmergencyContactCityStateZIP
EmergencyContact2Name
EmergencyContact2Street
EmergencyContact2Phone
EmergencyContact2CityStateZIP

I think these can all be handled by checking for /^EmergencyContact/ in a when clause in applicant.rb, like we already do with when /^Contact(\d+)(.+)$/, then delegate to a list of emergency contacts.

If someone in the meetup wants to pick up a coding bug, I think this is a good one to try out, since it's not too hairy.

@kevko kevko changed the title [PDF] Dupont Park page 5: emergency contact [Really a data model question now][PDF] Dupont Park page 5: emergency contact Aug 17, 2016
@kevko kevko changed the title [Really a data model question now][PDF] Dupont Park page 5: emergency contact [data model] Dupont Park page 5: emergency contact Jan 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants