PackagesCanonicalsLogsProblems
    Packages
    ca.on.oh.mha@pds-0.9.0-alpha-1.7
    http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-servicerequest
description: Proposed constraints on the ServiceRequest resource for the minimal set of data required to request for service such as diagnostic investigations, treatments, or operations to be performed
package_name: ca.on.oh.mha
derivation: constraint
name: ServiceRequestProfile
type: ServiceRequest
elements:
  category: {index: 13}
  meta:
    mustSupport: true
    index: 0
    elements:
      profile: {mustSupport: true, index: 1}
    required: [profile]
  encounter:
    type: Reference
    mustSupport: true
    refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-profile-encounter']
    index: 22
  reasonCode: {index: 28}
  authoredOn: {mustSupport: true, index: 23}
  extension:
    index: 2
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: 0
      slices:
        referralType:
          match: {url: null}
          schema:
            type: Extension
            mustSupport: true
            url: https://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-ReferralType
            index: 3
            elements:
              value:
                mustSupport: true
                choices: [valueCode]
                index: 5
              valueCode: {type: code, mustSupport: true, choiceOf: value, index: 6}
            required: [valueCode, value]
        referralSourceType:
          match: {url: null}
          schema:
            type: Extension
            mustSupport: true
            url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-ext-referralSourceType
            index: 7
            elements:
              value[x]:
                elements:
                  coding:
                    binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/referral-source-type'}
                    index: 8
  locationReference:
    type: Reference
    mustSupport: true
    refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-profile-location']
    index: 27
  requester:
    type: Reference
    refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-organization', 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-profile-patient']
    index: 24
    elements:
      reference: {index: 25}
  code:
    elements:
      coding:
        mustSupport: true
        index: 14
        slicing:
          rules: open
          discriminator:
          - {path: system, type: value}
          min: null
          slices:
            LabOrder:
              match: {system: null}
              schema:
                short: Laboratory procedure code
                binding: {strength: preferred, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/pCLOCD'}
                index: 15
                elements:
                  system: {index: 16}
                  code: {index: 17}
                required: [system, code]
            '@default':
              match: {system: null}
              schema:
                index: 18
                elements:
                  system: {index: 19}
                  code: {index: 20}
                required: [system, code]
  identifier:
    mustSupport: true
    index: 9
    elements:
      value: {mustSupport: true, index: 10}
    required: [value]
  replaces:
    type: Reference
    refers: ['http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-servicerequest']
    index: 12
  basedOn:
    type: Reference
    refers: ['http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-medicationrequest', 'http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-servicerequest']
    index: 11
  subject:
    type: Reference
    mustSupport: true
    refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-profile-patient']
    index: 21
  performer:
    type: Reference
    refers: ['http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-device', 'http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-organization', 'http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-patient', 'http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-practitioner', 'http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-practitionerrole']
    index: 26
  reasonReference:
    type: Reference
    refers: ['http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-condition', 'http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-diagnosticreport', 'http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-documentreference', 'http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-observation']
    index: 29
package_version: pds-0.9.0-alpha-1.7
extensions:
  referralType:
    url: https://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-ReferralType
    type: Extension
    mustSupport: true
    index: 3
    elements:
      value:
        mustSupport: true
        choices: [valueCode]
        index: 5
      valueCode: {type: code, mustSupport: true, choiceOf: value, index: 6}
    required: [valueCode, value]
  referralSourceType:
    url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-ext-referralSourceType
    type: Extension
    mustSupport: true
    index: 7
    elements:
      value[x]:
        elements:
          coding:
            binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/referral-source-type'}
            index: 8
class: profile
kind: resource
url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-servicerequest
base: http://hl7.org/fhir/StructureDefinition/ServiceRequest
version: 1.0.0
required: [meta]