Allow answerExpression to return ValueSet.expansion.contains structures

XMLWordPrintableJSON

    • Type: Change Request
    • Resolution: Not Persuasive
    • Priority: Medium
    • Structured Data Capture (SDC) (FHIR)
    • 2.7.0 [deprecated]
    • FHIR Infrastructure
    • Advanced Behavior Questionnaire
    • Hide

      answerExpression is an extension and Extension.value is constrained to a specific list of types - and we can't have BackboneElement-based types.  Suggest submitting a new change request against FHIRPath that would provide a way to easily convert types from ValueSet.expansion.contains (and maybe certain other backbone elements?) to Coding.

      Show
      answerExpression is an extension and Extension.value is constrained to a specific list of types - and we can't have BackboneElement-based types.  Suggest submitting a new change request against FHIRPath that would provide a way to easily convert types from ValueSet.expansion.contains (and maybe certain other backbone elements?) to Coding.
    • Paul Lynch/Koray Atalag: 9-0-1

      answerExpression currently can return a list of Codings.  ValueSet.expansion.contains is very similar to a Coding, having matching field names for system, code, and display.  Although we also have answerValueSet, if one has a expanded ValueSet in Questionnaire.contained, one could use answerExpression to pull in, and possibly filter it with FHIRPath "where" statements.

      The one potential issue I see is that there can be a nested structure of ValueSet.expansion.contains, but if the list widget supports that for answerValueSet, it should not be difficult to handle that for answerExpression.

      chat discussion:  https://chat.fhir.org/#narrow/stream/179255-questionnaire/topic/answerExpression.20and.20ValueSet.20expansions.3F

            Assignee:
            Unassigned
            Reporter:
            Paul Lynch
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: