Skip to main content

Clinical Decision Support from SMART Guidelines

How SMART Guidelines decision support works​

DAK decision table (L2)
│ inputs · condition · action · guideline reference
▼
CQL Library + PlanDefinition (L3, in the Nepal IG)
│
▼
Decision service ── PlanDefinition/$apply(subject = Patient/…)
│
├──▶ CarePlan / RequestGroup ──▶ task or alert in the health-worker app
├──▶ Questionnaire ──▶ structured capture of missing inputs
└──▶ Measure (same logic) ──▶ indicator, identical to the alert rule

The last arrow matters most. If the same CQL definition drives both the alert and the indicator, the clinical workflow and the HMIS report cannot drift apart.

Target design for Nepal​

ConcernDesign decision
Where logic livesIn the IG, as versioned Library / PlanDefinition artefacts. Never hard-coded in an app
ThresholdsTaken from Nepal's national protocols; each departure from the WHO DAK recorded as an adaptation
ExecutionA clinical-reasoning service next to the HAPI server, returning CarePlan / RequestGroup
DeliveryInto the FCHV / ANM workflow at the point the decision is needed: registration, ANC contact, PNC visit
OfflineField apps work offline, so logic must be packaged for on-device evaluation or deferred safely until sync. Decided per rule
LanguageRecommendation text in Nepali and English
SafetyThe output is a recommendation; the health worker decides. Every rule has a clinical owner, test cases and a version
MeasurementEach rule paired with a Measure so its use and effect can be counted

What the logic will look like​

Below is the form a CQL definition takes. Concept names are placeholders, and thresholds come from the national protocol, not from this page.

CQL — structure only (illustrative, not a clinical rule)
library NepalANCDecisionSupport version '0.0.1'

using FHIR version '5.0.0'

valueset "Systolic BP": '<IG canonical URL>'
valueset "Diastolic BP": '<IG canonical URL>'

parameter "Systolic threshold" Quantity // from national protocol
parameter "Diastolic threshold" Quantity // from national protocol

context Patient

define "Elevated blood pressure at this contact":
exists ( [Observation: "Systolic BP"] O
where O.value >= "Systolic threshold" )
or exists ( [Observation: "Diastolic BP"] O
where O.value >= "Diastolic threshold" )

And how an app would request recommendations, once the operation is enabled:

GET /fhir/PlanDefinition/<anc-contact-plan>/$apply?subject=Patient/<id>
Accept: application/fhir+json

Roadmap to working CDS​

  1. Publish the data dictionary for one service area (ANC) so every rule input is defined. See Digital Adaptation Kits.
  2. Adapt one WHO DAK decision table to Nepal's protocol, with clinical sign-off.
  3. Author the CQL Library and PlanDefinition in the IG, with test cases.
  4. Enable clinical reasoning next to the HAPI server and confirm that $apply and $evaluate-measure appear in the capability statement.
  5. Pilot in the health-worker app with a small cohort, measuring use and overrides before wider rollout.

Each step will move to "in place" on this page only when its artefact is published.

Sources

  1. World Health Organization. Digital Adaptation Kits: what are they and why should I use them? PDF
  2. World Health Organization. SMART IG Starter Kit. smart.who.int/ig-starter-kit
  3. HL7 International. Clinical Practice Guidelines IG. hl7.org/fhir/uv/cpg
  4. HL7 International. Clinical Quality Language. cql.hl7.org
  5. CDS Hooks. cds-hooks.org