PackagesCanonicalsLogsProblems
    Packages
    sfm.030521@1.0.1
    http://ehelse.no/fhir/StructureDefinition/sfm-interactiondata
description: Data describing the interaction between two or more medications.
package_name: sfm.030521
derivation: constraint
name: SfmInteractiondata
type: Extension
elements:
  extension:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        relevance:
          match: {url: relevance}
          schema:
            short: Relevance of interaction
            _required: true
            index: 1
            elements:
              url:
                pattern: {type: Uri, value: relevance}
                index: 2
              value:
                choices: [valueCodeableConcept]
                index: 4
              valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 5}
              value[x]:
                elements:
                  coding:
                    elements:
                      system:
                        pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7483'}
                        index: 6
        situationcriterium:
          match: {url: situationcriterium}
          schema:
            short: Describes when the warning is relevant
            index: 7
            elements:
              url:
                pattern: {type: Uri, value: situationcriterium}
                index: 8
              value:
                choices: [valueString]
                index: 10
              valueString: {type: string, choiceOf: value, index: 11}
        source:
          match: {url: source}
          schema:
            short: Source used to identify interaction
            _required: true
            index: 22
            elements:
              url:
                pattern: {type: Uri, value: source}
                index: 23
              value:
                choices: [valueCodeableConcept]
                index: 25
              valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 26}
              value[x]:
                elements:
                  coding:
                    elements:
                      system:
                        pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7485'}
                        index: 27
        reference:
          match: {url: reference}
          schema:
            short: References to background information
            index: 39
            extensions:
              source:
                url: source
                index: 41
                elements:
                  url:
                    pattern: {type: Uri, value: source}
                    index: 42
                  value:
                    choices: [valueString]
                    index: 44
                  valueString: {type: string, choiceOf: value, index: 45}
              link:
                url: link
                index: 46
                elements:
                  url:
                    pattern: {type: Uri, value: link}
                    index: 47
                  value:
                    choices: [valueUrl]
                    index: 49
                  valueUrl: {type: url, choiceOf: value, index: 50}
            elements:
              extension:
                index: 40
                slicing:
                  rules: open
                  discriminator:
                  - {path: url, type: value}
                  min: null
                  slices:
                    source:
                      match: {url: source}
                      schema:
                        index: 41
                        elements:
                          url:
                            pattern: {type: Uri, value: source}
                            index: 42
                          value:
                            choices: [valueString]
                            index: 44
                          valueString: {type: string, choiceOf: value, index: 45}
                    link:
                      match: {url: link}
                      schema:
                        index: 46
                        elements:
                          url:
                            pattern: {type: Uri, value: link}
                            index: 47
                          value:
                            choices: [valueUrl]
                            index: 49
                          valueUrl: {type: url, choiceOf: value, index: 50}
              url:
                pattern: {type: Uri, value: reference}
                index: 51
              value:
                choices: []
                index: 53
        clinicalconsequence:
          match: {url: clinicalconsequence}
          schema:
            short: Conseques of not taking action
            _required: true
            index: 12
            elements:
              url:
                pattern: {type: Uri, value: clinicalconsequence}
                index: 13
              value:
                choices: [valueString]
                index: 15
              valueString: {type: string, choiceOf: value, index: 16}
        handling:
          match: {url: handling}
          schema:
            short: Actions that should be taken
            index: 28
            elements:
              url:
                pattern: {type: Uri, value: handling}
                index: 29
              value:
                choices: [valueString]
                index: 31
              valueString: {type: string, choiceOf: value, index: 32}
        interactionmechanism:
          match: {url: interactionmechanism}
          schema:
            short: What leads to interaction
            index: 17
            elements:
              url:
                pattern: {type: Uri, value: interactionmechanism}
                index: 18
              value:
                choices: [valueString]
                index: 20
              valueString: {type: string, choiceOf: value, index: 21}
        displayrule:
          match: {url: displayrule}
          schema:
            short: Rule for showing to user
            index: 33
            elements:
              url:
                pattern: {type: Uri, value: displayrule}
                index: 34
              value:
                choices: [valueCodeableConcept]
                index: 36
              valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 37}
              value[x]:
                elements:
                  coding:
                    elements:
                      system:
                        pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7442'}
                        index: 38
        substancegroup:
          match: {url: substancegroup}
          schema:
            short: identifies substances that interact
            _required: true
            index: 54
            extensions:
              name:
                url: name
                index: 56
                elements:
                  url:
                    pattern: {type: Uri, value: name}
                    index: 57
                  value:
                    choices: [valueString]
                    index: 59
                  valueString: {type: string, choiceOf: value, index: 60}
              substance:
                url: substance
                _required: true
                index: 61
                extensions:
                  atc:
                    url: atc
                    index: 63
                    elements:
                      url:
                        pattern: {type: Uri, value: atc}
                        index: 64
                      value:
                        choices: [valueCodeableConcept]
                        index: 66
                      valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 67}
                      value[x]:
                        elements:
                          coding:
                            elements:
                              system:
                                pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7180'}
                                index: 68
                  substance:
                    url: substance
                    _required: true
                    index: 69
                    elements:
                      url:
                        pattern: {type: Uri, value: substance}
                        index: 70
                      value:
                        choices: [valueString]
                        index: 72
                      valueString: {type: string, choiceOf: value, index: 73}
                  refsubstance:
                    url: refsubstance
                    index: 74
                    elements:
                      url:
                        pattern: {type: Uri, value: refsubstance}
                        index: 75
                      value:
                        choices: [valueReference]
                        index: 77
                      valueReference: {type: Reference, choiceOf: value, index: 78}
                elements:
                  extension:
                    index: 62
                    slicing:
                      rules: open
                      discriminator:
                      - {path: url, type: value}
                      min: null
                      slices:
                        atc:
                          match: {url: atc}
                          schema:
                            index: 63
                            elements:
                              url:
                                pattern: {type: Uri, value: atc}
                                index: 64
                              value:
                                choices: [valueCodeableConcept]
                                index: 66
                              valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 67}
                              value[x]:
                                elements:
                                  coding:
                                    elements:
                                      system:
                                        pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7180'}
                                        index: 68
                        substance:
                          match: {url: substance}
                          schema:
                            _required: true
                            index: 69
                            elements:
                              url:
                                pattern: {type: Uri, value: substance}
                                index: 70
                              value:
                                choices: [valueString]
                                index: 72
                              valueString: {type: string, choiceOf: value, index: 73}
                        refsubstance:
                          match: {url: refsubstance}
                          schema:
                            index: 74
                            elements:
                              url:
                                pattern: {type: Uri, value: refsubstance}
                                index: 75
                              value:
                                choices: [valueReference]
                                index: 77
                              valueReference: {type: Reference, choiceOf: value, index: 78}
                  url:
                    pattern: {type: Uri, value: substance}
                    index: 79
                  value:
                    choices: []
                    index: 81
            elements:
              extension:
                index: 55
                slicing:
                  rules: open
                  discriminator:
                  - {path: url, type: value}
                  min: null
                  slices:
                    name:
                      match: {url: name}
                      schema:
                        index: 56
                        elements:
                          url:
                            pattern: {type: Uri, value: name}
                            index: 57
                          value:
                            choices: [valueString]
                            index: 59
                          valueString: {type: string, choiceOf: value, index: 60}
                    substance:
                      match: {url: substance}
                      schema:
                        _required: true
                        index: 61
                        extensions:
                          atc:
                            url: atc
                            index: 63
                            elements:
                              url:
                                pattern: {type: Uri, value: atc}
                                index: 64
                              value:
                                choices: [valueCodeableConcept]
                                index: 66
                              valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 67}
                              value[x]:
                                elements:
                                  coding:
                                    elements:
                                      system:
                                        pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7180'}
                                        index: 68
                          substance:
                            url: substance
                            _required: true
                            index: 69
                            elements:
                              url:
                                pattern: {type: Uri, value: substance}
                                index: 70
                              value:
                                choices: [valueString]
                                index: 72
                              valueString: {type: string, choiceOf: value, index: 73}
                          refsubstance:
                            url: refsubstance
                            index: 74
                            elements:
                              url:
                                pattern: {type: Uri, value: refsubstance}
                                index: 75
                              value:
                                choices: [valueReference]
                                index: 77
                              valueReference: {type: Reference, choiceOf: value, index: 78}
                        elements:
                          extension:
                            index: 62
                            slicing:
                              rules: open
                              discriminator:
                              - {path: url, type: value}
                              min: null
                              slices:
                                atc:
                                  match: {url: atc}
                                  schema:
                                    index: 63
                                    elements:
                                      url:
                                        pattern: {type: Uri, value: atc}
                                        index: 64
                                      value:
                                        choices: [valueCodeableConcept]
                                        index: 66
                                      valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 67}
                                      value[x]:
                                        elements:
                                          coding:
                                            elements:
                                              system:
                                                pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7180'}
                                                index: 68
                                substance:
                                  match: {url: substance}
                                  schema:
                                    _required: true
                                    index: 69
                                    elements:
                                      url:
                                        pattern: {type: Uri, value: substance}
                                        index: 70
                                      value:
                                        choices: [valueString]
                                        index: 72
                                      valueString: {type: string, choiceOf: value, index: 73}
                                refsubstance:
                                  match: {url: refsubstance}
                                  schema:
                                    index: 74
                                    elements:
                                      url:
                                        pattern: {type: Uri, value: refsubstance}
                                        index: 75
                                      value:
                                        choices: [valueReference]
                                        index: 77
                                      valueReference: {type: Reference, choiceOf: value, index: 78}
                          url:
                            pattern: {type: Uri, value: substance}
                            index: 79
                          value:
                            choices: []
                            index: 81
              url:
                pattern: {type: Uri, value: substancegroup}
                index: 82
              value:
                choices: []
                index: 84
  url:
    pattern: {type: Uri, value: 'http://ehelse.no/fhir/StructureDefinition/sfm-interactiondata'}
    index: 85
  value:
    choices: []
    index: 87
package_version: 1.0.1
extensions:
  relevance:
    url: relevance
    short: Relevance of interaction
    _required: true
    index: 1
    elements:
      url:
        pattern: {type: Uri, value: relevance}
        index: 2
      value:
        choices: [valueCodeableConcept]
        index: 4
      valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 5}
      value[x]:
        elements:
          coding:
            elements:
              system:
                pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7483'}
                index: 6
  situationcriterium:
    url: situationcriterium
    short: Describes when the warning is relevant
    index: 7
    elements:
      url:
        pattern: {type: Uri, value: situationcriterium}
        index: 8
      value:
        choices: [valueString]
        index: 10
      valueString: {type: string, choiceOf: value, index: 11}
  source:
    url: source
    short: Source used to identify interaction
    _required: true
    index: 22
    elements:
      url:
        pattern: {type: Uri, value: source}
        index: 23
      value:
        choices: [valueCodeableConcept]
        index: 25
      valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 26}
      value[x]:
        elements:
          coding:
            elements:
              system:
                pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7485'}
                index: 27
  reference:
    url: reference
    short: References to background information
    index: 39
    extensions:
      source:
        url: source
        index: 41
        elements:
          url:
            pattern: {type: Uri, value: source}
            index: 42
          value:
            choices: [valueString]
            index: 44
          valueString: {type: string, choiceOf: value, index: 45}
      link:
        url: link
        index: 46
        elements:
          url:
            pattern: {type: Uri, value: link}
            index: 47
          value:
            choices: [valueUrl]
            index: 49
          valueUrl: {type: url, choiceOf: value, index: 50}
    elements:
      extension:
        index: 40
        slicing:
          rules: open
          discriminator:
          - {path: url, type: value}
          min: null
          slices:
            source:
              match: {url: source}
              schema:
                index: 41
                elements:
                  url:
                    pattern: {type: Uri, value: source}
                    index: 42
                  value:
                    choices: [valueString]
                    index: 44
                  valueString: {type: string, choiceOf: value, index: 45}
            link:
              match: {url: link}
              schema:
                index: 46
                elements:
                  url:
                    pattern: {type: Uri, value: link}
                    index: 47
                  value:
                    choices: [valueUrl]
                    index: 49
                  valueUrl: {type: url, choiceOf: value, index: 50}
      url:
        pattern: {type: Uri, value: reference}
        index: 51
      value:
        choices: []
        index: 53
  clinicalconsequence:
    url: clinicalconsequence
    short: Conseques of not taking action
    _required: true
    index: 12
    elements:
      url:
        pattern: {type: Uri, value: clinicalconsequence}
        index: 13
      value:
        choices: [valueString]
        index: 15
      valueString: {type: string, choiceOf: value, index: 16}
  handling:
    url: handling
    short: Actions that should be taken
    index: 28
    elements:
      url:
        pattern: {type: Uri, value: handling}
        index: 29
      value:
        choices: [valueString]
        index: 31
      valueString: {type: string, choiceOf: value, index: 32}
  interactionmechanism:
    url: interactionmechanism
    short: What leads to interaction
    index: 17
    elements:
      url:
        pattern: {type: Uri, value: interactionmechanism}
        index: 18
      value:
        choices: [valueString]
        index: 20
      valueString: {type: string, choiceOf: value, index: 21}
  displayrule:
    url: displayrule
    short: Rule for showing to user
    index: 33
    elements:
      url:
        pattern: {type: Uri, value: displayrule}
        index: 34
      value:
        choices: [valueCodeableConcept]
        index: 36
      valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 37}
      value[x]:
        elements:
          coding:
            elements:
              system:
                pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7442'}
                index: 38
  substancegroup:
    url: substancegroup
    short: identifies substances that interact
    _required: true
    index: 54
    extensions:
      name:
        url: name
        index: 56
        elements:
          url:
            pattern: {type: Uri, value: name}
            index: 57
          value:
            choices: [valueString]
            index: 59
          valueString: {type: string, choiceOf: value, index: 60}
      substance:
        url: substance
        _required: true
        index: 61
        extensions:
          atc:
            url: atc
            index: 63
            elements:
              url:
                pattern: {type: Uri, value: atc}
                index: 64
              value:
                choices: [valueCodeableConcept]
                index: 66
              valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 67}
              value[x]:
                elements:
                  coding:
                    elements:
                      system:
                        pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7180'}
                        index: 68
          substance:
            url: substance
            _required: true
            index: 69
            elements:
              url:
                pattern: {type: Uri, value: substance}
                index: 70
              value:
                choices: [valueString]
                index: 72
              valueString: {type: string, choiceOf: value, index: 73}
          refsubstance:
            url: refsubstance
            index: 74
            elements:
              url:
                pattern: {type: Uri, value: refsubstance}
                index: 75
              value:
                choices: [valueReference]
                index: 77
              valueReference: {type: Reference, choiceOf: value, index: 78}
        elements:
          extension:
            index: 62
            slicing:
              rules: open
              discriminator:
              - {path: url, type: value}
              min: null
              slices:
                atc:
                  match: {url: atc}
                  schema:
                    index: 63
                    elements:
                      url:
                        pattern: {type: Uri, value: atc}
                        index: 64
                      value:
                        choices: [valueCodeableConcept]
                        index: 66
                      valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 67}
                      value[x]:
                        elements:
                          coding:
                            elements:
                              system:
                                pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7180'}
                                index: 68
                substance:
                  match: {url: substance}
                  schema:
                    _required: true
                    index: 69
                    elements:
                      url:
                        pattern: {type: Uri, value: substance}
                        index: 70
                      value:
                        choices: [valueString]
                        index: 72
                      valueString: {type: string, choiceOf: value, index: 73}
                refsubstance:
                  match: {url: refsubstance}
                  schema:
                    index: 74
                    elements:
                      url:
                        pattern: {type: Uri, value: refsubstance}
                        index: 75
                      value:
                        choices: [valueReference]
                        index: 77
                      valueReference: {type: Reference, choiceOf: value, index: 78}
          url:
            pattern: {type: Uri, value: substance}
            index: 79
          value:
            choices: []
            index: 81
    elements:
      extension:
        index: 55
        slicing:
          rules: open
          discriminator:
          - {path: url, type: value}
          min: null
          slices:
            name:
              match: {url: name}
              schema:
                index: 56
                elements:
                  url:
                    pattern: {type: Uri, value: name}
                    index: 57
                  value:
                    choices: [valueString]
                    index: 59
                  valueString: {type: string, choiceOf: value, index: 60}
            substance:
              match: {url: substance}
              schema:
                _required: true
                index: 61
                extensions:
                  atc:
                    url: atc
                    index: 63
                    elements:
                      url:
                        pattern: {type: Uri, value: atc}
                        index: 64
                      value:
                        choices: [valueCodeableConcept]
                        index: 66
                      valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 67}
                      value[x]:
                        elements:
                          coding:
                            elements:
                              system:
                                pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7180'}
                                index: 68
                  substance:
                    url: substance
                    _required: true
                    index: 69
                    elements:
                      url:
                        pattern: {type: Uri, value: substance}
                        index: 70
                      value:
                        choices: [valueString]
                        index: 72
                      valueString: {type: string, choiceOf: value, index: 73}
                  refsubstance:
                    url: refsubstance
                    index: 74
                    elements:
                      url:
                        pattern: {type: Uri, value: refsubstance}
                        index: 75
                      value:
                        choices: [valueReference]
                        index: 77
                      valueReference: {type: Reference, choiceOf: value, index: 78}
                elements:
                  extension:
                    index: 62
                    slicing:
                      rules: open
                      discriminator:
                      - {path: url, type: value}
                      min: null
                      slices:
                        atc:
                          match: {url: atc}
                          schema:
                            index: 63
                            elements:
                              url:
                                pattern: {type: Uri, value: atc}
                                index: 64
                              value:
                                choices: [valueCodeableConcept]
                                index: 66
                              valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 67}
                              value[x]:
                                elements:
                                  coding:
                                    elements:
                                      system:
                                        pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7180'}
                                        index: 68
                        substance:
                          match: {url: substance}
                          schema:
                            _required: true
                            index: 69
                            elements:
                              url:
                                pattern: {type: Uri, value: substance}
                                index: 70
                              value:
                                choices: [valueString]
                                index: 72
                              valueString: {type: string, choiceOf: value, index: 73}
                        refsubstance:
                          match: {url: refsubstance}
                          schema:
                            index: 74
                            elements:
                              url:
                                pattern: {type: Uri, value: refsubstance}
                                index: 75
                              value:
                                choices: [valueReference]
                                index: 77
                              valueReference: {type: Reference, choiceOf: value, index: 78}
                  url:
                    pattern: {type: Uri, value: substance}
                    index: 79
                  value:
                    choices: []
                    index: 81
      url:
        pattern: {type: Uri, value: substancegroup}
        index: 82
      value:
        choices: []
        index: 84
class: extension
kind: complex-type
url: http://ehelse.no/fhir/StructureDefinition/sfm-interactiondata
base: http://hl7.org/fhir/StructureDefinition/Extension
version: '1.0'