Skip to content

Text styling on answerOption.valueString #1786

@liambarnes

Description

@liambarnes

Is your feature request related to a problem? Please describe.
Text styling is implemented for item.text but it doesn't appear to work for answerOption.valueString. Please implement styling extensions to work on this element. Extensions are:

This capability is specified in the Advanced Rendering Questionnaire profile.

Image

Their use is also specified on the elements: title and prefix. Would be worth checking these are supported also.

Describe the solution you'd like
Styling extensions work for display of answerOption.valueString

Describe alternatives you've considered
No alternatives

Additional context
Example usage below

{
  "resourceType": "Questionnaire",
  "id": "answerStringStyling",
  "item": [    
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "code": "radio-button",
                    "system": "http://hl7.org/fhir/questionnaire-item-control"
                  }
                ]
              }
            }
          ],
          "answerOption": [
            {
              "valueString": "Complete"
            },
            {
              "_valueString": {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/rendering-style",
                    "valueString": "font-weight:bold;"
                  }
                ]
              }
            },
            {
              "valueString": "In progress"
            },
            {
              "valueString": "Requires attention"
            }
          ],
          "linkId": "section-completion-status",
          "text": "Section completion status",
          "type": "choice",
          "repeats": false
        }
      
  ]
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions