Skip to content

Commit

Permalink
Merge pull request #153 from futurice/add-question-about-contacting-h…
Browse files Browse the repository at this point in the history
…ealthcare

Add questions about being in contact with healthcare
  • Loading branch information
jareware authored Mar 30, 2020
2 parents 48df6a1 + 1487127 commit cf398bc
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions backend/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ if (process.argv[0].match(/\/ts-node$/)) {
rhinitis: 'no',
stomach_issues: 'no',
sensory_issues: 'no',
healthcare_contact: 'no',
general_wellbeing: 'fine',
duration: '1', // or null
longterm_medication: 'no',
Expand Down
1 change: 1 addition & 0 deletions common/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const responseFields = {
rhinitis: yesOrNo,
stomach_issues: yesOrNo,
sensory_issues: yesOrNo,
healthcare_contact: yesOrNo,
general_wellbeing: generalWellbeing,
longterm_medication: yesOrNo,
smoking: yesOrNo,
Expand Down
11 changes: 11 additions & 0 deletions frontend/embed/v1/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,17 @@ <h2 id="form-header" class="question-group-title" tabindex="-1">Millaisia oireit
<label for="sensoryIssues-no">ei</label>
</div>
</fieldset>
<fieldset class="input-wrapper">
<legend aria-live="assertive">
Oletko ollut yhteydessä terveydenhuoltoon oireittesi takia? <span class="invalid-value-info hidden" />
</legend>
<div class="options">
<input id="healthcareContact-yes" type="radio" name="healthcare_contact" value="yes" required />
<label for="healthcareContact-yes">kyllä</label>
<input id="healthcareContact-no" type="radio" name="healthcare_contact" value="no" required />
<label for="healthcareContact-no">en</label>
</div>
</fieldset>
</div>
<div class="question-group">
<h2 class="question-group-title">Terveydentila</h2>
Expand Down
1 change: 1 addition & 0 deletions infra/modules/main/storage.tf
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ resource "aws_athena_named_query" "create_table" {
`rhinitis` string,
`stomach_issues` string,
`sensory_issues` string,
`healthcare_contact` string,
`general_wellbeing` string,
`longterm_medication` string,
`smoking` string,
Expand Down

0 comments on commit cf398bc

Please sign in to comment.