How to Implement MID (Minimal Important Difference) Thresholds in SDC Rules

What counts as a real change on a PROMIS or KOOS score, versus noise you should ignore? That is the question the Minimal Important Difference (MID) threshold exists to answer. For a PROMIS-29 physical function domain, a common MID sits around 2 to 5 T-score points; for KOOS pain, published estimates hover near 8 to 10 raw-score points. If your SDC rules ignore MID, the chart lights up on every follow-up even when nothing has meaningfully changed.

This walkthrough covers implementing MID thresholds inside SDC rules, so the change flag lives with the QuestionnaireResponse rather than in a downstream reporting job. It assumes you already have a FHIR Questionnaire that scores itself and stores a total. For the surrounding form-tool picture, related FHIR explainers covers what sits around this piece.

Pull the Prior Score Into the Populate Step

MID is a comparison, so the rule needs the prior score in scope when the new one is calculated. The clean way is to add a launch-context input to the Questionnaire and populate it with the most recent Observation for that patient and that instrument. In SDC, this looks like a [Questionnaire.extension[sdc-questionnaire-launchContext]](https://build.fhir.org/ig/HL7/sdc/StructureDefinition-sdc-questionnaire-launchContext.html) entry naming a variable, and a matching PopulateContext value provided by the runtime at populate time.

For the coding side, PROMs typically bind LOINC codes (PHQ-9 total score is 44249-1, KOOS pain lives under 89204-2); systems like Formbox rely on a terminology server such as Termbox to resolve these at populate time, so the same code that identifies the current-visit Observation identifies the prior one. Keep the LOINC binding on the QuestionnaireResponse authoritative, so the prior-Observation query is deterministic.

Author the MID Rule as a FHIRPath Variable

Add a Questionnaire variable that computes the delta:

%questionnaire.item.where(linkId='total').answer.value.first() - %priorScore.value.first()

Then a second variable (midThreshold) holds the instrument's MID value, ideally sourced from a shared CodeSystem or extension so it is not scattered across a dozen Questionnaires. Finally, a midMet boolean expression returns whether abs(delta) >= midThreshold. Keeping these as named variables keeps the rendering rules readable and lets you inspect the delta at debug time.

MID RULE INSIDE SDC — PROMIS-29 EXAMPLE

STEP 1 Prior Observation LOINC-bound query 44249-1 · 89204-2

STEP 2 Populate priorScore launchContext extension SDC · POPULATE

STEP 3 Compute delta FHIRPath variable total − priorScore

STEP 4 midMet boolean abs(delta) ≥ threshold null on first visit

STEP 5 Observation.component[mid-flag] valueBoolean or absent SDC · EXTRACT

LAUNCH CONTEXT VARIABLE THRESHOLD EXTRACT

FIRST-VISIT DELTA IS NULL — EMIT ABSENT COMPONENT, NOT FALSE.

Emit an Observation Component for the MID Flag

The MID result should not live only in the renderer. Extend your ExtractDefinition so the produced Observation carries a component with a LOINC-adjacent local code for "meaningful change on the instrument" and a boolean value. That way, downstream reporting can filter for Observation.component.where(code='mid-flag').valueBoolean=true and get exactly the follow-ups worth surfacing to a clinician.

You can prototype the extension in the browser at form-builder.aidbox.app before touching your production Questionnaire. The sandbox consumes standard FHIR Questionnaire JSON, so a copy of your instrument with the MID rules added is enough to walk through the populate-then-extract path end to end.

Handle the First-Visit Edge Case

The first visit has no prior score, and the delta is undefined. Author the midMet expression to return null when priorScore is empty, then extract it as an absent value in the Observation component rather than a false. The systematic review of MIC estimates for PROMIS measures is worth a look before you fix your threshold value: a chart that reads false on every baseline is a chart that gets ignored, and a threshold picked without reference to the domain-specific literature will drift out of clinical usefulness fast.

Validate Against a Realistic Instrument

Before the rule ships, walk a real prior-and-current pair through the runtime. Confirm the delta matches a hand calculation, the flag flips at the expected threshold, and the Observation carries the flag component with the right binding. The FHIR Questionnaire vs survey platforms for patient-reported outcomes sits next door for teams still choosing the runtime; the Top 6 FHIR Questionnaire tools for school-based health clinics covers a nearby delivery context. A working MID rule fades quietly into the runtime; a broken one shows up every Monday as noise the clinicians learn to ignore.