FHIR IG analytics| Package | hl7.fhir.uv.sdc |
| Resource Type | Questionnaire |
| Id | Questionnaire-rxterms.json |
| FHIR Version | R4 |
| Source | https://build.fhir.org/ig/HL7/sdc/Questionnaire-rxterms.html |
| URL | http://hl7.org/fhir/uv/sdc/Questionnaire/rxterms |
| Version | 4.0.0 |
| Status | draft |
| Date | 2025-10-22T20:08:54+00:00 |
| Title | RxTerms Lookup |
| Realm | uv |
| Authority | hl7 |
| Description | Example showing making answer choices for one question dependent on the answer to a different question |
No resources found
No resources found
Note: links and images are rebased to the (stated) source
Generated Narrative: Questionnaire rxterms
| LinkID | Text | Cardinality | Type | Flags | Description & Constraints |
|---|---|---|---|---|---|
![]() | Example showing making answer choices for one question dependent on the answer to a different question | Questionnaire | http://hl7.org/fhir/uv/sdc/Questionnaire/rxterms#4.0.0 | ||
![]() ![]() | Medications | 0..* | group | ||
![]() ![]() ![]() | Medication Name | 0..1 | choice | Value Set: https://clinicaltables.nlm.nih.gov/fhir/R4/ValueSet/rxterms | |
![]() ![]() ![]() | Strength | 0..1 | open-choice | ||
![]() ![]() ![]() | RxCUI | 0..1 | string | ||
{
"resourceType": "Questionnaire",
"id": "rxterms",
"text": {
"status": "extensions",
"div": "<!-- snip (see above) -->"
},
"url": "http://hl7.org/fhir/uv/sdc/Questionnaire/rxterms",
"identifier": [
{
"system": "urn:ietf:rfc:3986",
"value": "urn:oid:2.16.840.1.113883.4.642.40.17.35.41"
}
],
"version": "4.0.0",
"title": "RxTerms Lookup",
"status": "draft",
"experimental": true,
"date": "2025-10-22T20:08:54+00:00",
"publisher": "HL7 International / FHIR Infrastructure",
"contact": [
{
"name": "HL7 International / FHIR Infrastructure",
"telecom": [
{
"system": "url",
"value": "http://www.hl7.org/Special/committees/fiwg"
}
]
},
{
"telecom": [
{
"system": "url",
"value": "http://www.hl7.org/Special/committees/fiwg"
}
]
}
],
"description": "Example showing making answer choices for one question dependent on the answer to a different question",
"jurisdiction": [
{
"coding": [
{
"system": "http://unstats.un.org/unsd/methods/m49/m49.htm",
"code": "001",
"display": "World"
}
]
}
],
"item": [
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/preferredTerminologyServer",
"valueUrl": "https://clinicaltables.nlm.nih.gov/fhir/R4"
},
{
"url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.org/fhir/questionnaire-item-control",
"code": "gtable",
"display": "Group Table"
}
],
"text": "Group Table"
}
},
{
"url": "http://hl7.org/fhir/StructureDefinition/variable",
"valueExpression": {
"name": "strengthFormLookup",
"language": "application/x-fhir-query",
"expression": "https://clinicaltables.nlm.nih.gov/fhir/R4/CodeSystem/$lookup?system=https://clinicaltables.nlm.nih.gov/fhir/CodeSystem/rxterms&code={{item.where(linkId='medication').answer.valueCoding.code}}&property=STRENGTHS_AND_FORMS"
}
},
{
"url": "http://hl7.org/fhir/StructureDefinition/variable",
"valueExpression": {
"name": "rxcui",
"language": "text/fhirpath",
"expression": "item.where(linkId='strength').answer.children().code"
}
}
],
"linkId": "medications_table",
"text": "Medications",
"type": "group",
"required": false,
"repeats": true,
"item": [
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.org/fhir/questionnaire-item-control",
"code": "autocomplete",
"display": "Auto-complete"
}
],
"text": "Auto-complete"
}
}
],
"linkId": "medication",
"text": "Medication Name",
"type": "choice",
"required": false,
"answerValueSet": "https://clinicaltables.nlm.nih.gov/fhir/R4/ValueSet/rxterms"
},
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.org/fhir/questionnaire-item-control",
"code": "drop-down",
"display": "Drop down"
}
],
"text": "Drop down"
}
},
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-answerExpression",
"valueExpression": {
"language": "text/fhirpath",
"expression": "%strengthFormLookup.parameter.where(name='property' and part.where(name='code' and value='STRENGTHS_AND_FORMS').exists()).part.where(name='value').value"
}
}
],
"linkId": "strength",
"text": "Strength",
"type": "open-choice",
"required": false
},
{
"extension": [
{
"url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression",
"valueExpression": {
"language": "text/fhirpath",
"expression": "%rxcui"
}
}
],
"linkId": "rxcui",
"text": "RxCUI",
"type": "string",
"readOnly": true
}
]
}
]
}