‹ 首页

domain-healthcare

@signalpilot-labs · 收录于 5 天前 · 上游提交 6 天前

Healthcare data science rules: encounter-based grain, clinical coding hierarchies, cost allocation, NULL semantics in clinical data.

适合你,如果处理医疗数据时需处理临床编码层级与空值语义。

/ 通过 npx 安装 校验哈希
npx oh-my-skill add signalpilot-labs/signalpilot/domain-healthcare
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- signalpilot-labs/signalpilot/domain-healthcare
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify signalpilot-labs/signalpilot/domain-healthcare
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
473GitHub stars
~667上下文体积 · 单文件
索引托管

怎么用

商店整理自技能原文 · 版本 436a4c4 · 表述以原文为准
它做什么

装上后,Claude在处理医疗健康数据时会遵循规则:用事件表驱动分析、保持就诊事件粒度、使用编码层次结构、从完整分类表构建映射、成本分摊需去重、NULL视为未记录而非不存在。

什么时候触发

当用户询问医疗数据汇总、编码处理、成本分摊或缺失数据解读时触发。

装好后可以这样说
触发成本分摊规则,避免重复计算。
使用编码层次结构实现。
技能原文 SKILL.md作者撰写 · Apache-2.0 · 436a4c4

Healthcare Data Science

Driving Table

When aggregating clinical metrics, drive FROM the fact/event table (encounters, procedures, diagnoses), not the dimension table (patients, providers). Patients with zero encounters MUST NOT appear in utilization reports - they have no data to aggregate.

Encounter-Based Grain

One patient encounter generates multiple diagnoses, procedures, medications, and cost entries. The grain of clinical fact tables is the EVENT (diagnosis, procedure), not the encounter or patient.

Do NOT aggregate to patient level without first verifying whether the task asks for patient-level or encounter-level output. Premature patient-level aggregation destroys per-encounter detail.

Clinical Code Hierarchies

Healthcare coding systems are hierarchical - a parent code rolls up child codes:

  • ICD (International Classification of Diseases) - diagnoses and conditions
  • CPT (Current Procedural Terminology) - physician procedures
  • HCPCS (Healthcare Common Procedure Coding System) - equipment, supplies, non-physician services
  • SNOMED CT - clinical terms (conditions, procedures, substances)
  • DRG (Diagnosis Related Groups) - inpatient payment grouping (MS-DRG for Medicare, APR-DRG for all-payer)
  • NUCC (National Uniform Claim Committee) - provider taxonomy/specialty codes
  • LOINC - lab tests and clinical observations
  • NDC (National Drug Codes) - drug/medication identifiers
  • RxNorm - normalized drug names
  • NPI (National Provider Identifier) - provider identification
  • APC (Ambulatory Payment Classification) - outpatient payment grouping
  • Revenue Codes - facility billing line items
  • Place of Service Codes - where care was delivered

When the task asks for a "condition" or "procedure category," check whether the project maps to a specific hierarchy level. Use the mapping table's grain, not a substring of the code.

When multiple codes map to one encounter, the encounter appears multiple times in the fact table - this is correct grain, not a duplicate.

Taxonomy and Crosswalk Tables

When building a mapping between a complete taxonomy (all codes) and a partial crosswalk (only some codes have mappings), drive FROM the complete taxonomy table. LEFT JOIN the crosswalk onto it. Codes without a crosswalk mapping get NULL - that is correct, they are unmapped codes.

Driving from the crosswalk drops all codes that have no mapping, producing an incomplete taxonomy.

Cost Allocation

Healthcare costs are allocated across diagnoses and procedures within an encounter. SUM(cost) across all rows for a patient double-counts shared encounter costs.

When the task asks for "total cost," verify whether costs are pre-allocated (sum is correct) or shared (need to deduplicate by encounter first).

NULL Semantics

In clinical data, NULL means "not recorded," which is clinically different from "not present." A NULL diagnosis does NOT mean the patient is healthy - it means the data is incomplete.

NEVER filter NULL clinical columns unless the task explicitly excludes incomplete records. Filtering NULLs in clinical data silently drops patients with missing documentation.

按 Apache-2.0 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。