PackagesCanonicalsLogsProblems
    Packages
    sfm.030521@1.0.1
    http://ehelse.no/fhir/StructureDefinition/sfm-administration
description: Describes detailed information about how a prescription should be administered.
package_name: sfm.030521
derivation: constraint
name: SfmAdministration
type: Extension
elements:
  extension:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        administrationofmedication:
          match: {url: administrationofmedication}
          schema:
            index: 1
            extensions:
              admByWhom:
                url: admByWhom
                short: Who is administrating the medication
                index: 3
                elements:
                  url:
                    pattern: {type: Uri, value: admByWhom}
                    index: 4
                  value:
                    choices: [valueCodeableConcept]
                    index: 6
                  valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 7}
                  value[x]:
                    elements:
                      coding:
                        elements:
                          system:
                            pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.9074'}
                            index: 8
                required: [value, valueCodeableConcept]
              admWay:
                url: admWay
                short: how the medication should be taken
                index: 9
                elements:
                  url:
                    pattern: {type: Uri, value: admWay}
                    index: 10
                  value:
                    choices: [valueCodeableConcept]
                    index: 12
                  valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 13}
                  value[x]:
                    elements:
                      coding:
                        elements:
                          system:
                            pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.9075'}
                            index: 14
                required: [value, valueCodeableConcept]
              admBySchema:
                url: admBySchema
                short: identifies if medication should be administrated by schema.
                index: 15
                elements:
                  url:
                    pattern: {type: Uri, value: admBySchema}
                    index: 16
                  value:
                    choices: [valueString]
                    index: 18
                  valueString: {type: string, choiceOf: value, index: 19}
              admSchema:
                url: admSchema
                short: Schema to administrate after
                index: 20
                elements:
                  url:
                    pattern: {type: Uri, value: admSchema}
                    index: 21
                  value:
                    choices: [valueString]
                    index: 23
                  valueString: {type: string, choiceOf: value, index: 24}
            elements:
              extension:
                index: 2
                slicing:
                  rules: open
                  discriminator:
                  - {path: url, type: value}
                  min: null
                  slices:
                    admByWhom:
                      match: {url: admByWhom}
                      schema:
                        short: Who is administrating the medication
                        index: 3
                        elements:
                          url:
                            pattern: {type: Uri, value: admByWhom}
                            index: 4
                          value:
                            choices: [valueCodeableConcept]
                            index: 6
                          valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 7}
                          value[x]:
                            elements:
                              coding:
                                elements:
                                  system:
                                    pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.9074'}
                                    index: 8
                        required: [value, valueCodeableConcept]
                    admWay:
                      match: {url: admWay}
                      schema:
                        short: how the medication should be taken
                        index: 9
                        elements:
                          url:
                            pattern: {type: Uri, value: admWay}
                            index: 10
                          value:
                            choices: [valueCodeableConcept]
                            index: 12
                          valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 13}
                          value[x]:
                            elements:
                              coding:
                                elements:
                                  system:
                                    pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.9075'}
                                    index: 14
                        required: [value, valueCodeableConcept]
                    admBySchema:
                      match: {url: admBySchema}
                      schema:
                        short: identifies if medication should be administrated by schema.
                        index: 15
                        elements:
                          url:
                            pattern: {type: Uri, value: admBySchema}
                            index: 16
                          value:
                            choices: [valueString]
                            index: 18
                          valueString: {type: string, choiceOf: value, index: 19}
                    admSchema:
                      match: {url: admSchema}
                      schema:
                        short: Schema to administrate after
                        index: 20
                        elements:
                          url:
                            pattern: {type: Uri, value: admSchema}
                            index: 21
                          value:
                            choices: [valueString]
                            index: 23
                          valueString: {type: string, choiceOf: value, index: 24}
              url:
                pattern: {type: Uri, value: administrationofmedication}
                index: 25
              value:
                choices: []
                index: 27
        admBy:
          match: {url: admBy}
          schema:
            short: How the medication should be adminstrated
            index: 28
            elements:
              url:
                pattern: {type: Uri, value: admBy}
                index: 29
              value:
                choices: [valueCodeableConcept]
                index: 31
              valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 32}
        nocombination:
          match: {url: nocombination}
          schema:
            short: use restriction
            index: 33
            elements:
              url:
                pattern: {type: Uri, value: nocombination}
                index: 34
              value:
                choices: [valueBoolean]
                index: 36
              valueBoolean: {type: boolean, choiceOf: value, index: 37}
        mddispenced:
          match: {url: mddispenced}
          schema:
            short: set as true if dispenced last packing
            index: 38
            elements:
              url:
                pattern: {type: Uri, value: mddispenced}
                index: 39
              value:
                choices: [valueBoolean]
                index: 41
              valueBoolean: {type: boolean, choiceOf: value, index: 42}
  url:
    pattern: {type: Uri, value: 'http://ehelse.no/fhir/StructureDefinition/sfm-administration'}
    index: 43
  value:
    choices: []
    index: 45
package_version: 1.0.1
extensions:
  administrationofmedication:
    url: administrationofmedication
    index: 1
    extensions:
      admByWhom:
        url: admByWhom
        short: Who is administrating the medication
        index: 3
        elements:
          url:
            pattern: {type: Uri, value: admByWhom}
            index: 4
          value:
            choices: [valueCodeableConcept]
            index: 6
          valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 7}
          value[x]:
            elements:
              coding:
                elements:
                  system:
                    pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.9074'}
                    index: 8
        required: [value, valueCodeableConcept]
      admWay:
        url: admWay
        short: how the medication should be taken
        index: 9
        elements:
          url:
            pattern: {type: Uri, value: admWay}
            index: 10
          value:
            choices: [valueCodeableConcept]
            index: 12
          valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 13}
          value[x]:
            elements:
              coding:
                elements:
                  system:
                    pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.9075'}
                    index: 14
        required: [value, valueCodeableConcept]
      admBySchema:
        url: admBySchema
        short: identifies if medication should be administrated by schema.
        index: 15
        elements:
          url:
            pattern: {type: Uri, value: admBySchema}
            index: 16
          value:
            choices: [valueString]
            index: 18
          valueString: {type: string, choiceOf: value, index: 19}
      admSchema:
        url: admSchema
        short: Schema to administrate after
        index: 20
        elements:
          url:
            pattern: {type: Uri, value: admSchema}
            index: 21
          value:
            choices: [valueString]
            index: 23
          valueString: {type: string, choiceOf: value, index: 24}
    elements:
      extension:
        index: 2
        slicing:
          rules: open
          discriminator:
          - {path: url, type: value}
          min: null
          slices:
            admByWhom:
              match: {url: admByWhom}
              schema:
                short: Who is administrating the medication
                index: 3
                elements:
                  url:
                    pattern: {type: Uri, value: admByWhom}
                    index: 4
                  value:
                    choices: [valueCodeableConcept]
                    index: 6
                  valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 7}
                  value[x]:
                    elements:
                      coding:
                        elements:
                          system:
                            pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.9074'}
                            index: 8
                required: [value, valueCodeableConcept]
            admWay:
              match: {url: admWay}
              schema:
                short: how the medication should be taken
                index: 9
                elements:
                  url:
                    pattern: {type: Uri, value: admWay}
                    index: 10
                  value:
                    choices: [valueCodeableConcept]
                    index: 12
                  valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 13}
                  value[x]:
                    elements:
                      coding:
                        elements:
                          system:
                            pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.9075'}
                            index: 14
                required: [value, valueCodeableConcept]
            admBySchema:
              match: {url: admBySchema}
              schema:
                short: identifies if medication should be administrated by schema.
                index: 15
                elements:
                  url:
                    pattern: {type: Uri, value: admBySchema}
                    index: 16
                  value:
                    choices: [valueString]
                    index: 18
                  valueString: {type: string, choiceOf: value, index: 19}
            admSchema:
              match: {url: admSchema}
              schema:
                short: Schema to administrate after
                index: 20
                elements:
                  url:
                    pattern: {type: Uri, value: admSchema}
                    index: 21
                  value:
                    choices: [valueString]
                    index: 23
                  valueString: {type: string, choiceOf: value, index: 24}
      url:
        pattern: {type: Uri, value: administrationofmedication}
        index: 25
      value:
        choices: []
        index: 27
  admBy:
    url: admBy
    short: How the medication should be adminstrated
    index: 28
    elements:
      url:
        pattern: {type: Uri, value: admBy}
        index: 29
      value:
        choices: [valueCodeableConcept]
        index: 31
      valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 32}
  nocombination:
    url: nocombination
    short: use restriction
    index: 33
    elements:
      url:
        pattern: {type: Uri, value: nocombination}
        index: 34
      value:
        choices: [valueBoolean]
        index: 36
      valueBoolean: {type: boolean, choiceOf: value, index: 37}
  mddispenced:
    url: mddispenced
    short: set as true if dispenced last packing
    index: 38
    elements:
      url:
        pattern: {type: Uri, value: mddispenced}
        index: 39
      value:
        choices: [valueBoolean]
        index: 41
      valueBoolean: {type: boolean, choiceOf: value, index: 42}
class: extension
kind: complex-type
url: http://ehelse.no/fhir/StructureDefinition/sfm-administration
base: http://hl7.org/fhir/StructureDefinition/Extension
version: '1.0'