<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="d6e8e832-02d6-4aba-a1a9-18b66fcd039a" />
  <text>
    <status value="empty" />
    <div xmlns="http://www.w3.org/1999/xhtml">No human-readable text provided in this case.</div>
  </text>
  <url value="http://health.gov.on.ca/sadie/fhir/StructureDefinition/FlexForm" />
  <version value="1.0.0" />
  <name value="FlexForm" />
  <title value="FlexForm" />
  <status value="active" />
  <description value="This is SADIE's flexform questionnaire definition, it supports the generation of questionnaires on the fly.  &#xA;It is based on the Structured Data Capture Extractable Questionnaire standard which supports three ways of extracting the data from the response." />
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="ihe-sdc" />
    <uri value="http://unknown.org/IHE-SDC" />
    <name value="IHE-SDC" />
  </mapping>
  <mapping>
    <identity value="workflow" />
    <uri value="http://hl7.org/fhir/workflow" />
    <name value="Workflow Pattern" />
  </mapping>
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <mapping>
    <identity value="w5" />
    <uri value="http://hl7.org/fhir/fivews" />
    <name value="FiveWs Pattern Mapping" />
  </mapping>
  <mapping>
    <identity value="objimpl" />
    <uri value="http://hl7.org/fhir/object-implementation" />
    <name value="Object Implementation Information" />
  </mapping>
  <mapping>
    <identity value="v2" />
    <uri value="http://hl7.org/v2" />
    <name value="HL7 v2 Mapping" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Questionnaire" />
  <baseDefinition value="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-extract" />
  <derivation value="constraint" />
  <differential>
    <element id="Questionnaire">
      <path value="Questionnaire" />
      <comment value="#### **_`FOR SADIE USE:  This is the FlexForms questionnaire definition:`_**&#xA;&#xA;- must have code , this is used to select the correct questionnaire.   If the code is the same as a Program Area code that means this is their questionnaire used to select a request questionnaire." />
    </element>
    <element id="Questionnaire.url">
      <path value="Questionnaire.url" />
      <definition value="#### **_`FOR SADIE USE:  This is required.   http://health.gov.on.ca/sadie/fhir/FlexForm/*name goes here*`_**&#xA;&#xA;An absolute URI that is used to identify this questionnaire when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this questionnaire is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the questionnaire is stored on different servers." />
    </element>
    <element id="Questionnaire.identifier">
      <path value="Questionnaire.identifier" />
      <min value="1" />
    </element>
    <element id="Questionnaire.identifier.use">
      <path value="Questionnaire.identifier.use" />
    </element>
    <element id="Questionnaire.identifier.type">
      <path value="Questionnaire.identifier.type" />
      <max value="0" />
    </element>
    <element id="Questionnaire.identifier.system">
      <path value="Questionnaire.identifier.system" />
      <min value="1" />
    </element>
    <element id="Questionnaire.identifier.value">
      <path value="Questionnaire.identifier.value" />
      <min value="1" />
    </element>
    <element id="Questionnaire.identifier.period">
      <path value="Questionnaire.identifier.period" />
      <max value="0" />
    </element>
    <element id="Questionnaire.identifier.assigner">
      <path value="Questionnaire.identifier.assigner" />
      <max value="0" />
    </element>
    <element id="Questionnaire.subjectType">
      <path value="Questionnaire.subjectType" />
      <definition value="#### **_`FOR SADIE USE:  This is always Patient.`_**&#xA;&#xA;The types of subjects that can be the subject of responses created for the questionnaire." />
      <fixedCode value="Patient" />
    </element>
    <element id="Questionnaire.publisher">
      <path value="Questionnaire.publisher" />
      <definition value="#### **_`FOR SADIE USE:  This is the Program Area.  This will be the same code as  ProgramArea.identifier[0].value.`_**&#xA;&#xA;The name of the organization or individual that published the questionnaire." />
      <min value="1" />
    </element>
    <element id="Questionnaire.useContext">
      <path value="Questionnaire.useContext" />
      <max value="0" />
    </element>
    <element id="Questionnaire.useContext.code.system">
      <path value="Questionnaire.useContext.code.system" />
      <max value="0" />
    </element>
    <element id="Questionnaire.useContext.code.version">
      <path value="Questionnaire.useContext.code.version" />
      <max value="0" />
    </element>
    <element id="Questionnaire.useContext.code.code">
      <path value="Questionnaire.useContext.code.code" />
      <max value="0" />
    </element>
    <element id="Questionnaire.useContext.code.display">
      <path value="Questionnaire.useContext.code.display" />
      <fixedString value="Questionnaire" />
    </element>
    <element id="Questionnaire.useContext.code.userSelected">
      <path value="Questionnaire.useContext.code.userSelected" />
      <max value="0" />
    </element>
    <element id="Questionnaire.code">
      <path value="Questionnaire.code" />
      <definition value="#### **_`FOR SADIE USE:  These are codes that get sent to client,  they have no meaning in the FlexForm application but the Client needs them to process their questionnaire responses.`_**&#xA;&#xA;An identifier for this question or group of questions in a particular terminology such as LOINC." />
    </element>
    <element id="Questionnaire.code.system">
      <path value="Questionnaire.code.system" />
      <min value="1" />
    </element>
    <element id="Questionnaire.code.version">
      <path value="Questionnaire.code.version" />
      <max value="0" />
    </element>
    <element id="Questionnaire.code.code">
      <path value="Questionnaire.code.code" />
      <min value="1" />
    </element>
    <element id="Questionnaire.code.display">
      <path value="Questionnaire.code.display" />
    </element>
    <element id="Questionnaire.code.userSelected">
      <path value="Questionnaire.code.userSelected" />
      <max value="0" />
    </element>
    <element id="Questionnaire.item.definition">
      <path value="Questionnaire.item.definition" />
      <definition value="#### **_`FOR SADIE USE:  This will be used for Definition based extraction of Patient information and the two supporting attributes`_**&#xA;&#xA;&#xA;This element is a URI that refers to an [ElementDefinition](elementdefinition.html) that provides information about this item, including information that might otherwise be included in the instance of the Questionnaire resource. A detailed description of the construction of the URI is shown in Comments, below. If this element is present then the following element values MAY be derived from the Element Definition if the corresponding elements of this Questionnaire resource instance have no value:&#xA;&#xA;* code (ElementDefinition.code) &#xA;* type (ElementDefinition.type) &#xA;* required (ElementDefinition.min) &#xA;* repeats (ElementDefinition.max) &#xA;* maxLength (ElementDefinition.maxLength) &#xA;* answerValueSet (ElementDefinition.binding)&#xA;* options (ElementDefinition.binding)." />
    </element>
  </differential>
</StructureDefinition>