PackagesCanonicalsLogsProblems
    Packages
    sfm.030521@1.0.1
    http://ehelse.no/fhir/StructureDefinition/sfm-warning
description: Medical warning handling documentation.
package_name: sfm.030521
derivation: constraint
name: SfmWarning
type: Extension
elements:
  extension:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        doublePrescription:
          match: {url: doublePrescription}
          schema:
            short: Double prescription
            index: 1
            extensions:
              reference:
                url: reference
                short: Referance to medication statements
                _required: true
                index: 3
                elements:
                  url:
                    pattern: {type: Uri, value: reference}
                    index: 4
                  value:
                    choices: [valueReference]
                    index: 6
                  valueReference:
                    type: Reference
                    choiceOf: value
                    refers: ['http://ehelse.no/fhir/StructureDefinition/sfm-MedicationStatement']
                    index: 7
              reason:
                url: reason
                short: Textual reason
                index: 8
                elements:
                  url:
                    pattern: {type: Uri, value: reason}
                    index: 9
                  value:
                    choices: [valueString]
                    index: 11
                  valueString: {type: string, choiceOf: value, index: 12}
              codedreason:
                url: codedreason
                short: coded reason
                index: 13
                elements:
                  url:
                    pattern: {type: Uri, value: codedreason}
                    index: 14
                  value:
                    choices: [valueCodeableConcept]
                    index: 16
                  valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 17}
                  value[x]:
                    elements:
                      coding:
                        elements:
                          system:
                            pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7535'}
                            index: 18
            elements:
              extension:
                index: 2
                slicing:
                  rules: open
                  discriminator:
                  - {path: url, type: value}
                  min: null
                  slices:
                    reference:
                      match: {url: reference}
                      schema:
                        short: Referance to medication statements
                        _required: true
                        index: 3
                        elements:
                          url:
                            pattern: {type: Uri, value: reference}
                            index: 4
                          value:
                            choices: [valueReference]
                            index: 6
                          valueReference:
                            type: Reference
                            choiceOf: value
                            refers: ['http://ehelse.no/fhir/StructureDefinition/sfm-MedicationStatement']
                            index: 7
                    reason:
                      match: {url: reason}
                      schema:
                        short: Textual reason
                        index: 8
                        elements:
                          url:
                            pattern: {type: Uri, value: reason}
                            index: 9
                          value:
                            choices: [valueString]
                            index: 11
                          valueString: {type: string, choiceOf: value, index: 12}
                    codedreason:
                      match: {url: codedreason}
                      schema:
                        short: coded reason
                        index: 13
                        elements:
                          url:
                            pattern: {type: Uri, value: codedreason}
                            index: 14
                          value:
                            choices: [valueCodeableConcept]
                            index: 16
                          valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 17}
                          value[x]:
                            elements:
                              coding:
                                elements:
                                  system:
                                    pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7535'}
                                    index: 18
              url:
                pattern: {type: Uri, value: doublePrescription}
                index: 19
              value:
                choices: []
                index: 21
        interaction:
          match: {url: interaction}
          schema:
            short: Interaction information
            index: 22
            extensions:
              reference:
                url: reference
                short: Reference to MedicationStatement
                _required: true
                index: 24
                elements:
                  url:
                    pattern: {type: Uri, value: reference}
                    index: 25
                  value:
                    choices: [valueReference]
                    index: 27
                  valueReference:
                    type: Reference
                    choiceOf: value
                    refers: ['http://ehelse.no/fhir/StructureDefinition/sfm-MedicationStatement']
                    index: 28
              reason:
                url: reason
                short: Reason for continue with medication
                index: 29
                elements:
                  url:
                    pattern: {type: Uri, value: reason}
                    index: 30
                  value:
                    choices: [valueString]
                    index: 32
                  valueString: {type: string, choiceOf: value, index: 33}
              codedreason:
                url: codedreason
                short: coded reason for contiuing with medication
                index: 34
                elements:
                  url:
                    pattern: {type: Uri, value: codedreason}
                    index: 35
                  value:
                    choices: [valueCodeableConcept]
                    index: 37
                  valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 38}
                  value[x]:
                    elements:
                      coding:
                        elements:
                          system:
                            pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7535'}
                            index: 39
              interactiondata:
                url: interactiondata
                short: Information about the interaction identified
                index: 40
                elements:
                  url:
                    pattern: {type: Uri, value: interactiondata}
                    index: 41
                  value:
                    choices: [valueReference]
                    index: 43
                  valueReference:
                    type: Reference
                    choiceOf: value
                    refers: ['http://ehelse.no/fhir/StructureDefinition/sfm-Interaction']
                    index: 44
            elements:
              extension:
                index: 23
                slicing:
                  rules: open
                  discriminator:
                  - {path: url, type: value}
                  min: null
                  slices:
                    reference:
                      match: {url: reference}
                      schema:
                        short: Reference to MedicationStatement
                        _required: true
                        index: 24
                        elements:
                          url:
                            pattern: {type: Uri, value: reference}
                            index: 25
                          value:
                            choices: [valueReference]
                            index: 27
                          valueReference:
                            type: Reference
                            choiceOf: value
                            refers: ['http://ehelse.no/fhir/StructureDefinition/sfm-MedicationStatement']
                            index: 28
                    reason:
                      match: {url: reason}
                      schema:
                        short: Reason for continue with medication
                        index: 29
                        elements:
                          url:
                            pattern: {type: Uri, value: reason}
                            index: 30
                          value:
                            choices: [valueString]
                            index: 32
                          valueString: {type: string, choiceOf: value, index: 33}
                    codedreason:
                      match: {url: codedreason}
                      schema:
                        short: coded reason for contiuing with medication
                        index: 34
                        elements:
                          url:
                            pattern: {type: Uri, value: codedreason}
                            index: 35
                          value:
                            choices: [valueCodeableConcept]
                            index: 37
                          valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 38}
                          value[x]:
                            elements:
                              coding:
                                elements:
                                  system:
                                    pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7535'}
                                    index: 39
                    interactiondata:
                      match: {url: interactiondata}
                      schema:
                        short: Information about the interaction identified
                        index: 40
                        elements:
                          url:
                            pattern: {type: Uri, value: interactiondata}
                            index: 41
                          value:
                            choices: [valueReference]
                            index: 43
                          valueReference:
                            type: Reference
                            choiceOf: value
                            refers: ['http://ehelse.no/fhir/StructureDefinition/sfm-Interaction']
                            index: 44
              url:
                pattern: {type: Uri, value: interaction}
                index: 45
              value:
                choices: []
                index: 47
        allergyIntollerance:
          match: {url: allergyIntollerance}
          schema:
            short: Identified allergy intollerance
            index: 48
            extensions:
              reference:
                url: reference
                short: referance to medicalstatement
                _required: true
                index: 50
                elements:
                  url:
                    pattern: {type: Uri, value: reference}
                    index: 51
                  value:
                    choices: [valueReference]
                    index: 53
                  valueReference: {type: Reference, choiceOf: value, index: 54}
              reason:
                url: reason
                short: textual reason for continoue treatment
                index: 55
                elements:
                  url:
                    pattern: {type: Uri, value: reason}
                    index: 56
                  value:
                    choices: [valueString]
                    index: 58
                  valueString: {type: string, choiceOf: value, index: 59}
              codedreason:
                url: codedreason
                short: coded reason for continoue treatment
                index: 60
                elements:
                  url:
                    pattern: {type: Uri, value: codedreason}
                    index: 61
                  value:
                    choices: [valueCodeableConcept]
                    index: 63
                  valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 64}
                  value[x]:
                    elements:
                      coding:
                        elements:
                          system:
                            pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7535'}
                            index: 65
            elements:
              extension:
                index: 49
                slicing:
                  rules: open
                  discriminator:
                  - {path: url, type: value}
                  min: null
                  slices:
                    reference:
                      match: {url: reference}
                      schema:
                        short: referance to medicalstatement
                        _required: true
                        index: 50
                        elements:
                          url:
                            pattern: {type: Uri, value: reference}
                            index: 51
                          value:
                            choices: [valueReference]
                            index: 53
                          valueReference: {type: Reference, choiceOf: value, index: 54}
                    reason:
                      match: {url: reason}
                      schema:
                        short: textual reason for continoue treatment
                        index: 55
                        elements:
                          url:
                            pattern: {type: Uri, value: reason}
                            index: 56
                          value:
                            choices: [valueString]
                            index: 58
                          valueString: {type: string, choiceOf: value, index: 59}
                    codedreason:
                      match: {url: codedreason}
                      schema:
                        short: coded reason for continoue treatment
                        index: 60
                        elements:
                          url:
                            pattern: {type: Uri, value: codedreason}
                            index: 61
                          value:
                            choices: [valueCodeableConcept]
                            index: 63
                          valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 64}
                          value[x]:
                            elements:
                              coding:
                                elements:
                                  system:
                                    pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7535'}
                                    index: 65
              url:
                pattern: {type: Uri, value: allergyIntollerance}
                index: 66
              value:
                choices: []
                index: 68
        reasonMedicalChange:
          match: {url: reasonMedicalChange}
          schema:
            short: Reason for last medical change
            index: 69
            extensions:
              reference:
                url: reference
                _required: true
                index: 71
                elements:
                  url:
                    pattern: {type: Uri, value: reference}
                    index: 72
                  value:
                    choices: [valueReference]
                    index: 74
                  valueReference: {type: Reference, choiceOf: value, index: 75}
              reason:
                url: reason
                index: 76
                elements:
                  url:
                    pattern: {type: Uri, value: reason}
                    index: 77
                  value:
                    choices: [valueString]
                    index: 79
                  valueString: {type: string, choiceOf: value, index: 80}
              typeofchange:
                url: typeofchange
                index: 81
                elements:
                  url:
                    pattern: {type: Uri, value: typeofchange}
                    index: 82
                  value:
                    choices: [valueCodeableConcept]
                    index: 84
                  valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 85}
                  value[x]:
                    elements:
                      coding:
                        elements:
                          system:
                            pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7536'}
                            index: 86
            elements:
              extension:
                index: 70
                slicing:
                  rules: open
                  discriminator:
                  - {path: url, type: value}
                  min: null
                  slices:
                    reference:
                      match: {url: reference}
                      schema:
                        _required: true
                        index: 71
                        elements:
                          url:
                            pattern: {type: Uri, value: reference}
                            index: 72
                          value:
                            choices: [valueReference]
                            index: 74
                          valueReference: {type: Reference, choiceOf: value, index: 75}
                    reason:
                      match: {url: reason}
                      schema:
                        index: 76
                        elements:
                          url:
                            pattern: {type: Uri, value: reason}
                            index: 77
                          value:
                            choices: [valueString]
                            index: 79
                          valueString: {type: string, choiceOf: value, index: 80}
                    typeofchange:
                      match: {url: typeofchange}
                      schema:
                        index: 81
                        elements:
                          url:
                            pattern: {type: Uri, value: typeofchange}
                            index: 82
                          value:
                            choices: [valueCodeableConcept]
                            index: 84
                          valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 85}
                          value[x]:
                            elements:
                              coding:
                                elements:
                                  system:
                                    pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7536'}
                                    index: 86
              url:
                pattern: {type: Uri, value: reasonMedicalChange}
                index: 87
              value:
                choices: []
                index: 89
  url:
    pattern: {type: Uri, value: 'http://ehelse.no/fhir/StructureDefinition/sfm-warning'}
    index: 90
  value:
    choices: []
    index: 92
package_version: 1.0.1
extensions:
  doublePrescription:
    url: doublePrescription
    short: Double prescription
    index: 1
    extensions:
      reference:
        url: reference
        short: Referance to medication statements
        _required: true
        index: 3
        elements:
          url:
            pattern: {type: Uri, value: reference}
            index: 4
          value:
            choices: [valueReference]
            index: 6
          valueReference:
            type: Reference
            choiceOf: value
            refers: ['http://ehelse.no/fhir/StructureDefinition/sfm-MedicationStatement']
            index: 7
      reason:
        url: reason
        short: Textual reason
        index: 8
        elements:
          url:
            pattern: {type: Uri, value: reason}
            index: 9
          value:
            choices: [valueString]
            index: 11
          valueString: {type: string, choiceOf: value, index: 12}
      codedreason:
        url: codedreason
        short: coded reason
        index: 13
        elements:
          url:
            pattern: {type: Uri, value: codedreason}
            index: 14
          value:
            choices: [valueCodeableConcept]
            index: 16
          valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 17}
          value[x]:
            elements:
              coding:
                elements:
                  system:
                    pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7535'}
                    index: 18
    elements:
      extension:
        index: 2
        slicing:
          rules: open
          discriminator:
          - {path: url, type: value}
          min: null
          slices:
            reference:
              match: {url: reference}
              schema:
                short: Referance to medication statements
                _required: true
                index: 3
                elements:
                  url:
                    pattern: {type: Uri, value: reference}
                    index: 4
                  value:
                    choices: [valueReference]
                    index: 6
                  valueReference:
                    type: Reference
                    choiceOf: value
                    refers: ['http://ehelse.no/fhir/StructureDefinition/sfm-MedicationStatement']
                    index: 7
            reason:
              match: {url: reason}
              schema:
                short: Textual reason
                index: 8
                elements:
                  url:
                    pattern: {type: Uri, value: reason}
                    index: 9
                  value:
                    choices: [valueString]
                    index: 11
                  valueString: {type: string, choiceOf: value, index: 12}
            codedreason:
              match: {url: codedreason}
              schema:
                short: coded reason
                index: 13
                elements:
                  url:
                    pattern: {type: Uri, value: codedreason}
                    index: 14
                  value:
                    choices: [valueCodeableConcept]
                    index: 16
                  valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 17}
                  value[x]:
                    elements:
                      coding:
                        elements:
                          system:
                            pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7535'}
                            index: 18
      url:
        pattern: {type: Uri, value: doublePrescription}
        index: 19
      value:
        choices: []
        index: 21
  interaction:
    url: interaction
    short: Interaction information
    index: 22
    extensions:
      reference:
        url: reference
        short: Reference to MedicationStatement
        _required: true
        index: 24
        elements:
          url:
            pattern: {type: Uri, value: reference}
            index: 25
          value:
            choices: [valueReference]
            index: 27
          valueReference:
            type: Reference
            choiceOf: value
            refers: ['http://ehelse.no/fhir/StructureDefinition/sfm-MedicationStatement']
            index: 28
      reason:
        url: reason
        short: Reason for continue with medication
        index: 29
        elements:
          url:
            pattern: {type: Uri, value: reason}
            index: 30
          value:
            choices: [valueString]
            index: 32
          valueString: {type: string, choiceOf: value, index: 33}
      codedreason:
        url: codedreason
        short: coded reason for contiuing with medication
        index: 34
        elements:
          url:
            pattern: {type: Uri, value: codedreason}
            index: 35
          value:
            choices: [valueCodeableConcept]
            index: 37
          valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 38}
          value[x]:
            elements:
              coding:
                elements:
                  system:
                    pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7535'}
                    index: 39
      interactiondata:
        url: interactiondata
        short: Information about the interaction identified
        index: 40
        elements:
          url:
            pattern: {type: Uri, value: interactiondata}
            index: 41
          value:
            choices: [valueReference]
            index: 43
          valueReference:
            type: Reference
            choiceOf: value
            refers: ['http://ehelse.no/fhir/StructureDefinition/sfm-Interaction']
            index: 44
    elements:
      extension:
        index: 23
        slicing:
          rules: open
          discriminator:
          - {path: url, type: value}
          min: null
          slices:
            reference:
              match: {url: reference}
              schema:
                short: Reference to MedicationStatement
                _required: true
                index: 24
                elements:
                  url:
                    pattern: {type: Uri, value: reference}
                    index: 25
                  value:
                    choices: [valueReference]
                    index: 27
                  valueReference:
                    type: Reference
                    choiceOf: value
                    refers: ['http://ehelse.no/fhir/StructureDefinition/sfm-MedicationStatement']
                    index: 28
            reason:
              match: {url: reason}
              schema:
                short: Reason for continue with medication
                index: 29
                elements:
                  url:
                    pattern: {type: Uri, value: reason}
                    index: 30
                  value:
                    choices: [valueString]
                    index: 32
                  valueString: {type: string, choiceOf: value, index: 33}
            codedreason:
              match: {url: codedreason}
              schema:
                short: coded reason for contiuing with medication
                index: 34
                elements:
                  url:
                    pattern: {type: Uri, value: codedreason}
                    index: 35
                  value:
                    choices: [valueCodeableConcept]
                    index: 37
                  valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 38}
                  value[x]:
                    elements:
                      coding:
                        elements:
                          system:
                            pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7535'}
                            index: 39
            interactiondata:
              match: {url: interactiondata}
              schema:
                short: Information about the interaction identified
                index: 40
                elements:
                  url:
                    pattern: {type: Uri, value: interactiondata}
                    index: 41
                  value:
                    choices: [valueReference]
                    index: 43
                  valueReference:
                    type: Reference
                    choiceOf: value
                    refers: ['http://ehelse.no/fhir/StructureDefinition/sfm-Interaction']
                    index: 44
      url:
        pattern: {type: Uri, value: interaction}
        index: 45
      value:
        choices: []
        index: 47
  allergyIntollerance:
    url: allergyIntollerance
    short: Identified allergy intollerance
    index: 48
    extensions:
      reference:
        url: reference
        short: referance to medicalstatement
        _required: true
        index: 50
        elements:
          url:
            pattern: {type: Uri, value: reference}
            index: 51
          value:
            choices: [valueReference]
            index: 53
          valueReference: {type: Reference, choiceOf: value, index: 54}
      reason:
        url: reason
        short: textual reason for continoue treatment
        index: 55
        elements:
          url:
            pattern: {type: Uri, value: reason}
            index: 56
          value:
            choices: [valueString]
            index: 58
          valueString: {type: string, choiceOf: value, index: 59}
      codedreason:
        url: codedreason
        short: coded reason for continoue treatment
        index: 60
        elements:
          url:
            pattern: {type: Uri, value: codedreason}
            index: 61
          value:
            choices: [valueCodeableConcept]
            index: 63
          valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 64}
          value[x]:
            elements:
              coding:
                elements:
                  system:
                    pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7535'}
                    index: 65
    elements:
      extension:
        index: 49
        slicing:
          rules: open
          discriminator:
          - {path: url, type: value}
          min: null
          slices:
            reference:
              match: {url: reference}
              schema:
                short: referance to medicalstatement
                _required: true
                index: 50
                elements:
                  url:
                    pattern: {type: Uri, value: reference}
                    index: 51
                  value:
                    choices: [valueReference]
                    index: 53
                  valueReference: {type: Reference, choiceOf: value, index: 54}
            reason:
              match: {url: reason}
              schema:
                short: textual reason for continoue treatment
                index: 55
                elements:
                  url:
                    pattern: {type: Uri, value: reason}
                    index: 56
                  value:
                    choices: [valueString]
                    index: 58
                  valueString: {type: string, choiceOf: value, index: 59}
            codedreason:
              match: {url: codedreason}
              schema:
                short: coded reason for continoue treatment
                index: 60
                elements:
                  url:
                    pattern: {type: Uri, value: codedreason}
                    index: 61
                  value:
                    choices: [valueCodeableConcept]
                    index: 63
                  valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 64}
                  value[x]:
                    elements:
                      coding:
                        elements:
                          system:
                            pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7535'}
                            index: 65
      url:
        pattern: {type: Uri, value: allergyIntollerance}
        index: 66
      value:
        choices: []
        index: 68
  reasonMedicalChange:
    url: reasonMedicalChange
    short: Reason for last medical change
    index: 69
    extensions:
      reference:
        url: reference
        _required: true
        index: 71
        elements:
          url:
            pattern: {type: Uri, value: reference}
            index: 72
          value:
            choices: [valueReference]
            index: 74
          valueReference: {type: Reference, choiceOf: value, index: 75}
      reason:
        url: reason
        index: 76
        elements:
          url:
            pattern: {type: Uri, value: reason}
            index: 77
          value:
            choices: [valueString]
            index: 79
          valueString: {type: string, choiceOf: value, index: 80}
      typeofchange:
        url: typeofchange
        index: 81
        elements:
          url:
            pattern: {type: Uri, value: typeofchange}
            index: 82
          value:
            choices: [valueCodeableConcept]
            index: 84
          valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 85}
          value[x]:
            elements:
              coding:
                elements:
                  system:
                    pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7536'}
                    index: 86
    elements:
      extension:
        index: 70
        slicing:
          rules: open
          discriminator:
          - {path: url, type: value}
          min: null
          slices:
            reference:
              match: {url: reference}
              schema:
                _required: true
                index: 71
                elements:
                  url:
                    pattern: {type: Uri, value: reference}
                    index: 72
                  value:
                    choices: [valueReference]
                    index: 74
                  valueReference: {type: Reference, choiceOf: value, index: 75}
            reason:
              match: {url: reason}
              schema:
                index: 76
                elements:
                  url:
                    pattern: {type: Uri, value: reason}
                    index: 77
                  value:
                    choices: [valueString]
                    index: 79
                  valueString: {type: string, choiceOf: value, index: 80}
            typeofchange:
              match: {url: typeofchange}
              schema:
                index: 81
                elements:
                  url:
                    pattern: {type: Uri, value: typeofchange}
                    index: 82
                  value:
                    choices: [valueCodeableConcept]
                    index: 84
                  valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 85}
                  value[x]:
                    elements:
                      coding:
                        elements:
                          system:
                            pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7536'}
                            index: 86
      url:
        pattern: {type: Uri, value: reasonMedicalChange}
        index: 87
      value:
        choices: []
        index: 89
class: extension
kind: complex-type
url: http://ehelse.no/fhir/StructureDefinition/sfm-warning
base: http://hl7.org/fhir/StructureDefinition/Extension
version: '1.0'