← Về thư mục
📄 / / profiles / r-and-d / raw_evidence / scientific-agent-skills / skills / treatment-plans / references / documentation_workflow.md

Documentation Package Workflow

Last reviewed: 2026-07-23

Package contract

A complete package contains exactly one JSON object for each document type:

All six must use schema version 2.0 and the same subject_ref, data_classification, draft status, and notice.

1. Intended-use gate

Complete the intended-use/handoff record first:

Do not remove prohibited uses. The generator restores the complete list in every new package.

2. Source-fact manifest

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.

3. Clinician-authored interventions

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.

4. Goals, monitoring, and checkpoints

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.

5. Informed preferences and shared decisions

Record only what the authorized clinician documented:

Do not generate missing options, risk estimates, benefit claims, alternatives, or consent language.

6. Transition and reconciliation

Record:

completed_by_authorized_clinician is a declaration to be verified against the local record. The script does not perform reconciliation.

7. Deterministic checks

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.

8. Minimized issue handling

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:

  1. Locate the field path.
  2. Compare with the signed source.
  3. Ask the responsible authorized role to supply or verify the missing value.
  4. Update provenance.
  5. Re-run all checks.

Never correct clinical content from memory or general guidance.

9. Sign-off and handoff

Before releasing for authorized documentation handoff:

The visible draft/not-medical-advice notice remains. Release does not authorize implementation by an agent.

10. Change control

For every revision: