PackagesCanonicalsLogsProblems
    Packages
    sfm.030521@1.0.1
    http://ehelse.no/fhir/StructureDefinition/sfm-pllInformation
description: Describes information provided in PLL/M25 messages.
package_name: sfm.030521
derivation: constraint
name: SfmpllInformation
type: Extension
elements:
  extension:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        relatedparties:
          match: {url: relatedparties}
          schema:
            short: Providers with relations to patient
            index: 1
            elements:
              url:
                pattern: {type: Uri, value: relatedparties}
                index: 2
              value:
                choices: [valueReference]
                index: 4
              valueReference:
                type: Reference
                choiceOf: value
                refers: ['http://ehelse.no/fhir/StructureDefinition/sfm-PractitionerRole']
                index: 5
        deliveryinformation:
          match: {url: deliveryinformation}
          schema:
            short: Delivery information from M25.3
            index: 6
            extensions:
              prescriptionId:
                url: prescriptionId
                _required: true
                index: 8
                elements:
                  url:
                    pattern: {type: Uri, value: prescriptionId}
                    index: 9
                  value:
                    choices: [valueReference]
                    index: 11
                  valueReference:
                    type: Reference
                    choiceOf: value
                    refers: ['http://ehelse.no/fhir/StructureDefinition/sfm-MedicationStatement']
                    index: 12
              refM10:
                url: refM10
                index: 13
                elements:
                  url:
                    pattern: {type: Uri, value: refM10}
                    index: 14
                  value:
                    choices: [valueString]
                    index: 16
                  valueString: {type: string, choiceOf: value, index: 17}
              repacking:
                url: repacking
                index: 18
                elements:
                  url:
                    pattern: {type: Uri, value: repacking}
                    index: 19
                  value:
                    pattern:
                      type: CodeableConcept
                      value:
                        coding:
                        - {system: 'urn:oid:2.16.578.1.12.4.1.1.7492'}
                    choices: [valueCodeableConcept]
                    index: 21
                  valueCodeableConcept:
                    type: CodeableConcept
                    pattern:
                      type: CodeableConcept
                      value:
                        coding:
                        - {system: 'urn:oid:2.16.578.1.12.4.1.1.7492'}
                    choiceOf: value
                    index: 22
              datefirstdose:
                url: datefirstdose
                _required: true
                index: 23
                elements:
                  url:
                    pattern: {type: Uri, value: datefirstdose}
                    index: 24
                  value:
                    choices: [valueDateTime]
                    index: 26
                  valueDateTime: {type: dateTime, choiceOf: value, index: 27}
              datelastdose:
                url: datelastdose
                _required: true
                index: 28
                elements:
                  url:
                    pattern: {type: Uri, value: datelastdose}
                    index: 29
                  value:
                    choices: [valueDateTime]
                    index: 31
                  valueDateTime: {type: dateTime, choiceOf: value, index: 32}
              pictureref:
                url: pictureref
                index: 33
                elements:
                  url:
                    pattern: {type: Uri, value: pictureref}
                    index: 34
                  value:
                    choices: [valueUrl]
                    index: 36
                  valueUrl: {type: url, choiceOf: value, index: 37}
              deliverydoc:
                url: deliverydoc
                _required: true
                index: 38
                elements:
                  url:
                    pattern: {type: Uri, value: deliverydoc}
                    index: 39
                  value:
                    choices: [valueReference]
                    index: 41
                  valueReference:
                    type: Reference
                    choiceOf: value
                    refers: ['http://ehelse.no/fhir/StructureDefinition/sfm-MedicationDispense']
                    index: 42
            elements:
              extension:
                index: 7
                slicing:
                  rules: open
                  discriminator:
                  - {path: url, type: value}
                  min: null
                  slices:
                    prescriptionId:
                      match: {url: prescriptionId}
                      schema:
                        _required: true
                        index: 8
                        elements:
                          url:
                            pattern: {type: Uri, value: prescriptionId}
                            index: 9
                          value:
                            choices: [valueReference]
                            index: 11
                          valueReference:
                            type: Reference
                            choiceOf: value
                            refers: ['http://ehelse.no/fhir/StructureDefinition/sfm-MedicationStatement']
                            index: 12
                    refM10:
                      match: {url: refM10}
                      schema:
                        index: 13
                        elements:
                          url:
                            pattern: {type: Uri, value: refM10}
                            index: 14
                          value:
                            choices: [valueString]
                            index: 16
                          valueString: {type: string, choiceOf: value, index: 17}
                    repacking:
                      match: {url: repacking}
                      schema:
                        index: 18
                        elements:
                          url:
                            pattern: {type: Uri, value: repacking}
                            index: 19
                          value:
                            pattern:
                              type: CodeableConcept
                              value:
                                coding:
                                - {system: 'urn:oid:2.16.578.1.12.4.1.1.7492'}
                            choices: [valueCodeableConcept]
                            index: 21
                          valueCodeableConcept:
                            type: CodeableConcept
                            pattern:
                              type: CodeableConcept
                              value:
                                coding:
                                - {system: 'urn:oid:2.16.578.1.12.4.1.1.7492'}
                            choiceOf: value
                            index: 22
                    datefirstdose:
                      match: {url: datefirstdose}
                      schema:
                        _required: true
                        index: 23
                        elements:
                          url:
                            pattern: {type: Uri, value: datefirstdose}
                            index: 24
                          value:
                            choices: [valueDateTime]
                            index: 26
                          valueDateTime: {type: dateTime, choiceOf: value, index: 27}
                    datelastdose:
                      match: {url: datelastdose}
                      schema:
                        _required: true
                        index: 28
                        elements:
                          url:
                            pattern: {type: Uri, value: datelastdose}
                            index: 29
                          value:
                            choices: [valueDateTime]
                            index: 31
                          valueDateTime: {type: dateTime, choiceOf: value, index: 32}
                    pictureref:
                      match: {url: pictureref}
                      schema:
                        index: 33
                        elements:
                          url:
                            pattern: {type: Uri, value: pictureref}
                            index: 34
                          value:
                            choices: [valueUrl]
                            index: 36
                          valueUrl: {type: url, choiceOf: value, index: 37}
                    deliverydoc:
                      match: {url: deliverydoc}
                      schema:
                        _required: true
                        index: 38
                        elements:
                          url:
                            pattern: {type: Uri, value: deliverydoc}
                            index: 39
                          value:
                            choices: [valueReference]
                            index: 41
                          valueReference:
                            type: Reference
                            choiceOf: value
                            refers: ['http://ehelse.no/fhir/StructureDefinition/sfm-MedicationDispense']
                            index: 42
              url:
                pattern: {type: Uri, value: deliveryinformation}
                index: 43
              value:
                choices: []
                index: 45
        text:
          match: {url: text}
          schema:
            short: General coment in M25.x
            index: 46
            elements:
              url:
                pattern: {type: Uri, value: text}
                index: 47
              value:
                choices: [valueString]
                index: 49
              valueString: {type: string, choiceOf: value, index: 50}
        substitute:
          match: {url: substitute}
          schema:
            short: Substitute for Multidose doctor
            index: 51
            elements:
              url:
                pattern: {type: Uri, value: substitute}
                index: 52
              value:
                choices: [valueBoolean]
                index: 54
              valueBoolean: {type: boolean, choiceOf: value, index: 55}
        createPLL:
          match: {url: createPLL}
          schema:
            short: Identifies to create PLL
            index: 56
            elements:
              url:
                pattern: {type: Uri, value: createPLL}
                index: 57
              value:
                choices: [valueBoolean]
                index: 59
              valueBoolean: {type: boolean, choiceOf: value, index: 60}
        packinginfo:
          match: {url: packinginfo}
          schema:
            short: Packing info from M25.2/3
            index: 61
            extensions:
              orderdeadline:
                url: orderdeadline
                short: Deadline for ordering new packing
                _required: true
                index: 63
                elements:
                  url:
                    pattern: {type: Uri, value: orderdeadline}
                    index: 64
                  value:
                    choices: [valueDateTime]
                    index: 66
                  valueDateTime: {type: dateTime, choiceOf: value, index: 67}
              firstdosingdate:
                url: firstdosingdate
                short: First date of dosing based on packing
                index: 68
                elements:
                  url:
                    pattern: {type: Uri, value: firstdosingdate}
                    index: 69
                  value:
                    choices: [valueDate]
                    index: 71
                  valueDate: {type: date, choiceOf: value, index: 72}
              lastdosingdate:
                url: lastdosingdate
                short: Last date of dosing based on packing
                index: 73
                elements:
                  url:
                    pattern: {type: Uri, value: lastdosingdate}
                    index: 74
                  value:
                    choices: [valueDate]
                    index: 76
                  valueDate: {type: date, choiceOf: value, index: 77}
            elements:
              extension:
                index: 62
                slicing:
                  rules: open
                  discriminator:
                  - {path: url, type: value}
                  min: null
                  slices:
                    orderdeadline:
                      match: {url: orderdeadline}
                      schema:
                        short: Deadline for ordering new packing
                        _required: true
                        index: 63
                        elements:
                          url:
                            pattern: {type: Uri, value: orderdeadline}
                            index: 64
                          value:
                            choices: [valueDateTime]
                            index: 66
                          valueDateTime: {type: dateTime, choiceOf: value, index: 67}
                    firstdosingdate:
                      match: {url: firstdosingdate}
                      schema:
                        short: First date of dosing based on packing
                        index: 68
                        elements:
                          url:
                            pattern: {type: Uri, value: firstdosingdate}
                            index: 69
                          value:
                            choices: [valueDate]
                            index: 71
                          valueDate: {type: date, choiceOf: value, index: 72}
                    lastdosingdate:
                      match: {url: lastdosingdate}
                      schema:
                        short: Last date of dosing based on packing
                        index: 73
                        elements:
                          url:
                            pattern: {type: Uri, value: lastdosingdate}
                            index: 74
                          value:
                            choices: [valueDate]
                            index: 76
                          valueDate: {type: date, choiceOf: value, index: 77}
              url:
                pattern: {type: Uri, value: packinginfo}
                index: 78
              value:
                choices: []
                index: 80
        PLLdate:
          match: {url: PLLdate}
          schema:
            index: 81
            elements:
              url:
                pattern: {type: Uri, value: PLLdate}
                index: 82
              value:
                choices: [valueDateTime]
                index: 84
              valueDateTime: {type: dateTime, choiceOf: value, index: 85}
  url:
    pattern: {type: Uri, value: 'http://ehelse.no/fhir/StructureDefinition/sfm-pllInformation'}
    index: 86
  value:
    choices: []
    index: 88
package_version: 1.0.1
extensions:
  relatedparties:
    url: relatedparties
    short: Providers with relations to patient
    index: 1
    elements:
      url:
        pattern: {type: Uri, value: relatedparties}
        index: 2
      value:
        choices: [valueReference]
        index: 4
      valueReference:
        type: Reference
        choiceOf: value
        refers: ['http://ehelse.no/fhir/StructureDefinition/sfm-PractitionerRole']
        index: 5
  deliveryinformation:
    url: deliveryinformation
    short: Delivery information from M25.3
    index: 6
    extensions:
      prescriptionId:
        url: prescriptionId
        _required: true
        index: 8
        elements:
          url:
            pattern: {type: Uri, value: prescriptionId}
            index: 9
          value:
            choices: [valueReference]
            index: 11
          valueReference:
            type: Reference
            choiceOf: value
            refers: ['http://ehelse.no/fhir/StructureDefinition/sfm-MedicationStatement']
            index: 12
      refM10:
        url: refM10
        index: 13
        elements:
          url:
            pattern: {type: Uri, value: refM10}
            index: 14
          value:
            choices: [valueString]
            index: 16
          valueString: {type: string, choiceOf: value, index: 17}
      repacking:
        url: repacking
        index: 18
        elements:
          url:
            pattern: {type: Uri, value: repacking}
            index: 19
          value:
            pattern:
              type: CodeableConcept
              value:
                coding:
                - {system: 'urn:oid:2.16.578.1.12.4.1.1.7492'}
            choices: [valueCodeableConcept]
            index: 21
          valueCodeableConcept:
            type: CodeableConcept
            pattern:
              type: CodeableConcept
              value:
                coding:
                - {system: 'urn:oid:2.16.578.1.12.4.1.1.7492'}
            choiceOf: value
            index: 22
      datefirstdose:
        url: datefirstdose
        _required: true
        index: 23
        elements:
          url:
            pattern: {type: Uri, value: datefirstdose}
            index: 24
          value:
            choices: [valueDateTime]
            index: 26
          valueDateTime: {type: dateTime, choiceOf: value, index: 27}
      datelastdose:
        url: datelastdose
        _required: true
        index: 28
        elements:
          url:
            pattern: {type: Uri, value: datelastdose}
            index: 29
          value:
            choices: [valueDateTime]
            index: 31
          valueDateTime: {type: dateTime, choiceOf: value, index: 32}
      pictureref:
        url: pictureref
        index: 33
        elements:
          url:
            pattern: {type: Uri, value: pictureref}
            index: 34
          value:
            choices: [valueUrl]
            index: 36
          valueUrl: {type: url, choiceOf: value, index: 37}
      deliverydoc:
        url: deliverydoc
        _required: true
        index: 38
        elements:
          url:
            pattern: {type: Uri, value: deliverydoc}
            index: 39
          value:
            choices: [valueReference]
            index: 41
          valueReference:
            type: Reference
            choiceOf: value
            refers: ['http://ehelse.no/fhir/StructureDefinition/sfm-MedicationDispense']
            index: 42
    elements:
      extension:
        index: 7
        slicing:
          rules: open
          discriminator:
          - {path: url, type: value}
          min: null
          slices:
            prescriptionId:
              match: {url: prescriptionId}
              schema:
                _required: true
                index: 8
                elements:
                  url:
                    pattern: {type: Uri, value: prescriptionId}
                    index: 9
                  value:
                    choices: [valueReference]
                    index: 11
                  valueReference:
                    type: Reference
                    choiceOf: value
                    refers: ['http://ehelse.no/fhir/StructureDefinition/sfm-MedicationStatement']
                    index: 12
            refM10:
              match: {url: refM10}
              schema:
                index: 13
                elements:
                  url:
                    pattern: {type: Uri, value: refM10}
                    index: 14
                  value:
                    choices: [valueString]
                    index: 16
                  valueString: {type: string, choiceOf: value, index: 17}
            repacking:
              match: {url: repacking}
              schema:
                index: 18
                elements:
                  url:
                    pattern: {type: Uri, value: repacking}
                    index: 19
                  value:
                    pattern:
                      type: CodeableConcept
                      value:
                        coding:
                        - {system: 'urn:oid:2.16.578.1.12.4.1.1.7492'}
                    choices: [valueCodeableConcept]
                    index: 21
                  valueCodeableConcept:
                    type: CodeableConcept
                    pattern:
                      type: CodeableConcept
                      value:
                        coding:
                        - {system: 'urn:oid:2.16.578.1.12.4.1.1.7492'}
                    choiceOf: value
                    index: 22
            datefirstdose:
              match: {url: datefirstdose}
              schema:
                _required: true
                index: 23
                elements:
                  url:
                    pattern: {type: Uri, value: datefirstdose}
                    index: 24
                  value:
                    choices: [valueDateTime]
                    index: 26
                  valueDateTime: {type: dateTime, choiceOf: value, index: 27}
            datelastdose:
              match: {url: datelastdose}
              schema:
                _required: true
                index: 28
                elements:
                  url:
                    pattern: {type: Uri, value: datelastdose}
                    index: 29
                  value:
                    choices: [valueDateTime]
                    index: 31
                  valueDateTime: {type: dateTime, choiceOf: value, index: 32}
            pictureref:
              match: {url: pictureref}
              schema:
                index: 33
                elements:
                  url:
                    pattern: {type: Uri, value: pictureref}
                    index: 34
                  value:
                    choices: [valueUrl]
                    index: 36
                  valueUrl: {type: url, choiceOf: value, index: 37}
            deliverydoc:
              match: {url: deliverydoc}
              schema:
                _required: true
                index: 38
                elements:
                  url:
                    pattern: {type: Uri, value: deliverydoc}
                    index: 39
                  value:
                    choices: [valueReference]
                    index: 41
                  valueReference:
                    type: Reference
                    choiceOf: value
                    refers: ['http://ehelse.no/fhir/StructureDefinition/sfm-MedicationDispense']
                    index: 42
      url:
        pattern: {type: Uri, value: deliveryinformation}
        index: 43
      value:
        choices: []
        index: 45
  text:
    url: text
    short: General coment in M25.x
    index: 46
    elements:
      url:
        pattern: {type: Uri, value: text}
        index: 47
      value:
        choices: [valueString]
        index: 49
      valueString: {type: string, choiceOf: value, index: 50}
  substitute:
    url: substitute
    short: Substitute for Multidose doctor
    index: 51
    elements:
      url:
        pattern: {type: Uri, value: substitute}
        index: 52
      value:
        choices: [valueBoolean]
        index: 54
      valueBoolean: {type: boolean, choiceOf: value, index: 55}
  createPLL:
    url: createPLL
    short: Identifies to create PLL
    index: 56
    elements:
      url:
        pattern: {type: Uri, value: createPLL}
        index: 57
      value:
        choices: [valueBoolean]
        index: 59
      valueBoolean: {type: boolean, choiceOf: value, index: 60}
  packinginfo:
    url: packinginfo
    short: Packing info from M25.2/3
    index: 61
    extensions:
      orderdeadline:
        url: orderdeadline
        short: Deadline for ordering new packing
        _required: true
        index: 63
        elements:
          url:
            pattern: {type: Uri, value: orderdeadline}
            index: 64
          value:
            choices: [valueDateTime]
            index: 66
          valueDateTime: {type: dateTime, choiceOf: value, index: 67}
      firstdosingdate:
        url: firstdosingdate
        short: First date of dosing based on packing
        index: 68
        elements:
          url:
            pattern: {type: Uri, value: firstdosingdate}
            index: 69
          value:
            choices: [valueDate]
            index: 71
          valueDate: {type: date, choiceOf: value, index: 72}
      lastdosingdate:
        url: lastdosingdate
        short: Last date of dosing based on packing
        index: 73
        elements:
          url:
            pattern: {type: Uri, value: lastdosingdate}
            index: 74
          value:
            choices: [valueDate]
            index: 76
          valueDate: {type: date, choiceOf: value, index: 77}
    elements:
      extension:
        index: 62
        slicing:
          rules: open
          discriminator:
          - {path: url, type: value}
          min: null
          slices:
            orderdeadline:
              match: {url: orderdeadline}
              schema:
                short: Deadline for ordering new packing
                _required: true
                index: 63
                elements:
                  url:
                    pattern: {type: Uri, value: orderdeadline}
                    index: 64
                  value:
                    choices: [valueDateTime]
                    index: 66
                  valueDateTime: {type: dateTime, choiceOf: value, index: 67}
            firstdosingdate:
              match: {url: firstdosingdate}
              schema:
                short: First date of dosing based on packing
                index: 68
                elements:
                  url:
                    pattern: {type: Uri, value: firstdosingdate}
                    index: 69
                  value:
                    choices: [valueDate]
                    index: 71
                  valueDate: {type: date, choiceOf: value, index: 72}
            lastdosingdate:
              match: {url: lastdosingdate}
              schema:
                short: Last date of dosing based on packing
                index: 73
                elements:
                  url:
                    pattern: {type: Uri, value: lastdosingdate}
                    index: 74
                  value:
                    choices: [valueDate]
                    index: 76
                  valueDate: {type: date, choiceOf: value, index: 77}
      url:
        pattern: {type: Uri, value: packinginfo}
        index: 78
      value:
        choices: []
        index: 80
  PLLdate:
    url: PLLdate
    index: 81
    elements:
      url:
        pattern: {type: Uri, value: PLLdate}
        index: 82
      value:
        choices: [valueDateTime]
        index: 84
      valueDateTime: {type: dateTime, choiceOf: value, index: 85}
class: extension
kind: complex-type
url: http://ehelse.no/fhir/StructureDefinition/sfm-pllInformation
base: http://hl7.org/fhir/StructureDefinition/Extension
version: '1.0'