<Questionnaire xmlns="http://hl7.org/fhir">
  <id value="cf-1531101158261" />
  <meta>
    <versionId value="1" />
    <lastUpdated value="2018-05-02T09:11:33.850+00:00" />
  </meta>
  <text>
    <status value="generated" />
    <div xmlns="http://www.w3.org/1999/xhtml">Maternal and Child Questions<a name="mm" /></div>
  </text>
  <contained>
    <ValueSet>
      <id value="reference-contained-options" />
      <identifier>
        <system value="http://hl7.org" />
        <value value="http://hl7.org/fhir/administrative-gender" />
      </identifier>
      <name value="Administrative Gender" />
      <status value="active" />
      <description value="Gender" />
      <compose>
        <include>
          <system value="http://hl7.org" />
          <concept>
            <code value="option 1" />
            <display value="option 1" />
          </concept>
          <concept>
            <code value="option 2" />
            <display value="option 2" />
          </concept>
        </include>
      </compose>
    </ValueSet>
  </contained>
  <url value="http://hapi.fhir.org/baseDstu3/Questionnaire/cf-1531101158261" />
  <identifier>
    <value value="awh-questionnaire-maternalandchild" />
  </identifier>
  <version value="0.0.1" />
  <name value="Maternal and Child Questionnaire" />
  <title value="Maternal and Child Questionnaire" />
  <status value="active" />
  <experimental value="false" />
  <date value="2018-07-03" />
  <publisher value="Allied World Healthcare" />
  <description value="Questionnaire for  Maternal and Child" />
  <purpose value="Questionnaire for Maternal and Child" />
  <approvalDate value="2018-07-03" />
  <lastReviewDate value="2018-07-03" />
  <effectivePeriod>
    <start value="2018-07-03" />
    <end value="2019-07-03" />
  </effectivePeriod>
  <copyright value="Creative Commons" />
  <subjectType value="Patient" />
  <subjectType value="Person" />
  <subjectType value="RelatedPerson" />
  <item>
    <linkId value="110" />
    <prefix value="a." />
    <text value="This is the generic meta-data of an item?" />
    <type value="string" />
    <required value="false" />
    <repeats value="false" />
    <readOnly value="false" />
    <maxLength value="20" />
    <initialString value="default value" />
  </item>
  <item>
    <linkId value="11" />
    <text value="This is a question with integer answer?" />
    <type value="integer" />
    <required value="true" />
  </item>
  <item>
    <linkId value="12" />
    <text value="This is a question with a default integer answer?" />
    <type value="integer" />
    <required value="true" />
    <initialInteger value="1" />
  </item>
  <item>
    <linkId value="13" />
    <text value="This is a question with decimal answer?" />
    <type value="decimal" />
    <required value="true" />
  </item>
  <item>
    <linkId value="14" />
    <text value="This is a question with a default decimal answer?" />
    <type value="decimal" />
    <required value="true" />
    <initialDecimal value="1.01" />
  </item>
  <item>
    <linkId value="10" />
    <text value="This is a question with string answer?" />
    <type value="string" />
    <required value="true" />
    <readOnly value="false" />
    <maxLength value="20" />
  </item>
  <item>
    <linkId value="20" />
    <text value="This is a question with default string value?" />
    <type value="string" />
    <required value="false" />
    <maxLength value="20" />
    <initialString value="this is a default string value" />
  </item>
  <item>
    <linkId value="60" />
    <text value="This is a question with boolean answer?" />
    <type value="boolean" />
    <required value="false" />
  </item>
  <item>
    <linkId value="23" />
    <text value="This is a question with default boolean value?" />
    <type value="string" />
    <required value="false" />
    <maxLength value="10" />
    <initialBoolean value="true" />
  </item>
  <item>
    <linkId value="50" />
    <text value="This is a question with birthdate answer?" />
    <type value="date" />
    <required value="false" />
  </item>
  <item>
    <linkId value="0" />
    <text value="This is a question with grouping?" />
    <type value="group" />
    <item>
      <linkId value="0.1" />
      <text value="this is a 1st question within a group?" />
      <type value="string" />
      <required value="false" />
      <maxLength value="20" />
      <initialString value="official" />
    </item>
    <item>
      <linkId value="0.2" />
      <text value="this is a 2nd question within a group?" />
      <type value="string" />
      <required value="true" />
      <maxLength value="20" />
    </item>
  </item>
  <item>
    <linkId value="210" />
    <text value="This is a multiple question (radio button) with external referenced options?" />
    <type value="open-choice" />
    <options>
      <reference value="http://hl7.org/fhir/ValueSet/administrative-gender" />
    </options>
  </item>
  <item>
    <linkId value="21" />
    <text value="This is a multiple question (checkbox) with external referenced options?" />
    <type value="choice" />
    <options>
      <reference value="http://hl7.org/fhir/ValueSet/administrative-gender" />
    </options>
  </item>
  <item>
    <linkId value="40" />
    <text value="This is a multiple question (radio botton) with contained referenced options?" />
    <type value="choice" />
    <options>
      <reference value="#reference-contained-options" />
    </options>
  </item>
  <item>
    <linkId value="41" />
    <text value="This is a multiple question (radio botton) with embedded options?" />
    <type value="choice" />
    <option>
      <valueCoding>
        <system value="http://hl7.org" />
        <code value="option 1" />
        <display value="option 1" />
      </valueCoding>
    </option>
    <option>
      <valueCoding>
        <system value="http://hl7.org" />
        <code value="option 2" />
        <display value="option 2" />
      </valueCoding>
    </option>
  </item>
  <item>
    <linkId value="22" />
    <text value="This is a string question with dependency to the embedded options value?" />
    <type value="string" />
    <enableWhen>
      <question value="41" />
      <answerCoding>
        <system value="http://hl7.org" />
        <code value="option 2" />
        <display value="option 2" />
      </answerCoding>
    </enableWhen>
    <required value="false" />
    <maxLength value="20" />
  </item>
  <item>
    <linkId value="24" />
    <text value="This is a string question with dependency to string question?" />
    <type value="string" />
    <enableWhen>
      <question value="10" />
      <hasAnswer value="true" />
    </enableWhen>
    <required value="false" />
    <maxLength value="20" />
  </item>
  <item>
    <linkId value="240" />
    <text value="This is a string question with dependency to boolean question?" />
    <type value="string" />
    <enableWhen>
      <question value="60" />
      <hasAnswer value="true" />
    </enableWhen>
    <required value="false" />
    <maxLength value="20" />
  </item>
  <item>
    <linkId value="25" />
    <text value="This is a multiple question (radio button) with dependency  to the embedded options value?" />
    <type value="choice" />
    <enableWhen>
      <question value="41" />
      <answerCoding>
        <system value="http://hl7.org" />
        <code value="option 2" />
        <display value="option 2" />
      </answerCoding>
    </enableWhen>
    <options>
      <reference value="#reference-contained-options" />
    </options>
  </item>
</Questionnaire>