FHIR © HL7.org  |  FHIRsmith 4.0.1  |  Server Home  |  XIG Home  |  XIG Stats  | 

FHIR IG analytics

Packagehl7.fhir.uv.sdc
Resource TypeQuestionnaire
IdQuestionnaire-rxterms.json
FHIR VersionR4
Sourcehttps://build.fhir.org/ig/HL7/sdc/Questionnaire-rxterms.html
URLhttp://hl7.org/fhir/uv/sdc/Questionnaire/rxterms
Version4.0.0
Statusdraft
Date2025-10-22T20:08:54+00:00
TitleRxTerms Lookup
Realmuv
Authorityhl7
DescriptionExample showing making answer choices for one question dependent on the answer to a different question

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

Generated Narrative: Questionnaire rxterms

LinkIDTextCardinalityTypeFlagsDescription & Constraintsdoco
.. Example showing making answer choices for one question dependent on the answer to a different questionQuestionnairehttp://hl7.org/fhir/uv/sdc/Questionnaire/rxterms#4.0.0
... medications_tableMedications0..*group
.... medicationMedication Name0..1choiceValue Set: https://clinicaltables.nlm.nih.gov/fhir/R4/ValueSet/rxterms
.... strengthStrength0..1open-choice
.... rxcuiRxCUI0..1stringiconicon

doco Documentation for this format

Source1

{
  "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
        }
      ]
    }
  ]
}