PackagesCanonicalsLogsProblems
    Packages
    ca.infoway.io.erec@1.3.0-dft-preBallot
    http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-ServiceRequest
description: ServiceRequest is the main resource used to send all referral related information to the destination system.
package_name: ca.infoway.io.erec
derivation: constraint
name: ServiceRequest
type: ServiceRequest
elements:
  category:
    mustSupport: true
    index: 31
    slicing:
      rules: open
      description: Used to distinguish between eReferral and eConsult
      discriminator:
      - {path: $this, type: value}
      min: 1
      slices:
        referralType:
          match: {}
          schema:
            binding: {strength: required, valueSet: 'http://fhir.infoway-inforoute.ca/io/CA-eReC/ValueSet/CA-eReC-Referral-Type'}
            mustSupport: true
            _required: true
            index: 32
          min: 1
          max: 1
        serviceType:
          match: {}
          schema:
            binding: {strength: required, valueSet: 'http://fhir.infoway-inforoute.ca/ValueSet/referralservicecategorycode'}
            mustSupport: true
            array: true
            index: 33
          min: 0
  meta:
    mustSupport: true
    index: 0
    elements:
      profile: {mustSupport: true, index: 1}
  supportingInfo:
    type: Reference
    mustSupport: true
    refers: ['http://fhir.infoway-inforoute.ca/cacore/StructureDefinition/allergyintolerance-ca-core', 'http://fhir.infoway-inforoute.ca/cacore/StructureDefinition/condition-ca-core', 'http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-Communication', 'http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-Consent', 'http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-DocumentReference', 'http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-QuestionnaireResponse', 'http://hl7.org/fhir/StructureDefinition/Resource']
    index: 58
    elements:
      reference: {mustSupport: true, index: 59}
      identifier:
        mustSupport: true
        index: 60
        elements:
          system: {mustSupport: true, index: 61}
          value: {mustSupport: true, index: 62}
        required: [value, system]
  reasonCode:
    binding: {strength: preferred, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/healthconditioncode'}
    mustSupport: true
    index: 57
  authoredOn: {mustSupport: true, index: 42}
  note:
    mustSupport: true
    index: 63
    elements:
      author:
        choices: []
        index: 65
        slicing:
          rules: open
          ordered: false
          discriminator:
          - {path: $this, type: type}
          min: null
          slices:
            authorReference:
              match: {}
              schema:
                choices: [authorReference]
                index: 67
              min: 0
              max: 1
      authorReference:
        type: Reference
        choiceOf: author
        refers: ['http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-Organization', 'http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-Patient', 'http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-Practitioner']
        index: 68
        slicing:
          slices:
            authorReference:
              match: {}
              schema:
                type: Reference
                choiceOf: author
                refers: ['http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-Organization', 'http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-Patient', 'http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-Practitioner']
                index: 68
              min: 0
              max: 1
      author[x]:
        elements:
          reference: {mustSupport: true, index: 69}
          identifier:
            mustSupport: true
            index: 70
            elements:
              system: {mustSupport: true, index: 71}
              value: {mustSupport: true, index: 72}
            required: [value, system]
  requisition:
    short: '𝗨𝗦𝗘 𝗖𝗔𝗦𝗘 𝗦𝗨𝗣𝗣𝗢𝗥𝗧: Systems that support routing/chaining/splitting SHALL support'
    index: 26
    elements:
      system: {mustSupport: true, index: 27}
      value: {mustSupport: true, index: 28}
    required: [value, system]
  extension:
    index: 2
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        RequestStatusReason:
          match: {url: null}
          schema:
            type: Extension
            mustSupport: true
            url: http://hl7.org/fhir/StructureDefinition/request-statusReason
            index: 3
            elements:
              value:
                choices: []
                index: 5
        PatientPresentLocation:
          match: {url: null}
          schema: {type: Extension, short: 'USE CASE SUPPORT: Systems deployed in Ontario SHALL support', mustSupport: true, url: 'http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-Patient-Present-Location-EXT', index: 6}
        DARC:
          match: {url: null}
          schema: {type: Extension, short: 'USE CASE SUPPORT: Systems deployed in Ontario SHALL support', url: 'http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/DARC-EXT', index: 7}
        DART:
          match: {url: null}
          schema: {type: Extension, short: 'USE CASE SUPPORT: Systems deployed in Ontario SHALL support', url: 'http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/DART-ext', index: 8}
        RoutingOptions:
          match: {url: null}
          schema: {type: Extension, short: 'USE CASE SUPPORT: Systems deployed in Ontario SHALL support', url: 'http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/Routing-Options-EXT', index: 9}
        CopiedParticipants:
          match: {url: null}
          schema: {type: Extension, short: 'USE CASE SUPPORT: Systems deployed in Ontario SHALL support', url: 'http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-copied-participants-EXT', index: 10}
        ServiceProviderPreference:
          match: {url: null}
          schema: {type: Extension, short: 'USE CASE SUPPORT: Systems deployed in Ontario SHALL support', url: 'http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-ext-ServiceProviderPreference', index: 11}
  requester:
    type: Reference
    mustSupport: true
    refers: ['http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-Patient', 'http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-PractitionerRole']
    index: 43
    extensions:
      ServiceRequesterDelegate: {url: 'http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-ext-ServiceRequesterDelegate', min: 0, type: Extension, index: 45}
    elements:
      extension:
        index: 44
        slicing:
          rules: open
          ordered: false
          discriminator:
          - {path: url, type: value}
          min: null
          slices:
            ServiceRequesterDelegate:
              match: {url: null}
              schema: {type: Extension, url: 'http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-ext-ServiceRequesterDelegate', index: 45}
              min: 0
      reference: {short: 'When the ServiceRequest is the focus of a message, the reference is mandatory and the referenced instance needs to be included in the Bundle.', mustSupport: true, index: 46}
      identifier:
        mustSupport: true
        index: 47
        elements:
          system: {mustSupport: true, index: 48}
          value: {mustSupport: true, index: 49}
        required: [value, system]
  priority:
    extensions:
      SubPriority: {url: 'http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-Sub-Priority-EXT', min: 0, max: 1, type: Extension, index: 35}
    elements:
      extension:
        index: 34
        slicing:
          rules: open
          ordered: false
          discriminator:
          - {path: url, type: value}
          min: null
          slices:
            SubPriority:
              match: {url: null}
              schema: {type: Extension, url: 'http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-Sub-Priority-EXT', index: 35}
              min: 0
              max: 1
  status:
    binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/request-status'}
    mustSupport: true
    index: 29
  code:
    short: Note that the meaning of this field is to be used in conjunction with ServiceRequest.performer pointing to a HealthCareservice or PractitionerRole, and .code further specifies the service, for example code could be a specific procedure under the specificed HealthcareService (e.g., HealthcareService = Orthopaedic Surgeon, code=Knee Surgery)
    binding: {strength: extensible, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/procedurecode'}
    mustSupport: true
    index: 36
  identifier:
    mustSupport: true
    index: 12
    elements:
      use: {mustSupport: true, index: 13}
      system: {mustSupport: true, index: 14}
      value: {mustSupport: true, index: 15}
    required: [value, system]
  intent:
    pattern: {type: Code, value: proposal}
    mustSupport: true
    index: 30
  replaces:
    type: Reference
    short: '𝗨𝗦𝗘 𝗖𝗔𝗦𝗘 𝗦𝗨𝗣𝗣𝗢𝗥𝗧: Systems that support routing/chaining/splitting SHALL support'
    refers: ['http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-ServiceRequest']
    index: 21
    elements:
      reference: {mustSupport: true, index: 22}
      identifier:
        mustSupport: true
        index: 23
        elements:
          system: {mustSupport: true, index: 24}
          value: {mustSupport: true, index: 25}
        required: [value, system]
  basedOn:
    type: Reference
    short: '𝗨𝗦𝗘 𝗖𝗔𝗦𝗘 𝗦𝗨𝗣𝗣𝗢𝗥𝗧: Systems that support routing/chaining/splitting SHALL support'
    refers: ['http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-ServiceRequest']
    index: 16
    elements:
      reference: {mustSupport: true, index: 17}
      identifier:
        mustSupport: true
        index: 18
        elements:
          system: {mustSupport: true, index: 19}
          value: {mustSupport: true, index: 20}
        required: [value, system]
  subject:
    type: Reference
    mustSupport: true
    refers: ['http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-Patient']
    index: 37
    elements:
      reference: {mustSupport: true, index: 38}
      identifier:
        mustSupport: true
        index: 39
        elements:
          system: {mustSupport: true, index: 40}
          value: {mustSupport: true, index: 41}
        required: [value, system]
  performer:
    min: 1
    index: 50
    refers: ['http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-HealthcareService', 'http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-PractitionerRole']
    type: Reference
    mustSupport: true
    array: true
    elements:
      extension:
        index: 51
        slicing:
          rules: open
          ordered: false
          discriminator:
          - {path: url, type: value}
          min: null
          slices:
            PerformerIdentifier:
              match: {url: null}
              schema: {type: Extension, url: 'http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-performer-identifier-EXT', index: 52}
              min: 0
              max: 1
      reference: {short: 'When the ServiceRequest is the focus of a message, the reference is mandatory and the referenced instance needs to be included in the Bundle.', mustSupport: true, index: 53}
      identifier:
        mustSupport: true
        index: 54
        elements:
          system: {mustSupport: true, index: 55}
          value: {mustSupport: true, index: 56}
        required: [value, system]
    extensions:
      PerformerIdentifier: {url: 'http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-performer-identifier-EXT', min: 0, max: 1, type: Extension, index: 52}
package_version: 1.3.0-dft-preBallot
extensions:
  RequestStatusReason:
    url: http://hl7.org/fhir/StructureDefinition/request-statusReason
    type: Extension
    mustSupport: true
    index: 3
    elements:
      value:
        choices: []
        index: 5
  PatientPresentLocation: {url: 'http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-Patient-Present-Location-EXT', type: Extension, short: 'USE CASE SUPPORT: Systems deployed in Ontario SHALL support', mustSupport: true, index: 6}
  DARC: {url: 'http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/DARC-EXT', type: Extension, short: 'USE CASE SUPPORT: Systems deployed in Ontario SHALL support', index: 7}
  DART: {url: 'http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/DART-ext', type: Extension, short: 'USE CASE SUPPORT: Systems deployed in Ontario SHALL support', index: 8}
  RoutingOptions: {url: 'http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/Routing-Options-EXT', type: Extension, short: 'USE CASE SUPPORT: Systems deployed in Ontario SHALL support', index: 9}
  CopiedParticipants: {url: 'http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-copied-participants-EXT', type: Extension, short: 'USE CASE SUPPORT: Systems deployed in Ontario SHALL support', index: 10}
  ServiceProviderPreference: {url: 'http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-ext-ServiceProviderPreference', type: Extension, short: 'USE CASE SUPPORT: Systems deployed in Ontario SHALL support', index: 11}
class: profile
kind: resource
url: http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-ServiceRequest
base: http://hl7.org/fhir/StructureDefinition/ServiceRequest
version: null
required: [authoredOn, requester, category, performer]