Creating a survey locally - aavedula/how-to-notes GitHub Wiki

Back

To create a survey locally, in the console:

First ensure that members have patient identities and that you have discharge events. Then:

s = SurveyResponseSet.create(survey_id: "mt_sinai_rehospitalization", event_id: Event.discharge.first.id)

Then use the above id in the following URLs:

connect/survey_response_sets/<id>

and

connect/survey_response_sets/<id>/edit

NOTE: If you change the survey, you must restart the server.