PackagesCanonicalsLogsProblems
    Packages
    sfm.030521@1.0.1
    http://ehelse.no/fhir/StructureDefinition/sfm-MedicationStatement
description: SFM MedicationStatement derived from no-basis-MedicationStatement
package_name: sfm.030521
derivation: constraint
name: SfmMedicationStatement
type: MedicationStatement
elements:
  dosage:
    short: Details of how medication should be taken
    mustSupport: true
    index: 57
    extensions:
      applicationarea: {url: 'http://ehelse.no/fhir/StructureDefinition/sfm-application-area', max: 1, type: Extension, short: Describes why medication is needed, mustSupport: true, index: 59}
      shortdosage: {url: 'http://ehelse.no/fhir/StructureDefinition/sfm-shortdosage', max: 1, type: Extension, mustSupport: true, index: 60}
      typeofuse: {url: 'http://ehelse.no/fhir/StructureDefinition/sfm-use', max: 1, type: Extension, short: Type of use, mustSupport: true, index: 61}
    elements:
      extension:
        index: 58
        slicing:
          rules: open
          discriminator:
          - {path: url, type: value}
          min: null
          slices:
            applicationarea:
              match: {url: null}
              schema: {type: Extension, short: Describes why medication is needed, mustSupport: true, url: 'http://ehelse.no/fhir/StructureDefinition/sfm-application-area', index: 59}
              max: 1
            shortdosage:
              match: {url: null}
              schema: {type: Extension, mustSupport: true, url: 'http://ehelse.no/fhir/StructureDefinition/sfm-shortdosage', index: 60}
              max: 1
            typeofuse:
              match: {url: null}
              schema: {type: Extension, short: Type of use, mustSupport: true, url: 'http://ehelse.no/fhir/StructureDefinition/sfm-use', index: 61}
              max: 1
      sequence: {mustSupport: true, index: 62}
      text: {mustSupport: true, index: 63}
      additionalInstruction:
        index: 64
        elements:
          coding:
            elements:
              system:
                pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7479'}
                index: 65
      timing:
        elements:
          event: {index: 66}
          repeat: {index: 67}
          code:
            elements:
              coding:
                elements:
                  system:
                    pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.8325'}
                    index: 68
      asNeeded:
        choices: []
        index: 70
    required: [sequence]
  reasonCode:
    mustSupport: true
    index: 54
    slicing:
      slices:
        ICPC2B:
          match: {}
          schema:
            index: 55
            elements:
              coding:
                elements:
                  system:
                    pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7171'}
                    index: 56
  extension:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        reginfo:
          match: {url: null}
          schema: {type: Extension, mustSupport: true, url: 'http://ehelse.no/fhir/StructureDefinition/sfm-regInfo', index: 1}
        comment:
          match: {url: null}
          schema:
            type: Extension
            url: http://ehelse.no/fhir/StructureDefinition/sfm-libitemcomment
            index: 2
            extensions:
              type: {url: null, mustSupport: true, index: 4}
              merknad: {url: null, mustSupport: true, index: 5}
              Id: {url: null, mustSupport: true, index: 6}
              registeredby: {url: null, mustSupport: true, index: 7}
              receiver: {url: null, mustSupport: true, index: 8}
              response: {url: null, mustSupport: true, index: 9}
            elements:
              extension:
                index: 3
                slicing:
                  rules: open
                  discriminator:
                  - {path: url, type: value}
                  min: null
                  slices:
                    type:
                      match: {url: null}
                      schema: {mustSupport: true, index: 4}
                    merknad:
                      match: {url: null}
                      schema: {mustSupport: true, index: 5}
                    Id:
                      match: {url: null}
                      schema: {mustSupport: true, index: 6}
                    registeredby:
                      match: {url: null}
                      schema: {mustSupport: true, index: 7}
                    receiver:
                      match: {url: null}
                      schema: {mustSupport: true, index: 8}
                    response:
                      match: {url: null}
                      schema: {mustSupport: true, index: 9}
        deliverysummary:
          match: {url: null}
          schema:
            type: Extension
            url: http://ehelse.no/fhir/StructureDefinition/sfm-deliverysummary
            index: 10
            extensions:
              varenummer: {url: null, mustSupport: true, index: 12}
              varenavn: {url: null, mustSupport: true, index: 13}
              pakningsstr: {url: null, mustSupport: true, index: 14}
              antallpkntotalt: {url: null, mustSupport: true, index: 15}
              antallpknsiste: {url: null, mustSupport: true, index: 16}
              sistutlevert: {url: null, mustSupport: true, index: 17}
            elements:
              extension:
                index: 11
                slicing:
                  rules: open
                  discriminator:
                  - {path: url, type: value}
                  min: null
                  slices:
                    varenummer:
                      match: {url: null}
                      schema: {mustSupport: true, index: 12}
                    varenavn:
                      match: {url: null}
                      schema: {mustSupport: true, index: 13}
                    pakningsstr:
                      match: {url: null}
                      schema: {mustSupport: true, index: 14}
                    antallpkntotalt:
                      match: {url: null}
                      schema: {mustSupport: true, index: 15}
                    antallpknsiste:
                      match: {url: null}
                      schema: {mustSupport: true, index: 16}
                    sistutlevert:
                      match: {url: null}
                      schema: {mustSupport: true, index: 17}
        genericSubstitution:
          match: {url: null}
          schema:
            type: Extension
            short: Substitution of drug
            url: http://ehelse.no/fhir/StructureDefinition/sfm-generic-substitution
            index: 18
            extensions:
              genericSubstitutionAccepted: {url: null, mustSupport: true, index: 20}
              reason: {url: null, mustSupport: true, index: 21}
            elements:
              extension:
                index: 19
                slicing:
                  rules: open
                  discriminator:
                  - {path: url, type: value}
                  min: null
                  slices:
                    genericSubstitutionAccepted:
                      match: {url: null}
                      schema: {mustSupport: true, index: 20}
                    reason:
                      match: {url: null}
                      schema: {mustSupport: true, index: 21}
        discontinuationinformation:
          match: {url: null}
          schema:
            type: Extension
            mustSupport: true
            url: http://ehelse.no/fhir/StructureDefinition/sfm-discontinuation
            index: 22
            extensions:
              timedate: {url: null, mustSupport: true, index: 24}
              reason: {url: null, mustSupport: true, index: 25}
              note: {url: null, mustSupport: true, index: 26}
            elements:
              extension:
                index: 23
                slicing:
                  rules: open
                  discriminator:
                  - {path: url, type: value}
                  min: null
                  slices:
                    timedate:
                      match: {url: null}
                      schema: {mustSupport: true, index: 24}
                    reason:
                      match: {url: null}
                      schema: {mustSupport: true, index: 25}
                    note:
                      match: {url: null}
                      schema: {mustSupport: true, index: 26}
        administrationdetails:
          match: {url: null}
          schema:
            type: Extension
            url: http://ehelse.no/fhir/StructureDefinition/sfm-administration
            index: 27
            extensions:
              administrationofmedication:
                url: null
                index: 29
                extensions:
                  admByWhom: {url: null, mustSupport: true, index: 31}
                  admWay: {url: null, mustSupport: true, index: 32}
                  admBySchema: {url: null, mustSupport: true, index: 33}
                  admSchema: {url: null, mustSupport: true, index: 34}
                elements:
                  extension:
                    index: 30
                    slicing:
                      rules: open
                      discriminator:
                      - {path: url, type: value}
                      min: null
                      slices:
                        admByWhom:
                          match: {url: null}
                          schema: {mustSupport: true, index: 31}
                        admWay:
                          match: {url: null}
                          schema: {mustSupport: true, index: 32}
                        admBySchema:
                          match: {url: null}
                          schema: {mustSupport: true, index: 33}
                        admSchema:
                          match: {url: null}
                          schema: {mustSupport: true, index: 34}
            elements:
              extension:
                index: 28
                slicing:
                  rules: open
                  discriminator:
                  - {path: url, type: value}
                  min: null
                  slices:
                    administrationofmedication:
                      match: {url: null}
                      schema:
                        index: 29
                        extensions:
                          admByWhom: {url: null, mustSupport: true, index: 31}
                          admWay: {url: null, mustSupport: true, index: 32}
                          admBySchema: {url: null, mustSupport: true, index: 33}
                          admSchema: {url: null, mustSupport: true, index: 34}
                        elements:
                          extension:
                            index: 30
                            slicing:
                              rules: open
                              discriminator:
                              - {path: url, type: value}
                              min: null
                              slices:
                                admByWhom:
                                  match: {url: null}
                                  schema: {mustSupport: true, index: 31}
                                admWay:
                                  match: {url: null}
                                  schema: {mustSupport: true, index: 32}
                                admBySchema:
                                  match: {url: null}
                                  schema: {mustSupport: true, index: 33}
                                admSchema:
                                  match: {url: null}
                                  schema: {mustSupport: true, index: 34}
        reseptInfo:
          match: {url: null}
          schema: {type: Extension, mustSupport: true, url: 'http://ehelse.no/fhir/StructureDefinition/sfm-reseptamendment', index: 35}
          max: 1
  status: {mustSupport: true, index: 43}
  effective:
    choices: []
    index: 52
  identifier:
    index: 36
    slicing:
      rules: openAtEnd
      discriminator:
      - {path: type.text, type: value}
      min: null
      slices:
        treatmentId:
          match:
            type: {text: Treatmentid}
          schema:
            short: treatment identifier
            index: 37
            elements:
              type:
                elements:
                  text:
                    pattern: {type: String, value: Treatmentid}
                    index: 38
                required: [text]
        reseptid:
          match:
            type: {text: ReseptId}
          schema:
            short: reference to related prescription document
            index: 39
            elements:
              type:
                elements:
                  text:
                    pattern: {type: String, value: ReseptId}
                    index: 40
                required: [text]
  context: {index: 50}
  dateAsserted: {index: 53}
  basedOn:
    type: Reference
    refers: ['http://ehelse.no/fhir/StructureDefinition/sfm-MedicationStatement', 'http://hl7.org/fhir/StructureDefinition/CarePlan', 'http://hl7.org/fhir/StructureDefinition/MedicationRequest', 'http://hl7.org/fhir/StructureDefinition/ServiceRequest']
    index: 41
  medicationReference:
    type: Reference
    mustSupport: true
    choiceOf: medication
    refers: ['http://ehelse.no/fhir/StructureDefinition/sfm-Magistrell-Medication', 'http://ehelse.no/fhir/StructureDefinition/sfm-Medication']
    index: 48
    slicing:
      slices:
        medicationReference:
          match: {}
          schema:
            type: Reference
            mustSupport: true
            choiceOf: medication
            refers: ['http://ehelse.no/fhir/StructureDefinition/sfm-Magistrell-Medication', 'http://ehelse.no/fhir/StructureDefinition/sfm-Medication']
            index: 48
  partOf:
    type: Reference
    mustSupport: true
    refers: ['http://ehelse.no/fhir/StructureDefinition/sfm-MedicationStatement', 'http://hl7.org/fhir/StructureDefinition/MedicationAdministration', 'http://hl7.org/fhir/StructureDefinition/MedicationDispense', 'http://hl7.org/fhir/StructureDefinition/MedicationStatement', 'http://hl7.org/fhir/StructureDefinition/Observation', 'http://hl7.org/fhir/StructureDefinition/Procedure']
    index: 42
  subject:
    type: Reference
    mustSupport: true
    refers: ['http://ehelse.no/fhir/StructureDefinition/sfm-Patient']
    index: 49
  medication:
    mustSupport: true
    choices: []
    index: 45
    slicing:
      slices:
        medicationReference:
          match: {}
          schema:
            mustSupport: true
            choices: [medicationReference]
            index: 47
package_version: 1.0.1
extensions:
  reginfo: {url: 'http://ehelse.no/fhir/StructureDefinition/sfm-regInfo', type: Extension, mustSupport: true, index: 1}
  comment:
    url: http://ehelse.no/fhir/StructureDefinition/sfm-libitemcomment
    type: Extension
    index: 2
    extensions:
      type: {url: null, mustSupport: true, index: 4}
      merknad: {url: null, mustSupport: true, index: 5}
      Id: {url: null, mustSupport: true, index: 6}
      registeredby: {url: null, mustSupport: true, index: 7}
      receiver: {url: null, mustSupport: true, index: 8}
      response: {url: null, mustSupport: true, index: 9}
    elements:
      extension:
        index: 3
        slicing:
          rules: open
          discriminator:
          - {path: url, type: value}
          min: null
          slices:
            type:
              match: {url: null}
              schema: {mustSupport: true, index: 4}
            merknad:
              match: {url: null}
              schema: {mustSupport: true, index: 5}
            Id:
              match: {url: null}
              schema: {mustSupport: true, index: 6}
            registeredby:
              match: {url: null}
              schema: {mustSupport: true, index: 7}
            receiver:
              match: {url: null}
              schema: {mustSupport: true, index: 8}
            response:
              match: {url: null}
              schema: {mustSupport: true, index: 9}
  deliverysummary:
    url: http://ehelse.no/fhir/StructureDefinition/sfm-deliverysummary
    type: Extension
    index: 10
    extensions:
      varenummer: {url: null, mustSupport: true, index: 12}
      varenavn: {url: null, mustSupport: true, index: 13}
      pakningsstr: {url: null, mustSupport: true, index: 14}
      antallpkntotalt: {url: null, mustSupport: true, index: 15}
      antallpknsiste: {url: null, mustSupport: true, index: 16}
      sistutlevert: {url: null, mustSupport: true, index: 17}
    elements:
      extension:
        index: 11
        slicing:
          rules: open
          discriminator:
          - {path: url, type: value}
          min: null
          slices:
            varenummer:
              match: {url: null}
              schema: {mustSupport: true, index: 12}
            varenavn:
              match: {url: null}
              schema: {mustSupport: true, index: 13}
            pakningsstr:
              match: {url: null}
              schema: {mustSupport: true, index: 14}
            antallpkntotalt:
              match: {url: null}
              schema: {mustSupport: true, index: 15}
            antallpknsiste:
              match: {url: null}
              schema: {mustSupport: true, index: 16}
            sistutlevert:
              match: {url: null}
              schema: {mustSupport: true, index: 17}
  genericSubstitution:
    url: http://ehelse.no/fhir/StructureDefinition/sfm-generic-substitution
    type: Extension
    short: Substitution of drug
    index: 18
    extensions:
      genericSubstitutionAccepted: {url: null, mustSupport: true, index: 20}
      reason: {url: null, mustSupport: true, index: 21}
    elements:
      extension:
        index: 19
        slicing:
          rules: open
          discriminator:
          - {path: url, type: value}
          min: null
          slices:
            genericSubstitutionAccepted:
              match: {url: null}
              schema: {mustSupport: true, index: 20}
            reason:
              match: {url: null}
              schema: {mustSupport: true, index: 21}
  discontinuationinformation:
    url: http://ehelse.no/fhir/StructureDefinition/sfm-discontinuation
    type: Extension
    mustSupport: true
    index: 22
    extensions:
      timedate: {url: null, mustSupport: true, index: 24}
      reason: {url: null, mustSupport: true, index: 25}
      note: {url: null, mustSupport: true, index: 26}
    elements:
      extension:
        index: 23
        slicing:
          rules: open
          discriminator:
          - {path: url, type: value}
          min: null
          slices:
            timedate:
              match: {url: null}
              schema: {mustSupport: true, index: 24}
            reason:
              match: {url: null}
              schema: {mustSupport: true, index: 25}
            note:
              match: {url: null}
              schema: {mustSupport: true, index: 26}
  administrationdetails:
    url: http://ehelse.no/fhir/StructureDefinition/sfm-administration
    type: Extension
    index: 27
    extensions:
      administrationofmedication:
        url: null
        index: 29
        extensions:
          admByWhom: {url: null, mustSupport: true, index: 31}
          admWay: {url: null, mustSupport: true, index: 32}
          admBySchema: {url: null, mustSupport: true, index: 33}
          admSchema: {url: null, mustSupport: true, index: 34}
        elements:
          extension:
            index: 30
            slicing:
              rules: open
              discriminator:
              - {path: url, type: value}
              min: null
              slices:
                admByWhom:
                  match: {url: null}
                  schema: {mustSupport: true, index: 31}
                admWay:
                  match: {url: null}
                  schema: {mustSupport: true, index: 32}
                admBySchema:
                  match: {url: null}
                  schema: {mustSupport: true, index: 33}
                admSchema:
                  match: {url: null}
                  schema: {mustSupport: true, index: 34}
    elements:
      extension:
        index: 28
        slicing:
          rules: open
          discriminator:
          - {path: url, type: value}
          min: null
          slices:
            administrationofmedication:
              match: {url: null}
              schema:
                index: 29
                extensions:
                  admByWhom: {url: null, mustSupport: true, index: 31}
                  admWay: {url: null, mustSupport: true, index: 32}
                  admBySchema: {url: null, mustSupport: true, index: 33}
                  admSchema: {url: null, mustSupport: true, index: 34}
                elements:
                  extension:
                    index: 30
                    slicing:
                      rules: open
                      discriminator:
                      - {path: url, type: value}
                      min: null
                      slices:
                        admByWhom:
                          match: {url: null}
                          schema: {mustSupport: true, index: 31}
                        admWay:
                          match: {url: null}
                          schema: {mustSupport: true, index: 32}
                        admBySchema:
                          match: {url: null}
                          schema: {mustSupport: true, index: 33}
                        admSchema:
                          match: {url: null}
                          schema: {mustSupport: true, index: 34}
  reseptInfo: {url: 'http://ehelse.no/fhir/StructureDefinition/sfm-reseptamendment', max: 1, type: Extension, mustSupport: true, index: 35}
class: profile
kind: resource
url: http://ehelse.no/fhir/StructureDefinition/sfm-MedicationStatement
base: http://hl7.no/fhir/StructureDefinition/no-basis-MedicationStatement
version: '1.0'
required: [dosage]