AClinical LogicDefinition and Execution Framework

Clincal Query Lab is an open source visual editor and framework for authoring and executing clinical logic. Clinical algorithms, guidelines, and pathways are encoded as a logic graph, and then executed against patient data such as medical records and claims data. Recommendations, events, forms, and actions can then be surfaced or triggered.

CQLab can be used to:

  • Produce clinical recommendations and alerts
  • Step through clinical pathways and guidelines
  • Streamline and automate Prior-Authorization responses
  • Search for clinical trial eligibility
  • Trigger lab orders, medication requests, and other clinical events
  • Build CDS hooks and SMART on FHIR apps
  • Capture structured data and medical codes from forms and questionnaires
  • And anything else involving clinical logic leading to tasks, decisions, or recommendations
Does patient need a Breast Cancer Screening?
Is Female

What Can You Build With CQLab?

CDS solutions that have been fully automated using CQLab include
Clinical Recommendations
Clinical Trial Inclusion/Exclusion Criteria
Quality Measurement Calculations
Process Conformance
SMART on FHIR apps
CDS Hooks
Clinical Recommendations
Create clinical pathways that support disease diagnoses, medication or procedure recommendations, lab test orders, and more.
Build computable clinical guidelines that use data from EHRs or Claims to fully or partially automate decisions.
Distribute pathways and documentation to healthcare workers or patients through a web application, mobile app, or EHR integration.
Need help with an implementation, or want to build a solution from scratch? Our consulting team can help.
Improve Efficiency and Care Quality
Create re-usable libraries of clinical logic and algorithms.
Integrate with existing systems including databases and AI/ML models.
Reduce administrative burden through medical record data extraction.
Standardize care to reduce variability and litigation risk.
Document and distribute clinical logic to stakeholders to reduce ambiguity.
Ensure patients receive care based on latest guidelines and best practices.

Tools Custom Built for Clinical Domain Experts

Breast Cancer Screening Introductory Example

Our Editor Environment is built specifically to be powerful, yet easy to use.

Clinical domain experts can be productive in hours, without the need for any programming experience.

These tools focus on clinical intent, knowledge representation, and standardization.

Use flow charts, clinical rules, decision trees, and more to create specifications that developers then use as a blueprint to build software solutions.

A First Class Developer Experience For Developers, By Developers

Developers receive the specifications provided by clinical domain experts and turn them into performant, tested, scalable, production grade software.
Our modular and extensible SDK provides engineers the hooks and tools they need to customize every layer of a solution.
We use mature, reliable, technologies and tooling allowing engineers to be productive quickly. Our focus on developer experience has resulted in a framework that is easy to learn and a joy to use.
SDK Examples
Is Female
Is Over 45

class IsFemale extends ExecNode<BreastCancerScreeningContext> {
  override async evaluate(context: BreastCancerScreeningContext): Promise<TernaryEnum> {
    const patient = getPatientFromBundle(context.getPatientBundle());

    if (!patient) {
      throw new Error("Patient resource not found in bundle");

    if (!patient.gender) {
      return TernaryEnum.UNKNOWN;
    return patient.gender === "female" 
      ? TernaryEnum.TRUE 
      : TernaryEnum.FALSE;

A Powerful, Flexible, Implementation

Building high quality healthcare software is hard. Just a few challenges include reliable data access, consistent data quality, integrations with external systems, complex clinical processes, multi-stakeholder requirements, and handling unstructured data.

CQLab is a project born out of years of experience working on a variety of solutions in healthcare. It provides a flexible and extensible orchestration layer facilitating the collaboration between clinical knowledge and software teams. It then provides the programmatic modules and hooks engineers need to configure and deploy robust production grade solutions.