R4 Ballot #2 (Mixed Normative/Trial use)

This page is part of the FHIR Specification (v3.5.0: R4 Ballot #2). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions

Extension: choiceColumn

FHIR Infrastructure Work Group Maturity Level: 1InformativeUse Context: Any

URL for this extension:

http://hl7.org/fhir/StructureDefinition/questionnaire-choiceColumn

Status: draft. Extension maintained by: HL7

Provides guidelines for rendering multi-column choices.

Comment:

This can be used for choices drawn from value sets (where additional columns can be drawn from code system properties), for References where columns can be drawn from resource properties and for.

Context of Use: Use on Element ID Questionnaire.item or Element ID Questionnaire.item.item

usage info: insert a list of places where this extension is used

Extension Content

Summary

NameFlagsCard.TypeDescription & Constraintsdoco
.. choiceColumn0..*ExtensionURL = http://hl7.org/fhir/StructureDefinition/questionnaire-choiceColumn
choiceColumn: Provides guidelines for rendering multi-column choices.


Use on Element ID Questionnaire.item or Element ID Questionnaire.item.item
... path1..1stringThe element to display within the column (see notes).

... label0..1stringThe label to appear at the top of the column.

... width0..1QuantityThe size to allocate for the column within the table showing the choices.


doco Documentation for this format

Full Structure

NameFlagsCard.TypeDescription & Constraintsdoco
.. extension0..*ExtensionURL = http://hl7.org/fhir/StructureDefinition/questionnaire-choiceColumn
choiceColumn: Provides guidelines for rendering multi-column choices.


Use on Element ID Questionnaire.item or Element ID Questionnaire.item.item
... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
... extension 1..1ExtensionColumn path
.... extension 0..0
.... url 1..1uri"path"
.... valueString 0..1stringValue of extension
... extension 0..1ExtensionColumn label
.... extension 0..0
.... url 1..1uri"label"
.... valueString 0..1stringValue of extension
... extension 0..1ExtensionWidth of column
.... extension 0..0
.... url 1..1uri"width"
.... valueQuantity 0..1QuantityValue of extension
... url 1..1uri"http://hl7.org/fhir/StructureDefinition/questionnaire-choiceColumn"
... value[x] 0..0

doco Documentation for this format

XML Template

<!-- choiceColumn -->doco

<extension xmlns="http://hl7.org/fhir"
     url="http://hl7.org/fhir/StructureDefinition/questionnaire-choiceColumn" >
 <-- extension sliced by value:url  in the specified orderOpen-->
 <extension url="path"> 1..1 Extension  <!-- 1..1 Column path -->
  <valueString value="[string]"/><!-- 0..1 Value of extension -->
 </extension>
 <extension url="label"> 0..1 Extension  <!-- 0..1 Column label -->
  <valueString value="[string]"/><!-- 0..1 Value of extension -->
 </extension>
 <extension url="width"> 0..1 Extension  <!-- 0..1 Width of column -->
  <valueQuantity><!-- 0..1 Quantity 
      Value of extension --></valueQuantity>
 </extension>
</extension>

JSON Template

{ // choiceColumn
    "extension" : [ //  sliced by value:url  in the specified order, Open 
      { // Column path // R! 
        // from Element: extension
        "extension" : [ //  sliced by value:url  in the specified order, Open ]
        "url" : "path", // R! 
        "valueString" : "<string>" //Value of extension
      },
      { // Column label //
        // from Element: extension
        "extension" : [ //  sliced by value:url  in the specified order, Open ]
        "url" : "label", // R! 
        "valueString" : "<string>" //Value of extension
      },
      { // Width of column //
        // from Element: extension
        "extension" : [ //  sliced by value:url  in the specified order, Open ]
        "url" : "width", // R! 
        "valueQuantity" : { Quantity } //Value of extension
      }
    ],
    "url" : "http://hl7.org/fhir/StructureDefinition/questionnaire-choiceColumn", // R! 
// value[x]: Value of extension. One of these 49:
  }

Summary

NameFlagsCard.TypeDescription & Constraintsdoco
.. choiceColumn0..*ExtensionURL = http://hl7.org/fhir/StructureDefinition/questionnaire-choiceColumn
choiceColumn: Provides guidelines for rendering multi-column choices.


Use on Element ID Questionnaire.item or Element ID Questionnaire.item.item
... path1..1stringThe element to display within the column (see notes).

... label0..1stringThe label to appear at the top of the column.

... width0..1QuantityThe size to allocate for the column within the table showing the choices.


doco Documentation for this format

Full Structure

NameFlagsCard.TypeDescription & Constraintsdoco
.. extension0..*ExtensionURL = http://hl7.org/fhir/StructureDefinition/questionnaire-choiceColumn
choiceColumn: Provides guidelines for rendering multi-column choices.


Use on Element ID Questionnaire.item or Element ID Questionnaire.item.item
... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
... extension 1..1ExtensionColumn path
.... extension 0..0
.... url 1..1uri"path"
.... valueString 0..1stringValue of extension
... extension 0..1ExtensionColumn label
.... extension 0..0
.... url 1..1uri"label"
.... valueString 0..1stringValue of extension
... extension 0..1ExtensionWidth of column
.... extension 0..0
.... url 1..1uri"width"
.... valueQuantity 0..1QuantityValue of extension
... url 1..1uri"http://hl7.org/fhir/StructureDefinition/questionnaire-choiceColumn"
... value[x] 0..0

doco Documentation for this format

XML Template

<!-- choiceColumn -->doco

<extension xmlns="http://hl7.org/fhir"
     url="http://hl7.org/fhir/StructureDefinition/questionnaire-choiceColumn" >
 <-- extension sliced by value:url  in the specified orderOpen-->
 <extension url="path"> 1..1 Extension  <!-- 1..1 Column path -->
  <valueString value="[string]"/><!-- 0..1 Value of extension -->
 </extension>
 <extension url="label"> 0..1 Extension  <!-- 0..1 Column label -->
  <valueString value="[string]"/><!-- 0..1 Value of extension -->
 </extension>
 <extension url="width"> 0..1 Extension  <!-- 0..1 Width of column -->
  <valueQuantity><!-- 0..1 Quantity 
      Value of extension --></valueQuantity>
 </extension>
</extension>

JSON Template

{ // choiceColumn
    "extension" : [ //  sliced by value:url  in the specified order, Open 
      { // Column path // R! 
        // from Element: extension
        "extension" : [ //  sliced by value:url  in the specified order, Open ]
        "url" : "path", // R! 
        "valueString" : "<string>" //Value of extension
      },
      { // Column label //
        // from Element: extension
        "extension" : [ //  sliced by value:url  in the specified order, Open ]
        "url" : "label", // R! 
        "valueString" : "<string>" //Value of extension
      },
      { // Width of column //
        // from Element: extension
        "extension" : [ //  sliced by value:url  in the specified order, Open ]
        "url" : "width", // R! 
        "valueQuantity" : { Quantity } //Value of extension
      }
    ],
    "url" : "http://hl7.org/fhir/StructureDefinition/questionnaire-choiceColumn", // R! 
// value[x]: Value of extension. One of these 49:
  }

 

Constraints

  • ele-1: All FHIR elements must have a @value or children (xpath: @value|f:*|h:div)
  • ext-1: Must have either extensions or value[x], not both (xpath: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')]))