Skip to content

Clinical notes and completeness

This page defines the boundary of RheumAI. The BiobadamexAI workflow contains the current intake, completeness, review and submission behavior.

Term Meaning
Note A clinical note about one patient.
Field One data point that the registry requires.
Field state present, missing, unknown or not_applicable.
Provenance The source text span that supports an extracted value.
Completeness The presence rate over the applicable fields. Completeness is not accuracy.
Study route The stateless route POST /v1/study/rheumaai-reply.
Clinician The authorized physician who reviews and approves the data.

A note can be well written and still omit a required data point. A note can also contain a correct fact that the software does not structure. The system must keep three questions separate:

  1. What does the note say?
  2. What does the clinical workflow or the registry require?
  3. What must the clinician ask or correct before approval?

RheumAI can do these tasks:

  • receive clinical text and files in chat;
  • parse PDF, spreadsheet, CSV, JSON, Markdown and text files;
  • use vision for some PDFs and images, if the configuration enables it;
  • classify the type of clinical question and find some alert terms;
  • retrieve evidence and generate a clinical interpretation;
  • ask for missing context, through the persona and prompt instructions;
  • review the quality of its response with ORVS;
  • process one de-identified note through the stateless study route.

These capabilities can help to show gaps. But today their main output is narrative text.

What RheumAI does not expose as a contract

Section titled “What RheumAI does not expose as a contract”

The repository does not yet return a structured payload with these items:

  • each field that BIOBADAMEX requires;
  • the extracted candidate value;
  • the source text span;
  • the field state: present, missing, unknown or not_applicable;
  • the clinical rule that makes the field applicable;
  • a suggested question for the clinician;
  • the approval or rejection of the clinician.

The study route returns content, provider, model, tools, tokens, latency and fallback status. It does not return a completeness matrix for the note.

The study route also does not have these items: a deterministic de-identification check, a length limit for notes, a final ORVS pass, an ethical review or a clinician approval. The caller must do these tasks before and after it calls the route.

The institutional flow must keep the responsibilities separate:

Stage Owner Output
Intake BiobadamexAI Controlled note and internal identifier
Extraction Registry structured service Candidate fields with provenance
Completeness Diagnosis-specific BIOBADAMEX rules Fields that are present, missing, unknown or not applicable
Clinical explanation RheumAI Gaps in priority order and useful questions for the clinician
Response review ORVS and deterministic controls Flags for accuracy, safety, citations and coverage
Human review Authorized clinician Correction and explicit approval
Submission Controlled registry service Approved data only, with read-back

RheumAI must find and ask, not invent. If the note does not contain a fact, the integration keeps the missing or unknown state, as the clinical rule specifies. A model inference never becomes registry data automatically.

The recommended flow has these steps. The numbers in Figure 1 are the numbers in this list.

Recommended completeness flow across the extractor, the rule engine, RheumAI, ORVS, the clinician and the registry serviceextractionExtractorBIOBADAMEX rulesRule engineexplanationRheumAIresponse reviewORVSauthorizedCliniciancontrolled serviceRegistryA controlled note arrives1 · candidates + text2 · applicable fields3 · presence rate4 · gaps4 · clear questions5 · RheumAI response6 · reviewed questions6 · confirm, correct7 · approved version
Figure 1. Recommended completeness flow. This is a design, not the current code. Time goes down. Each arrow is what one stage sends to the next stage.
  1. The extractor finds candidate values. It keeps the supporting text.
  2. The rule engine selects the fields that apply to the diagnosis.
  3. The system calculates completeness as presence over the applicable fields. It reports accuracy and completeness as separate metrics.
  4. RheumAI changes the gaps into clear questions in priority order.
  5. ORVS reviews the RheumAI response, not the chart.
  6. The clinician confirms or corrects the data, or marks the data as not available.
  7. Only the approved version can go to the registry service.
  • Use synthetic or de-identified notes outside the authorized clinical environment.
  • Remember that normal chat can persist messages and files. Under the current rules, long PDFs that look like articles can also go into the local knowledge directory.
  • Do not put real notes in repositories, docs, logs or fixtures.
  • Keep field-level provenance.
  • Do not treat a valid 0, false or date as missing because of a generic truthiness check.
  • Keep missing, unknown and not applicable as separate states where the clinical rules require it.
  • Do not let ORVS or narrative output bypass the clinician review.
  • Record the model and the rules version that made each draft.

Do not call the integration ready until it has all these items:

  • a versioned input and output contract;
  • diagnosis-specific completeness rules under clinical review;
  • synthetic tests for present fields and missing fields;
  • a clinical review of the suggested questions;
  • an audit that shows that the route does not write or log PHI unexpectedly;
  • service-to-service authentication;
  • a fallback that keeps the draft without submission when RheumAI fails.