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. |
The problem
Section titled “The problem”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:
- What does the note say?
- What does the clinical workflow or the registry require?
- What must the clinician ask or correct before approval?
Current RheumAI capability
Section titled “Current RheumAI capability”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,unknownornot_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.
Recommended integration design
Section titled “Recommended integration design”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 |
Central rule
Section titled “Central rule”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.
Completeness flow
Section titled “Completeness flow”The recommended flow has these steps. The numbers in Figure 1 are the numbers in this list.
- The extractor finds candidate values. It keeps the supporting text.
- The rule engine selects the fields that apply to the diagnosis.
- The system calculates completeness as presence over the applicable fields. It reports accuracy and completeness as separate metrics.
- RheumAI changes the gaps into clear questions in priority order.
- ORVS reviews the RheumAI response, not the chart.
- The clinician confirms or corrects the data, or marks the data as not available.
- Only the approved version can go to the registry service.
Safeguards
Section titled “Safeguards”- 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,falseor 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.
Readiness criteria
Section titled “Readiness criteria”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.