Logo Cdisc Compliance

Cdisc Compliance

Tổ chức
awslabs
cdisc-compliance

Reason about CDISC SDTM and ADaM implementation for regulatory submissions. Use when the user asks about SDTM domain mapping, ADaM dataset design, controlled terminology versioning, define.xml completeness, FDA or PMDA submission requirements, query prioritization by clinical impact, SUPPQUAL usage, or CDISC compliance review. Triggers include "SDTM mapping", "ADaM dataset", "CDISC compliance", "controlled terminology", "define.xml", "FDA submission data", "PMDA submission", "SDTM domain", "ADSL", "ADAE", "ADLB", "BDS structure", "SUPPQUAL", "RELREC", "value-level metadata", "CDISC CT", "regulatory submission data standards", "eCTD datasets", "SDTM 3.3", "ADaM 1.1", "query prioritization", "clinical data review".

Add to TypingMind

Tổng quan

Nhà phát hànhawslabs
Kho mãhcls-agent-skills
Tên kỹ năngcdisc-compliance
Sao
71
Bản fork
14
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépMIT-0
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được awslabs công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Cdisc Compliance trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/awslabs/hcls-agent-skills/tree/main/skills/cdisc-compliance
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/awslabs/hcls-agent-skills.git /tmp/hcls-agent-skills
mkdir -p .claude/skills
cp -r /tmp/hcls-agent-skills/skills/cdisc-compliance .claude/skills/cdisc-compliance
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Cdisc Compliance trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Cdisc Compliance ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Cdisc Compliance với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

CDISC Compliance — Reasoning Skill

Overview

You are an expert in CDISC data standards for regulatory submissions. When the user asks about SDTM/ADaM implementation, controlled terminology, define.xml, or submission requirements, apply the decision frameworks below.

Usage

  • Invoke when evaluating CDISC SDTM or ADaM compliance for regulatory submissions
  • Use when planning define.xml content, SUPPQUAL decisions, or domain mapping
  • Activate for FDA/PMDA submission data standards questions or Pinnacle 21 triage

Core Concepts

Response Format

  • Lead with the direct recommendation or classification (≤3 sentences)
  • Structure as: recommendation → justification (citing specific criteria/thresholds) → caveats
  • Use tables for comparisons; bullet points for criteria lists
  • Omit background the user already knows — they asked the question
  • Target: 200-400 words unless the user requests exhaustive detail The decision trees and frameworks in this skill are for internal reasoning only. Apply them to reach your conclusion, but do not reproduce them in your response. Present only the final recommendation with supporting evidence.

1. Tricky Domain Mapping Decision Tree

These are the non-obvious mappings where teams make mistakes:

Oncology tumor data?
├─ Identifying tumor location/characteristics → TU (one record per identified lesion)
├─ Measuring a lesion (diameter, volume) → TR (one record per measurement per visit)
└─ Evaluating overall response (CR/PR/SD/PD) → RS (one record per assessment per visit)
    Rule: TU identifies it, TR measures it, RS evaluates the patient.

Medication data?
├─ Is it the study drug or protocol-mandated therapy? → EX (Exposure)
├─ Is it a non-study medication taken during the study? → CM
└─ Ambiguous (e.g., rescue medication specified in protocol)?
   ├─ Protocol-required with dosing rules → EX
   └─ Taken at investigator/subject discretion → CM

Pre-existing condition that worsens on study?
├─ Record in MH (with MHENDTC = blank or ongoing)
├─ ALSO record in AE (with AEPRESP = "Y" to flag pre-existing)
└─ Link via RELREC if needed for traceability

Questionnaire / PRO / scale data?
├─ Uses a published validated instrument (e.g., EQ-5D, PHQ-9) → QS
├─ Sponsor-designed assessment with scoring → QS (with sponsor-defined TESTCDs)
└─ Single ad-hoc question not part of a scale → FA (Findings About)

2. SUPPQUAL Anti-Pattern Checklist

NEVER put in SUPPQUAL (move to parent domain or use standard variable):

  • Timing variables (--STDTC, --ENDTC, --DUR, --VISITNUM)
  • Result qualifiers (--LOC, --LAT, --DIR, --METHOD)
  • Standard identifiers (--GRPID, --REFID, --SPID)
  • Any variable defined in the current SDTM IG for that domain

ALWAYS appropriate for SUPPQUAL:

  • Free-text verbatim fields not fitting standard variables
  • Site-specific or country-specific collected fields
  • Non-standard data collected on CRF with no IG slot
  • Sponsor-defined flags needed for analysis traceability

Red flags indicating domain redesign needed:

  • >5 SUPPQUAL records per subject per domain → consider a custom domain or FA
  • SUPPQUAL variable used in derivations → promote to parent domain
  • Same QNAM across >80% of subjects → this is a standard variable in disguise

SUPPQUAL rules:

  • QNAM ≤8 characters, unique within parent domain
  • QLABEL ≤40 characters
  • QORIG: CRF | DERIVED | ASSIGNED | PROTOCOL

3. SDTM Version Requirements

AgencyMinimum SDTMMinimum IGNotes
FDA3.33.3Required for NDA/BLA since 2017
PMDA3.23.2Accepts 3.3; 3.4 encouraged
EMA3.23.2Not yet mandatory but recommended
Health Canada3.33.3Aligned with FDA

4. ADaM Rules (Non-Obvious)

  1. Traceability is mandatory. Every derived variable must trace to SDTM via SRCDOM/SRCVAR/SRCSEQ.
  2. DTYPE flags derived records. Imputed/derived records (LOCF, WOCF) require DTYPE.
  3. AVAL and BASE must share units. CHG = AVAL − BASE is meaningless otherwise.
  4. Value-level metadata required for BDS where variable attributes differ by PARAMCD — define.xml must include where clauses for each parameter.
  5. Computational methods required for every derived variable in define.xml.

5. define.xml Value-Level Metadata

For BDS datasets, define.xml must specify per-PARAMCD:

  • Origin (CRF vs Derived) — may differ by parameter
  • Data type and length — AVAL is always numeric, but AVALC length varies
  • Codelist reference — only for parameters with categorical AVALC
  • Computational method — derivation algorithm specific to that PARAMCD
  • Where clause — the condition identifying which records the metadata applies to

Missing value-level metadata is a P21 Error for any BDS dataset with >1 PARAMCD.

6. Query Prioritization by Clinical Impact

PriorityData CategoryExamplesResolution SLA
P1 — CriticalSafety dataSAE dates, AE causality, death records24–48 hours
P2 — HighEfficacy endpointsPrimary/secondary endpoint values, visit dates3–5 business days
P3 — MediumKey demographicsRandomization data, stratification factors5–7 business days
P4 — LowAdministrativeInformed consent dates, site identifiers10 business days

Escalation rules:

  • Queries affecting multiple subjects → escalate one priority level
  • Systematic errors (wrong unit for all subjects at a site) → P1 regardless of data type
  • Safety queries block database lock — resolve before anything else

7. FDA vs PMDA Submission Differences

AspectFDAPMDA
SDTM requiredYes (NDA/BLA)Yes (since 2020 for new drugs)
ADaM requiredYesRecommended, not mandatory
define.xml2.0+ required2.0+ required
CT version policyLatest at time of submissionPin at study start
Dataset size limit5 GB per dataset (eCTD)No explicit limit
Blanking rulesPermissible nullPrefer explicit "NOT DONE"
Reviewer's GuideRequired (cSDRG, aSDRG)Required

Key gotcha: FDA accepts null for "not done" assessments; PMDA expects --STAT = "NOT DONE" with --REASND populated. Plan for PMDA requirements upfront if dual submission.

When NOT to Use This Skill

  • Pre-clinical or discovery-phase data not destined for regulatory submission — CDISC standards add overhead without value
  • Non-regulatory submissions (e.g., internal research databases, publications) — use domain-appropriate formats instead
  • eCTD module assembly or submission gateway mechanics — this skill covers data standards, not submission logistics

When to Escalate to Human Expert

  • Ambiguous domain mapping where the variable could legitimately belong to two SDTM domains — requires sponsor standards team decision
  • Novel endpoint types not covered by existing CDISC controlled terminology — requires CDISC SHARE consultation or sponsor extension request
  • Regulatory agency feedback contradicts CDISC Implementation Guide — requires regulatory affairs interpretation

8. Common Compliance Mistakes (Severity-Ranked)

  1. Wrong: Submitting a dataset without USUBJID Right: Include USUBJID as a required variable in every SDTM and ADaM dataset Why: Missing USUBJID breaks all cross-dataset joins — Critical severity

  2. Wrong: Creating DM domain without populating RFSTDTC Right: Always populate RFSTDTC (reference start date) in DM from the first dose or randomization date Why: All study day (--DY) calculations depend on RFSTDTC — Critical severity

  3. Wrong: Building ADSL without TRT01A/TRT01P variables Right: Always include TRT01A (actual treatment) and TRT01P (planned treatment) in ADSL Why: No treatment assignment means no analysis population can be defined — Critical severity

  4. Wrong: Creating a non-standard (custom) domain without documenting it in define.xml and the Reviewer's Guide Right: Document all non-standard domains with full metadata in define.xml and explain rationale in cSDRG Why: Reviewers cannot interpret undocumented domains, causing review delays — High severity

  5. Wrong: Placing standard SDTM variables (timing, result qualifiers, identifiers) in SUPPQUAL Right: Use the parent domain's standard variables (--STDTC, --LOC, --METHOD, --GRPID, etc.) as defined in the IG Why: Triggers P21 Error and signals poor domain mapping knowledge — High severity

  6. Wrong: Omitting value-level metadata for BDS datasets with multiple PARAMCDs Right: Include where-clause-based value-level metadata in define.xml for every PARAMCD in BDS datasets Why: Missing value-level metadata is a P21 Error; define.xml is incomplete without it — High severity

  7. Wrong: Using codelist values not present in the pinned controlled terminology version Right: Pin one CT version at study start and use only values from that version (or document sponsor extensions for extensible codelists) Why: Triggers P21 Warning CT2003 and may delay regulatory review — Medium severity

  8. Wrong: Recording dates with inconsistent precision across records (mixing full dates with partial dates without clear rules) Right: Define date precision rules in the SAP and apply consistent imputation logic documented in define.xml Why: Inconsistent precision complicates imputation and introduces errors in study day calculations — Medium severity

9. Date Handling Gotchas

Study Day Calculation

--DY = date − RFSTDTC + 1  (if date ≥ RFSTDTC)
--DY = date − RFSTDTC      (if date < RFSTDTC)

There is no Day 0. Day −1 is the day before RFSTDTC; Day 1 is RFSTDTC itself. This off-by-one is the #1 date calculation error in submissions.

Date Imputation Rules for ADaM

ScenarioImputation RuleDTYPE Flag
Missing day, AE startImpute to 1st of monthSet ASTDT, document imputation
Missing month and dayImpute to January 1stDocument in define.xml
Missing end date, ongoing AEUse data cutoff dateFlag as ongoing (AENDY missing)
Partial date comparisonConservative: earliest for start, latest for endDocument algorithm

Rule: Every imputed date requires a corresponding imputation flag variable (e.g., ASTDTF, AENDTF) with values Y (imputed) or blank (not imputed).

10. Pinnacle 21 Triage Decision Tree

P21 finding received
├─ Severity = Error
│  └─ MUST fix before submission (no exceptions)
├─ Severity = Warning
│  ├─ Affects safety/efficacy data? → Fix
│  ├─ Cosmetic or structural only? → Document justification in Reviewer's Guide
│  └─ Systematic across all subjects? → Fix (reviewer will notice)
└─ Severity = Notice
   ├─ Easy fix (<1 hour)? → Fix
   └─ Complex or low-impact? → Skip, document if asked

Top P21 Rules by Fix Priority

Rule IDDescriptionSeverityAction
SD0009USUBJID not consistent with DMErrorFix immediately — breaks traceability
SD0083Missing required variableErrorFix — submission will be rejected
SD1001Invalid date/time formatErrorFix — ISO 8601 non-negotiable
CT2001CT mismatch (value not in codelist)WarningFix if non-extensible codelist; document if sponsor extension
CT2003CT version inconsistencyWarningUsually fix — indicates mixed CT versions
SD1020Value not found in external codelistWarningFix if standard term exists; extend if legitimate
AD0252ADSL missing required variablesErrorFix — ADSL completeness is critical
AD0322BDS record without PARAMCDErrorFix — BDS is unusable without PARAMCD
SD0070Duplicate recordsWarningInvestigate — may be valid (e.g., bilateral findings)
SD1015Inconsistent values across datasetsWarningFix if traceability broken; document if by design

11. Controlled Terminology Rules

RuleDescription
Pin CT version at study startOne CT version for entire study
Document in define.xmlSpecify package version (e.g., 2024-03-29)
Never mix versionsMixing CT within a study → P21 Warning CT2003
Non-extensible codelistsUse ONLY CDISC-defined values (e.g., SEX, AEOUT)
Extensible codelistsSponsor values allowed but must be documented
Map legacy terms on upgradeCreate mapping table; never silently change coded values

Câu hỏi thường gặp

Kỹ năng AI Cdisc Compliance làm được gì?

Reason about CDISC SDTM and ADaM implementation for regulatory submissions. Use when the user asks about SDTM domain mapping, ADaM dataset design, controlled terminology versioning, define.xml completeness, FDA or PMDA submission requirements, query prioritization by clinical impact, SUPPQUAL usage, or CDISC compliance review. Triggers include "SDTM mapping", "ADaM dataset", "CDISC compliance", "controlled terminology", "define.xml", "FDA submission data", "PMDA submission", "SDTM domain", "ADSL", "ADAE", "ADLB", "BDS structure", "SUPPQUAL", "RELREC", "value-level metadata", "CDISC CT", "re...

Vì sao nên dùng Cdisc Compliance trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Cdisc Compliance là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Cdisc Compliance trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/awslabs/hcls-agent-skills/tree/main/skills/cdisc-compliance. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Cdisc Compliance?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Cdisc Compliance với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Cdisc Compliance với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Cdisc Compliance có miễn phí không?

Có. Kỹ năng này được awslabs phát hành trên GitHub theo giấy phép MIT-0. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇