<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="profile-serviceRequest-submission" />
  <url value="http://ontariohealth.ca/fhir/ocre/StructureDefinition/profile-serviceRequest-submission" />
  <version value="1.0.0-Ballot" />
  <name value="ServiceRequestOCRESubmission" />
  <title value="OCRE ServiceRequest Profile (Submission)" />
  <status value="active" />
  <description value="OCRE ServiceRequest Profile (Submission)" />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="ServiceRequest" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/ServiceRequest" />
  <derivation value="constraint" />
  <differential>
    <element id="ServiceRequest.extension">
      <path value="ServiceRequest.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <ordered value="false" />
        <rules value="open" />
      </slicing>
    </element>
    <element id="ServiceRequest.extension:CopiedParticipants">
      <path value="ServiceRequest.extension" />
      <sliceName value="CopiedParticipants" />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Extension" />
        <profile value="http://ontariohealth.ca/StructureDefinition/oh-ehr-copied-participants-EXT" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.identifier">
      <path value="ServiceRequest.identifier" />
      <slicing>
        <discriminator>
          <type value="pattern" />
          <path value="type" />
        </discriminator>
        <description value="must contain one repetition of an accession number." />
        <rules value="open" />
      </slicing>
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.identifier.type">
      <path value="ServiceRequest.identifier.type" />
      <mustSupport value="true" />
      <binding>
        <strength value="extensible" />
        <valueSet value="http://ontariohealth.ca/fhir/ehr/ValueSet/identifier-type" />
      </binding>
    </element>
    <element id="ServiceRequest.identifier.type.coding">
      <path value="ServiceRequest.identifier.type.coding" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.identifier.type.coding.system">
      <path value="ServiceRequest.identifier.type.coding.system" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.identifier.type.coding.code">
      <path value="ServiceRequest.identifier.type.coding.code" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.identifier.type.coding.display">
      <path value="ServiceRequest.identifier.type.coding.display" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.identifier.system">
      <path value="ServiceRequest.identifier.system" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.identifier.value">
      <path value="ServiceRequest.identifier.value" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.identifier.assigner">
      <path value="ServiceRequest.identifier.assigner" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.identifier.assigner.reference">
      <path value="ServiceRequest.identifier.assigner.reference" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.identifier:identifier-accession">
      <path value="ServiceRequest.identifier" />
      <sliceName value="identifier-accession" />
      <short value="Accession ID" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.identifier:identifier-accession.type">
      <path value="ServiceRequest.identifier.type" />
      <min value="1" />
      <fixedCodeableConcept>
        <coding>
          <system value="http://terminology.hl7.org/CodeSystem/v2-0203" />
          <code value="ACSN" />
          <display value="Accession ID" />
        </coding>
      </fixedCodeableConcept>
    </element>
    <element id="ServiceRequest.identifier:identifier-accession.system">
      <path value="ServiceRequest.identifier.system" />
      <comment value="Source organization specific URI" />
    </element>
    <element id="ServiceRequest.identifier:identifier-placerOrderNumber">
      <path value="ServiceRequest.identifier" />
      <sliceName value="identifier-placerOrderNumber" />
      <min value="0" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.identifier:identifier-placerOrderNumber.type">
      <path value="ServiceRequest.identifier.type" />
      <min value="1" />
      <fixedCodeableConcept>
        <coding>
          <system value="http://terminology.hl7.org/CodeSystem/v2-0203" />
          <code value="PLAC" />
          <display value="Placer Identifier" />
        </coding>
      </fixedCodeableConcept>
    </element>
    <element id="ServiceRequest.basedOn">
      <path value="ServiceRequest.basedOn" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://ontariohealth.ca/fhir/ehr/StructureDefinition/profile-serviceRequest" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.basedOn.reference">
      <path value="ServiceRequest.basedOn.reference" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.basedOn.identifier">
      <path value="ServiceRequest.basedOn.identifier" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.basedOn.identifier.type">
      <path value="ServiceRequest.basedOn.identifier.type" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.basedOn.identifier.type.coding">
      <path value="ServiceRequest.basedOn.identifier.type.coding" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.basedOn.identifier.type.coding.system">
      <path value="ServiceRequest.basedOn.identifier.type.coding.system" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.basedOn.identifier.type.coding.code">
      <path value="ServiceRequest.basedOn.identifier.type.coding.code" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.basedOn.identifier.type.coding.display">
      <path value="ServiceRequest.basedOn.identifier.type.coding.display" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.basedOn.identifier.system">
      <path value="ServiceRequest.basedOn.identifier.system" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.basedOn.identifier.value">
      <path value="ServiceRequest.basedOn.identifier.value" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.replaces">
      <path value="ServiceRequest.replaces" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://ontariohealth.ca/fhir/ehr/StructureDefinition/profile-serviceRequest" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.replaces.reference">
      <path value="ServiceRequest.replaces.reference" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.replaces.identifier">
      <path value="ServiceRequest.replaces.identifier" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.replaces.identifier.type">
      <path value="ServiceRequest.replaces.identifier.type" />
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <valueSet value="http://ontariohealth.ca/fhir/ehr/ValueSet/identifier-type" />
      </binding>
    </element>
    <element id="ServiceRequest.replaces.identifier.type.coding">
      <path value="ServiceRequest.replaces.identifier.type.coding" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.replaces.identifier.type.coding.system">
      <path value="ServiceRequest.replaces.identifier.type.coding.system" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.replaces.identifier.type.coding.code">
      <path value="ServiceRequest.replaces.identifier.type.coding.code" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.replaces.identifier.type.coding.display">
      <path value="ServiceRequest.replaces.identifier.type.coding.display" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.replaces.identifier.system">
      <path value="ServiceRequest.replaces.identifier.system" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.replaces.identifier.value">
      <path value="ServiceRequest.replaces.identifier.value" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.requisition">
      <path value="ServiceRequest.requisition" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.requisition.type">
      <path value="ServiceRequest.requisition.type" />
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <valueSet value="http://ontariohealth.ca/fhir/ehr/ValueSet/identifier-type" />
      </binding>
    </element>
    <element id="ServiceRequest.requisition.type.coding">
      <path value="ServiceRequest.requisition.type.coding" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.requisition.type.coding.system">
      <path value="ServiceRequest.requisition.type.coding.system" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.requisition.type.coding.code">
      <path value="ServiceRequest.requisition.type.coding.code" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.requisition.type.coding.display">
      <path value="ServiceRequest.requisition.type.coding.display" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.requisition.system">
      <path value="ServiceRequest.requisition.system" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.requisition.value">
      <path value="ServiceRequest.requisition.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" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.category">
      <path value="ServiceRequest.category" />
      <min value="1" />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://ontariohealth.ca/fhir/ehr/StructureDefinition/CodeableConcept-oh-ehr" />
      </type>
      <mustSupport value="true" />
      <binding>
        <strength value="extensible" />
        <valueSet value="http://ontariohealth.ca/fhir/ehr/ValueSet/procedure-service-type" />
      </binding>
    </element>
    <element id="ServiceRequest.category.coding">
      <path value="ServiceRequest.category.coding" />
      <min value="1" />
    </element>
    <element id="ServiceRequest.category.coding.system">
      <path value="ServiceRequest.category.coding.system" />
      <min value="1" />
    </element>
    <element id="ServiceRequest.priority">
      <path value="ServiceRequest.priority" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.code">
      <path value="ServiceRequest.code" />
      <min value="1" />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://ontariohealth.ca/fhir/ehr/StructureDefinition/CodeableConcept-oh-ehr" />
      </type>
      <mustSupport value="true" />
      <binding>
        <strength value="extensible" />
        <description value="Local procedure codes submitted by contributing sites" />
        <valueSet value="http://ontariohealth.ca/fhir/ehr/ValueSet/local-imaging-procedure-code" />
      </binding>
    </element>
    <element id="ServiceRequest.code.coding">
      <path value="ServiceRequest.code.coding" />
      <min value="1" />
    </element>
    <element id="ServiceRequest.code.coding.system">
      <path value="ServiceRequest.code.coding.system" />
      <min value="1" />
    </element>
    <element id="ServiceRequest.subject">
      <path value="ServiceRequest.subject" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://ontariohealth.ca/fhir/ocre/StructureDefinition/profile-patient-submission" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.subject.reference">
      <path value="ServiceRequest.subject.reference" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.occurrence[x]">
      <path value="ServiceRequest.occurrence[x]" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.authoredOn">
      <path value="ServiceRequest.authoredOn" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.requester">
      <path value="ServiceRequest.requester" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://ontariohealth.ca/fhir/ocre/StructureDefinition/profile-practitionerRole-submission" />
        <targetProfile value="http://ontariohealth.ca/fhir/ocre/StructureDefinition/profile-practitioner-submission" />
        <targetProfile value="http://ontariohealth.ca/fhir/ocre/StructureDefinition/profile-organization-submission" />
      </type>
      <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" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://ontariohealth.ca/fhir/ocre/StructureDefinition/profile-practitionerRole-submission" />
        <targetProfile value="http://ontariohealth.ca/fhir/ocre/StructureDefinition/profile-practitioner-submission" />
        <targetProfile value="http://ontariohealth.ca/fhir/ocre/StructureDefinition/profile-organization-submission" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.performer.reference">
      <path value="ServiceRequest.performer.reference" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.locationReference">
      <path value="ServiceRequest.locationReference" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://ontariohealth.ca/fhir/ehr/StructureDefinition/profile-location" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.locationReference.reference">
      <path value="ServiceRequest.locationReference.reference" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.reasonCode">
      <path value="ServiceRequest.reasonCode" />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://ontariohealth.ca/fhir/ehr/StructureDefinition/CodeableConcept-oh-ehr" />
      </type>
      <mustSupport value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/tools/StructureDefinition/additional-binding">
          <extension url="purpose">
            <valueCode value="candidate" />
          </extension>
          <extension url="valueSet">
            <valueCanonical value="http://fhir.infoway-inforoute.ca/io/cacore/ValueSet/ICD10CA" />
          </extension>
          <extension url="documentation">
            <valueMarkdown value="This value set contains all concepts represented by ICD-10-CA - the International Classification of Disease developed by the WHO and enhanced by CIHI to meed Canadian morbidity data needs" />
          </extension>
          <extension url="key">
            <valueId value="reasonICD10CA" />
          </extension>
          <valueString value="ServiceRequestReason" />
        </extension>
        <strength value="preferred" />
        <description value="Diagnosis or problem codes justifying the reason for requesting the service investigation." />
        <valueSet value="http://hl7.org/fhir/ValueSet/procedure-reason" />
      </binding>
    </element>
    <element id="ServiceRequest.reasonCode.coding.system">
      <path value="ServiceRequest.reasonCode.coding.system" />
      <min value="1" />
    </element>
    <element id="ServiceRequest.reasonReference">
      <path value="ServiceRequest.reasonReference" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.reasonReference.reference">
      <path value="ServiceRequest.reasonReference.reference" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.supportingInfo">
      <path value="ServiceRequest.supportingInfo" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.supportingInfo.reference">
      <path value="ServiceRequest.supportingInfo.reference" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.supportingInfo.display">
      <path value="ServiceRequest.supportingInfo.display" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.bodySite">
      <path value="ServiceRequest.bodySite" />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://ontariohealth.ca/fhir/ehr/StructureDefinition/CodeableConcept-oh-ehr" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.note">
      <path value="ServiceRequest.note" />
      <mustSupport value="true" />
    </element>
    <element id="ServiceRequest.note.text">
      <path value="ServiceRequest.note.text" />
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>