PackagesCanonicalsLogsProblems
    Packages
    ontariomicdrfhirimplementationguide-0.10.00@0.9.3-beta
    http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mi-profile-ServiceRequest
description: null
package_name: ontariomicdrfhirimplementationguide-0.10.00
derivation: constraint
name: MICdrServiceRequest
type: ServiceRequest
elements:
  category:
    mustSupport: true
    index: 49
    extensions:
      ext-mi-category-type: {url: 'http://ontariohealth.ca/fhir/StructureDefinition/ext-mi-category-type', min: 1, max: 1, type: Extension, mustSupport: true, index: 51}
    elements:
      extension:
        index: 50
        slicing:
          rules: open
          discriminator:
          - {path: url, type: value}
          min: 1
          slices:
            ext-mi-category-type:
              match: {url: null}
              schema: {type: Extension, mustSupport: true, url: 'http://ontariohealth.ca/fhir/StructureDefinition/ext-mi-category-type', index: 51}
              min: 1
              max: 1
      coding:
        mustSupport: true
        index: 52
        elements:
          system: {mustSupport: true, index: 53}
          code: {mustSupport: true, index: 54}
          display: {mustSupport: true, index: 55}
        required: [display, system, code]
    required: [extension]
    slicing:
      rules: open
      discriminator:
      - {path: $this, type: pattern}
      min: null
      slices:
        category-modality:
          match: {}
          schema:
            binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/mi-procedure-modality'}
            mustSupport: true
            index: 56
            extensions:
              ext-mi-category-type:
                url: http://ontariohealth.ca/fhir/StructureDefinition/ext-mi-category-type
                type: Extension
                mustSupport: true
                index: 58
                elements:
                  value:
                    choices: []
                    index: 60
                    slicing:
                      rules: open
                      ordered: false
                      discriminator:
                      - {path: $this, type: type}
                      min: null
                      slices:
                        valueCoding:
                          match: {}
                          schema:
                            pattern:
                              type: Coding
                              value: {code: '360037004', system: 'http://snomed.info/sct', display: Imaging modality}
                            choices: []
                            index: 62
            elements:
              extension:
                index: 57
                slicing:
                  rules: open
                  discriminator:
                  - {path: url, type: value}
                  min: 1
                  slices:
                    ext-mi-category-type:
                      match: {url: null}
                      schema:
                        type: Extension
                        mustSupport: true
                        url: http://ontariohealth.ca/fhir/StructureDefinition/ext-mi-category-type
                        index: 58
                        elements:
                          value:
                            choices: []
                            index: 60
                            slicing:
                              rules: open
                              ordered: false
                              discriminator:
                              - {path: $this, type: type}
                              min: null
                              slices:
                                valueCoding:
                                  match: {}
                                  schema:
                                    pattern:
                                      type: Coding
                                      value: {code: '360037004', system: 'http://snomed.info/sct', display: Imaging modality}
                                    choices: []
                                    index: 62
              coding:
                mustSupport: true
                index: 63
                elements:
                  system: {mustSupport: true, index: 64}
                  code: {mustSupport: true, index: 65}
                  display: {mustSupport: true, index: 66}
                required: [display, system, code]
            required: [extension]
        category-specialty:
          match: {}
          schema:
            binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/mi-procedure-specialty'}
            mustSupport: true
            index: 67
            extensions:
              ext-mi-category-type:
                url: http://ontariohealth.ca/fhir/StructureDefinition/ext-mi-category-type
                type: Extension
                mustSupport: true
                index: 69
                elements:
                  value:
                    choices: []
                    index: 71
                    slicing:
                      rules: open
                      ordered: false
                      discriminator:
                      - {path: $this, type: type}
                      min: null
                      slices:
                        valueCoding:
                          match: {}
                          schema:
                            pattern:
                              type: Coding
                              value: {code: '394658006', system: 'http://snomed.info/sct', display: Clinical specialty}
                            choices: []
                            index: 73
            elements:
              extension:
                index: 68
                slicing:
                  rules: open
                  discriminator:
                  - {path: url, type: value}
                  min: 1
                  slices:
                    ext-mi-category-type:
                      match: {url: null}
                      schema:
                        type: Extension
                        mustSupport: true
                        url: http://ontariohealth.ca/fhir/StructureDefinition/ext-mi-category-type
                        index: 69
                        elements:
                          value:
                            choices: []
                            index: 71
                            slicing:
                              rules: open
                              ordered: false
                              discriminator:
                              - {path: $this, type: type}
                              min: null
                              slices:
                                valueCoding:
                                  match: {}
                                  schema:
                                    pattern:
                                      type: Coding
                                      value: {code: '394658006', system: 'http://snomed.info/sct', display: Clinical specialty}
                                    choices: []
                                    index: 73
              coding:
                mustSupport: true
                index: 74
                elements:
                  system: {mustSupport: true, index: 75}
                  code: {mustSupport: true, index: 76}
                  display: {mustSupport: true, index: 77}
                required: [display, system, code]
            required: [extension]
        cateogory-bodyPart:
          match: {}
          schema:
            mustSupport: true
            index: 78
            extensions:
              ext-mi-category-type:
                url: http://ontariohealth.ca/fhir/StructureDefinition/ext-mi-category-type
                type: Extension
                mustSupport: true
                index: 80
                elements:
                  value:
                    choices: []
                    index: 82
                    slicing:
                      rules: open
                      ordered: false
                      discriminator:
                      - {path: $this, type: type}
                      min: null
                      slices:
                        valueCoding:
                          match: {}
                          schema:
                            pattern:
                              type: Coding
                              value: {code: '272427006', system: 'http://snomed.info/sct', display: Anatomical part descriptor}
                            choices: []
                            index: 84
            elements:
              extension:
                index: 79
                slicing:
                  rules: open
                  discriminator:
                  - {path: url, type: value}
                  min: 1
                  slices:
                    ext-mi-category-type:
                      match: {url: null}
                      schema:
                        type: Extension
                        mustSupport: true
                        url: http://ontariohealth.ca/fhir/StructureDefinition/ext-mi-category-type
                        index: 80
                        elements:
                          value:
                            choices: []
                            index: 82
                            slicing:
                              rules: open
                              ordered: false
                              discriminator:
                              - {path: $this, type: type}
                              min: null
                              slices:
                                valueCoding:
                                  match: {}
                                  schema:
                                    pattern:
                                      type: Coding
                                      value: {code: '272427006', system: 'http://snomed.info/sct', display: Anatomical part descriptor}
                                    choices: []
                                    index: 84
              coding:
                array: true
                min: 2
                index: 85
                extensions:
                  ext-mi-code-type: {url: 'http://ontariohealth.ca/fhir/StructureDefinition/ext-mi-code-type', min: 1, max: 1, type: Extension, mustSupport: true, index: 87}
                elements:
                  extension:
                    index: 86
                    slicing:
                      rules: open
                      discriminator:
                      - {path: url, type: value}
                      min: 1
                      slices:
                        ext-mi-code-type:
                          match: {url: null}
                          schema: {type: Extension, mustSupport: true, url: 'http://ontariohealth.ca/fhir/StructureDefinition/ext-mi-code-type', index: 87}
                          min: 1
                          max: 1
                required: [extension]
                slicing:
                  rules: open
                  discriminator:
                  - {path: $this, type: pattern}
                  min: 2
                  slices:
                    dicom:
                      match: {}
                      schema:
                        short: DICOM body part code
                        binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/mi-procedure-bodypart-dicom'}
                        mustSupport: true
                        _required: true
                        index: 88
                        extensions:
                          ext-mi-code-type:
                            url: http://ontariohealth.ca/fhir/StructureDefinition/ext-mi-code-type
                            type: Extension
                            mustSupport: true
                            index: 90
                            elements:
                              value:
                                choices: []
                                index: 92
                                slicing:
                                  rules: open
                                  ordered: false
                                  discriminator:
                                  - {path: $this, type: type}
                                  min: null
                                  slices:
                                    valueCode:
                                      match: {}
                                      schema:
                                        pattern: {type: Code, value: dicom}
                                        choices: []
                                        index: 94
                        elements:
                          extension:
                            index: 89
                            slicing:
                              rules: open
                              discriminator:
                              - {path: url, type: value}
                              min: 1
                              slices:
                                ext-mi-code-type:
                                  match: {url: null}
                                  schema:
                                    type: Extension
                                    mustSupport: true
                                    url: http://ontariohealth.ca/fhir/StructureDefinition/ext-mi-code-type
                                    index: 90
                                    elements:
                                      value:
                                        choices: []
                                        index: 92
                                        slicing:
                                          rules: open
                                          ordered: false
                                          discriminator:
                                          - {path: $this, type: type}
                                          min: null
                                          slices:
                                            valueCode:
                                              match: {}
                                              schema:
                                                pattern: {type: Code, value: dicom}
                                                choices: []
                                                index: 94
                          system:
                            pattern: {type: Uri, value: 'http://dicom.nema.org/resources/ontology/DCM'}
                            mustSupport: true
                            index: 95
                          code: {mustSupport: true, index: 96}
                          display: {mustSupport: true, index: 97}
                        required: [extension, display, system, code]
                    sct:
                      match: {}
                      schema:
                        short: SNOMED CT body part code
                        binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/mi-procedure-bodypart-sct'}
                        mustSupport: true
                        _required: true
                        index: 98
                        extensions:
                          ext-mi-code-type:
                            url: http://ontariohealth.ca/fhir/StructureDefinition/ext-mi-code-type
                            type: Extension
                            mustSupport: true
                            index: 100
                            elements:
                              value:
                                choices: []
                                index: 102
                                slicing:
                                  rules: open
                                  ordered: false
                                  discriminator:
                                  - {path: $this, type: type}
                                  min: null
                                  slices:
                                    valueCode:
                                      match: {}
                                      schema:
                                        pattern: {type: Code, value: sct}
                                        choices: []
                                        index: 104
                        elements:
                          extension:
                            index: 99
                            slicing:
                              rules: open
                              discriminator:
                              - {path: url, type: value}
                              min: 1
                              slices:
                                ext-mi-code-type:
                                  match: {url: null}
                                  schema:
                                    type: Extension
                                    mustSupport: true
                                    url: http://ontariohealth.ca/fhir/StructureDefinition/ext-mi-code-type
                                    index: 100
                                    elements:
                                      value:
                                        choices: []
                                        index: 102
                                        slicing:
                                          rules: open
                                          ordered: false
                                          discriminator:
                                          - {path: $this, type: type}
                                          min: null
                                          slices:
                                            valueCode:
                                              match: {}
                                              schema:
                                                pattern: {type: Code, value: sct}
                                                choices: []
                                                index: 104
                          system:
                            pattern: {type: Uri, value: 'http://snomed.info/sct'}
                            mustSupport: true
                            index: 105
                          code: {mustSupport: true, index: 106}
                          display: {mustSupport: true, index: 107}
                        required: [extension, display, system, code]
            required: [extension]
        category-laterality:
          match: {}
          schema:
            mustSupport: true
            index: 108
            extensions:
              ext-mi-category-type:
                url: http://ontariohealth.ca/fhir/StructureDefinition/ext-mi-category-type
                type: Extension
                mustSupport: true
                index: 110
                elements:
                  value:
                    choices: []
                    index: 112
                    slicing:
                      rules: open
                      ordered: false
                      discriminator:
                      - {path: $this, type: type}
                      min: null
                      slices:
                        valueCoding:
                          match: {}
                          schema:
                            pattern:
                              type: Coding
                              value: {code: '272741003', system: 'http://snomed.info/sct', display: Laterality}
                            choices: []
                            index: 114
            elements:
              extension:
                index: 109
                slicing:
                  rules: open
                  discriminator:
                  - {path: url, type: value}
                  min: 1
                  slices:
                    ext-mi-category-type:
                      match: {url: null}
                      schema:
                        type: Extension
                        mustSupport: true
                        url: http://ontariohealth.ca/fhir/StructureDefinition/ext-mi-category-type
                        index: 110
                        elements:
                          value:
                            choices: []
                            index: 112
                            slicing:
                              rules: open
                              ordered: false
                              discriminator:
                              - {path: $this, type: type}
                              min: null
                              slices:
                                valueCoding:
                                  match: {}
                                  schema:
                                    pattern:
                                      type: Coding
                                      value: {code: '272741003', system: 'http://snomed.info/sct', display: Laterality}
                                    choices: []
                                    index: 114
              coding:
                array: true
                min: 2
                index: 115
                extensions:
                  ext-mi-code-type: {url: 'http://ontariohealth.ca/fhir/StructureDefinition/ext-mi-code-type', min: 1, max: 1, type: Extension, mustSupport: true, index: 117}
                elements:
                  extension:
                    index: 116
                    slicing:
                      rules: open
                      discriminator:
                      - {path: url, type: value}
                      min: 1
                      slices:
                        ext-mi-code-type:
                          match: {url: null}
                          schema: {type: Extension, mustSupport: true, url: 'http://ontariohealth.ca/fhir/StructureDefinition/ext-mi-code-type', index: 117}
                          min: 1
                          max: 1
                required: [extension]
                slicing:
                  rules: open
                  discriminator:
                  - {path: $this, type: pattern}
                  min: 2
                  slices:
                    dicom:
                      match: {}
                      schema:
                        short: DICOM body part code
                        binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/mi-procedure-laterality-dicom'}
                        mustSupport: true
                        _required: true
                        index: 118
                        extensions:
                          ext-mi-code-type:
                            url: http://ontariohealth.ca/fhir/StructureDefinition/ext-mi-code-type
                            type: Extension
                            mustSupport: true
                            index: 120
                            elements:
                              value:
                                choices: []
                                index: 122
                                slicing:
                                  rules: open
                                  ordered: false
                                  discriminator:
                                  - {path: $this, type: type}
                                  min: null
                                  slices:
                                    valueCode:
                                      match: {}
                                      schema:
                                        pattern: {type: Code, value: dicom}
                                        choices: []
                                        index: 124
                        elements:
                          extension:
                            index: 119
                            slicing:
                              rules: open
                              discriminator:
                              - {path: url, type: value}
                              min: 1
                              slices:
                                ext-mi-code-type:
                                  match: {url: null}
                                  schema:
                                    type: Extension
                                    mustSupport: true
                                    url: http://ontariohealth.ca/fhir/StructureDefinition/ext-mi-code-type
                                    index: 120
                                    elements:
                                      value:
                                        choices: []
                                        index: 122
                                        slicing:
                                          rules: open
                                          ordered: false
                                          discriminator:
                                          - {path: $this, type: type}
                                          min: null
                                          slices:
                                            valueCode:
                                              match: {}
                                              schema:
                                                pattern: {type: Code, value: dicom}
                                                choices: []
                                                index: 124
                          system:
                            pattern: {type: Uri, value: 'http://dicom.nema.org/resources/ontology/DCM'}
                            mustSupport: true
                            index: 125
                          code: {mustSupport: true, index: 126}
                          display: {mustSupport: true, index: 127}
                        required: [extension, display, system, code]
                    sct:
                      match: {}
                      schema:
                        short: SNOMED CT body part code
                        binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/mi-procedure-laterality-sct'}
                        mustSupport: true
                        _required: true
                        index: 128
                        extensions:
                          ext-mi-code-type:
                            url: http://ontariohealth.ca/fhir/StructureDefinition/ext-mi-code-type
                            type: Extension
                            mustSupport: true
                            index: 130
                            elements:
                              value:
                                choices: []
                                index: 132
                                slicing:
                                  rules: open
                                  ordered: false
                                  discriminator:
                                  - {path: $this, type: type}
                                  min: null
                                  slices:
                                    valueCode:
                                      match: {}
                                      schema:
                                        pattern: {type: Code, value: sct}
                                        choices: []
                                        index: 134
                        elements:
                          extension:
                            index: 129
                            slicing:
                              rules: open
                              discriminator:
                              - {path: url, type: value}
                              min: 1
                              slices:
                                ext-mi-code-type:
                                  match: {url: null}
                                  schema:
                                    type: Extension
                                    mustSupport: true
                                    url: http://ontariohealth.ca/fhir/StructureDefinition/ext-mi-code-type
                                    index: 130
                                    elements:
                                      value:
                                        choices: []
                                        index: 132
                                        slicing:
                                          rules: open
                                          ordered: false
                                          discriminator:
                                          - {path: $this, type: type}
                                          min: null
                                          slices:
                                            valueCode:
                                              match: {}
                                              schema:
                                                pattern: {type: Code, value: sct}
                                                choices: []
                                                index: 134
                          system:
                            pattern: {type: Uri, value: 'http://snomed.info/sct'}
                            mustSupport: true
                            index: 135
                          code: {mustSupport: true, index: 136}
                          display: {mustSupport: true, index: 137}
                        required: [extension, display, system, code]
            required: [extension]
        category-contrast:
          match: {}
          schema:
            binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/mi-procedure-contrast-used'}
            mustSupport: true
            index: 138
            extensions:
              ext-mi-category-type:
                url: http://ontariohealth.ca/fhir/StructureDefinition/ext-mi-category-type
                type: Extension
                mustSupport: true
                index: 140
                elements:
                  value:
                    choices: []
                    index: 142
                    slicing:
                      rules: open
                      ordered: false
                      discriminator:
                      - {path: $this, type: type}
                      min: null
                      slices:
                        valueCoding:
                          match: {}
                          schema:
                            pattern:
                              type: Coding
                              value: {code: '263543005', system: 'http://snomed.info/sct', display: Contrast used}
                            choices: []
                            index: 144
            elements:
              extension:
                index: 139
                slicing:
                  rules: open
                  discriminator:
                  - {path: url, type: value}
                  min: 1
                  slices:
                    ext-mi-category-type:
                      match: {url: null}
                      schema:
                        type: Extension
                        mustSupport: true
                        url: http://ontariohealth.ca/fhir/StructureDefinition/ext-mi-category-type
                        index: 140
                        elements:
                          value:
                            choices: []
                            index: 142
                            slicing:
                              rules: open
                              ordered: false
                              discriminator:
                              - {path: $this, type: type}
                              min: null
                              slices:
                                valueCoding:
                                  match: {}
                                  schema:
                                    pattern:
                                      type: Coding
                                      value: {code: '263543005', system: 'http://snomed.info/sct', display: Contrast used}
                                    choices: []
                                    index: 144
              coding:
                mustSupport: true
                index: 145
                elements:
                  system: {mustSupport: true, index: 146}
                  code: {mustSupport: true, index: 147}
                  display: {mustSupport: true, index: 148}
                required: [display, system, code]
            required: [extension]
  meta:
    mustSupport: true
    index: 0
    elements:
      profile:
        mustSupport: true
        pattern: {type: Canonical, value: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mi-profile-ServiceRequest|1.0.0'}
        index: 1
    required: [profile]
  supportingInfo:
    mustSupport: true
    index: 198
    elements:
      display: {mustSupport: true, index: 199}
    required: [display]
  encounter:
    type: Reference
    mustSupport: true
    refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mi-profile-Encounter']
    index: 190
  reasonCode: {mustSupport: true, index: 197}
  authoredOn: {mustSupport: true, index: 193}
  note: {mustSupport: true, index: 200}
  requisition:
    mustSupport: true
    index: 39
    elements:
      type:
        mustSupport: true
        index: 40
        elements:
          coding:
            mustSupport: true
            index: 41
            elements:
              system:
                pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
                mustSupport: true
                index: 42
              code:
                pattern: {type: Code, value: PLAC}
                mustSupport: true
                index: 43
              display:
                pattern: {type: String, value: Placer Identifier}
                mustSupport: true
                index: 44
            required: [display, system, code]
        required: [coding]
      system: {mustSupport: true, index: 45}
      value: {mustSupport: true, index: 46}
    required: [value, type, system]
  extension:
    index: 2
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: 0
      slices:
        ext-mi-copied-to-provider:
          match: {url: null}
          schema: {type: Extension, url: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mi-ext-cc-list', index: 3}
          min: 0
  locationReference:
    type: Reference
    refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mi-profile-location']
    index: 196
  requester:
    type: Reference
    mustSupport: true
    refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mi-profile-Organization', 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mi-profile-Practitioner', 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mi-profile-PractitionerRole']
    index: 194
  priority: {mustSupport: true, index: 149}
  status: {mustSupport: true, index: 47}
  code:
    mustSupport: true
    index: 150
    elements:
      coding:
        mustSupport: true
        index: 151
        extensions:
          ext-mi-code-type: {url: 'http://ontariohealth.ca/fhir/StructureDefinition/ext-mi-code-type', min: 1, max: 1, type: Extension, mustSupport: true, index: 153}
        elements:
          extension:
            index: 152
            slicing:
              rules: open
              discriminator:
              - {path: url, type: value}
              min: 1
              slices:
                ext-mi-code-type:
                  match: {url: null}
                  schema: {type: Extension, mustSupport: true, url: 'http://ontariohealth.ca/fhir/StructureDefinition/ext-mi-code-type', index: 153}
                  min: 1
                  max: 1
          code: {mustSupport: true, index: 154}
          display: {mustSupport: true, index: 155}
        required: [extension, display, code]
        slicing:
          rules: open
          discriminator:
          - {path: system, type: value}
          min: 1
          slices:
            coding-local:
              match: {system: null}
              schema:
                short: Local procedure code
                mustSupport: true
                _required: true
                index: 156
                extensions:
                  ext-mi-code-type:
                    url: http://ontariohealth.ca/fhir/StructureDefinition/ext-mi-code-type
                    type: Extension
                    mustSupport: true
                    index: 158
                    elements:
                      value:
                        choices: []
                        index: 160
                        slicing:
                          rules: open
                          ordered: false
                          discriminator:
                          - {path: $this, type: type}
                          min: null
                          slices:
                            valueCode:
                              match: {}
                              schema:
                                pattern: {type: Code, value: local}
                                choices: []
                                index: 162
                elements:
                  extension:
                    index: 157
                    slicing:
                      rules: open
                      discriminator:
                      - {path: url, type: value}
                      min: 1
                      slices:
                        ext-mi-code-type:
                          match: {url: null}
                          schema:
                            type: Extension
                            mustSupport: true
                            url: http://ontariohealth.ca/fhir/StructureDefinition/ext-mi-code-type
                            index: 158
                            elements:
                              value:
                                choices: []
                                index: 160
                                slicing:
                                  rules: open
                                  ordered: false
                                  discriminator:
                                  - {path: $this, type: type}
                                  min: null
                                  slices:
                                    valueCode:
                                      match: {}
                                      schema:
                                        pattern: {type: Code, value: local}
                                        choices: []
                                        index: 162
                  system: {mustSupport: true, index: 163}
                  code: {mustSupport: true, index: 164}
                  display: {mustSupport: true, index: 165}
                required: [extension, display, system, code]
            coding-provincial:
              match: {system: 'http://ontariohealth.ca/fhir/CodeSystem/procedure-type-mi-provincial'}
              schema:
                short: Provincial procedure code
                binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/mi-procedure-type-provincial'}
                mustSupport: true
                index: 166
                extensions:
                  ext-mi-code-type:
                    url: http://ontariohealth.ca/fhir/StructureDefinition/ext-mi-code-type
                    type: Extension
                    mustSupport: true
                    index: 168
                    elements:
                      value:
                        choices: []
                        index: 170
                        slicing:
                          rules: open
                          ordered: false
                          discriminator:
                          - {path: $this, type: type}
                          min: null
                          slices:
                            valueCode:
                              match: {}
                              schema:
                                pattern: {type: Code, value: provincial}
                                choices: []
                                index: 172
                elements:
                  extension:
                    index: 167
                    slicing:
                      rules: open
                      discriminator:
                      - {path: url, type: value}
                      min: 1
                      slices:
                        ext-mi-code-type:
                          match: {url: null}
                          schema:
                            type: Extension
                            mustSupport: true
                            url: http://ontariohealth.ca/fhir/StructureDefinition/ext-mi-code-type
                            index: 168
                            elements:
                              value:
                                choices: []
                                index: 170
                                slicing:
                                  rules: open
                                  ordered: false
                                  discriminator:
                                  - {path: $this, type: type}
                                  min: null
                                  slices:
                                    valueCode:
                                      match: {}
                                      schema:
                                        pattern: {type: Code, value: provincial}
                                        choices: []
                                        index: 172
                  system:
                    pattern: {type: Uri, value: 'http://ontariohealth.ca/fhir/CodeSystem/procedure-type-mi-provincial'}
                    mustSupport: true
                    index: 173
                  code: {mustSupport: true, index: 174}
                  display: {mustSupport: true, index: 175}
                required: [extension, display, system, code]
            coding-sct:
              match: {system: 'http://snomed.info/sct'}
              schema:
                short: SNOMED CT procedure code
                binding: {strength: required, valueSet: 'http://ontariohealth.ca/fhir/ValueSet/mi-procedure-type-sct'}
                mustSupport: true
                index: 176
                extensions:
                  ext-mi-code-type:
                    url: http://ontariohealth.ca/fhir/StructureDefinition/ext-mi-code-type
                    type: Extension
                    mustSupport: true
                    index: 178
                    elements:
                      value:
                        choices: []
                        index: 180
                        slicing:
                          rules: open
                          ordered: false
                          discriminator:
                          - {path: $this, type: type}
                          min: null
                          slices:
                            valueCode:
                              match: {}
                              schema:
                                pattern: {type: Code, value: sct}
                                choices: []
                                index: 182
                elements:
                  extension:
                    index: 177
                    slicing:
                      rules: open
                      discriminator:
                      - {path: url, type: value}
                      min: 1
                      slices:
                        ext-mi-code-type:
                          match: {url: null}
                          schema:
                            type: Extension
                            mustSupport: true
                            url: http://ontariohealth.ca/fhir/StructureDefinition/ext-mi-code-type
                            index: 178
                            elements:
                              value:
                                choices: []
                                index: 180
                                slicing:
                                  rules: open
                                  ordered: false
                                  discriminator:
                                  - {path: $this, type: type}
                                  min: null
                                  slices:
                                    valueCode:
                                      match: {}
                                      schema:
                                        pattern: {type: Code, value: sct}
                                        choices: []
                                        index: 182
                  system:
                    pattern: {type: Uri, value: 'http://snomed.info/sct'}
                    mustSupport: true
                    index: 183
                  code: {mustSupport: true, index: 184}
                  display: {mustSupport: true, index: 185}
                required: [extension, display, system, code]
    required: [coding]
  identifier:
    mustSupport: true
    index: 4
    slicing:
      rules: open
      description: must contain one repetition of an accession number.
      discriminator:
      - {path: type.coding.code, type: value}
      min: 1
      slices:
        identifier-accession:
          match:
            type:
              coding: {code: ACSN}
          schema:
            short: Accession ID
            mustSupport: true
            _required: true
            index: 5
            elements:
              type:
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: ACSN, system: 'http://terminology.hl7.org/CodeSystem/v2-0203', display: Accession ID}
                index: 6
                elements:
                  coding:
                    index: 7
                    elements:
                      system: {mustSupport: true, index: 8}
                      code:
                        pattern: {type: Code, value: ACSN}
                        mustSupport: true
                        index: 9
                      display: {mustSupport: true, index: 10}
                    required: [display, system, code]
                required: [coding]
              system: {mustSupport: true, index: 11}
              value: {mustSupport: true, index: 12}
            required: [value, type, system]
        identifier-placerOrderNumber:
          match:
            type:
              coding: {code: PLAC}
          schema:
            index: 13
            elements:
              type:
                mustSupport: true
                index: 14
                elements:
                  coding:
                    mustSupport: true
                    index: 15
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
                        mustSupport: true
                        index: 16
                      code:
                        pattern: {type: Code, value: PLAC}
                        mustSupport: true
                        index: 17
                      display: {mustSupport: true, index: 18}
                    required: [display, system, code]
                required: [coding]
              system: {mustSupport: true, index: 19}
              value: {mustSupport: true, index: 20}
            required: [value, type, system]
  intent: {mustSupport: true, index: 48}
  replaces:
    type: Reference
    mustSupport: true
    refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mi-profile-ServiceRequest']
    index: 30
    elements:
      identifier:
        mustSupport: true
        index: 31
        elements:
          type:
            mustSupport: true
            index: 32
            elements:
              coding:
                mustSupport: true
                index: 33
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
                    mustSupport: true
                    index: 34
                  code:
                    pattern: {type: Code, value: PLAC}
                    mustSupport: true
                    index: 35
                  display: {mustSupport: true, index: 36}
                required: [display, system, code]
            required: [coding]
          system: {mustSupport: true, index: 37}
          value: {mustSupport: true, index: 38}
        required: [value, type, system]
    required: [identifier]
  orderDetail:
    mustSupport: true
    index: 186
    elements:
      coding: {mustSupport: true, index: 187}
      text: {mustSupport: true, index: 188}
    required: [text]
  basedOn:
    type: Reference
    mustSupport: true
    refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mi-profile-ServiceRequest']
    index: 21
    elements:
      identifier:
        mustSupport: true
        index: 22
        elements:
          type:
            mustSupport: true
            index: 23
            elements:
              coding:
                mustSupport: true
                index: 24
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
                    mustSupport: true
                    index: 25
                  code:
                    pattern: {type: Code, value: PLAC}
                    mustSupport: true
                    index: 26
                  display: {mustSupport: true, index: 27}
                required: [display, system, code]
            required: [coding]
          system: {mustSupport: true, index: 28}
          value: {mustSupport: true, index: 29}
        required: [value, type, system]
    required: [identifier]
  subject:
    type: Reference
    mustSupport: true
    refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mi-profile-patient']
    index: 189
  occurrence:
    mustSupport: true
    choices: []
    index: 192
  performer:
    type: Reference
    mustSupport: true
    refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mi-profile-organization']
    index: 195
package_version: 0.9.3-beta
extensions:
  ext-mi-copied-to-provider: {url: 'http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mi-ext-cc-list', min: 0, type: Extension, index: 3}
class: profile
kind: resource
url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-mi-profile-ServiceRequest
base: http://hl7.org/fhir/StructureDefinition/ServiceRequest
version: 0.1.0
required: [identifier, meta, code]