PackagesCanonicalsLogsProblems
    Packages
    sfm.030521@1.0.1
    http://ehelse.no/fhir/StructureDefinition/sfm-lib-list-meta-data
description: Meta data about the LIB list that is presented.
package_name: sfm.030521
derivation: constraint
name: SfmLibListMetaData
type: Extension
elements:
  extension:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        approvalstatus:
          match: {url: approvalstatus}
          schema:
            short: Information about the LIB is aproved
            index: 1
            extensions:
              approved:
                url: approved
                short: Aprovementinformation
                _required: true
                index: 3
                elements:
                  url:
                    pattern: {type: Uri, value: approved}
                    index: 4
                  value:
                    choices: [valueCodeableConcept]
                    index: 6
                  valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 7}
                  value[x]:
                    elements:
                      coding:
                        elements:
                          system:
                            pattern: {type: Uri, value: 'http://ehelse.no/fhir/CodeSystem/sfm-approvalstatus-code'}
                            index: 8
              signedby:
                url: signedby
                short: Practitioner that aporved
                index: 9
                elements:
                  url:
                    pattern: {type: Uri, value: signedby}
                    index: 10
                  value:
                    choices: [valueReference]
                    index: 12
                  valueReference:
                    type: Reference
                    choiceOf: value
                    refers: ['http://ehelse.no/fhir/StructureDefinition/sfm-Practitioner']
                    index: 13
              timestamp:
                url: timestamp
                index: 14
                elements:
                  url:
                    pattern: {type: Uri, value: timestamp}
                    index: 15
                  value:
                    choices: [valueDateTime]
                    index: 17
                  valueDateTime: {type: dateTime, choiceOf: value, index: 18}
            elements:
              extension:
                index: 2
                slicing:
                  rules: open
                  discriminator:
                  - {path: url, type: value}
                  min: null
                  slices:
                    approved:
                      match: {url: approved}
                      schema:
                        short: Aprovementinformation
                        _required: true
                        index: 3
                        elements:
                          url:
                            pattern: {type: Uri, value: approved}
                            index: 4
                          value:
                            choices: [valueCodeableConcept]
                            index: 6
                          valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 7}
                          value[x]:
                            elements:
                              coding:
                                elements:
                                  system:
                                    pattern: {type: Uri, value: 'http://ehelse.no/fhir/CodeSystem/sfm-approvalstatus-code'}
                                    index: 8
                    signedby:
                      match: {url: signedby}
                      schema:
                        short: Practitioner that aporved
                        index: 9
                        elements:
                          url:
                            pattern: {type: Uri, value: signedby}
                            index: 10
                          value:
                            choices: [valueReference]
                            index: 12
                          valueReference:
                            type: Reference
                            choiceOf: value
                            refers: ['http://ehelse.no/fhir/StructureDefinition/sfm-Practitioner']
                            index: 13
                    timestamp:
                      match: {url: timestamp}
                      schema:
                        index: 14
                        elements:
                          url:
                            pattern: {type: Uri, value: timestamp}
                            index: 15
                          value:
                            choices: [valueDateTime]
                            index: 17
                          valueDateTime: {type: dateTime, choiceOf: value, index: 18}
              url:
                pattern: {type: Uri, value: approvalstatus}
                index: 19
              value:
                choices: []
                index: 21
        generalcomment:
          match: {url: generalcomment}
          schema:
            short: Comment about the LIB list
            index: 22
            elements:
              url:
                pattern: {type: Uri, value: generalcomment}
                index: 23
              value:
                choices: [valueString]
                index: 25
              valueString: {type: string, choiceOf: value, index: 26}
        period:
          match: {url: period}
          schema:
            short: Period the list is showing
            index: 27
            elements:
              url:
                pattern: {type: Uri, value: period}
                index: 28
              value:
                choices: [valuePeriod]
                index: 30
              valuePeriod: {type: Period, choiceOf: value, index: 31}
        medicationreview:
          match: {url: medicationreview}
          schema:
            short: Last medication review performed
            index: 32
            extensions:
              timestamp:
                url: timestamp
                _required: true
                index: 34
                elements:
                  url:
                    pattern: {type: Uri, value: timestamp}
                    index: 35
                  value:
                    choices: [valueDateTime]
                    index: 37
                  valueDateTime: {type: dateTime, choiceOf: value, index: 38}
              performedby:
                url: performedby
                short: HPR number
                _required: true
                index: 39
                elements:
                  url:
                    pattern: {type: Uri, value: performedby}
                    index: 40
                  value:
                    choices: [valueString]
                    index: 42
                  valueString: {type: string, choiceOf: value, index: 43}
              comment:
                url: comment
                index: 44
                elements:
                  url:
                    pattern: {type: Uri, value: comment}
                    index: 45
                  value:
                    choices: [valueString]
                    index: 47
                  valueString: {type: string, choiceOf: value, index: 48}
            elements:
              extension:
                index: 33
                slicing:
                  rules: open
                  discriminator:
                  - {path: url, type: value}
                  min: null
                  slices:
                    timestamp:
                      match: {url: timestamp}
                      schema:
                        _required: true
                        index: 34
                        elements:
                          url:
                            pattern: {type: Uri, value: timestamp}
                            index: 35
                          value:
                            choices: [valueDateTime]
                            index: 37
                          valueDateTime: {type: dateTime, choiceOf: value, index: 38}
                    performedby:
                      match: {url: performedby}
                      schema:
                        short: HPR number
                        _required: true
                        index: 39
                        elements:
                          url:
                            pattern: {type: Uri, value: performedby}
                            index: 40
                          value:
                            choices: [valueString]
                            index: 42
                          valueString: {type: string, choiceOf: value, index: 43}
                    comment:
                      match: {url: comment}
                      schema:
                        index: 44
                        elements:
                          url:
                            pattern: {type: Uri, value: comment}
                            index: 45
                          value:
                            choices: [valueString]
                            index: 47
                          valueString: {type: string, choiceOf: value, index: 48}
              url:
                pattern: {type: Uri, value: medicationreview}
                index: 49
              value:
                choices: []
                index: 51
        correpondancedata:
          match: {url: correpondancedata}
          schema:
            short: B64 coded structure for correspondanse
            index: 52
            elements:
              url:
                pattern: {type: Uri, value: correpondancedata}
                index: 53
              value:
                choices: [valueBase64Binary]
                index: 55
              valueBase64Binary: {type: base64Binary, choiceOf: value, index: 56}
  url:
    pattern: {type: Uri, value: 'http://ehelse.no/fhir/StructureDefinition/sfm-lib-list-meta-data'}
    index: 57
  value:
    choices: []
    index: 59
package_version: 1.0.1
extensions:
  approvalstatus:
    url: approvalstatus
    short: Information about the LIB is aproved
    index: 1
    extensions:
      approved:
        url: approved
        short: Aprovementinformation
        _required: true
        index: 3
        elements:
          url:
            pattern: {type: Uri, value: approved}
            index: 4
          value:
            choices: [valueCodeableConcept]
            index: 6
          valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 7}
          value[x]:
            elements:
              coding:
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://ehelse.no/fhir/CodeSystem/sfm-approvalstatus-code'}
                    index: 8
      signedby:
        url: signedby
        short: Practitioner that aporved
        index: 9
        elements:
          url:
            pattern: {type: Uri, value: signedby}
            index: 10
          value:
            choices: [valueReference]
            index: 12
          valueReference:
            type: Reference
            choiceOf: value
            refers: ['http://ehelse.no/fhir/StructureDefinition/sfm-Practitioner']
            index: 13
      timestamp:
        url: timestamp
        index: 14
        elements:
          url:
            pattern: {type: Uri, value: timestamp}
            index: 15
          value:
            choices: [valueDateTime]
            index: 17
          valueDateTime: {type: dateTime, choiceOf: value, index: 18}
    elements:
      extension:
        index: 2
        slicing:
          rules: open
          discriminator:
          - {path: url, type: value}
          min: null
          slices:
            approved:
              match: {url: approved}
              schema:
                short: Aprovementinformation
                _required: true
                index: 3
                elements:
                  url:
                    pattern: {type: Uri, value: approved}
                    index: 4
                  value:
                    choices: [valueCodeableConcept]
                    index: 6
                  valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 7}
                  value[x]:
                    elements:
                      coding:
                        elements:
                          system:
                            pattern: {type: Uri, value: 'http://ehelse.no/fhir/CodeSystem/sfm-approvalstatus-code'}
                            index: 8
            signedby:
              match: {url: signedby}
              schema:
                short: Practitioner that aporved
                index: 9
                elements:
                  url:
                    pattern: {type: Uri, value: signedby}
                    index: 10
                  value:
                    choices: [valueReference]
                    index: 12
                  valueReference:
                    type: Reference
                    choiceOf: value
                    refers: ['http://ehelse.no/fhir/StructureDefinition/sfm-Practitioner']
                    index: 13
            timestamp:
              match: {url: timestamp}
              schema:
                index: 14
                elements:
                  url:
                    pattern: {type: Uri, value: timestamp}
                    index: 15
                  value:
                    choices: [valueDateTime]
                    index: 17
                  valueDateTime: {type: dateTime, choiceOf: value, index: 18}
      url:
        pattern: {type: Uri, value: approvalstatus}
        index: 19
      value:
        choices: []
        index: 21
  generalcomment:
    url: generalcomment
    short: Comment about the LIB list
    index: 22
    elements:
      url:
        pattern: {type: Uri, value: generalcomment}
        index: 23
      value:
        choices: [valueString]
        index: 25
      valueString: {type: string, choiceOf: value, index: 26}
  period:
    url: period
    short: Period the list is showing
    index: 27
    elements:
      url:
        pattern: {type: Uri, value: period}
        index: 28
      value:
        choices: [valuePeriod]
        index: 30
      valuePeriod: {type: Period, choiceOf: value, index: 31}
  medicationreview:
    url: medicationreview
    short: Last medication review performed
    index: 32
    extensions:
      timestamp:
        url: timestamp
        _required: true
        index: 34
        elements:
          url:
            pattern: {type: Uri, value: timestamp}
            index: 35
          value:
            choices: [valueDateTime]
            index: 37
          valueDateTime: {type: dateTime, choiceOf: value, index: 38}
      performedby:
        url: performedby
        short: HPR number
        _required: true
        index: 39
        elements:
          url:
            pattern: {type: Uri, value: performedby}
            index: 40
          value:
            choices: [valueString]
            index: 42
          valueString: {type: string, choiceOf: value, index: 43}
      comment:
        url: comment
        index: 44
        elements:
          url:
            pattern: {type: Uri, value: comment}
            index: 45
          value:
            choices: [valueString]
            index: 47
          valueString: {type: string, choiceOf: value, index: 48}
    elements:
      extension:
        index: 33
        slicing:
          rules: open
          discriminator:
          - {path: url, type: value}
          min: null
          slices:
            timestamp:
              match: {url: timestamp}
              schema:
                _required: true
                index: 34
                elements:
                  url:
                    pattern: {type: Uri, value: timestamp}
                    index: 35
                  value:
                    choices: [valueDateTime]
                    index: 37
                  valueDateTime: {type: dateTime, choiceOf: value, index: 38}
            performedby:
              match: {url: performedby}
              schema:
                short: HPR number
                _required: true
                index: 39
                elements:
                  url:
                    pattern: {type: Uri, value: performedby}
                    index: 40
                  value:
                    choices: [valueString]
                    index: 42
                  valueString: {type: string, choiceOf: value, index: 43}
            comment:
              match: {url: comment}
              schema:
                index: 44
                elements:
                  url:
                    pattern: {type: Uri, value: comment}
                    index: 45
                  value:
                    choices: [valueString]
                    index: 47
                  valueString: {type: string, choiceOf: value, index: 48}
      url:
        pattern: {type: Uri, value: medicationreview}
        index: 49
      value:
        choices: []
        index: 51
  correpondancedata:
    url: correpondancedata
    short: B64 coded structure for correspondanse
    index: 52
    elements:
      url:
        pattern: {type: Uri, value: correpondancedata}
        index: 53
      value:
        choices: [valueBase64Binary]
        index: 55
      valueBase64Binary: {type: base64Binary, choiceOf: value, index: 56}
class: extension
kind: complex-type
url: http://ehelse.no/fhir/StructureDefinition/sfm-lib-list-meta-data
base: http://hl7.org/fhir/StructureDefinition/Extension
version: '1.0'