Completeness and clinical review
This page describes the disease-specific completeness rules and the clinical review of a draft.
| Term | Meaning |
|---|---|
| Registry bar | The fields that the external registry enforces. The form behavior confirms them. |
| Clinical bar | The fields that the clinical team requires for a useful note. This bar is internal and depends on the disease. |
| Variant | The disease of the record. The variant sets which fields are required. |
| Missing field | A required field with the value unknown. |
| Submit drawer | The console panel that confirms the submission. |
Two bars that must stay separate
Section titled “Two bars that must stay separate”BiobadamexAI keeps the registry bar separate from the clinical bar. Every report and analysis must name the bar that it uses. Do not call the clinical bar a “registry standard”. That name gives BIOBADAMEX a rule that BIOBADAMEX does not enforce.
Disease-specific completeness
Section titled “Disease-specific completeness”requiredFieldsFor(record) selects the variant before it calculates the missing fields:
| Variant | Rule |
|---|---|
| Rheumatoid arthritis | It uses the confirmed clinical components for that variant. |
| Spondyloarthritis | It excludes TJC28, SJC28 and DAS-28. It does not invent BASDAI or ASDAS. |
| Vasculitis | It can require BVAS under the confirmed rule. |
| SLE and systemic sclerosis | They keep the candidate instruments. They do not choose one while clinical ambiguity remains. |
| Sjögren and unknown variant | They stay conservative. |
Some historical comments in extraction.ts still describe a flat bar. The executable code calls requiredFieldsFor(record). This documentation follows the tested implementation.
Draft and provenance
Section titled “Draft and provenance”Each draft contains this data:
record: the copy that the clinician can correct.agentRecord: the snapshot of the extraction. It does not change.- The reconciled DAS-28 and the missing fields.
- The encrypted source.
- The model and the prompt fingerprint.
- The owner, the reviewer and the submission state.
The operational view reduces the agent-human differences to counts. The operational view does not return clinical values.
Review
Section titled “Review”A review goes through these steps. The numbers in Figure 1 are the numbers in this list.
- View the source. The console requests the draft. The screen shows the source and the record.
- Review the rows. The clinician reviews the disease-specific rows.
- Correct. The clinician corrects an allowed field. The API validates the correction. The correction changes
record, neveragentRecord. The API writes an audit entry. - Recompute. The API recomputes DAS-28 and the missing fields.
- Review the episodes. The clinician reviews the biologic episodes.
- Approve or reject. The clinician completes the approval checklist. Then the clinician approves or rejects the draft. The API changes the state.
- Submit. Later, the clinician submits from the terminal-state screen with the submit drawer. The API checks the submission conditions again.
Loading a different draft resets the confirmations. A correction also resets the confirmations.
What blocks each step
Section titled “What blocks each step”| Step | UI | Backend |
|---|---|---|
| Approve | It requires the confirmations, the diagnosis and the episodes. | It requires ownership and the state review_pending. It does not receive the UI ticks. |
| Correct | Defined fields only. | It validates path, tri-state, ownership and state. It recomputes. |
| Reject | An explicit action. | It requires ownership and the state review_pending. |
| Submit | The confirmation drawer. | It requires the owner, the state approved, no missing required fields, the flag and a valid payload. |
The approval checklist is mainly in the client. The approval endpoint does not validate its ticks again. The submission endpoint checks again the conditions that protect the external mutation.
The UI action says “Approve and send to registry”. But the endpoint only changes the state to approved. Submission happens later, from the terminal-state screen. Do not read this text as an immediate external mutation.
Not performed is also a client-side waiver. It unlocks approval. But it does not change unknown, it does not clear missingRequired and it does not make audit evidence. Thus the later submission stays blocked.
Undocumented comorbidities
Section titled “Undocumented comorbidities”If a comorbidity stays unknown, the drawer requires a confirmation. The clinician confirms that undocumented items are recorded as No. The backend requires the same confirmation. Only the unknown values in the comorbidity block change to false. Dates, activity, treatments and other unknown values do not change. The system stores and audits this normalization.
The preview is complete for the internal typed record. It is not complete for every external form control. The preview can show indices or requested/current episodes that the worker does not submit. The worker puts only previous episodes into the prior-treatment grid.
Interruption learning
Section titled “Interruption learning”Feedback records acted or dismissed. Disagreement with the recommendation is a reason for dismissed, not a third state. The system updates the combination of draft, prompt and actor. It does not duplicate it.
This ledger measures which prompts are worth an interruption. The ledger does not authorize submission. It also does not replace clinical correction.