FHIR Chat · radio buttons · questionnaire

Stream: questionnaire

Topic: radio buttons


view this post on Zulip Brian Postlethwaite (Oct 07 2019 at 03:07):

Is there an extension to cover horizontal layout for radio buttons?
(rather than the default vertical - at least that's what I see most doing)

view this post on Zulip Lloyd McKenzie (Oct 07 2019 at 04:23):

http://hl7.org/fhir/R4/extension-questionnaire-choiceorientation.html (works for radio-buttons and check-boxes)

view this post on Zulip Shoaib Mushtaq (Jun 07 2021 at 13:16):

Hey @Lloyd McKenzie
I wanna make Patient.gender radio buttons as horizontal layout but they still looks vertical to me in the final UI on App.
Below is my json around this. Let me know what am i doing wrong here? Would appreciate any help

           {
      "linkId": "patient-0-gender",
      "extension": [
        {
          "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-itemContext",
          "valueExpression": {
            "language": "application/x-fhir-query",
            "expression": "Enumerations$AdministrativeGender",
            "name": "administrativeGender"
          }
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
          "valueCodeableConcept": {
            "coding": [
              {
                "system": "http://hl7.org/fhir/questionnaire-item-control",
                "code": "radio-button",
                "display": "Radio Button"
              }
            ]
          }
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-choiceOrientation",
          "valueCode": "horizontal"
        }
      ],
      "definition": "http://hl7.org/fhir/StructureDefinition/Patient#Patient.gender",
      "type": "choice",
      "text": "Gender:",
      "answerOption": [
        {
          "valueCoding": {
            "code": "F",
            "display": "Female"
          }
        },
        {
          "valueCoding": {
            "code": "M",
            "display": "Male"
          }
        }
      ]
    }

Screenshot-from-2021-06-07-18-17-24.png

view this post on Zulip Lloyd McKenzie (Jun 07 2021 at 14:26):

Does the rendering tool you're using support the choiceOrientation extension? What rendering tool are you using?

view this post on Zulip Shoaib Mushtaq (Jun 07 2021 at 15:49):

I am using https://github.com/google/android-fhir/tree/master/datacapture for rendering and looks like this doesn't support it yet. Thanks for your reply :+1:


Last updated: Apr 12 2022 at 19:14 UTC