write-imaging-factsheet-ehr
Produce an EHR imaging factsheet with mandatory segmentation, cleanup, linear dimensions, and volumes. Use when write-report-with-ehr requests imaging evidence or when explicitly asked for this factsheet.
- License 许可
- MIT
- 最近更新
- 2026-10-30
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- write-imaging-factsheet-ehr
- description
- Produce an EHR imaging factsheet with mandatory segmentation, cleanup, linear dimensions, and volumes. Use when write-report-with-ehr requests imaging evidence or when explicitly asked for this factsheet.
- argument-hint
- image_path [prior_image_path]
02 资源文件 1
- 参考文档template/factsheet.md1.8 KB
03 SKILL.md 正文
Write Imaging Factsheet for EHR
Use the four medimageparse MCP tools; VS Code may display them as mcp_medimageparse_<tool>.
Required tool sequence
Perform these calls for the supplied images in this request. Loading this skill or reading an existing audit folder is not a substitute.
- Resolve
image_pathand anyprior_image_pathto absolute paths. - Call
list_modelsonce. Select modelmip3d-mri-brain-lesionand itsviews["tumor-components"].prompts. Pass the full prompts verbatim, in their returned order. - Call
segmentfor the current image with that model and those prompts. Keep itsaudit_dir,mask_path, and review-image paths. Callclean_segmentationwith that returnedmask_path, using the default cleanup parameters; keep the returnedclean_path. - If a prior image was supplied, call
segmentand thenclean_segmentationfor it in the same way, with the same model, prompts, and cleanup parameters. Keep the prior paths separately; never swap them with the current paths. - Call
describe_lesionsonce with the currentclean_path. Also passprior_clean_pathwhen a prior was supplied; omit it otherwise. Keepdescriptors_path,inputs,conventions,descriptors, and the returned review-image paths. - Fill template/factsheet.md from the returned current descriptors and aggregate change descriptors. Save it beside
descriptors_path, replacing.descriptors.jsonwith.factsheet.md. Preserve all masks, sidecars, and descriptor JSON files.
If any required tool is unavailable or fails, stop and identify the step, image, and error; tell the user to check the medimageparse server or the reported input problem. Do not return a success-shaped factsheet or allow the parent to emit <report>. Do not run the server's Python code, write scripts, compute your own measurements, or substitute an earlier run.
Filling and checking the factsheet
- Replace placeholders with actual descriptor IDs and values. Repeat the lesion, pair, volume, change, and active-limitation lines for all applicable descriptors. Cite an ID on every fact line.
- For every current lesion, copy both
diameters_cmentries fromL*.bidimensionaland bothvalue.APandvalue.TRfromL*.extent. The bidimensionalvalueandunitdescribe the product in cm2, not a linear dimension. Never useunrounded_diameters_cm. - Include the enhancing, necrotic, and tumor-core volumes for every current lesion, all returned total volumes, the lesion count, and sum of products. With a prior, include every
change.*line with its prior/current values, units, percent change, and any reason. - Include returned diameters even when
measurableis false. That flag is not permission to omit dimensions. - Copy numbers, units, categories, booleans, and reasons verbatim. For explicit unavailable values, preserve
nulland the reason. Never fill a missing field with zero or infer a reason. - A successful zero-lesion result has no per-lesion descriptors: omit those sections but keep the zero count, totals, change lines when present, and limitations. It is not a tool failure.
- Do not compute, round, convert, diagnose, assign anatomy or side, or match lesion IDs across scans. Do not copy historical report sizes into this factsheet.
- Copy frontmatter from
inputsandconventions, using valid YAML quoting for paths and literalnullfor a missing prior. Prior lesion descriptors are saved atinputs.prior_descriptors_path; the returned lesion inventory is the current scan's, not a matched current/prior inventory. - Link the current scan's review images by filename in the Images section. Omit its measurements-image line if no measurement image was returned for the current scan, even if an image was returned for the prior.
- Before returning, check every current lesion has its diameter pair, AP/TR pair, and component volumes, and that required totals and applicable changes are present. Repair omissions from the same descriptor result or its saved JSON, not by rerunning segmentation. If a required source field is missing, stop with an explicit error naming it.
Handoff
- When called by
write-report-with-ehr: retain the factsheet and pass its contents, saved path,descriptors_path, and each scan'saudit_dirback to the parent workflow, current first. Continue to the parent's report-writing step. Do not send the factsheet as the final response or end the task with audit folders. - When explicitly requested on its own: reply with the completed factsheet, then its saved path and each scan's audit-log folder, current first.
04 同仓库更多 Skills
write-report-with-ehr
Write a context-aware brain MRI follow-up report from the patient's record, tool-computed lesion measurements, and change from the most recent prior image. Use when asked for a report that uses the patient's history, chart, or EHR.
lookup-patient-history
Load a synthetic patient EHR record (demographics, diagnosis, treatments, medications, expected post-treatment findings, prior imaging studies and reports, pending orders) for a given brain MRI image. Invoke as the first step of any context-aware reporting flow that needs patient history. No model calls.
write-report-with-ehr
Write a context-aware brain MRI report using the patient chart and mandatory tool-computed linear and volumetric measurements. Use for EHR reporting with Radiology Assistant (EHR).
lookup-patient-history
Load the synthetic patient chart and verbatim prior reports for EHR reporting. Use before measuring the selected current and prior images; this lookup does not perform segmentation or measurements.
write-report-measured
Write a brain MRI report with tool-computed lesion measurements and, when a prior image is supplied, change from that prior. Use for brain MRI reports when the medimageparse `segment`, `clean_segmentation`, and `describe_lesions` tools are available.
write-imaging-factsheet
Generate a lesion-only imaging factsheet from a post-contrast T1 MRI, optionally comparing a prior image. Use when asked for a lesion factsheet or a descriptor-based imaging summary.