<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="ca-qc-akinox-profile-Service-Request" />
  <url value="http://fhir.akinox.com/r5/StructureDefinition/ServiceRequest" />
  <version value="1.0.0" />
  <name value="QuebecServiceRequest" />
  <title value="ServiceRequest" />
  <status value="draft" />
  <description value="The Patient resources contain demographics and other administrative information about the individual." />
  <fhirVersion value="5.0.0" />
  <mapping>
    <identity value="workflow" />
    <uri value="http://hl7.org/fhir/workflow" />
    <name value="Workflow Pattern" />
  </mapping>
  <mapping>
    <identity value="w5" />
    <uri value="http://hl7.org/fhir/fivews" />
    <name value="FiveWs Pattern Mapping" />
  </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="quick" />
    <uri value="http://siframework.org/cqf" />
    <name value="Quality Improvement and Clinical Knowledge (QUICK)" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="ServiceRequest" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/ServiceRequest" />
  <derivation value="constraint" />
  <differential>
    <element id="ServiceRequest.meta">
      <path value="ServiceRequest.meta" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.meta.profile">
      <path value="ServiceRequest.meta.profile" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.extension">
      <path value="ServiceRequest.extension" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://fhir.akinox.com/r5/StructureDefinition/ext-contextual-launch-url" />
      </type>
    </element>
    <element id="ServiceRequest.identifier">
      <path value="ServiceRequest.identifier" />
      <comment value="Include Akinox case identifier." />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.identifier.type">
      <path value="ServiceRequest.identifier.type" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.identifier.type.coding">
      <path value="ServiceRequest.identifier.type.coding" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.identifier.type.coding.system">
      <path value="ServiceRequest.identifier.type.coding.system" />
      <fixedUri value="http://akinox.com/fhir/ValueSet/akinox-identifier-type" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.identifier.type.coding.code">
      <path value="ServiceRequest.identifier.type.coding.code" />
      <fixedCode value="CaseId" />
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <valueSet value="http://akinox.com/fhir/ValueSet/akinox-identifier-type" />
      </binding>
    </element>
    <element id="ServiceRequest.identifier.value">
      <path value="ServiceRequest.identifier.value" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.status">
      <path value="ServiceRequest.status" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.intent">
      <path value="ServiceRequest.intent" />
      <fixedCode value="proposal" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.category">
      <path value="ServiceRequest.category" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.category.coding">
      <path value="ServiceRequest.category.coding" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.category.coding.system">
      <path value="ServiceRequest.category.coding.system" />
      <fixedUri value="http://akinox.com/fhir/ValueSet/akinox-category-type" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.category.coding.code">
      <path value="ServiceRequest.category.coding.code" />
      <min value="1" />
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <valueSet value="http://akinox.com/fhir/ValueSet/akinox-category-type" />
      </binding>
    </element>
    <element id="ServiceRequest.subject">
      <path value="ServiceRequest.subject" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.requester">
      <path value="ServiceRequest.requester" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.requester.reference">
      <path value="ServiceRequest.requester.reference" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.performer">
      <path value="ServiceRequest.performer" />
      <max value="1" />
    </element>
  </differential>
</StructureDefinition>