<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="http://oped.de/orthelligent/fhir/StructureDefinition/OrthelligentFitIndexReport" />
  <name value="OrthelligentFitIndexReport" />
  <status value="draft" />
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="workflow" />
    <uri value="http://hl7.org/fhir/workflow" />
    <name value="Workflow Pattern" />
  </mapping>
  <mapping>
    <identity value="v2" />
    <uri value="http://hl7.org/v2" />
    <name value="HL7 v2 Mapping" />
  </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="DiagnosticReport" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/DiagnosticReport" />
  <derivation value="constraint" />
  <differential>
    <element id="DiagnosticReport.basedOn">
      <path value="DiagnosticReport.basedOn" />
      <short value="Orthelligent Treatment (CarePlan)" />
      <definition value="The Orthelligent Treatment (CarePlan) in the context of which this overall fit index has been reached by the Patient." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://oped.de/orthelligent/fhir/StructureDefinition/OrthelligentTreatment" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="DiagnosticReport.subject">
      <path value="DiagnosticReport.subject" />
      <short value="The Orthelligent Patient" />
      <definition value="The subject of the report. This is a user of Orthelligent Knee, i.e. the Orthelligent Patient." />
    </element>
    <element id="DiagnosticReport.result">
      <path value="DiagnosticReport.result" />
      <short value="Fit Index (Overall)" />
      <definition value="The core result of an Orthelligent Fit Index Report is the treatment's overall fit index, computed from sub-level fit indices and, utimately, test results." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://oped.de/orthelligent/fhir/StructureDefinition/OrthelligentFitIndex" />
      </type>
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>