render_checklist_docx
Create a submission-ready Word checklist from a TARGET assessment, showing evidence and verdicts per manuscript section, and return the docx file as base64.
Instructions
Write the completed TARGET checklist to a Word (.docx) file and return it.
Same content as render_checklist (published item wording + a Location-reported
column from the resolved evidence spans; enriched view adds verdict and
evidence), serialized as a submission-ready landscape table, one per
manuscript section. Pass a full assessment object or the manuscript_id of
one assessed this session. view='official' strips to the published form's
three columns.
RETRIEVING THE FILE: the return carries the document bytes as base64 in
content_base64 (with content_type and filename) — decode and save these
to get the deliverable. The file is ALSO written to path on the server host,
but that filesystem is not the caller's: if you are an agent whose files live
elsewhere, use content_base64, not path. path defaults to a writable
temp dir and is only directly useful for server-local/batch runs.
logo=True heads the document with the published TARGET banner, but ONLY on
view='official' (the author's self-report form); on the enriched view it is
ignored and the returned logo_applied is False, because the official mark on
a machine-generated assessment would imply an endorsement the instrument does
not carry. Default off.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| logo | No | ||
| path | No | ||
| view | No | enriched | |
| assessment | No | ||
| manuscript_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| view | No | ||
| bytes | No | ||
| n_rows | No | ||
| filename | No | ||
| content_type | No | ||
| logo_applied | No | ||
| content_base64 | No |