FHIR © HL7.org  |  FHIRsmith 4.0.1  |  Server Home  |  XIG Home  |  XIG Stats  | 

FHIR IG analytics

Packagefhir.paciosampledata
Resource TypeQuestionnaire
IdQuestionnaire-OswestryDisabilityIndexQuestionnaire.json
FHIR VersionR4
Sourcehttps://build.fhir.org/ig/paciowg/sample-data-fsh/Questionnaire-OswestryDisabilityIndexQuestionnaire.html
URLhttp://example.org/fhir/Questionnaire/OswestryDisabilityIndexQuestionnaire
Version0.1.0
Statusactive
Date2026-09-10T21:57:14+00:00
TitleOswestry Disability Index (ODI)
Realmus
Authorityhl7

Resources that use this resource

No resources found


Resources that this resource uses

No resources found


Narrative

Note: links and images are rebased to the (stated) source

Generated Narrative: Questionnaire OswestryDisabilityIndexQuestionnaire

Profile: SDC Base Questionnaire version: 4.0.0

Structure
LinkIDTextCardinalityTypeFlagsDescription & Constraintsdoco
.. Questionnairehttp://example.org/fhir/Questionnaire/OswestryDisabilityIndexQuestionnaire#0.1.0
... odi-1Pain intensity0..1choiceOptions: 6 options
... odi-2Personal care (washing, dressing, etc.)0..1choiceOptions: 6 options
... odi-3Lifting0..1choiceOptions: 6 options
... odi-4Walking0..1choiceOptions: 6 options
... odi-5Sitting0..1choiceOptions: 6 options
... odi-6Standing0..1choiceOptions: 6 options
... odi-7Sleeping0..1choiceOptions: 6 options
... odi-8Sex life (if applicable)0..1choiceOptions: 6 options
... odi-9Social life0..1choiceOptions: 6 options
... odi-10Traveling0..1choiceOptions: 6 options
... scoreOswestry disability index score ODI0..1decimaliconicon
... severity-categoryODI disability category0..1choiceiconiconOptions: 5 options

doco Documentation for this format

Options Sets

Answer options for odi-1

  • null#null ("I have no pain at the moment.")
  • null#null ("The pain is very mild at the moment.")
  • null#null ("The pain is moderate at the moment.")
  • null#null ("The pain is fairly severe at the moment.")
  • null#null ("The pain is very severe at the moment.")
  • null#null ("The pain is the worst imaginable at the moment.")

Answer options for odi-2

  • null#null ("I can look after myself normally without causing extra pain.")
  • null#null ("I can look after myself normally but it is very painful.")
  • null#null ("It is painful to look after myself and I am slow and careful.")
  • null#null ("I need some help but can manage most of my personal care.")
  • null#null ("I need help every day in most aspects of my personal care.")
  • null#null ("I do not get dressed, I wash with difficulty and stay in bed.")

Answer options for odi-3

  • null#null ("I can lift heavy weights without additional pain.")
  • null#null ("I can lift heavy weights but it gives additional pain.")
  • null#null ("Pain prevents me lifting heavy weights off the floor, but I can manage if they are conveniently placed e.g. on a table.")
  • null#null ("Pain prevents me from lifting heavy weights, but I can manage light to medium weights if they are conveniently positioned.")
  • null#null ("I can lift very light weights.")
  • null#null ("I cannot lift or carry anything at all.")

Answer options for odi-4

  • null#null ("Pain does not prevent me walking any distance.")
  • null#null ("Pain prevents me from walking more than one mile.")
  • null#null ("Pain prevents me from walking more than a quarter of a mile.")
  • null#null ("Pain prevents me from walking more than 100 yards.")
  • null#null ("I can only walk using a stick or crutches.")
  • null#null ("I am in bed most of the time and have to crawl to the toilet.")

Answer options for odi-5

  • null#null ("I can sit in any chair as long as I like.")
  • null#null ("I can only sit in my favorite chair as long as I like.")
  • null#null ("Pain prevents me from sitting for more than one hour.")
  • null#null ("Pain prevents me from sitting for more than half an hour.")
  • null#null ("Pain prevents me from sitting for more than 10 minutes.")
  • null#null ("Pain prevents me from sitting at all.")

Answer options for odi-6

  • null#null ("I can stand as long as I want without additional pain.")
  • null#null ("I can stand as long as I want but it gives me additional pain.")
  • null#null ("Pain prevents me from standing for more than 1 hour.")
  • null#null ("Pain prevents me from standing for more than half an hour.")
  • null#null ("Pain prevents me from standing for more than 10 minutes.")
  • null#null ("Pain prevents me from standing at all.")

Answer options for odi-7

  • null#null ("My sleep is never interrupted by pain.")
  • null#null ("My sleep is occasionally interrupted by pain.")
  • null#null ("Because of pain I have less than 6 hours sleep.")
  • null#null ("Because of pain I have less than 4 hours sleep.")
  • null#null ("Because of pain I have less than 2 hours sleep.")
  • null#null ("Pain prevents me from sleeping at all.")

Answer options for odi-8

  • null#null ("My sex life is normal and causes no additional pain.")
  • null#null ("My sex life is normal but causes some additional pain.")
  • null#null ("My sex life is nearly normal but is very painful.")
  • null#null ("My sex life is severely restricted by pain.")
  • null#null ("My sex life is non existent because of pain.")
  • null#null ("Pain prevents me from having any sex life at all.")

Answer options for odi-9

  • null#null ("My social life is normal and causes me no additional pain.")
  • null#null ("My social life is normal but increases the degree of pain.")
  • null#null ("Pain has no significant effect on social life apart from limiting my more energetic interests e.g. sports, etc.")
  • null#null ("Pain has restricted my social life and I do not go out as often.")
  • null#null ("Pain has restricted social life to my home.")
  • null#null ("I have no social life because of pain.")

Answer options for odi-10

  • null#null ("I can travel anywhere without pain.")
  • null#null ("I can travel anywhere but it gives me additional pain.")
  • null#null ("Pain is bad but I am able to manage trips over two hours.")
  • null#null ("Pain restricts me to trips of less than one hour.")
  • null#null ("Pain restricts trips to short necessary journeys under 30 minutes.")
  • null#null ("Pain prevents traveling except to receive treatment.")

Answer options for severity-category

  • Minimal disability
  • Moderate disability
  • Severe disability
  • Crippled
  • Bed-bound or exaggerating

Source1

{
  "resourceType": "Questionnaire",
  "id": "OswestryDisabilityIndexQuestionnaire",
  "meta": {
    "profile": [
      "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire|4.0.0"
    ]
  },
  "text": {
    "status": "extensions",
    "div": "<!-- snip (see above) -->"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/artifact-versionAlgorithm",
      "valueString": "semver"
    }
  ],
  "url": "http://example.org/fhir/Questionnaire/OswestryDisabilityIndexQuestionnaire",
  "version": "0.1.0",
  "title": "Oswestry Disability Index (ODI)",
  "status": "active",
  "subjectType": [
    "Patient"
  ],
  "date": "2026-09-10T21:57:14+00:00",
  "publisher": "MITRE",
  "contact": [
    {
      "name": "MITRE",
      "telecom": [
        {
          "system": "url",
          "value": "http://www.mitre.org"
        }
      ]
    },
    {
      "name": "May Terry",
      "telecom": [
        {
          "system": "email",
          "value": "mayT@mitre.org",
          "use": "work"
        }
      ]
    }
  ],
  "code": [
    {
      "system": "http://loinc.org",
      "code": "97908-8",
      "display": "Oswestry Disability Index"
    }
  ],
  "item": [
    {
      "linkId": "odi-1",
      "text": "Pain intensity",
      "type": "choice",
      "answerOption": [
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 0
              }
            ],
            "display": "I have no pain at the moment."
          }
        },
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 1
              }
            ],
            "display": "The pain is very mild at the moment."
          }
        },
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 2
              }
            ],
            "display": "The pain is moderate at the moment."
          }
        },
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 3
              }
            ],
            "display": "The pain is fairly severe at the moment."
          }
        },
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 4
              }
            ],
            "display": "The pain is very severe at the moment."
          }
        },
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 5
              }
            ],
            "display": "The pain is the worst imaginable at the moment."
          }
        }
      ]
    },
    {
      "linkId": "odi-2",
      "text": "Personal care (washing, dressing, etc.)",
      "type": "choice",
      "answerOption": [
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 0
              }
            ],
            "display": "I can look after myself normally without causing extra pain."
          }
        },
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 1
              }
            ],
            "display": "I can look after myself normally but it is very painful."
          }
        },
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 2
              }
            ],
            "display": "It is painful to look after myself and I am slow and careful."
          }
        },
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 3
              }
            ],
            "display": "I need some help but can manage most of my personal care."
          }
        },
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 4
              }
            ],
            "display": "I need help every day in most aspects of my personal care."
          }
        },
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 5
              }
            ],
            "display": "I do not get dressed, I wash with difficulty and stay in bed."
          }
        }
      ]
    },
    {
      "linkId": "odi-3",
      "text": "Lifting",
      "type": "choice",
      "answerOption": [
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 0
              }
            ],
            "display": "I can lift heavy weights without additional pain."
          }
        },
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 1
              }
            ],
            "display": "I can lift heavy weights but it gives additional pain."
          }
        },
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 2
              }
            ],
            "display": "Pain prevents me lifting heavy weights off the floor, but I can manage if they are conveniently placed e.g. on a table."
          }
        },
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 3
              }
            ],
            "display": "Pain prevents me from lifting heavy weights, but I can manage light to medium weights if they are conveniently positioned."
          }
        },
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 4
              }
            ],
            "display": "I can lift very light weights."
          }
        },
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 5
              }
            ],
            "display": "I cannot lift or carry anything at all."
          }
        }
      ]
    },
    {
      "linkId": "odi-4",
      "text": "Walking",
      "type": "choice",
      "answerOption": [
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 0
              }
            ],
            "display": "Pain does not prevent me walking any distance."
          }
        },
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 1
              }
            ],
            "display": "Pain prevents me from walking more than one mile."
          }
        },
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 2
              }
            ],
            "display": "Pain prevents me from walking more than a quarter of a mile."
          }
        },
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 3
              }
            ],
            "display": "Pain prevents me from walking more than 100 yards."
          }
        },
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 4
              }
            ],
            "display": "I can only walk using a stick or crutches."
          }
        },
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 5
              }
            ],
            "display": "I am in bed most of the time and have to crawl to the toilet."
          }
        }
      ]
    },
    {
      "linkId": "odi-5",
      "text": "Sitting",
      "type": "choice",
      "answerOption": [
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 0
              }
            ],
            "display": "I can sit in any chair as long as I like."
          }
        },
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 1
              }
            ],
            "display": "I can only sit in my favorite chair as long as I like."
          }
        },
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 2
              }
            ],
            "display": "Pain prevents me from sitting for more than one hour."
          }
        },
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 3
              }
            ],
            "display": "Pain prevents me from sitting for more than half an hour."
          }
        },
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 4
              }
            ],
            "display": "Pain prevents me from sitting for more than 10 minutes."
          }
        },
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 5
              }
            ],
            "display": "Pain prevents me from sitting at all."
          }
        }
      ]
    },
    {
      "linkId": "odi-6",
      "text": "Standing",
      "type": "choice",
      "answerOption": [
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 0
              }
            ],
            "display": "I can stand as long as I want without additional pain."
          }
        },
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 1
              }
            ],
            "display": "I can stand as long as I want but it gives me additional pain."
          }
        },
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 2
              }
            ],
            "display": "Pain prevents me from standing for more than 1 hour."
          }
        },
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 3
              }
            ],
            "display": "Pain prevents me from standing for more than half an hour."
          }
        },
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 4
              }
            ],
            "display": "Pain prevents me from standing for more than 10 minutes."
          }
        },
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 5
              }
            ],
            "display": "Pain prevents me from standing at all."
          }
        }
      ]
    },
    {
      "linkId": "odi-7",
      "text": "Sleeping",
      "type": "choice",
      "answerOption": [
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 0
              }
            ],
            "display": "My sleep is never interrupted by pain."
          }
        },
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 1
              }
            ],
            "display": "My sleep is occasionally interrupted by pain."
          }
        },
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 2
              }
            ],
            "display": "Because of pain I have less than 6 hours sleep."
          }
        },
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 3
              }
            ],
            "display": "Because of pain I have less than 4 hours sleep."
          }
        },
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 4
              }
            ],
            "display": "Because of pain I have less than 2 hours sleep."
          }
        },
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 5
              }
            ],
            "display": "Pain prevents me from sleeping at all."
          }
        }
      ]
    },
    {
      "linkId": "odi-8",
      "text": "Sex life (if applicable)",
      "type": "choice",
      "answerOption": [
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 0
              }
            ],
            "display": "My sex life is normal and causes no additional pain."
          }
        },
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 1
              }
            ],
            "display": "My sex life is normal but causes some additional pain."
          }
        },
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 2
              }
            ],
            "display": "My sex life is nearly normal but is very painful."
          }
        },
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 3
              }
            ],
            "display": "My sex life is severely restricted by pain."
          }
        },
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 4
              }
            ],
            "display": "My sex life is non existent because of pain."
          }
        },
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 5
              }
            ],
            "display": "Pain prevents me from having any sex life at all."
          }
        }
      ]
    },
    {
      "linkId": "odi-9",
      "text": "Social life",
      "type": "choice",
      "answerOption": [
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 0
              }
            ],
            "display": "My social life is normal and causes me no additional pain."
          }
        },
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 1
              }
            ],
            "display": "My social life is normal but increases the degree of pain."
          }
        },
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 2
              }
            ],
            "display": "Pain has no significant effect on social life apart from limiting my more energetic interests e.g. sports, etc."
          }
        },
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 3
              }
            ],
            "display": "Pain has restricted my social life and I do not go out as often."
          }
        },
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 4
              }
            ],
            "display": "Pain has restricted social life to my home."
          }
        },
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 5
              }
            ],
            "display": "I have no social life because of pain."
          }
        }
      ]
    },
    {
      "linkId": "odi-10",
      "text": "Traveling",
      "type": "choice",
      "answerOption": [
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 0
              }
            ],
            "display": "I can travel anywhere without pain."
          }
        },
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 1
              }
            ],
            "display": "I can travel anywhere but it gives me additional pain."
          }
        },
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 2
              }
            ],
            "display": "Pain is bad but I am able to manage trips over two hours."
          }
        },
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 3
              }
            ],
            "display": "Pain restricts me to trips of less than one hour."
          }
        },
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 4
              }
            ],
            "display": "Pain restricts trips to short necessary journeys under 30 minutes."
          }
        },
        {
          "valueCoding": {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/ordinalValue",
                "valueDecimal": 5
              }
            ],
            "display": "Pain prevents traveling except to receive treatment."
          }
        }
      ]
    },
    {
      "extension": [
        {
          "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression",
          "valueExpression": {
            "language": "text/fhirpath",
            "expression": "(%resource.item.where(linkId='odi-1').answer.valueCoding.extension.where(url='http://hl7.org/fhir/StructureDefinition/ordinalValue').valueDecimal + %resource.item.where(linkId='odi-2').answer.valueCoding.extension.where(url='http://hl7.org/fhir/StructureDefinition/ordinalValue').valueDecimal + %resource.item.where(linkId='odi-3').answer.valueCoding.extension.where(url='http://hl7.org/fhir/StructureDefinition/ordinalValue').valueDecimal + %resource.item.where(linkId='odi-4').answer.valueCoding.extension.where(url='http://hl7.org/fhir/StructureDefinition/ordinalValue').valueDecimal + %resource.item.where(linkId='odi-5').answer.valueCoding.extension.where(url='http://hl7.org/fhir/StructureDefinition/ordinalValue').valueDecimal + %resource.item.where(linkId='odi-6').answer.valueCoding.extension.where(url='http://hl7.org/fhir/StructureDefinition/ordinalValue').valueDecimal + %resource.item.where(linkId='odi-7').answer.valueCoding.extension.where(url='http://hl7.org/fhir/StructureDefinition/ordinalValue').valueDecimal + %resource.item.where(linkId='odi-8').answer.valueCoding.extension.where(url='http://hl7.org/fhir/StructureDefinition/ordinalValue').valueDecimal + %resource.item.where(linkId='odi-9').answer.valueCoding.extension.where(url='http://hl7.org/fhir/StructureDefinition/ordinalValue').valueDecimal + %resource.item.where(linkId='odi-10').answer.valueCoding.extension.where(url='http://hl7.org/fhir/StructureDefinition/ordinalValue').valueDecimal) / 50 * 100"
          }
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/minValue",
          "valueDecimal": 0
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/maxValue",
          "valueDecimal": 100
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-unit",
          "valueCoding": {
            "system": "http://unitsofmeasure.org",
            "code": "%",
            "display": "percent"
          }
        }
      ],
      "linkId": "score",
      "code": [
        {
          "system": "http://loinc.org",
          "code": "97909-6",
          "display": "Oswestry disability index score ODI"
        }
      ],
      "text": "Oswestry disability index score ODI",
      "type": "decimal",
      "readOnly": true
    },
    {
      "extension": [
        {
          "extension": [
            {
              "url": "label",
              "valueString": "Minimal disability"
            },
            {
              "url": "low",
              "valueDecimal": 0
            },
            {
              "url": "high",
              "valueDecimal": 20
            }
          ],
          "url": "http://example.org/StructureDefinition/score-band"
        },
        {
          "extension": [
            {
              "url": "label",
              "valueString": "Moderate disability"
            },
            {
              "url": "low",
              "valueDecimal": 21
            },
            {
              "url": "high",
              "valueDecimal": 40
            }
          ],
          "url": "http://example.org/StructureDefinition/score-band"
        },
        {
          "extension": [
            {
              "url": "label",
              "valueString": "Severe disability"
            },
            {
              "url": "low",
              "valueDecimal": 41
            },
            {
              "url": "high",
              "valueDecimal": 60
            }
          ],
          "url": "http://example.org/StructureDefinition/score-band"
        },
        {
          "extension": [
            {
              "url": "label",
              "valueString": "Crippled"
            },
            {
              "url": "low",
              "valueDecimal": 61
            },
            {
              "url": "high",
              "valueDecimal": 80
            }
          ],
          "url": "http://example.org/StructureDefinition/score-band"
        },
        {
          "extension": [
            {
              "url": "label",
              "valueString": "Bed-bound or exaggerating"
            },
            {
              "url": "low",
              "valueDecimal": 81
            },
            {
              "url": "high",
              "valueDecimal": 100
            }
          ],
          "url": "http://example.org/StructureDefinition/score-band"
        },
        {
          "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression",
          "valueExpression": {
            "language": "text/fhirpath",
            "expression": "%resource.item.where(linkId='score').answer.valueDecimal.select(iif($this <= 20, 'Minimal disability', iif($this <= 40, 'Moderate disability', iif($this <= 60, 'Severe disability', iif($this <= 80, 'Crippled', 'Bed-bound or exaggerating')))))"
          }
        }
      ],
      "linkId": "severity-category",
      "text": "ODI disability category",
      "type": "choice",
      "readOnly": true,
      "answerOption": [
        {
          "valueString": "Minimal disability"
        },
        {
          "valueString": "Moderate disability"
        },
        {
          "valueString": "Severe disability"
        },
        {
          "valueString": "Crippled"
        },
        {
          "valueString": "Bed-bound or exaggerating"
        }
      ]
    }
  ]
}