{
    "message": "SUCCESS",
    "activity": {
      "type": "Survey",
      "metadata": 
      {
        "studyId": "STUDY123",
        "activityId": "initial",
        "version": "1"
      },
      "steps": 
      [
        {
          "type": "question",
          "resultType": "date",
          "key": "lastPeriod",
          "title": "What was the date of your last period?",
          "skippable": false,
          "phi": "Limited",
          "format" : 
          {
            "style": 1,
            "minDate": "2016-10-01",
            "maxDate": "2017-01-24",
            "default": null
          }
        },
        {
          "type": "question",
          "resultType": "date",
          "key": "dueDate",
          "title": "What is your due date?",
          "skippable": false,
          "phi": "Limited",
          "format" : 
          {
            "style": 1,
            "minDate": "2017-02-01",
            "maxDate": "2017-11-01",
            "default": null
          }
        },
        {
          "type": "question",
          "resultType": "date",
          "key": "datePregnancyLearned",
          "title": "When did you learn that you were pregnent?",
          "skippable": true,
          "phi": "Limited",
          "format": {
            "style": 1,
            "minDate": "2016-10-01",
            "maxDate": "2017-01-24",
            "default": null
          }
        },
        {
          "type": "question",
          "resultType": "boolean",
          "key": "plannedPregnancy",
          "title": "Was this a planned pregnancy?",
          "phi": "NotPHI",
          "skippable": false
        },
        {
          "type": "question",
          "resultType": "textChoice",
          "key": "birthControlType",
          "title": "What types of birth control did you use?",
          "phi": "NotPHI",
          "skippable": false,
          "format": {
            "textChoices": ["IUD", "Condoms", "Pills"],
            "selectionStyle": 1
          }
        },
        {
          "type": "question",
          "resultType": "textChoice",
          "key": "supplements",
          "title": "Which supplements are you taking?",
          "phi": "NotPHI",
          "skippable": true,
          "format": {
            "textChoices": ["Riboflavin", "Vitamin A", "Vitamin C", "Vitamin D"],
            "selectionStyle": 1
          }
        },
        {
          "type": "question",
          "resultType": "numeric",
          "key": "folicAcid",
          "phi": "NotPHI",
          "title": "How much folic acid are you taking per day (in mcg)?",
          "skippable": true,
          "format" : 
          {
            "style": "Integer",
            "unit": "mcg"
          }
        },
        {
          "type": "question",
          "resultType": "boolean",
          "key": "formerSmoker",
          "title": "Are you a former smoker?",
          "phi": "NotPHI",
          "skippable": true
        },
        {
          "type": "form",
          "resultType": "grouped",
          "key": "otc",
          "title": "What over-the-counter medications are you taking?",
          "skippable": false,
          "repeatable": true, 
          "steps": [
            {
              "type": "question",
              "resultType": "textChoice",
              "key": "medName",
              "title": "Select the medication",
              "phi": "NotPHI",
              "skippable": false,
              "format": {
                "textChoices": ["Prilosec", "Advil"],
                "selectionStyle": "Single"
              }
            },
            {
              "type": "question",
              "resultType": "textChoice",
              "key": "medCondition",
              "title": "Enter the medical condition",
              "phi": "NotPHI",
              "skippable": false,
              "format": {
                "textChoices": ["Headaches", "Heartburn"],
                "selectionStyle": 1
              }
            }
          ]
        },
        {
          "type": "form",
          "resultType": "grouped",
          "key": "rx",
          "skippable": false,
          "repeatable": true,
          "steps": [
            {
              "type": "question",
              "resultType": "textChoice",
              "key": "medName",
              "skippable": false,
              "phi": "NotPHI",
              "format": {
                "textChoices": ["Nexium"],
                "selectionStyle": 0
              }
            },
            {
              "type": "question",
              "resultType": "textChoice",
              "key": "medCondition",
              "title": "Enter the medical condition",
              "phi": "NotPHI",
              "skippable": false,
              "format": {
                "textChoices": ["Headaches", "Heartburn"],
                "selectionStyle": 1
              } 
            },
            {
              "type": "question",
              "resultType": "textCchoice",
              "key": "medVsRxUse",
              "title": "How has your use differed from the prescription?",
              "phi": "NotPHI",
              "skippable": false,
              "format": {
                "textChoices": ["Lower Dose", "Higher Dose", "Less frequent", "More frequent"],
                "selectionStyle": 0
              }
            },
            {
              "type": "question",
              "resultType": "text",
              "key": "medVsRxUseReason",
              "title": "Why has your use differed from the prescription?",
              "phi": "NotPHI",
              "skippable": false,
              "format": {
                "maxLength": 0,
                "multipleLines": true
              }
            }
          ]
        }
      ]
    }
}
