PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.uv.sdc@3.0.0-preview
    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": "2022-02-16T19:40:22+11:00",
  "publisher": "HL7 International - FHIR Infrastructure Work Group",
  "jurisdiction": [ {
    "coding": [ {
      "code": "001",
      "system": "http://unstats.un.org/unsd/methods/m49/m49.htm"
    } ]
  } ],
  "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.valueCoding.where(code='LA19952-3')"
      }
    }, {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "noRiskCoding",
        "language": "text/fhirpath",
        "expression": "%thisItem.answerOption.valueCoding.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": "3.0.0-preview",
  "extension": [ {
    "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()"
    }
  }, {
    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
    "valueCode": "draft"
  }, {
    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
    "valueInteger": 0
  } ],
  "status": "draft",
  "id": "91970c6d-e722-4770-9a8f-9c97e7f2a636",
  "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]"
  } ],
  "version": "3.0.0-preview",
  "contact": [ {
    "telecom": [ {
      "value": "http://hl7.org/Special/committees/fiwg",
      "system": "url"
    } ]
  } ]
}