Clinical Reports
davila7/claude-code-templates
Write comprehensive clinical reports including case reports (CARE guidelines), diagnostic reports (radiology/pathology/lab), clinical trial reports (ICH-E3, SAE, CSR), and patient documentation…
Apply consistent per-patient date shifting in OpenMed that preserves intervals between events while satisfying HIPAA Safe Harbor's date rule.
$ npx skills add maziyarpanahi/openmed --skill shifting-clinical-dates -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install maziyarpanahi/openmed shifting-clinical-dates --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/maziyarpanahi/openmed.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/shifting-clinical-dates .claude/skills/shifting-clinical-dates && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "shifting-clinical-dates" agent skill from https://github.com/maziyarpanahi/openmed/tree/master/skills/shifting-clinical-dates into .claude/skills/shifting-clinical-dates/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "shifting-clinical-dates", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/maziyarpanahi/openmed/tree/master/skills/shifting-clinical-datesType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add maziyarpanahi/openmed --skill shifting-clinical-dates -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install maziyarpanahi/openmed shifting-clinical-dates --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/maziyarpanahi/openmed.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/shifting-clinical-dates .agents/skills/shifting-clinical-dates && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "shifting-clinical-dates" agent skill from https://github.com/maziyarpanahi/openmed/tree/master/skills/shifting-clinical-dates into .agents/skills/shifting-clinical-dates/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "shifting-clinical-dates", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add maziyarpanahi/openmed --skill shifting-clinical-dates -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install maziyarpanahi/openmed shifting-clinical-dates --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/maziyarpanahi/openmed.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/shifting-clinical-dates .cursor/skills/shifting-clinical-dates && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "shifting-clinical-dates" agent skill from https://github.com/maziyarpanahi/openmed/tree/master/skills/shifting-clinical-dates into .cursor/skills/shifting-clinical-dates/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "shifting-clinical-dates", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/maziyarpanahi/openmed.git --path skills/shifting-clinical-dates--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add maziyarpanahi/openmed --skill shifting-clinical-dates -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install maziyarpanahi/openmed shifting-clinical-dates --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/maziyarpanahi/openmed.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/shifting-clinical-dates .gemini/skills/shifting-clinical-dates && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "shifting-clinical-dates" agent skill from https://github.com/maziyarpanahi/openmed/tree/master/skills/shifting-clinical-dates into .gemini/skills/shifting-clinical-dates/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "shifting-clinical-dates", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install maziyarpanahi/openmed shifting-clinical-datesInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add maziyarpanahi/openmed --skill shifting-clinical-dates -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/maziyarpanahi/openmed.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/shifting-clinical-dates .github/skills/shifting-clinical-dates && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "shifting-clinical-dates" agent skill from https://github.com/maziyarpanahi/openmed/tree/master/skills/shifting-clinical-dates into .github/skills/shifting-clinical-dates/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "shifting-clinical-dates", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add maziyarpanahi/openmed --skill shifting-clinical-dates -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install maziyarpanahi/openmed shifting-clinical-dates --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/maziyarpanahi/openmed.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/shifting-clinical-dates .opencode/skills/shifting-clinical-dates && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "shifting-clinical-dates" agent skill from https://github.com/maziyarpanahi/openmed/tree/master/skills/shifting-clinical-dates into .opencode/skills/shifting-clinical-dates/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "shifting-clinical-dates", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
shifting-clinical-datesApply consistent per-patient date shifting in OpenMed that preserves intervals between events while satisfying HIPAA Safe Harbor's date rule.
Shifting Clinical Dates is an agent skill from maziyarpanahi/openmed. Apply consistent per-patient date shifting in OpenMed that preserves intervals between events while satisfying HIPAA Safe Harbor's date rule. Use when the user needs to de-identify dates but keep temporal structure for research, shift all dates by the same offset per patient, preserve days-between-events for survival or longitudinal analysis, cap ages over 89, or strip everything but the year. Covers deidentify(method="shiftdates", dateshiftdays=..., keepyear=...) and per-patient reproducible offsets via…
Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Legal & Compliance, covering Clinical and healthcare research and Healthcare and finance regulation. The repository describes itself as: Local-first healthcare AI: clinical NER and HIPAA PII de-identification on hardware you control. 2,200+ medical models, 35 model-backed PII languages, and Python, MLX, Android… The licence is Apache-2.0.
5 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 34d7b8c. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are python).
From the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
ecfr.govhhs.govFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Shifting Clinical Dates loads about 1.7k tokens when it runs. Until then it costs about 162 tokens; SKILL.md has 592 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from maziyarpanahi/openmed at commit 34d7b8c, republished under its Apache-2.0 licence (© maziyarpanahi). 592 words, ~1,652 tokens.
.claude/skills/shifting-clinical-dates/SKILL.md (or your agent's skills folder).HIPAA Safe Harbor forbids keeping dates more specific than the year. But naively
deleting dates destroys the temporal structure research depends on — time to
event, length of stay, intervals between visits. Date shifting is the
compromise: move every date by a single random offset so the absolute dates
become meaningless while the intervals between them are preserved exactly.
OpenMed does this on-device with deidentify(method="shift_dates", ...).
Use it when downstream analysis needs temporal relationships (survival curves,
sepsis-to-antibiotic time, readmission gaps) but the calendar dates must be
de-identified. If you can throw dates away entirely, plain method="mask" is
simpler — reach for shifting only when intervals matter.
import openmed
note = (
"Admitted 2024-03-02, started antibiotics 2024-03-04, discharged 2024-03-09. "
"Follow-up scheduled 2024-04-02."
)
# Shift every date by the SAME offset -> intervals preserved, dates obscured.
result = openmed.deidentify(
note,
method="shift_dates",
consistent=True, # one stable offset for this run
seed=20240519, # reproducible per-patient offset (use a per-patient key)
keep_year=False, # do NOT retain the year (Safe Harbor: year-only is the max)
)
print(result.deidentified_text)
# Admit -> antibiotics is still 2 days; admit -> discharge still 7 days; etc.All dates in the document are moved by one offset (auto-selected as a random
non-zero value in roughly ±1 year, or fixed with date_shift_days=). Because
the offset is identical for every date, the difference between any two dates is
unchanged:
real: Mar 2 ──2d──▶ Mar 4 ──5d──▶ Mar 9
shifted: Jul 18 ──2d──▶ Jul 20 ──5d──▶ Jul 25 (offset = +138 days, intervals intact)That is why survival time, length of stay, and visit gaps survive de-identification while the actual calendar is destroyed.
Each patient should get their own offset, and that offset should be
stable across documents and reproducible across runs. Derive a per-patient
seed (e.g. from a secret keyed hash of the patient ID — never the raw MRN) and
pass it as seed=:
def patient_offset_seed(patient_key: str) -> int:
import hashlib, hmac
# keyed so the mapping from patient -> offset is itself a secret
digest = hmac.new(b"<vault-secret>", patient_key.encode(), hashlib.sha256).digest()
return int.from_bytes(digest[:8], "big")
for doc in patient_documents:
openmed.deidentify(
doc, method="shift_dates",
consistent=True, seed=patient_offset_seed(patient_id),
keep_year=False,
)Same patient → same offset everywhere (their notes stay internally consistent); different patients → different offsets (cross-patient dates cannot be aligned).
consistent=True + a per-patient seed. Use a fixed date_shift_days=
only when a deterministic, externally-managed offset is required.keep_year=False for Safe Harbor. (keep_year=True retains the year,
which is permissible only if dates aren't tied to an individual's care.)AGE spans explicitly
(auditing-safe-harbor-checklist).shift_dates only touches dates. Run a normal
redaction pass (or a policy) for PERSON, ID_NUM, etc.audit=True.deidentifying-clinical-text — combine date shifting with a
policy= so names/IDs are redacted in the same pipeline.auditing-safe-harbor-checklist — the date rule and
the age-90 cap are categories C in the 18.auditing-deidentification-runs records the method and per-span
actions (offsets/hashes, not raw dates).openmed_deidentify / REST POST /pii/deidentify
accept the same method and parameters.keep_year=True is not Safe Harbor by itself when the year reveals the
age of someone >89 or ties to care episodes — pair with age capping.lang= so 11/04/2024 is
parsed in the right order before shifting (deidentifying-multilingual-text).openmed/core/pii.py (deidentify(method="shift_dates"),
_shift_date, _random_nonzero_shift).© maziyarpanahi, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/shifting-clinical-dates of maziyarpanahi/openmed.
Open the folder on GitHubat commit 34d7b8c
Shifting Clinical Dates next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Shifting Clinical Dates this skillmaziyarpanahi/openmed | 5.5k | — | ~1.7k | Automated safety check: Pass | Apache-2.0 | |
| Clinical Reportsdavila7/claude-code-templates | 33k | 11 repos | ~9.9k | Automated safety check: Notes | MIT | |
| Healthtech Advisorborghei/Claude-Skills | 891 | — | ~1.7k | Automated safety check: Pass | MIT | |
| Hipaa Compliance Auditoraipoch/medical-research-skills | 1.9k | — | ~2.9k | Automated safety check: Pass | MIT | |
| Patient Consent Simplifieraipoch/medical-research-skills | 1.9k | — | ~1.8k | Automated safety check: Pass | MIT | |
| Health Data Dpiamukul975/Privacy-Data-Protection-Skills | 301 | — | ~2.4k | Automated safety check: Pass | Apache-2.0 |
davila7/claude-code-templates
Write comprehensive clinical reports including case reports (CARE guidelines), diagnostic reports (radiology/pathology/lab), clinical trial reports (ICH-E3, SAE, CSR), and patient documentation…
borghei/Claude-Skills
Strategic advisory for digital health founders on HIPAA scope, FDA SaMD classification, EHR integration, and payor/provider GTM.
aipoch/medical-research-skills
Clinical-grade PII/PHI detection and de-identification for healthcare text data.
aipoch/medical-research-skills
Simplifies informed consent documents into patient-friendly language while maintaining regulatory compliance.
mukul975/Privacy-Data-Protection-Skills
Guides DPIA for health and medical data processing covering Art.
mukul975/Privacy-Data-Protection-Skills
Addresses healthcare AI privacy at the intersection of HIPAA and the EU AI Act for clinical decision support systems.
maziyarpanahi/openmed
Checks OpenMed de-identified clinical text against the 18 HIPAA Safe Harbor identifier categories and reports gaps and residual re-identification risk.
maziyarpanahi/openmed
Fills in a model card for an OpenMed clinical NER or de-identification model from its evaluation reports: intended use, metrics, subgroups and limitations.
maziyarpanahi/openmed
Walks a data pipeline against the HIPAA Privacy and Security Rule checklist and produces a gap report before it processes patient data.
maziyarpanahi/openmed
Suggests candidate ICD-10-CM diagnosis and ICD-10-PCS procedure codes for clinical text extracted by OpenMed, with rationale for a certified coder to review.
maziyarpanahi/openmed
Maps OpenMed-extracted, terminology-coded conditions, drugs and measurements into OMOP CDM v5.4 tables for OHDSI and ATLAS analytics.
maziyarpanahi/openmed
Finds social risks such as housing instability or food insecurity in clinical notes and proposes matching ICD-10-CM Z-codes for a coder to confirm.
Categories
Apply consistent per-patient date shifting in OpenMed that preserves intervals between events while satisfying HIPAA Safe Harbor's date rule. Shifting Clinical Dates is an agent skill from maziyarpanahi/openmed. Apply consistent per-patient date shifting in OpenMed that preserves intervals between events while satisfying HIPAA Safe Harbor's date rule.
Shifting Clinical Dates fits situations like: the user needs to de-identify dates but keep temporal structure for research; shift all dates by the same offset per patient; preserve days-between-events for survival; longitudinal analysis.
Run `npx skills add maziyarpanahi/openmed --skill shifting-clinical-dates -a claude-code`. Or copy the skill folder (skills/shifting-clinical-dates in maziyarpanahi/openmed) into .claude/skills/shifting-clinical-dates in your project. Claude Code loads it when a task matches its description.
Run `npx skills add maziyarpanahi/openmed --skill shifting-clinical-dates -a codex`. Or copy the skill folder (skills/shifting-clinical-dates in maziyarpanahi/openmed) into .agents/skills/shifting-clinical-dates in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add maziyarpanahi/openmed --skill shifting-clinical-dates -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/shifting-clinical-dates, .gemini/skills/shifting-clinical-dates, .github/skills/shifting-clinical-dates and .opencode/skills/shifting-clinical-dates in your project.
SKILL.md names no scripts, command-line tools or credentials: Shifting Clinical Dates is instructions for the agent only. Our summary lists: Python 3.
SKILL.md names 2 domains. As links in the text: ecfr.gov and hhs.gov. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Shifting Clinical Dates is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.7k tokens (SKILL.md is roughly 6.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Shifting Clinical Dates: Clinical Reports (davila7/claude-code-templates, 33k stars), Healthtech Advisor (borghei/Claude-Skills, 891 stars), Hipaa Compliance Auditor (aipoch/medical-research-skills, 1.9k stars) and Patient Consent Simplifier (aipoch/medical-research-skills, 1.9k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
maziyarpanahi (a GitHub user) maintains it in maziyarpanahi/openmed, which has 5,506 GitHub stars. The repository holds 74 skills in this directory. The repository was last updated on October 11, 2026.
Source: maziyarpanahi/openmed on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.