PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.uv.sdc@4.0.0-ballot
    http://hl7.org/fhir/uv/sdc/Questionnaire/questionnaire-sdc-profile-example-hunger-vital-signs
{
  "description": "A hunger vital signs form (showing calculatedExpression selecting a value from a list).",
  "_filename": "example/Questionnaire-questionnaire-sdc-profile-example-hunger-vital-signs.json",
  "package_name": "hl7.fhir.uv.sdc",
  "subjectType": [ "Patient" ],
  "date": "2024-12-17T01:55:34+00:00",
  "meta": {
    "profile": [ "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire" ]
  },
  "publisher": "HL7 International / FHIR Infrastructure",
  "jurisdiction": [ {
    "coding": [ {
      "code": "001",
      "system": "http://unstats.un.org/unsd/methods/m49/m49.htm",
      "display": "World"
    } ]
  } ],
  "name": "QuestionnaireSdcProfileExampleHungerVitalSigns",
  "item": [ {
    "code": [ {
      "code": "88122-7",
      "system": "http://loinc.org",
      "display": "Within the past 12 months we worried whether our food would run out before we got money to buy more [U.S. FSS]"
    } ],
    "text": "Within the past 12Mo we worried whether our food would run out before we got money to buy more",
    "type": "choice",
    "linkId": "/88122-7",
    "required": false,
    "extension": [ {
      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
      "valueCodeableConcept": {
        "text": "Drop down",
        "coding": [ {
          "code": "drop-down",
          "system": "http://hl7.org/fhir/questionnaire-item-control",
          "display": "Drop down"
        } ]
      }
    } ],
    "answerOption": [ {
      "valueCoding": {
        "code": "LA28397-0",
        "system": "http://loinc.org",
        "display": "Often true"
      }
    }, {
      "valueCoding": {
        "code": "LA6729-3",
        "system": "http://loinc.org",
        "display": "Sometimes true"
      }
    }, {
      "valueCoding": {
        "code": "LA28398-8",
        "system": "http://loinc.org",
        "display": "Never true"
      }
    }, {
      "valueCoding": {
        "code": "LA15775-2",
        "system": "http://loinc.org",
        "display": "Don't know/refused"
      }
    } ]
  }, {
    "code": [ {
      "code": "88123-5",
      "system": "http://loinc.org",
      "display": "Within the past 12 months the food we bought just didn't last and we didn't have money to get more [U.S. FSS]"
    } ],
    "text": "Within the past 12Mo the food we bought just didn't last and we didn't have money to get more [U.S. FSS]",
    "type": "choice",
    "linkId": "/88123-5",
    "required": false,
    "extension": [ {
      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
      "valueCodeableConcept": {
        "text": "Drop down",
        "coding": [ {
          "code": "drop-down",
          "system": "http://hl7.org/fhir/questionnaire-item-control",
          "display": "Drop down"
        } ]
      }
    } ],
    "answerOption": [ {
      "valueCoding": {
        "code": "LA28397-0",
        "system": "http://loinc.org",
        "display": "Often true"
      }
    }, {
      "valueCoding": {
        "code": "LA6729-3",
        "system": "http://loinc.org",
        "display": "Sometimes true"
      }
    }, {
      "valueCoding": {
        "code": "LA28398-8",
        "system": "http://loinc.org",
        "display": "Never true"
      }
    }, {
      "valueCoding": {
        "code": "LA15775-2",
        "system": "http://loinc.org",
        "display": "Don't know/refused"
      }
    } ]
  }, {
    "linkId": "/88124-3",
    "item": [ {
      "text": "An answer of \"often true\" or \"sometimes true\" to either or both of the Hunger Vital Sign™ questions identifies a patient as at risk for food insecurity (FI).",
      "type": "display",
      "linkId": "/88124-3-help",
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
        "valueCodeableConcept": {
          "text": "Help-Button",
          "coding": [ {
            "code": "help",
            "system": "http://hl7.org/fhir/questionnaire-item-control",
            "display": "Help-Button"
          } ]
        }
      } ]
    } ],
    "type": "choice",
    "answerOption": [ {
      "valueCoding": {
        "code": "LA19952-3",
        "system": "http://loinc.org",
        "display": "At risk"
      }
    }, {
      "valueCoding": {
        "code": "LA19983-8",
        "system": "http://loinc.org",
        "display": "No risk"
      }
    } ],
    "extension": [ {
      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
      "valueCodeableConcept": {
        "text": "Drop down",
        "coding": [ {
          "code": "drop-down",
          "system": "http://hl7.org/fhir/questionnaire-item-control",
          "display": "Drop down"
        } ]
      }
    }, {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "thisItem",
        "language": "text/fhirpath",
        "expression": "%questionnaire.item.where(linkId = '/88124-3')"
      }
    }, {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "atRiskCoding",
        "language": "text/fhirpath",
        "expression": "%thisItem.answerOption.value.where(code='LA19952-3')"
      }
    }, {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "noRiskCoding",
        "language": "text/fhirpath",
        "expression": "%thisItem.answerOption.value.where(code='LA19983-8')"
      }
    }, {
      "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression",
      "valueExpression": {
        "language": "text/fhirpath",
        "expression": "iif(%answeredEitherQ, iif(%riskStatus, %atRiskCoding, %noRiskCoding), {})",
        "description": "risk determination"
      }
    } ],
    "readOnly": true,
    "code": [ {
      "code": "88124-3",
      "system": "http://loinc.org",
      "display": "Food insecurity risk [HVS]"
    } ],
    "required": false,
    "text": "Food insecurity risk"
  } ],
  "type": null,
  "experimental": "true",
  "resourceType": "Questionnaire",
  "title": "Hunger Vital Sign [HVS]",
  "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"
    }
  }, {
    "url": "http://hl7.org/fhir/StructureDefinition/variable",
    "valueExpression": {
      "name": "worriedAnsCode",
      "language": "text/fhirpath",
      "expression": "%resource.item.where(linkId='/88122-7').answer.value.code"
    }
  }, {
    "url": "http://hl7.org/fhir/StructureDefinition/variable",
    "valueExpression": {
      "name": "ranOutAnsCode",
      "language": "text/fhirpath",
      "expression": "%resource.item.where(linkId='/88123-5').answer.value.code"
    }
  }, {
    "url": "http://hl7.org/fhir/StructureDefinition/variable",
    "valueExpression": {
      "name": "riskCodes",
      "language": "text/fhirpath",
      "expression": "'LA28397-0'.combine('LA6729-3')"
    }
  }, {
    "url": "http://hl7.org/fhir/StructureDefinition/variable",
    "valueExpression": {
      "name": "riskStatus",
      "language": "text/fhirpath",
      "expression": "%riskCodes contains %worriedAnsCode or %riskCodes contains %ranOutAnsCode"
    }
  }, {
    "url": "http://hl7.org/fhir/StructureDefinition/variable",
    "valueExpression": {
      "name": "answeredEitherQ",
      "language": "text/fhirpath",
      "expression": "%worriedAnsCode.exists() or %ranOutAnsCode.exists()"
    }
  } ],
  "status": "active",
  "id": "cabc205c-4295-491c-b11b-02baaeb7bbdd",
  "kind": null,
  "url": "http://hl7.org/fhir/uv/sdc/Questionnaire/questionnaire-sdc-profile-example-hunger-vital-signs",
  "code": [ {
    "code": "88121-9",
    "system": "http://loinc.org",
    "display": "Hunger Vital Sign [HVS]"
  } ],
  "identifier": [ {
    "value": "urn:oid:2.16.840.1.113883.4.642.40.17.35.11",
    "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"
    } ]
  } ]
}