Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Library for Assessment of Questionnaire Response

This Library contains a generic rule that performs assessment of a QuestionnaireResponse in relation to answer significances defined on Questionnaires.

During processing of the rule, all answer significances on questions and their linked answers in the QuestionnaireResponse are traversed and checked whether the condition(s) of the answer significance is met by the linked answer. When this is the case, a finding basis is added to internal bookkeeping. Ultimately, the list of finding basis determines the created ClinicalImpression finding and the priority of the created task:

  • In case the list of finding basis contains at least one red question/answer pair, the priority is set to asap

  • In case the list of finding basis contains at least one yellow question/answer pair and no red question/answer pair , the priority is set to urgent

  • Otherwise, the priority is set to routine

The Library has:

  • .type set to automated-processing

  • .parameter

    • .use set to in for input

    • .type set to QuestionnaireResponse

  • .parameter

    • .use set to in for input

    • .type set to Questionnaire

  • .parameter

    • .use set to in for input

    • .type set to ServiceRequest

The Library rule sets up instructions that causes production of:

  • A ClinicalImpresssion:

    • .finding as follows:

      • If the triggered red set is not empty, a finding.item with a Coding:

        • system = http://ehealth.sundhed.dk/cs/clinicalimpression-finding-codes

        • code = red-question-answer

        • display = Rød spørgsmål/svar-kombination fundet i spørgeskemabesvarelse

      • If the triggered yellow set is not empty, a finding.item with a Coding:

        • system = http://ehealth.sundhed.dk/cs/clinicalimpression-finding-codes

        • code = yellow-question-answer

        • display = Gul spørgsmål/svar-kombination fundet i spørgeskemabesvarelse

      • If both triggered sets are empty, a finding.item with a Coding:

        • system = http://ehealth.sundhed.dk/cs/clinicalimpression-finding-codes

        • code = green-question-answer

        • display = Grøn spørgsmål/svar-kombination fundet i spørgeskemabesvarelse

      • If both triggered sets are empty, a finding.item with a Coding:

        • system = http://ehealth.sundhed.dk/cs/clinicalimpression-finding-codes

        • code = no-effective-answer-significance

        • display = Ingen triageringsindikator for spørgsmål/svar-kombination har fundet anvendelse

      • If both triggered sets are empty, a finding.item with a Coding:

        • system = http://ehealth.sundhed.dk/cs/clinicalimpression-finding-codes

        • code = no-answer-significance-defined

        • display = Ingen triageringsindikator defineret i spørgeskemaet

    • list of .ehealth-questionnaireresponse-finding-basis for each basis for the overall ClinicalImpression as follows:

      • test

  • A Task related to the ClinicalImpression with:

    • priority set to the priority value determined above.