PackagesCanonicalsLogsProblems
    Packages
    rapport.endoscopie.quebec@0.9.0-beta
    https://extranet.ti.msss.rtss.qc.ca/FHIR/Endo/StructureDefinition/EndoProcedure
description: Procédure
package_name: rapport.endoscopie.quebec
derivation: constraint
name: EndoProcedure
type: Procedure
elements:
  report:
    type: Reference
    mustSupport: true
    refers: ['https://extranet.ti.msss.rtss.qc.ca/FHIR/Endo/StructureDefinition/EndoDiagnosticReport', 'https://extranet.ti.msss.rtss.qc.ca/FHIR/Endo/StructureDefinition/EndoDocumentReference']
    index: 73
  usedCode:
    mustSupport: true
    index: 94
    slicing:
      rules: open
      discriminator:
      - {path: extension.value, type: value}
      min: null
      slices:
        unplannedIntervention:
          match:
            extension: {value: null}
          schema:
            mustSupport: true
            array: true
            index: 95
            extensions:
              sliceType:
                url: http://hl7.org/fhir/StructureDefinition/originalText
                type: Extension
                index: 97
                elements:
                  value:
                    pattern: {type: string, value: unplannedIntervention}
                    choices: []
                    type: string
                    index: 99
            elements:
              extension:
                index: 96
                slicing:
                  slices:
                    sliceType:
                      match: {}
                      schema:
                        type: Extension
                        url: http://hl7.org/fhir/StructureDefinition/originalText
                        index: 97
                        elements:
                          value:
                            pattern: {type: string, value: unplannedIntervention}
                            choices: []
                            type: string
                            index: 99
              coding:
                binding: {strength: required, valueSet: 'https://extranet.ti.msss.rtss.qc.ca/FHIR/Endo/ValueSet/InterventionNonPlanifieeEndo'}
                mustSupport: true
                index: 100
                elements:
                  system: {mustSupport: true, index: 101}
                  code: {mustSupport: true, index: 102}
                  display: {mustSupport: true, index: 103}
            required: [extension]
  meta:
    mustSupport: true
    index: 0
    elements:
      source: {mustSupport: true, index: 1}
      profile: {mustSupport: true, index: 2}
      security:
        mustSupport: true
        index: 3
        elements:
          system: {mustSupport: true, index: 4}
          code: {mustSupport: true, index: 5}
          display: {mustSupport: true, index: 6}
      tag:
        mustSupport: true
        index: 7
        elements:
          system: {mustSupport: true, index: 8}
          code: {mustSupport: true, index: 9}
          display: {mustSupport: true, index: 10}
    required: [source]
  encounter:
    mustSupport: true
    index: 55
    elements:
      identifier:
        mustSupport: true
        index: 56
        elements:
          use:
            pattern: {type: code, value: official}
            mustSupport: true
            type: code
            index: 57
          value: {mustSupport: true, index: 58}
        required: [use, value]
    required: [identifier]
  performed:
    mustSupport: true
    choices: [performedDateTime]
    index: 60
  note:
    index: 81
    slicing:
      rules: open
      discriminator:
      - {path: author, type: value}
      min: null
      slices:
        medicationNote:
          match: {author: medicationNote}
          schema:
            array: true
            index: 82
            elements:
              author:
                short: Type of note
                pattern: {type: string, value: medicationNote}
                choices: [authorString]
                type: string
                index: 84
              authorString:
                type: string
                short: Type of note
                pattern: {type: string, value: medicationNote}
                choiceOf: author
                index: 85
            required: [author, authorString]
        otherNote:
          match: {author: otherNote}
          schema:
            array: true
            index: 86
            elements:
              author:
                short: Type of note
                pattern: {type: string, value: otherNote}
                choices: [authorString]
                type: string
                index: 88
              authorString:
                type: string
                short: Type of note
                pattern: {type: string, value: otherNote}
                choiceOf: author
                index: 89
            required: [author, authorString]
        complicationNote:
          match: {author: complicationNote}
          schema:
            array: true
            index: 90
            elements:
              author:
                pattern: {type: string, value: complicationNote}
                choices: [authorString]
                type: string
                index: 92
              authorString:
                type: string
                pattern: {type: string, value: complicationNote}
                choiceOf: author
                index: 93
            required: [author, authorString]
  extension:
    index: 11
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        previousColonoscopy:
          match: {url: null}
          schema:
            type: Extension
            mustSupport: true
            url: https://extranet.ti.msss.rtss.qc.ca/FHIR/Endo/StructureDefinition/EndoPreviousColonoscopy
            index: 12
            extensions:
              previousColonoscopy:
                url: null
                mustSupport: true
                index: 13
                elements:
                  value:
                    mustSupport: true
                    choices: []
                    index: 15
              previousColonoscopyDate:
                url: null
                mustSupport: true
                index: 16
                elements:
                  value:
                    mustSupport: true
                    choices: []
                    index: 18
            elements:
              extension:
                mustSupport: true
                index: 13
                slicing:
                  slices:
                    previousColonoscopy:
                      match: {}
                      schema:
                        mustSupport: true
                        index: 13
                        elements:
                          value:
                            mustSupport: true
                            choices: []
                            index: 15
                    previousColonoscopyDate:
                      match: {}
                      schema:
                        mustSupport: true
                        index: 16
                        elements:
                          value:
                            mustSupport: true
                            choices: []
                            index: 18
        procedureTimes:
          match: {url: null}
          schema:
            type: Extension
            mustSupport: true
            url: https://extranet.ti.msss.rtss.qc.ca/FHIR/Endo/StructureDefinition/EndoProcedureTimes
            index: 19
            extensions:
              StartTime:
                url: null
                mustSupport: true
                index: 20
                elements:
                  value:
                    mustSupport: true
                    choices: []
                    index: 22
              EndTime:
                url: null
                mustSupport: true
                index: 23
                elements:
                  value:
                    mustSupport: true
                    choices: []
                    index: 25
              WithdrawalTime:
                url: null
                mustSupport: true
                index: 26
                elements:
                  value:
                    mustSupport: true
                    choices: []
                    index: 28
                  value[x]:
                    elements:
                      value: {mustSupport: true, index: 29}
                      unit:
                        pattern: {type: string, value: min}
                        mustSupport: true
                        type: string
                        index: 30
                      system: {mustSupport: true, index: 31}
                      code: {mustSupport: true, index: 32}
            elements:
              extension:
                mustSupport: true
                index: 20
                slicing:
                  slices:
                    StartTime:
                      match: {}
                      schema:
                        mustSupport: true
                        index: 20
                        elements:
                          value:
                            mustSupport: true
                            choices: []
                            index: 22
                    EndTime:
                      match: {}
                      schema:
                        mustSupport: true
                        index: 23
                        elements:
                          value:
                            mustSupport: true
                            choices: []
                            index: 25
                    WithdrawalTime:
                      match: {}
                      schema:
                        mustSupport: true
                        index: 26
                        elements:
                          value:
                            mustSupport: true
                            choices: []
                            index: 28
                          value[x]:
                            elements:
                              value: {mustSupport: true, index: 29}
                              unit:
                                pattern: {type: string, value: min}
                                mustSupport: true
                                type: string
                                index: 30
                              system: {mustSupport: true, index: 31}
                              code: {mustSupport: true, index: 32}
        endoConsentTo:
          match: {url: null}
          schema: {type: Extension, mustSupport: true, url: 'https://extranet.ti.msss.rtss.qc.ca/FHIR/Endo/StructureDefinition/EndoConsentTo', index: 33}
          min: 0
        endoMedicationByAnesthetist:
          match: {url: null}
          schema:
            type: Extension
            mustSupport: true
            url: https://extranet.ti.msss.rtss.qc.ca/FHIR/Endo/StructureDefinition/EndoMedicationByAnesthetist
            index: 34
            elements:
              value:
                short: Médication prise en charge par l'anesthésiste
                choices: []
                index: 36
  complication:
    mustSupport: true
    index: 74
    slicing:
      rules: open
      discriminator:
      - {path: coding.system, type: value}
      min: null
      slices:
        SNOMED-CT:
          match:
            coding: {system: 'http://snomed.info/sct'}
          schema:
            array: true
            index: 75
            elements:
              coding:
                binding: {strength: required, valueSet: 'https://extranet.ti.msss.rtss.qc.ca/FHIR/Endo/ValueSet/ComplicationEndo'}
                mustSupport: true
                index: 76
                elements:
                  system:
                    pattern: {type: uri, value: 'http://snomed.info/sct'}
                    mustSupport: true
                    type: uri
                    index: 77
                  code: {mustSupport: true, index: 78}
                  display: {mustSupport: true, index: 79}
                required: [system]
              text: {mustSupport: true, index: 80}
  status:
    pattern: {type: code, value: completed}
    type: code
    index: 47
  performedDateTime: {type: dateTime, mustSupport: true, choiceOf: performed, index: 61}
  code:
    mustSupport: true
    index: 48
    elements:
      coding:
        binding: {strength: required, valueSet: 'https://extranet.ti.msss.rtss.qc.ca/FHIR/Endo/ValueSet/ColoscopieTypeEndo'}
        mustSupport: true
        index: 49
        elements:
          system: {mustSupport: true, index: 50}
          code: {mustSupport: true, index: 51}
          display: {mustSupport: true, index: 52}
      text: {mustSupport: true, index: 53}
    required: [coding]
  identifier:
    mustSupport: true
    index: 37
    elements:
      use: {mustSupport: true, index: 38}
      type:
        mustSupport: true
        index: 39
        elements:
          coding:
            mustSupport: true
            index: 40
            elements:
              system: {mustSupport: true, index: 41}
              code: {mustSupport: true, index: 42}
              display: {mustSupport: true, index: 43}
      system: {mustSupport: true, index: 44}
      value: {mustSupport: true, index: 45}
  basedOn:
    type: Reference
    refers: ['https://extranet.ti.msss.rtss.qc.ca/FHIR/Endo/StructureDefinition/EndoServiceRequest']
    index: 46
  location:
    type: Reference
    refers: ['https://extranet.ti.msss.rtss.qc.ca/FHIR/Endo/StructureDefinition/EndoLocation']
    index: 72
  subject:
    type: Reference
    mustSupport: true
    refers: ['https://extranet.ti.msss.rtss.qc.ca/FHIR/Endo/StructureDefinition/EndoPatient']
    index: 54
  performer:
    mustSupport: true
    index: 62
    elements:
      function:
        mustSupport: true
        index: 63
        elements:
          coding:
            binding: {strength: required, valueSet: 'https://extranet.ti.msss.rtss.qc.ca/FHIR/Endo/ValueSet/IntervenantProcedureEndo'}
            mustSupport: true
            index: 64
            elements:
              system: {mustSupport: true, index: 65}
              code: {mustSupport: true, index: 66}
              display: {mustSupport: true, index: 67}
          text: {mustSupport: true, index: 68}
      actor:
        type: Reference
        mustSupport: true
        refers: ['https://extranet.ti.msss.rtss.qc.ca/FHIR/Endo/StructureDefinition/EndoPractitioner']
        index: 69
        elements:
          identifier:
            elements:
              value: {mustSupport: true, index: 70}
              assigner:
                elements:
                  display:
                    binding: {strength: required, valueSet: 'https://extranet.ti.msss.rtss.qc.ca/FHIR/Endo/ValueSet/OrganisationOrdreEndo'}
                    index: 71
    required: [function]
package_version: 0.9.0-beta
extensions:
  previousColonoscopy:
    url: https://extranet.ti.msss.rtss.qc.ca/FHIR/Endo/StructureDefinition/EndoPreviousColonoscopy
    type: Extension
    mustSupport: true
    index: 12
    extensions:
      previousColonoscopy:
        url: null
        mustSupport: true
        index: 13
        elements:
          value:
            mustSupport: true
            choices: []
            index: 15
      previousColonoscopyDate:
        url: null
        mustSupport: true
        index: 16
        elements:
          value:
            mustSupport: true
            choices: []
            index: 18
    elements:
      extension:
        mustSupport: true
        index: 13
        slicing:
          slices:
            previousColonoscopy:
              match: {}
              schema:
                mustSupport: true
                index: 13
                elements:
                  value:
                    mustSupport: true
                    choices: []
                    index: 15
            previousColonoscopyDate:
              match: {}
              schema:
                mustSupport: true
                index: 16
                elements:
                  value:
                    mustSupport: true
                    choices: []
                    index: 18
  procedureTimes:
    url: https://extranet.ti.msss.rtss.qc.ca/FHIR/Endo/StructureDefinition/EndoProcedureTimes
    type: Extension
    mustSupport: true
    index: 19
    extensions:
      StartTime:
        url: null
        mustSupport: true
        index: 20
        elements:
          value:
            mustSupport: true
            choices: []
            index: 22
      EndTime:
        url: null
        mustSupport: true
        index: 23
        elements:
          value:
            mustSupport: true
            choices: []
            index: 25
      WithdrawalTime:
        url: null
        mustSupport: true
        index: 26
        elements:
          value:
            mustSupport: true
            choices: []
            index: 28
          value[x]:
            elements:
              value: {mustSupport: true, index: 29}
              unit:
                pattern: {type: string, value: min}
                mustSupport: true
                type: string
                index: 30
              system: {mustSupport: true, index: 31}
              code: {mustSupport: true, index: 32}
    elements:
      extension:
        mustSupport: true
        index: 20
        slicing:
          slices:
            StartTime:
              match: {}
              schema:
                mustSupport: true
                index: 20
                elements:
                  value:
                    mustSupport: true
                    choices: []
                    index: 22
            EndTime:
              match: {}
              schema:
                mustSupport: true
                index: 23
                elements:
                  value:
                    mustSupport: true
                    choices: []
                    index: 25
            WithdrawalTime:
              match: {}
              schema:
                mustSupport: true
                index: 26
                elements:
                  value:
                    mustSupport: true
                    choices: []
                    index: 28
                  value[x]:
                    elements:
                      value: {mustSupport: true, index: 29}
                      unit:
                        pattern: {type: string, value: min}
                        mustSupport: true
                        type: string
                        index: 30
                      system: {mustSupport: true, index: 31}
                      code: {mustSupport: true, index: 32}
  endoConsentTo: {url: 'https://extranet.ti.msss.rtss.qc.ca/FHIR/Endo/StructureDefinition/EndoConsentTo', min: 0, type: Extension, mustSupport: true, index: 33}
  endoMedicationByAnesthetist:
    url: https://extranet.ti.msss.rtss.qc.ca/FHIR/Endo/StructureDefinition/EndoMedicationByAnesthetist
    type: Extension
    mustSupport: true
    index: 34
    elements:
      value:
        short: Médication prise en charge par l'anesthésiste
        choices: []
        index: 36
class: profile
kind: resource
url: https://extranet.ti.msss.rtss.qc.ca/FHIR/Endo/StructureDefinition/EndoProcedure
base: http://hl7.org/fhir/StructureDefinition/Procedure
version: 0.9.0
required: [code, location, performed, performedDateTime, performer]