PackagesCanonicalsLogsProblems
    Packages
    ca.on.oh.mha-pds@0.9.0-alpha-1.9.7.13
    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-pds
derivation: constraint
name: ServiceRequestProfile
type: ServiceRequest
elements:
  category: {index: 8}
  meta:
    mustSupport: true
    index: 0
    elements:
      profile:
        mustSupport: true
        pattern: {type: Canonical, value: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-servicerequest'}
        index: 1
    required: [profile]
  encounter: {mustSupport: true, index: 18}
  authoredOn: {mustSupport: true, index: 19}
  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}
          min: 0
          max: 1
        referralSourceType:
          match: {url: null}
          schema: {type: Extension, mustSupport: true, url: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-ext-referralSourceType', index: 4}
          min: 0
  locationReference:
    type: Reference
    mustSupport: true
    refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-profile-location']
    index: 21
  requester:
    elements:
      reference: {index: 20}
  code:
    elements:
      coding:
        mustSupport: true
        index: 9
        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: 10
                elements:
                  system: {index: 11}
                  code: {index: 12}
                required: [system, code]
            '@default':
              match: {system: null}
              schema:
                index: 13
                elements:
                  system: {index: 14}
                  code: {index: 15}
                required: [system, code]
  identifier:
    mustSupport: true
    index: 5
    elements:
      system:
        binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/mha/ServiceRequest-identifier-system'}
        mustSupport: true
        index: 6
      value: {mustSupport: true, index: 7}
    required: [value, system]
  subject:
    type: Reference
    mustSupport: true
    refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-profile-patient']
    index: 16
    elements:
      reference: {mustSupport: true, index: 17}
    required: [reference]
package_version: 0.9.0-alpha-1.9.7.13
extensions:
  referralType: {url: 'https://ontariohealth.ca/fhir/StructureDefinition/ca-on-mha-ext-ReferralType', min: 0, max: 1, type: Extension, mustSupport: true, index: 3}
  referralSourceType: {url: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-ext-referralSourceType', min: 0, type: Extension, mustSupport: true, index: 4}
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]