FHIR Chat · Using rendering style example in the SDC IG · questionnaire

Stream: questionnaire

Topic: Using rendering style example in the SDC IG


view this post on Zulip Diane (Dec 13 2021 at 21:12):

I am working on the example at https://build.fhir.org/ig/HL7/sdc/examples.html#using-rendering-style.

The styles don't seem to be rendering.

screen-shot-of-html-example.png

The questionnaire is at http://hapi.fhir.org/baseR4/Questionnaire/2711021?_pretty=true&_format=json

or you can see it below

{
  "resourceType": "Questionnaire",
  "id": "2711021",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2021-12-13T21:00:43.135+00:00",
    "source": "#Rr1VXfWVOT3K99c1",
    "profile": [ "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire|2.7" ],
    "tag": [ {
      "code": "lformsVersion: 29.2.1"
    } ]
  },
  "name": "Rendering HTML Example Questionnaire",
  "title": "Rendering HTML Example Questionnaire",
  "status": "draft",
  "item": [ {
    "linkId": "1.2",
    "text": "Please answer Yes or No to each of the following questions:",
    "_text": {
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/rendering-xhtml",
        "valueString": "<i>Please</i> answer <b><u>Yes</u></b> or <b><u>No</u></b> to each of the following questions:"
      } ]
    },
    "type": "display"
  } ]
}

view this post on Zulip Paul Lynch (Dec 13 2021 at 21:22):

That is actually not rendering-style but rendering-xhtml. LHC-Forms currently only supports render-xhtml when itemControl="help". However, there is a setting in LHC-Forms to display help text inline (for the whole form), so you might be able to work around it.

view this post on Zulip Diane (Dec 13 2021 at 22:33):

I need rendering-xhtml. https://github.com/lhncbc/lforms/blob/master/sdc-support.md says that support is provided for rendering-xhtml: on item.text, so I thought that I would practice with the IG example. But, I am understanding that LHC-Forms supports rendering-xhtml only for the text of the help item and not in a regular question's item.text. Good to know.

I am trying to use rendering-xhtml to make a link to another site. I would prefer to put the link in a help button, along with other instructions. Will this work because supportLink is not supported? I just want a link in my help button text (not a dedicated supportLink)?

view this post on Zulip Paul Lynch (Dec 13 2021 at 23:55):

Diane said:

I need rendering-xhtml. https://github.com/lhncbc/lforms/blob/master/sdc-support.md says that support is provided for rendering-xhtml: on item.text

Yes, I need to correct that documentation. Sorry for the confusion on that point.

A link in a help item with rendering-xthml should work fine.

view this post on Zulip Diane (Dec 14 2021 at 02:38):

Thank you. I will proceed with a link in a help item with rendering-xthml.


Last updated: Apr 12 2022 at 19:14 UTC