{
  "resourceType": "Questionnaire",
  "url": "http://clinicalsite.org/fhir/Questionnaire/CTF",
  "version": "V2",
  "name": "Clinical Trial Form",
  "status": "draft",
  "experimental": true,
  "subjectType": [
    "ResearchSubject"
  ],
  "item": [
    {
      "linkId": "g1",
      "text": "Trial",
      "type": "group",
      "item": [
        {
          "linkId": "q1.1",
          "text": "Trial Title",
          "type": "choice",
          "required": true,
          "options": {
            "reference": "http://clinicalsite.org/fhir/ValueSet/study-catalog"
          }
        }
      ]
    },
    {
      "linkId": "g2",
      "text": "Pre-Study Screening",
      "type": "group",
      "item": [
        {
          "linkId": "q2.1",
          "text": "Screening ID",
          "type": "string"
        }
      ]
    },
    {
      "linkId": "q3",
      "text": "Screening required",
      "type": "boolean"
    },
    {
      "linkId": "g3",
      "text": "Screening",
      "type": "group",
      "enableWhen": [
        {
          "question": "q3",
          "answerBoolean": true
        }
      ],
      "item": [
        {
          "linkId": "q3.1",
          "text": "Screening ID",
          "type": "string"
        },
        {
          "linkId": "q3.2",
          "text": "Informed Consent Screening",
          "type": "date"
        },
        {
          "linkId": "q3.3",
          "text": "Eligibility",
          "type": "choice",
          "required": true,
          "option": [
            {
              "valueCoding": {
                "code": "P",
                "display": "Pending"
              }
            },
            {
              "valueCoding": {
                "code": "DNF",
                "display": "Does not Fulfill criteria"
              }
            },
            {
              "valueCoding": {
                "code": "DNC",
                "display": "Does not consent"
              }
            },
            {
              "valueCoding": {
                "code": "Q",
                "display": "Qualifies"
              }
            }
          ]
        },
        {
          "linkId": "q3.4",
          "text": "Comment",
          "type": "string",
          "enableWhen": [
            {
              "question": "q3.3",
              "answerCoding": {
                "code": "DNF"
              }
            },
            {
              "question": "q3.3",
              "answerCoding": {
                "code": "DNC"
              }
            }
          ],
          "required": true
        }
      ]
    }
  ]
}