PackagesCanonicalsLogsProblems
    Packages
    kl.dk.fhir.children@2.1.0
    http://fhir.kl.dk/children/StructureDefinition/klgateway-children-questionnaire-response
description: Questionnaire response profile, for all questionaires in kl-children
package_name: kl.dk.fhir.children
derivation: constraint
name: KLGatewayChildrenQuestionnaireResponse
type: QuestionnaireResponse
elements:
  questionnaire: {short: '[DK] SpørgeskemaSvarSpørgeskemaDefinition', index: 7}
  encounter: {index: 9}
  item:
    array: true
    max: 36
    index: 13
    elements:
      linkId: {short: '[DK] SpørgeskemaSvarPunktId', index: 14}
      definition: {index: 15}
      text: {index: 16}
      answer:
        index: 17
        elements:
          value:
            choices: [valueBoolean]
            index: 30
            slicing:
              slices:
                valueBoolean:
                  match: {}
                  schema:
                    choices: [valueBoolean]
                    index: 30
                  min: 0
                  max: 1
          valueBoolean:
            type: boolean
            choiceOf: value
            index: 31
            slicing:
              slices:
                valueBoolean:
                  match: {}
                  schema: {type: boolean, choiceOf: value, index: 31}
                  min: 0
                  max: 1
          valueInteger:
            type: integer
            choiceOf: value
            index: 28
            slicing:
              slices:
                valueInteger:
                  match: {}
                  schema: {type: integer, choiceOf: value, index: 28}
                  min: 0
                  max: 1
          valueString:
            type: string
            constraint:
              questionnaire-response-string-length: {human: 'Answer given as string must be a minimum of 1 character, and maximum of 30 characters long', source: 'http://fhir.kl.dk/children/StructureDefinition/klgateway-children-questionnaire-response', severity: error, expression: 'matches(''^.{1,30}$'')'}
            choiceOf: value
            index: 25
            slicing:
              slices:
                valueString:
                  match: {}
                  schema:
                    type: string
                    constraint:
                      questionnaire-response-string-length: {human: 'Answer given as string must be a minimum of 1 character, and maximum of 30 characters long', source: 'http://fhir.kl.dk/children/StructureDefinition/klgateway-children-questionnaire-response', severity: error, expression: 'matches(''^.{1,30}$'')'}
                    choiceOf: value
                    index: 25
                  min: 0
                  max: 1
          item: {index: 32}
        required: [valueString, value, valueBoolean, valueInteger]
      item: {index: 33}
    required: [answer]
  source: {index: 12}
  author: {index: 11}
  extension:
    index: 0
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        findingInformer:
          match: {url: null}
          schema:
            type: Extension
            isSummary: true
            url: http://fhir.kl.dk/children/StructureDefinition/FindingInformer
            index: 1
            elements:
              value:
                short: '[DK] SpørgeskemaSvarKilde'
                choices: []
                index: 3
  identifier: {index: 4}
  basedOn: {index: 5}
  authored: {short: '[DK] SpørgeskemaSvarTid', index: 10}
  partOf: {index: 6}
  subject:
    type: Reference
    short: '[DK] SpørgeskemaSvarSubjekt'
    refers: ['http://fhir.kl.dk/children/StructureDefinition/klgateway-children-citizen']
    index: 8
package_version: 2.1.0
extensions:
  findingInformer:
    url: http://fhir.kl.dk/children/StructureDefinition/FindingInformer
    type: Extension
    isSummary: true
    index: 1
    elements:
      value:
        short: '[DK] SpørgeskemaSvarKilde'
        choices: []
        index: 3
class: profile
kind: resource
url: http://fhir.kl.dk/children/StructureDefinition/klgateway-children-questionnaire-response
base: http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse
version: 2.1.0
required: [authored, subject, questionnaire]