PackagesCanonicalsLogsProblems
    Packages
    sfm.030521@1.0.1
    http://ehelse.no/fhir/StructureDefinition/sfm-libitemcomment
description: Comment on a lib item in SFM
package_name: sfm.030521
derivation: constraint
name: SfmLIbItemComment
type: Extension
elements:
  extension:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        type:
          match: {url: type}
          schema:
            short: Type of comment
            _required: true
            index: 1
            elements:
              url:
                pattern: {type: Uri, value: type}
                index: 2
              value:
                choices: [valueCodeableConcept]
                index: 4
              valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 5}
              value[x]:
                elements:
                  coding:
                    elements:
                      system:
                        pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7495'}
                        index: 6
        merknad:
          match: {url: merknad}
          schema:
            short: Textual comment
            index: 7
            elements:
              url:
                pattern: {type: Uri, value: merknad}
                index: 8
              value:
                choices: [valueString]
                index: 10
              valueString: {type: string, choiceOf: value, index: 11}
        Id:
          match: {url: Id}
          schema:
            short: Id of the comment
            index: 12
            elements:
              url:
                pattern: {type: Uri, value: Id}
                index: 13
              value:
                choices: [valueString]
                index: 15
              valueString: {type: string, choiceOf: value, index: 16}
        registeredby:
          match: {url: registeredby}
          schema:
            short: User that has registered the comment
            index: 17
            elements:
              url:
                pattern: {type: Uri, value: registeredby}
                index: 18
              value:
                choices: [valueString]
                index: 20
              valueString: {type: string, choiceOf: value, index: 21}
        receiver:
          match: {url: receiver}
          schema:
            short: user that should respond to comment
            index: 22
            elements:
              url:
                pattern: {type: Uri, value: receiver}
                index: 23
              value:
                choices: [valueString]
                index: 25
              valueString: {type: string, choiceOf: value, index: 26}
        response:
          match: {url: response}
          schema:
            short: response to the comment
            index: 27
            extensions:
              Id:
                url: Id
                short: Id of the response
                index: 29
                elements:
                  url:
                    pattern: {type: Uri, value: Id}
                    index: 30
                  value:
                    choices: [valueString]
                    index: 32
                  valueString: {type: string, choiceOf: value, index: 33}
              responder:
                url: responder
                short: User that has responded to the comemnt
                index: 34
                elements:
                  url:
                    pattern: {type: Uri, value: responder}
                    index: 35
                  value:
                    choices: [valueString]
                    index: 37
                  valueString: {type: string, choiceOf: value, index: 38}
              svar:
                url: svar
                short: textual response
                index: 39
                elements:
                  url:
                    pattern: {type: Uri, value: svar}
                    index: 40
                  value:
                    choices: [valueString]
                    index: 42
                  valueString: {type: string, choiceOf: value, index: 43}
              type:
                url: type
                short: coded response
                _required: true
                index: 44
                elements:
                  url:
                    pattern: {type: Uri, value: type}
                    index: 45
                  value:
                    choices: [valueCodeableConcept]
                    index: 47
                  valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 48}
                  value[x]:
                    elements:
                      coding:
                        elements:
                          system:
                            pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7493'}
                            index: 49
            elements:
              extension:
                index: 28
                slicing:
                  rules: open
                  discriminator:
                  - {path: url, type: value}
                  min: null
                  slices:
                    Id:
                      match: {url: Id}
                      schema:
                        short: Id of the response
                        index: 29
                        elements:
                          url:
                            pattern: {type: Uri, value: Id}
                            index: 30
                          value:
                            choices: [valueString]
                            index: 32
                          valueString: {type: string, choiceOf: value, index: 33}
                    responder:
                      match: {url: responder}
                      schema:
                        short: User that has responded to the comemnt
                        index: 34
                        elements:
                          url:
                            pattern: {type: Uri, value: responder}
                            index: 35
                          value:
                            choices: [valueString]
                            index: 37
                          valueString: {type: string, choiceOf: value, index: 38}
                    svar:
                      match: {url: svar}
                      schema:
                        short: textual response
                        index: 39
                        elements:
                          url:
                            pattern: {type: Uri, value: svar}
                            index: 40
                          value:
                            choices: [valueString]
                            index: 42
                          valueString: {type: string, choiceOf: value, index: 43}
                    type:
                      match: {url: type}
                      schema:
                        short: coded response
                        _required: true
                        index: 44
                        elements:
                          url:
                            pattern: {type: Uri, value: type}
                            index: 45
                          value:
                            choices: [valueCodeableConcept]
                            index: 47
                          valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 48}
                          value[x]:
                            elements:
                              coding:
                                elements:
                                  system:
                                    pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7493'}
                                    index: 49
              url:
                pattern: {type: Uri, value: response}
                index: 50
              value:
                choices: []
                index: 52
        timestamp:
          match: {url: timestamp}
          schema:
            _required: true
            index: 53
            elements:
              url:
                pattern: {type: Uri, value: timestamp}
                index: 54
              value:
                choices: [valueDateTime]
                index: 56
              valueDateTime: {type: dateTime, choiceOf: value, index: 57}
  url:
    pattern: {type: Uri, value: 'http://ehelse.no/fhir/StructureDefinition/sfm-libitemcomment'}
    index: 58
  value:
    choices: []
    index: 60
package_version: 1.0.1
extensions:
  type:
    url: type
    short: Type of comment
    _required: true
    index: 1
    elements:
      url:
        pattern: {type: Uri, value: type}
        index: 2
      value:
        choices: [valueCodeableConcept]
        index: 4
      valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 5}
      value[x]:
        elements:
          coding:
            elements:
              system:
                pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7495'}
                index: 6
  merknad:
    url: merknad
    short: Textual comment
    index: 7
    elements:
      url:
        pattern: {type: Uri, value: merknad}
        index: 8
      value:
        choices: [valueString]
        index: 10
      valueString: {type: string, choiceOf: value, index: 11}
  Id:
    url: Id
    short: Id of the comment
    index: 12
    elements:
      url:
        pattern: {type: Uri, value: Id}
        index: 13
      value:
        choices: [valueString]
        index: 15
      valueString: {type: string, choiceOf: value, index: 16}
  registeredby:
    url: registeredby
    short: User that has registered the comment
    index: 17
    elements:
      url:
        pattern: {type: Uri, value: registeredby}
        index: 18
      value:
        choices: [valueString]
        index: 20
      valueString: {type: string, choiceOf: value, index: 21}
  receiver:
    url: receiver
    short: user that should respond to comment
    index: 22
    elements:
      url:
        pattern: {type: Uri, value: receiver}
        index: 23
      value:
        choices: [valueString]
        index: 25
      valueString: {type: string, choiceOf: value, index: 26}
  response:
    url: response
    short: response to the comment
    index: 27
    extensions:
      Id:
        url: Id
        short: Id of the response
        index: 29
        elements:
          url:
            pattern: {type: Uri, value: Id}
            index: 30
          value:
            choices: [valueString]
            index: 32
          valueString: {type: string, choiceOf: value, index: 33}
      responder:
        url: responder
        short: User that has responded to the comemnt
        index: 34
        elements:
          url:
            pattern: {type: Uri, value: responder}
            index: 35
          value:
            choices: [valueString]
            index: 37
          valueString: {type: string, choiceOf: value, index: 38}
      svar:
        url: svar
        short: textual response
        index: 39
        elements:
          url:
            pattern: {type: Uri, value: svar}
            index: 40
          value:
            choices: [valueString]
            index: 42
          valueString: {type: string, choiceOf: value, index: 43}
      type:
        url: type
        short: coded response
        _required: true
        index: 44
        elements:
          url:
            pattern: {type: Uri, value: type}
            index: 45
          value:
            choices: [valueCodeableConcept]
            index: 47
          valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 48}
          value[x]:
            elements:
              coding:
                elements:
                  system:
                    pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7493'}
                    index: 49
    elements:
      extension:
        index: 28
        slicing:
          rules: open
          discriminator:
          - {path: url, type: value}
          min: null
          slices:
            Id:
              match: {url: Id}
              schema:
                short: Id of the response
                index: 29
                elements:
                  url:
                    pattern: {type: Uri, value: Id}
                    index: 30
                  value:
                    choices: [valueString]
                    index: 32
                  valueString: {type: string, choiceOf: value, index: 33}
            responder:
              match: {url: responder}
              schema:
                short: User that has responded to the comemnt
                index: 34
                elements:
                  url:
                    pattern: {type: Uri, value: responder}
                    index: 35
                  value:
                    choices: [valueString]
                    index: 37
                  valueString: {type: string, choiceOf: value, index: 38}
            svar:
              match: {url: svar}
              schema:
                short: textual response
                index: 39
                elements:
                  url:
                    pattern: {type: Uri, value: svar}
                    index: 40
                  value:
                    choices: [valueString]
                    index: 42
                  valueString: {type: string, choiceOf: value, index: 43}
            type:
              match: {url: type}
              schema:
                short: coded response
                _required: true
                index: 44
                elements:
                  url:
                    pattern: {type: Uri, value: type}
                    index: 45
                  value:
                    choices: [valueCodeableConcept]
                    index: 47
                  valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 48}
                  value[x]:
                    elements:
                      coding:
                        elements:
                          system:
                            pattern: {type: Uri, value: 'urn:oid:2.16.578.1.12.4.1.1.7493'}
                            index: 49
      url:
        pattern: {type: Uri, value: response}
        index: 50
      value:
        choices: []
        index: 52
  timestamp:
    url: timestamp
    _required: true
    index: 53
    elements:
      url:
        pattern: {type: Uri, value: timestamp}
        index: 54
      value:
        choices: [valueDateTime]
        index: 56
      valueDateTime: {type: dateTime, choiceOf: value, index: 57}
class: extension
kind: complex-type
url: http://ehelse.no/fhir/StructureDefinition/sfm-libitemcomment
base: http://hl7.org/fhir/StructureDefinition/Extension
version: '1.0'