{
  "resourceType": "Questionnaire",
  "text": {
    "status": "generated",
    "div": "<div xmlns='http://www.w3.org/1999/xhtml'>Demographics Questionnaire<a name='mm'/></div>"
  },
  "meta": {
    "versionId": "1",
    "lastUpdated": "2018-05-02T09:11:33.85+00:00"
  },
  "identifier": [
    {
      "value": "awh-questionnaire-demographics"
    }
  ],
  "contained": [
    {
      "resourceType": "ValueSet",
      "id": "gender",
      "identifier": [
        {
          "system": "http://hl7.org",
          "value": "http://hl7.org/fhir/administrative-gender"
        }
      ],
      "name": "Administrative Gender",
      "status": "active",
      "description": "Gender",
      "compose": {
        "include": [
          {
            "system": "http://hl7.org",
            "concept": [
              {
                "code": "male",
                "display": "male"
              },
              {
                "code": "female",
                "display": "female"
              },
              {
                "code": "other",
                "display": "Other"
              },
              {
                "code": "unknown",
                "display": "Unknown"
              }
            ]
          }
        ]
      }
    }
  ],
  "url": "http://hapi.fhir.org/baseDstu3/Questionnaire/cf-1530786012384",
  "id": "cf-1530786012384",
  "version": "0.0.1",
  "name": "Demographics Questionnaire",
  "title": "Demographics Questionnaire",
  "status": "active",
  "experimental": false,
  "date": "2018-07-03",
  "description": "Questionnaire for Person Demographics",
  "purpose": "Questionnaire for Person Demographics",
  "approvalDate": "2018-07-03",
  "lastReviewDate": "2018-07-03",
  "effectivePeriod": {
    "start": "2018-07-03",
    "end": "2019-07-03"
  },
  "publisher": "Allied World Healthcare",
  "copyright": "Creative Commons",
  "subjectType": [
    "Patient",
    "Person",
    "RelatedPerson"
  ],
  "item": [
    {
      "linkId": "0",
      "text": "name",
      "type": "group",
      "item": [
        {
          "linkId": "0.1",
          "text": "official",
          "type": "string",
          "required": false,
          "maxLength": 20,
          "initialString": "official"
        },
        {
          "linkId": "0.2",
          "text": "family",
          "type": "string",
          "required": true,
          "maxLength": 20
        },
        {
          "linkId": "0.3",
          "text": "given",
          "type": "string",
          "required": true,
          "maxLength": 20
        }
      ]
    },
    {
      "linkId": "1",
      "text": "telecom",
      "type": "group",
      "item": [
        {
          "linkId": "1.1",
          "text": "system",
          "type": "string",
          "required": false,
          "maxLength": 20,
          "readOnly": true,
          "initialString": "phone"
        },
        {
          "linkId": "1.2",
          "text": "value",
          "type": "string",
          "required": false,
          "maxLength": 20
        },
        {
          "linkId": "1.3",
          "text": "use",
          "type": "string",
          "required": false,
          "maxLength": 20,
          "readOnly": true,
          "initialString": "work"
        }
      ]
    },
    {
      "linkId": "2",
      "text": "what is your gender",
      "type": "choice",
      "required": true,
      "options": {
        "reference": "#gender"
      }
    },
    {
      "linkId": "3",
      "text": "birthDate",
      "type": "date",
      "required": false
    },
    {
      "linkId": "4",
      "text": "active",
      "type": "boolean",
      "required": false
    },
    {
      "linkId": "5",
      "text": "address",
      "type": "group",
      "item": [
        {
          "linkId": "5.1",
          "text": "use",
          "type": "string",
          "required": false,
          "maxLength": 20,
          "readOnly": true,
          "initialString": "home"
        },
        {
          "linkId": "5.2",
          "text": "line",
          "type": "string",
          "required": false,
          "maxLength": 20
        },
        {
          "linkId": "5.3",
          "text": "city",
          "type": "string",
          "required": false,
          "maxLength": 20
        },
        {
          "linkId": "5.4",
          "text": "state",
          "type": "string",
          "required": false,
          "maxLength": 20
        },
        {
          "linkId": "5.5",
          "text": "postalCode",
          "type": "integer",
          "required": false,
          "maxLength": 20
        }
      ]
    },
    {
      "linkId": "6",
      "text": "link",
      "type": "group",
      "item": [
        {
          "linkId": "6.1",
          "text": "target",
          "type": "group",
          "item": [
            {
              "linkId": "6.1.1",
              "text": "Person",
              "type": "reference"
            },
            {
              "linkId": "6.1.2",
              "text": "display",
              "type": "string",
              "required": false,
              "maxLength": 20
            }
          ]
        }
      ]
    }
  ]
}