Uploaded image for project: 'FHIR Specification Feedback'
  1. FHIR Specification Feedback
  2. FHIR-37363

unitOption and unitValueSet should clarify that makes unit/code mandatory on answer

    XMLWordPrintableJSON

Details

    • Icon: Change Request Change Request
    • Resolution: Persuasive with Modification
    • Icon: Medium Medium
    • FHIR Core (FHIR)
    • R4
    • FHIR Infrastructure
    • Questionnaire
    • Hide

      Will add the following language to the unitOption and unitValueSet extensions:

      "If this extension present and an answer is provided for the question item in the QuestionnaireResponse, then the valueQuantity SHALL have a Quantity.code and Quantity.system that match the Coding.code and system of one of the allowed values if the Coding has a code and/or system.  If the Coding only has a display, then the Quantity.unit must match.  (Note that Coding with only a display is strongly discouraged.)  If there is a match on code and system, but no match on display/unit, systems MAY raise a warning.  However, because of translation and bandwidth considerations, some systems MAY opt to drop the unit or express it in an alternate language."

      For the unitValueSet, will also add:

      "Validation of the Quantity unit MAY be performed by using the $validateCode operation, populating the elements passed into the operation from the Quantity.code, system and unit elements."

      Show
      Will add the following language to the unitOption and unitValueSet extensions: "If this extension present and an answer is provided for the question item in the QuestionnaireResponse, then the valueQuantity SHALL have a Quantity.code and Quantity.system that match the Coding.code and system of one of the allowed values if the Coding has a code and/or system.  If the Coding only has a display, then the Quantity.unit must match.  (Note that Coding with only a display is strongly discouraged.)  If there is a match on code and system, but no match on display/unit, systems MAY raise a warning.  However, because of translation and bandwidth considerations, some systems MAY opt to drop the unit or express it in an alternate language." For the unitValueSet, will also add: "Validation of the Quantity unit MAY be performed by using the $validateCode operation, populating the elements passed into the operation from the Quantity.code, system and unit elements."
    • Brian Postlethwaite/Diane Rodden: 3-0-0
    • Clarification
    • Compatible, substantive
    • R5

    Description

      If an item has a unitOption or unitValueSet defined then the quantity answered must have one of the units included in the valueset/options.

      Requires:

      Quanity.unit == Coding.display

      Quantity.code == Coding.code

      Quantity.system == Coding.system

      If any of these 3 values are missing then an error is raised.

      Attachments

        Activity

          People

            lloyd Lloyd McKenzie
            brian.postlethwaite Brian Postlethwaite
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: