skills/treatment-plans/references/documentation_workflow.md
Last reviewed: 2026-07-23
A complete package contains exactly one JSON object for each document type:
source_fact_manifestclinician_authored_intervention_recordgoals_monitoring_checkpoint_recordinformed_preference_shared_decision_recordtransition_reconciliation_recordintended_use_handoff_recordAll six must use schema version 2.0 and the same subject_ref, data_classification, draft status, and notice.
Complete the intended-use/handoff record first:
Do not remove prohibited uses. The generator restores the complete list in every new package.
Every clinical or process statement used elsewhere must have a source fact. A fact records:
Allowed source categories distinguish signed local records, authorized EHR records, current FDA labeling, current REMS materials, current official guidance, and local policy.
The manifest does not decide which source applies. An authorized professional must confirm applicability.
Each intervention record must:
The validator checks structure and provenance only. It does not parse or judge a medication, procedure, therapy, device, referral, or instruction.
Separate:
Do not convert a narrative frequency into dates. Do not infer a checkpoint from a target, medication, intervention type, standard interval, or prior appointment.
Record only what the authorized clinician documented:
Do not generate missing options, risk estimates, benefit claims, alternatives, or consent language.
Record:
completed_by_authorized_clinician is a declaration to be verified against the local record. The script does not perform reconciliation.
Run in this order:
python3 scripts/validate_treatment_plan.py PACKAGE_DIRECTORY
python3 scripts/validate_traceability.py PACKAGE_DIRECTORY
python3 scripts/check_completeness.py PACKAGE_DIRECTORY
python3 scripts/privacy_process_check.py PACKAGE_DIRECTORY
python3 scripts/check_consistency.py PACKAGE_DIRECTORY
python3 scripts/timeline_generator.py PACKAGE_DIRECTORY --output SCHEDULE.json
The checks answer different questions:
Run every check again after any change.
Reports use field paths, not values. For example, a report may identify interventions[0].verification.status without printing the action text.
Resolve each issue in the authoritative local record:
Never correct clinical content from memory or general guidance.
Before releasing for authorized documentation handoff:
released_for_authorized_documentation_handoff;The visible draft/not-medical-advice notice remains. Release does not authorize implementation by an agent.
For every revision: