For .NET developers

The CDC immunization logic engine, as a .NET library.

CDSi.NET packages the ACIP Clinical Decision Support for Immunization rules and the CDC supporting data into a referenceable library. Initialize once, evaluate a patient, and consume structured results.

Runtime .NET 10 Logic spec v4.6 Supporting data v4.66
1,415 automated tests passing
1,394 CDC cases passing
v4.47 / v4.6 CDC healthy / condition suites
1 public engine entry point

Quick start

Reference the library. Evaluate a request.

The library has no external service dependency. Supporting data is embedded in the assembly, so initialization is local and evaluation is deterministic for a fixed assessment date.

  • Reference CDSi.NET from your .NET 10 project
  • Call CDSiEngine.Initialize() once at startup
  • Call Evaluate with a patient, history and assessment date
  • Map the structured result to your own workflow
using CDSi.NET;
using CDSi.NET.Models;

CDSiEngine.Initialize();

var result = CDSiEngine.Evaluate(new EvaluationRequest
{
    Patient = new Patient
    {
        DOB = new DateTime(2024, 1, 1),
        Gender = Gender.Female
    },
    Immunizations =
    [
        new VaccineDoseAdministered
        {
            CVX = "107",
            AdministeredDate = new DateTime(2024, 3, 1)
        }
    ],
    AssessmentDate = new DateTime(2024, 5, 1)
});

foreach (var group in result.VaccineGroupForecasts)
{
    Console.WriteLine($"{group.VaccineGroup}: {group.Status}");
}

What's inside

The whole CDSi processing model.

From CVX history organization through vaccine-group merging, in the order defined by the specification.

Evaluation

Dose condition, age, intervals, live-virus conflicts, inadvertent vaccines, conditional skip and target-dose satisfaction.

Forecasting

Next target dose, earliest and recommended dates, past-due and latest dates, forecast dose number and recommended vaccines.

Best-series selection

Relevant-series selection, scoring, complete/in-process/no-valid-dose classification, and equivalent series-group handling.

Vaccine groups

Single- and multiple-antigen group forecasts, priority forecasts, dose-number merging and risk/standard separation.

Supporting data

Antigen series, schedule, CVX-to-antigen mapping and live-virus conflicts are embedded and loaded once.

Explainability

Evaluation reasons, target-dose statuses, series scores and forecast reasons stay attached to the result for audit and UI display.

API surface

Small surface. Structured output.

The public surface is intentionally narrow: initialize the engine once, evaluate a request, and inspect the result graph.

  • CDSiEngine.Initialize() Loads and indexes the embedded CDC supporting data.
  • CDSiEngine.Evaluate(EvaluationRequest) Returns EvaluationResult with relevant series, best series, vaccine-group forecasts and notifications.
  • EvaluationRequest Patient, immunization history and assessment date.
  • PatientSeriesResult Target doses, dose evaluations, status, score and optional forecast.
  • VaccineGroupForecast Group status, dates, dose number, recommended vaccines and contained series.

Designed for integration

The demo's JSON API is a thin adapter over this library. Your application can call the library directly, expose its own API, or map the result into an existing clinical workflow.

Try the evaluator

Conformance

Tested against CDC cases, with the exceptions in the open.

CDC test suites Healthy v4.47 October 2026 Underlying Conditions v4.6 September 2025
Current run 1,415 automated tests passing 1,394 CDC cases passing 32 documented data-version deltas
CDC resources Logic v4.6 December 2024 Supporting data v4.66 October 2026

Next step

See the engine produce a real evaluation.

The evaluator uses the same public API shown above, with the library's result graph mapped into a clinician-facing interface.

Open the evaluator
// Initialize once at application startup
CDSiEngine.Initialize();

// Evaluate per patient
var result = CDSiEngine.Evaluate(request);

// Structured, explainable output
result.VaccineGroupForecasts;
result.BestPatientSeries;
result.Notifications;

Contact

Talk to the developer.

Questions about the API, CDC conformance, or integrating the engine into your product.

[email protected]