clinical-patient-profile-html
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "clinical-patient-profile-html" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-c86f4be5e71f8671cd6e9c1b423f91b42b41277f1f58e083fd0ef177b7f702fe. Verify the upstream source and version against https://skillhub.cn/skills/user_d4b39bcc/clinical-patient-profile-html before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Used when the user requests generating patient profiles, subject portraits, individual profiles, or center-level summary HTML from source documents such as clinical trial listings, protocols, subject grouping tables, and Finding ledgers. Applicable for subject-level or center-level longitudinal review displays of efficacy, laboratory, vital signs, adverse events (AE), and various Findings.
Introduction source: third_party · user_d4b39bcc · 1.0.1 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Inputs and outputs
- 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.
- Testing
- Not tested
Browse files
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
- 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
- Read
input_precheck.md. Also inspect:
suggested_project_config.jsonprotocol_endpoint_summary.md
- 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 合并为“基线”。
-
If precheck shows only
提示, continue directly to full build. -
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. -
If precheck shows
需确认but the user has already made a scope decision such as “该字段不纳入” or “该数据不体现”, update the config accordingly and continue directly. -
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"
- 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_CONFIGfor candidate efficacy sheet names and value columnsLAB_CONFIGfor lab workbook tabsCORE_SHEET_CATALOGfor nonstandard main listing tabsFINDING_SHEET_SPECSor 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.htmlcleaned_subject_profile_dataset.csvefficacy_longitudinal_dataset.csvlab_longitudinal_dataset.csvvital_signs_longitudinal_dataset.csvfinding_subject_level_dataset.csvdata_source_field_mapping.csvdata_qc_summary.csvdata_issue_log.csvsubject_data_completeness.csvunresolved_data_questions.mdinput_precheck.mdinput_precheck.jsonprotocol_endpoint_summary.mdprotocol_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.
Current listing version
1.0.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 面向临床试验专业场景,解决受试者画像与历时核查的实际需求
- 具备高实用价值,适用于疗效、实验室、生命体征等多维度数据展示
Highlights
- 触发词精准完整,覆盖‘patient profile’、‘受试者画像’、‘个例 Profile’等多种等效表达
- 边界清晰,明确限定于基于临床试验 listing、研究方案等文件的场景
Areas to improve
-
缺少显式 When to Use 章节 Reported severity: Minor
文档中已有触发描述,但未单独设立 When to Use 章节
Recommendation: 建议在 skill_body 中增加显式 When to Use 章节以提升可读性
Highlights
- Workflow 步骤清晰,包含 precheck、配置确认、构建与验证全流程
- 结构完整,涵盖输入要求、异常处理、输出文件等关键信息
Highlights
- 工具来源明确,使用 bundled precheck 脚本确保一致性
- 覆盖主要异常场景(如字段映射模糊、缺失中心),并提供明确处理流程
- 不可逆操作前有确认机制,避免误执行
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.