PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.uv.sdc@4.0.0-ballot
    http://hl7.org/fhir/uv/sdc/Questionnaire/questionnaire-sdc-profile-example-item-weight
{
  "description": null,
  "_filename": "example/Questionnaire-questionnaire-sdc-profile-example-item-weight.json",
  "package_name": "hl7.fhir.uv.sdc",
  "date": "2024-12-17T01:55:34+00:00",
  "meta": {
    "profile": [ "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-behave" ]
  },
  "publisher": "HL7 International / FHIR Infrastructure",
  "jurisdiction": [ {
    "coding": [ {
      "code": "001",
      "system": "http://unstats.un.org/unsd/methods/m49/m49.htm",
      "display": "World"
    } ]
  } ],
  "name": "SDCExampleUsingItemWeight",
  "item": [ {
    "item": [ {
      "text": "1. Little interest or pleasure in doing things",
      "type": "choice",
      "linkId": "1.1",
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-choiceOrientation",
        "valueCode": "horizontal"
      }, {
        "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
        "valueCodeableConcept": {
          "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.",
          "coding": [ {
            "code": "radio-button",
            "system": "http://hl7.org/fhir/questionnaire-item-control",
            "display": "Radio Button"
          } ]
        }
      } ],
      "answerValueSet": "#LL358-3"
    }, {
      "text": "2. Feeling down, depressed, or hopeless",
      "type": "choice",
      "linkId": "1.2",
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-choiceOrientation",
        "valueCode": "horizontal"
      }, {
        "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
        "valueCodeableConcept": {
          "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.",
          "coding": [ {
            "code": "radio-button",
            "system": "http://hl7.org/fhir/questionnaire-item-control",
            "display": "Radio Button"
          } ]
        }
      } ],
      "answerValueSet": "#LL358-3"
    }, {
      "text": "3. Trouble falling or staying asleep, or sleeping too much",
      "type": "choice",
      "linkId": "1.3",
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-choiceOrientation",
        "valueCode": "horizontal"
      }, {
        "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
        "valueCodeableConcept": {
          "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.",
          "coding": [ {
            "code": "radio-button",
            "system": "http://hl7.org/fhir/questionnaire-item-control",
            "display": "Radio Button"
          } ]
        }
      } ],
      "answerValueSet": "#LL358-3"
    }, {
      "text": "4. Feeling tired or having little energy",
      "type": "choice",
      "linkId": "1.4",
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-choiceOrientation",
        "valueCode": "horizontal"
      }, {
        "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
        "valueCodeableConcept": {
          "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.",
          "coding": [ {
            "code": "radio-button",
            "system": "http://hl7.org/fhir/questionnaire-item-control",
            "display": "Radio Button"
          } ]
        }
      } ],
      "answerValueSet": "#LL358-3"
    }, {
      "text": "Total Score:",
      "type": "integer",
      "linkId": "6",
      "extension": [ {
        "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression",
        "valueExpression": {
          "language": "text/fhirpath",
          "expression": "%resource.repeat(item).where(linkId='1.0').item.answer.value.weight().aggregate($this + $total, 0)",
          "description": "Total score"
        }
      } ]
    } ],
    "text": "Over the last 2 weeks, how often have you been bothered by any of the following problems?",
    "type": "group",
    "linkId": "1.0",
    "extension": [ {
      "url": "http://hl7.org/fhir/StructureDefinition/targetConstraint",
      "extension": [ {
        "url": "key",
        "valueId": "contraint-1"
      }, {
        "url": "requirements",
        "valueMarkdown": "At least three questions must be answered to have a meaningful total."
      }, {
        "url": "severity",
        "valueCode": "warning"
      }, {
        "url": "expression",
        "valueExpression": {
          "language": "text/fhirpath",
          "expression": "%resource.repeat(item).where(linkId='1.0').item.where(answer.hasValue()).count() >= 3"
        }
      }, {
        "url": "human",
        "valueString": "You should answer at least three questions."
      } ]
    } ]
  } ],
  "type": null,
  "experimental": null,
  "resourceType": "Questionnaire",
  "title": null,
  "package_version": "4.0.0-ballot",
  "extension": [ {
    "url": "http://hl7.org/fhir/5.0/StructureDefinition/extension-Questionnaire.versionAlgorithm[x]",
    "valueCoding": {
      "code": "semver",
      "system": "http://hl7.org/fhir/version-algorithm"
    }
  } ],
  "contained": [ {
    "description": "The answer list for timing of harm assessment",
    "compose": {
      "include": [ {
        "system": "http://loinc.org",
        "concept": [ {
          "code": "LA6568-5",
          "display": "Not at all"
        }, {
          "code": "LA6569-3",
          "display": "Several days"
        }, {
          "code": "LA6570-1",
          "display": "More than half the days"
        }, {
          "code": "LA6571-9",
          "display": "Nearly every day"
        } ]
      } ]
    },
    "name": "TimingOfHarmAssessment",
    "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",
    "resourceType": "ValueSet",
    "title": "Timing of harm assessment [AHRQ]",
    "status": "active",
    "id": "LL358-3",
    "url": "http://example.org/ValueSet/LL358-3"
  } ],
  "status": "active",
  "id": "a3356840-de00-4974-87bd-e3a99fb07367",
  "kind": null,
  "url": "http://hl7.org/fhir/uv/sdc/Questionnaire/questionnaire-sdc-profile-example-item-weight",
  "identifier": [ {
    "value": "urn:oid:2.16.840.1.113883.4.642.40.17.35.31",
    "system": "urn:ietf:rfc:3986"
  } ],
  "version": "4.0.0-ballot",
  "contact": [ {
    "name": "HL7 International / FHIR Infrastructure",
    "telecom": [ {
      "value": "http://www.hl7.org/Special/committees/fiwg",
      "system": "url"
    } ]
  }, {
    "telecom": [ {
      "value": "http://www.hl7.org/Special/committees/fiwg",
      "system": "url"
    } ]
  } ]
}