clinical-patient-profile-html

用于在用户要求基于临床试验 listing、研究方案、受试者分组表、Finding 台账等源文件制作 patient profile、受试者画像、个例 Profile 或中心层汇总 HTML 的场景。适用于展示疗效、实验室、生命体征、不良事件(AE)和各类 Finding 的受试者级或中心级历时核查视图。

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "clinical-patient-profile-html":https://skillpi.com/zh/skills/deepskill-c86f4be5e71f8671cd6e9c1b423f91b42b41277f1f58e083fd0ef177b7f702fe。安装前核对上游来源和版本:https://skillhub.cn/skills/user_d4b39bcc/clinical-patient-profile-html。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

skillhub.cn

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

用于在用户要求基于临床试验 listing、研究方案、受试者分组表、Finding 台账等源文件制作 patient profile、受试者画像、个例 Profile 或中心层汇总 HTML 的场景。适用于展示疗效、实验室、生命体征、不良事件(AE)和各类 Finding 的受试者级或中心级历时核查视图。

0 下载

介绍来源: third_party · user_d4b39bcc · 1.0.1 参考来源

SkillPi 解读

能完成的任务
当用户要求基于临床试验 listing、研究方案、受试者分组表、Finding 台账等文件制作 patient profile、受试者画像、个例 Profile 或中心层汇总 HTML 时使用;适用于疗效、实验室、生命体征、AE 和 Finding 的受试者级或中心级历时核查展示。
输入和输出
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: clinical-patient-profile-html
slug: clinical-patient-profile-html
displayName: 临床 Patient Profile HTML
version: 1.0.1
description: 当用户要求基于临床试验 listing、研究方案、受试者分组表、Finding 台账等文件制作 patient profile、受试者画像、个例 Profile 或中心层汇总 HTML 时使用;适用于疗效、实验室、生命体征、AE 和 Finding 的受试者级或中心级历时核查展示。

Clinical Patient Profile HTML

Use this skill for clinical-study patient profile HTML work where the output must stay source-grounded and inspection-ready.

This skill is best when the user provides subject listings, protocol/amendment files, and optionally finding trackers, and wants an offline HTML that combines subject profile, efficacy trends, lab trends, vital signs, and optional finding review.

If the user explicitly says 制作patient profile or an equivalent phrase after uploading files, invoke this skill immediately and start with file inspection rather than waiting for extra instructions. Do not require an additional “开始构建” instruction.

Workflow

  1. Run the bundled precheck as soon as the uploaded files are available:
python3 scripts/build_patient_profile_html.py \
  --work-dir "<project-folder>" \
  --output-dir "<project-folder>/patient_profile_output" \
  --precheck-only
  1. Read input_precheck.md. Also inspect:
  • suggested_project_config.json
  • protocol_endpoint_summary.md
  1. Before any full build, explicitly settle these two scope questions if they are not already stated by the user:
  • 纳入全部受试者,还是仅纳入已随机受试者。
  • 是否纳入 USV/计划外访视数据。

Also settle these when precheck cannot resolve them from the uploaded files:

  • 是否纳入全部中心,还是仅纳入指定中心。
  • 实验室 / 心电图 / 生命体征在中心层是否应将 SCR / D1 合并为“基线”。
  1. If precheck shows only 提示, continue directly to full build.

  2. If precheck shows 阻断 or 需确认, ask only the smallest necessary question and stop. Do not guess missing centers, finding sheet mappings, subject ID columns, or substitute sheet names. If the user confirms that some metrics, sheets, or fields do not need to be included, treat that as authorization to proceed without them.

  3. If precheck shows 需确认 but the user has already made a scope decision such as “该字段不纳入” or “该数据不体现”, update the config accordingly and continue directly.

  4. Once inputs are sufficient or the user has accepted the reduced scope, run the full build immediately. Prefer using the generated config file so the build uses the same detected mappings:

python3 scripts/build_patient_profile_html.py \
  --work-dir "<project-folder>" \
  --config-json "<project-folder>/patient_profile_output/suggested_project_config.json" \
  --output-dir "<project-folder>/patient_profile_output"
  1. Validate the result against the source tables before presenting it. Use references/validation_checklist.md.

Required Inputs

  • A main listing workbook with subject-level tabs for demographics, randomization, visits, efficacy, labs, AE, and vital signs.
  • A protocol, amendment, or errata file that contains endpoint definitions and the study flow/assessment schedule.
  • A finding workbook or self-inspection/audit tracker when the user wants finding linkage or fixed finding display.

Optional Inputs

  • A subject report workbook for cross-checking sex, age group, and treatment assignment.
  • Reference HTML files if the project already has an approved patient-profile style to follow.

When To Ask The User

Ask the user instead of proceeding when any of these happen:

  • More than one center is detected and the target center scope is not explicitly stated.
  • The user has not yet chosen 全部受试者 or 仅纳入已随机受试者.
  • The user has not yet chosen whether to include USV/计划外访视 data.
  • The protocol is missing or unreadable.
  • The protocol does not yield a clear endpoint-to-metric mapping.
  • The protocol does not make it clear whether an efficacy variable is continuous or binary.
  • The protocol does not make it clear whether lab / ECG / vital-sign screening results can be used as center-level baseline.
  • The finding workbook exists but the relevant sheet or subject column cannot be confirmed.
  • Key efficacy sheets are missing or likely renamed.
  • A protocol-required assessment category appears in the study flow table but no corresponding listing sheet or field can be found.
  • Lab reference ranges are absent and the user must decide whether to keep those rows with blank normal-range display.
  • A sheet appears to contain needed data but the field mapping is ambiguous.
  • A critical profile field such as screening date, consent date, or baseline/randomization date cannot be located reliably.

Do not ask the user to “confirm starting the build” when uploaded files and scope are already sufficient.

Use the prompt patterns in references/mapping_and_decisions.md.

Adaptation Rules

This skill ships with a working builder that reproduces the current patient-profile style closely, but efficacy identification must be protocol-driven rather than copied from a prior project. Metric aliases and candidate efficacy names must also be derived from the current protocol wording, especially the primary/secondary endpoint text and the study flow table, rather than from a hardcoded disease-specific alias catalog. Responder or response labels must also be protocol-driven: only emit them when the current protocol explicitly defines a rule and the available data can calculate it. Otherwise leave the response field blank.

Prefer updating suggested_project_config.json before editing Python.

The skill must fully deconstruct every uploaded file that could affect mapping or scope. Do not skip sheet-level inspection because a prior project looked similar. Do not silently fall back to a previous project’s endpoint set, phase labels, subject-ID format, or visit model. Do not continue to HTML generation if critical mapping remains ambiguous; stop and ask the user for a concrete file/sheet/field example. If the study flow table says a category should be collected but the listing yields no usable rows, stop and ask instead of silently omitting it.

Generalization Boundary

Keep this skill project-agnostic. Do not add disease-specific, compound-specific, endpoint-specific, or single-project modules to the default builder or documentation.

Examples of project-specific content that must not be hardcoded:

  • disease-specific symptom scores, questionnaires, or endpoint names unless detected from the current protocol and listing
  • project-specific SAP analyses, daily diary windows, or responder rules not explicitly defined in the current protocol
  • biomarker, PK, PD, immunogenicity, exposure, environmental, or device modules unless the user supplies them and the current protocol/config explicitly requests them
  • project-specific sheet names, visit windows, center names, trial names, product names, colors, or report titles

When a project needs an extra module, implement it as a project-local extension or config-driven optional block. Do not promote it into the reusable skill unless it applies broadly across clinical projects.

Retain broadly reusable lessons from prior builds:

  • sort subjects numerically in every selector or sidebar list
  • sort subject-level longitudinal rows by actual assessment date, including unplanned visits
  • exclude unplanned visits from overall/center aggregates unless the user explicitly asks otherwise
  • keep subject-level unplanned visits when the user chooses to include USV data
  • collapse one-sided or qualitative normal ranges into a single display value instead of forcing separate lower/upper columns
  • verify the rendered HTML, not only the CSV outputs; UI clipping can look like missing data

Adjust the script only in these places when the new project differs beyond config:

  • protocol parsing and endpoint extraction logic
  • EFFICACY_CONFIG for candidate efficacy sheet names and value columns
  • LAB_CONFIG for lab workbook tabs
  • CORE_SHEET_CATALOG for nonstandard main listing tabs
  • FINDING_SHEET_SPECS or finding-sheet auto-detection behavior
  • group and center normalization helpers

Do not fabricate subject dates, ranges, response flags, or normal limits. If there is no finding workbook, continue without the finding module and without subject-level “关联Finding” descriptions.

Outputs

The builder writes at least these files to the chosen output directory:

  • patient_profile.html
  • cleaned_subject_profile_dataset.csv
  • efficacy_longitudinal_dataset.csv
  • lab_longitudinal_dataset.csv
  • vital_signs_longitudinal_dataset.csv
  • finding_subject_level_dataset.csv
  • data_source_field_mapping.csv
  • data_qc_summary.csv
  • data_issue_log.csv
  • subject_data_completeness.csv
  • unresolved_data_questions.md
  • input_precheck.md
  • input_precheck.json
  • protocol_endpoint_summary.md
  • protocol_endpoint_summary.json

The output HTML must stay Chinese-first in title, labels, filters, tables, and review text, using a professional internal-review style rather than project-specific wording.

References

  • For missing-field questions and exclusion decisions, read references/mapping_and_decisions.md.
  • For final source-consistency checks, read references/validation_checklist.md.
  • For a copy-paste quick start, read references/quickstart_template.md.

当前收录版本

1.0.1

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值85/100

亮点

  • 面向临床试验专业场景,解决受试者画像与历时核查的实际需求
  • 具备高实用价值,适用于疗效、实验室、生命体征等多维度数据展示
触发精准90/100

亮点

  • 触发词精准完整,覆盖‘patient profile’、‘受试者画像’、‘个例 Profile’等多种等效表达
  • 边界清晰,明确限定于基于临床试验 listing、研究方案等文件的场景
结构规范90/100

待提升项

  • 缺少显式 When to Use 章节 原报告严重程度:轻微

    文档中已有触发描述,但未单独设立 When to Use 章节

    改进建议:建议在 skill_body 中增加显式 When to Use 章节以提升可读性

亮点

  • Workflow 步骤清晰,包含 precheck、配置确认、构建与验证全流程
  • 结构完整,涵盖输入要求、异常处理、输出文件等关键信息
执行可靠90/100

亮点

  • 工具来源明确,使用 bundled precheck 脚本确保一致性
  • 覆盖主要异常场景(如字段映射模糊、缺失中心),并提供明确处理流程
  • 不可逆操作前有确认机制,避免误执行
证据可验 (前四项均值)89/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。