FHIR © HL7.org  |  Server Home  |  XIG Home  |  XIG Stats  |  Server Source  |  FHIR  

FHIR IG Statistics: Questionnaire/questionnaire-sdc-profile-example-ordinal-value

Packagehl7.fhir.uv.sdc.r4b
Resource TypeQuestionnaire
Idquestionnaire-sdc-profile-example-ordinal-value
FHIR VersionR4B
Sourcehttp://hl7.org/fhir/uv/sdc/http://hl7.org/fhir/uv/sdc/STU3/Questionnaire-questionnaire-sdc-profile-example-ordinal-value.html
URLhttp://hl7.org/fhir/uv/sdc/Questionnaire/questionnaire-sdc-profile-example-ordinal-value
Version3.0.0
Statusdraft
Date2022-03-08T18:37:19+00:00
NameSDCExampleUsingOrdinalValue
Realmuv
Authorityhl7

Resources that use this resource

No resources found


Resources that this resource uses

No resources found


Narrative

Note: links and images are rebased to the (stated) source

LinkIdTextCardinalityTypeFlagsDescription & Constraintsdoco
.. SDCExampleUsingOrdinalValueQuestionnairehttp://hl7.org/fhir/uv/sdc/Questionnaire/questionnaire-sdc-profile-example-ordinal-value#3.0.0
... 1.0Over the last 2 weeks, how often have you been bothered by any of the following problems?0..1group
.... 1.11. Little interest or pleasure in doing things0..1choiceValue Set: Timing of harm assessment [AHRQ]
.... 1.22. Feeling down, depressed, or hopeless0..1choiceValue Set: Timing of harm assessment [AHRQ]
.... 1.33. Trouble falling or staying asleep, or sleeping too much0..1choiceValue Set: Timing of harm assessment [AHRQ]
.... 1.44. Feeling tired or having little energy0..1choiceValue Set: Timing of harm assessment [AHRQ]
.... 6Total Score:0..1integerExpressions:
  • Calculated Value: %resource.repeat(item).where(linkId='1.0').item.answer.ordinalValue().aggregate($this + $total, 0)

doco Documentation for this format

Source

{
  "resourceType": "Questionnaire",
  "id": "questionnaire-sdc-profile-example-ordinal-value",
  "text": {
    "status": "generated",
    "div": "<!-- snip (see above) -->"
  },
  "contained": [
    {
      "resourceType": "ValueSet",
      "id": "LL358-3",
      "name": "TimingOfHarmAssessment",
      "title": "Timing of harm assessment [AHRQ]",
      "status": "active",
      "description": "The answer list for timing of harm assessment",
      "copyright": "This content from LOINC® is copyright © 1995 Regenstrief Institute, Inc. and the LOINC Committee, and available at no cost under the license at http://loinc.org/terms-of-use",
      "compose": {
        "include": [
          {
            "system": "http://loinc.org",
            "concept": [
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                    "valueDecimal": 0
                  }
                ],
                "code": "LA6568-5",
                "display": "Not at all"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                    "valueDecimal": 1
                  }
                ],
                "code": "LA6569-3",
                "display": "Several days"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                    "valueDecimal": 2
                  }
                ],
                "code": "LA6570-1",
                "display": "More than half the days"
              },
              {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                    "valueDecimal": 3
                  }
                ],
                "code": "LA6571-9",
                "display": "Nearly every day"
              }
            ]
          }
        ]
      }
    }
  ],
  "url": "http://hl7.org/fhir/uv/sdc/Questionnaire/questionnaire-sdc-profile-example-ordinal-value",
  "version": "3.0.0",
  "name": "SDCExampleUsingOrdinalValue",
  "status": "draft",
  "date": "2022-03-08T18:37:19+00:00",
  "publisher": "HL7 International - FHIR Infrastructure Work Group",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://hl7.org/Special/committees/fiwg"
        }
      ]
    }
  ],
  "jurisdiction": [
    {
      "coding": [
        {
          "system": "http://unstats.un.org/unsd/methods/m49/m49.htm",
          "code": "001"
        }
      ]
    }
  ],
  "item": [
    {
      "extension": [
        {
          "extension": [
            {
              "url": "key",
              "valueId": "contraint-1"
            },
            {
              "url": "requirements",
              "valueString": "At least three questions must be answered to have a meaningful total."
            },
            {
              "url": "severity",
              "valueCode": "warning"
            },
            {
              "url": "expression",
              "valueString": "%resource.repeat(item).where(linkId='1.0').item.where(answer.hasValue()).count() >= 3"
            },
            {
              "url": "human",
              "valueString": "You should answer at least three questions."
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-constraint"
        }
      ],
      "linkId": "1.0",
      "text": "Over the last 2 weeks, how often have you been bothered by any of the following problems?",
      "type": "group",
      "item": [
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-choiceOrientation",
              "valueCode": "horizontal"
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "radio-button",
                    "display": "Radio Button"
                  }
                ],
                "text": "A control where choices are listed with a button beside them. The button can be toggled to select or de-select a given choice. Selecting one item deselects all others."
              }
            }
          ],
          "linkId": "1.1",
          "text": "1. Little interest or pleasure in doing things",
          "type": "choice",
          "answerValueSet": "#LL358-3"
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-choiceOrientation",
              "valueCode": "horizontal"
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "radio-button",
                    "display": "Radio Button"
                  }
                ],
                "text": "A control where choices are listed with a button beside them. The button can be toggled to select or de-select a given choice. Selecting one item deselects all others."
              }
            }
          ],
          "linkId": "1.2",
          "text": "2. Feeling down, depressed, or hopeless",
          "type": "choice",
          "answerValueSet": "#LL358-3"
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-choiceOrientation",
              "valueCode": "horizontal"
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "radio-button",
                    "display": "Radio Button"
                  }
                ],
                "text": "A control where choices are listed with a button beside them. The button can be toggled to select or de-select a given choice. Selecting one item deselects all others."
              }
            }
          ],
          "linkId": "1.3",
          "text": "3. Trouble falling or staying asleep, or sleeping too much",
          "type": "choice",
          "answerValueSet": "#LL358-3"
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-choiceOrientation",
              "valueCode": "horizontal"
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "radio-button",
                    "display": "Radio Button"
                  }
                ],
                "text": "A control where choices are listed with a button beside them. The button can be toggled to select or de-select a given choice. Selecting one item deselects all others."
              }
            }
          ],
          "linkId": "1.4",
          "text": "4. Feeling tired or having little energy",
          "type": "choice",
          "answerValueSet": "#LL358-3"
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression",
              "valueExpression": {
                "description": "Total score",
                "language": "text/fhirpath",
                "expression": "%resource.repeat(item).where(linkId='1.0').item.answer.ordinalValue().aggregate($this + $total, 0)"
              }
            }
          ],
          "linkId": "6",
          "text": "Total Score:",
          "type": "integer"
        }
      ]
    }
  ]
}