<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="50ce8371-2b84-474a-9ba6-322890117855" />
  <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/FlexFormResponse" />
  <version value="1.0.0" />
  <name value="FlexFormResponse" />
  <title value="FlexFormResponse" />
  <status value="active" />
  <description value="This the Questionnaire Response for FlexForms." />
  <fhirVersion value="4.0.1" />
  <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>
  <kind value="resource" />
  <abstract value="false" />
  <type value="QuestionnaireResponse" />
  <baseDefinition value="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse" />
  <derivation value="constraint" />
  <differential>
    <element id="QuestionnaireResponse">
      <path value="QuestionnaireResponse" />
      <comment value="#### **_`FOR SADIE USE:  This is based on the SDC Questionnaire Response`_**&#xA;&#xA;&#xA;The QuestionnaireResponse contains enough information about the questions asked and their organization that it can be interpreted somewhat independently from the Questionnaire it is based on.  I.e. You don't need access to the Questionnaire in order to extract basic information from a QuestionnaireResponse." />
    </element>
    <element id="QuestionnaireResponse.identifier">
      <path value="QuestionnaireResponse.identifier" />
      <max value="0" />
    </element>
    <element id="QuestionnaireResponse.identifier.use">
      <path value="QuestionnaireResponse.identifier.use" />
      <max value="0" />
    </element>
    <element id="QuestionnaireResponse.identifier.type">
      <path value="QuestionnaireResponse.identifier.type" />
      <max value="0" />
    </element>
    <element id="QuestionnaireResponse.identifier.system">
      <path value="QuestionnaireResponse.identifier.system" />
      <max value="0" />
    </element>
    <element id="QuestionnaireResponse.identifier.value">
      <path value="QuestionnaireResponse.identifier.value" />
      <binding>
        <strength value="required" />
        <valueSet value="http://health.gov.on.ca/sadie/fhir/ValueSet/FlexForms-Questionnaires" />
      </binding>
    </element>
    <element id="QuestionnaireResponse.identifier.period">
      <path value="QuestionnaireResponse.identifier.period" />
      <max value="0" />
    </element>
    <element id="QuestionnaireResponse.identifier.assigner">
      <path value="QuestionnaireResponse.identifier.assigner" />
      <max value="0" />
    </element>
    <element id="QuestionnaireResponse.basedOn">
      <path value="QuestionnaireResponse.basedOn" />
      <definition value="#### **_`FOR SADIE USE:  This is a this is a reference to the Request`_**&#xA;&#xA;The order, proposal or plan that is fulfilled in whole or in part by this QuestionnaireResponse.  For example, a ServiceRequest seeking an intake assessment or a decision support recommendation to assess for post-partum depression." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://health.gov.on.ca/sadie/fhir/StructureDefinition/Request" />
      </type>
    </element>
    <element id="QuestionnaireResponse.basedOn.reference">
      <path value="QuestionnaireResponse.basedOn.reference" />
      <definition value="#### **_`FOR SADIE USE:  This is a this is a reference to the Request`_**&#xA;&#xA;A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources." />
    </element>
    <element id="QuestionnaireResponse.basedOn.type">
      <path value="QuestionnaireResponse.basedOn.type" />
      <max value="0" />
    </element>
    <element id="QuestionnaireResponse.basedOn.identifier">
      <path value="QuestionnaireResponse.basedOn.identifier" />
      <max value="0" />
    </element>
    <element id="QuestionnaireResponse.basedOn.display">
      <path value="QuestionnaireResponse.basedOn.display" />
      <max value="0" />
    </element>
    <element id="QuestionnaireResponse.partOf">
      <path value="QuestionnaireResponse.partOf" />
      <max value="0" />
    </element>
    <element id="QuestionnaireResponse.status">
      <path value="QuestionnaireResponse.status" />
      <definition value="#### **_`FOR SADIE USE:  There are only 2 statuses used,  in-progress, completed`_**&#xA;&#xA;&#xA;The position of the questionnaire response within its overall lifecycle." />
    </element>
    <element id="QuestionnaireResponse.subject">
      <path value="QuestionnaireResponse.subject" />
      <definition value="#### **_`FOR SADIE USE:  This is the applicant (Patient)`_**&#xA;&#xA;The subject of the questionnaire response.  This could be a patient, organization, practitioner, device, etc.  This is who/what the answers apply to, but is not necessarily the source of information." />
      <type>
        <code value="Reference" />
        <targetProfile value="https://health.gov.on.ca/sadie/fhir/StructureDefinition/Applicant" />
      </type>
    </element>
    <element id="QuestionnaireResponse.encounter">
      <path value="QuestionnaireResponse.encounter" />
      <max value="0" />
    </element>
    <element id="QuestionnaireResponse.author">
      <path value="QuestionnaireResponse.author" />
      <definition value="#### **_`FOR SADIE USE:  This is the Requestor Role that owns the related Request. This is used by the security interceptor.`_**&#xA;&#xA;Person who received the answers to the questions in the QuestionnaireResponse and recorded them in the system." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://health.gov.on.ca/sadie/fhir/StructureDefinition/FlexFormsRole" />
      </type>
    </element>
    <element id="QuestionnaireResponse.source">
      <path value="QuestionnaireResponse.source" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>