옵션
집집 Skill 데이터베이스 관리 dicom-metadata-extract

dicom-metadata-extract

NVIDIA/skills NVIDIA/skills

DICOM 파일에서 선별된 메타데이터를 추출하고, 표준 태그에 PHI가 포함된 경우 이를 표시합니다. 익명화 또는 임상 용도로는 사용할 수 없습니다.

...모든 것을 확장하십시오
10
업데이트 된 시간 2026년 9월 25일

DICOM 메타데이터 추출

목적

  • 하나의 DICOM 파일에서 선택된 메타데이터를 추출하고 표준 태그인 PHI의 존재 여부를 표시하는 데 사용됩니다. 익명화나 임상 용도로는 사용하지 마십시오.
  • 문서에 명시된 대로 래퍼를 정확히 사용하십시오. 상위 엔트리포인트를 직접 작성한 구현으로 대체하지 마십시오.
  • 매니페스트 I/O: 입력은 dicom_path; 출력은 metadata_json.

사용 방법

  • 읽기 skill_manifest.yaml 인수, 부수 효과 또는 유효성 검사 게이트를 변경하기 전에 이 문서를 읽어보십시오.
  • 아래에 문서화된 명령어를 통해 scripts/extract_metadata.py 아래에 문서화된 명령을 통해 실행하십시오. 출력은 호출자가 제공한 실행 디렉터리 아래에 보관하십시오.
  • 호스트 에이전트가 run_script, 다음을 사용하십시오 run_script("scripts/extract_metadata.py", args=[...])를 사용하십시오. 그렇지 않은 경우 아래에 표시된 Bash/Python 명령을 실행하십시오.
  • 생성된 JSON을 확인하고, medagent.verifiers.dicom_metadata_quality_v1 실행 결과를 검토된 증거로 처리하기 전에 증거 팩에 대해 실행하십시오.

사용 가능한 스크립트

스크립트 목적 인수
scripts/extract_metadata.py skill_manifest.yaml에서 선언된 기본 진입점입니다. PATH_TO_DICOM [--output OUT.json]

필수 조건

  • 런타임 요구 사항: runtime.side_effects.pip_packages.
  • 아래에 명시된 기존 섹션에서 달리 명시하지 않는 한, 리포지토리 루트에서 명령을 실행합니다.

제한 사항

  • PS3.15에서 영감을 받은 소규모 표준 태그 하위 집합만 지원하며, Basic Application Confidentiality Profile을 완전히 구현한 것은 아닙니다.
  • 비공개 태그 확인되지 않음
  • 번인 픽셀 PHI 미탐지
  • 다중 프레임 처리는 최소한으로만 지원
  • 임상 적용, 규제상 비식별화, 자율 진단, 환자 대상 사용에는 적합하지 않습니다.

문제 해결

오류 원인 해결 방법
의존성 누락 또는 임포트 오류 다음에서 런타임 패키지가 달라짐 skill_manifest.yaml. 매니페스트에 선언된 패키지를 설치하거나, 문서화된 설정 명령어를 사용하십시오.
출력이 비어 있거나 스키마 오류가 있는 경우 잘못된 입력 경로, 지원되지 않는 모달리티 또는 업스트림 오류입니다. 확인된 피처로 다시 실행하고 래퍼 JSON 및 stderr을 확인하십시오.
유효성 검사 게이트 실패 출력이 선언된 엔지니어링 불변 조건을 위반했습니다. 실패한 증거 팩을 보관하고 게이트 메시지를 활용하여 입력 또는 래퍼 코드를 수정하십시오.

pydicom을 사용하여 DICOM 파일 하나를 읽고 stdout으로 JSON을 출력합니다.

python scripts/extract_metadata.py PATH_TO_DICOM
python scripts/extract_metadata.py PATH_TO_DICOM --output result.json

출력에는 transfer_syntax, modality, 그룹화된 연구/시리즈/이미지 메타데이터, phi_present, 그리고 phi_tags_found.

이 예제를 Medical AI Skills 스킬의 가장 간단한 종단간 예시로 사용하십시오. 익명화, 비공개 태그 검토, 픽셀 단위 PHI 탐지 또는 임상 해석에는 이 예제를 사용하지 마십시오.

2차 증거 검토를 위해 신뢰할 수 있는 실행을 생성하십시오:

python -m eval_engine.run_trusted skills/dicom-metadata-extract \
  --fixture skills/dicom-metadata-extract/fixtures/sample_ct.dcm \
  --out runs/dicom_metadata_trusted
GitHub에서 보기
---
name: dicom-metadata-extract
description: Extracts selected metadata from a DICOM file and flags standard-tag PHI presence. Not for anonymization or clinical use.
license: Apache-2.0
---

# DICOM Metadata Extract

## Purpose
- Used for extracting selected metadata from one DICOM file and flagging standard-tag PHI presence. Not for anonymization or clinical use.
- Use the wrapper exactly as documented; do not replace the upstream entrypoint with a handwritten implementation.
- Manifest I/O: inputs are `dicom_path`; outputs are `metadata_json`.

## Instructions
- Read `skill_manifest.yaml` before changing arguments, side effects, or validation gates.
- Run `scripts/extract_metadata.py` through the documented command below; keep outputs under a caller-provided run directory.
- If a host agent exposes `run_script`, use `run_script("scripts/extract_metadata.py", args=[...])`; otherwise run the Bash/Python command shown below.
- Check the emitted JSON and run `medagent.verifiers.dicom_metadata_quality_v1` on evidence packs before treating the run as reviewed evidence.

## Available Scripts
| Script | Purpose | Arguments |
|---|---|---|
| `scripts/extract_metadata.py` | Primary entrypoint declared by skill_manifest.yaml. | `PATH_TO_DICOM [--output OUT.json]` |

## Prerequisites
- Runtime requirements: Python packages listed in `runtime.side_effects.pip_packages`.
- Run commands from the repository root unless an existing section below says otherwise.

## Limitations
- Small PS3.15-inspired standard-tag subset only; not a complete Basic Application Confidentiality Profile implementation.
- Private tags not checked
- Burnt-in pixel PHI not detected
- Multi-frame handling minimal
- Not for clinical deployment, regulatory de-identification, autonomous diagnosis, patient-facing use.

## Troubleshooting
| Error | Cause | Fix |
|---|---|---|
| Missing dependency or import error | Runtime package drift from `skill_manifest.yaml`. | Install the packages declared in the manifest or use the documented setup command. |
| Empty or schema-invalid output | Wrong input path, unsupported modality, or upstream failure. | Re-run with a known fixture and inspect the wrapper JSON plus stderr. |
| Validation gate failure | Output violated a declared engineering invariant. | Keep the failed evidence pack and use the gate message to repair inputs or wrapper code. |

Reads one DICOM file with pydicom and emits JSON on stdout.

```bash
python scripts/extract_metadata.py PATH_TO_DICOM
python scripts/extract_metadata.py PATH_TO_DICOM --output result.json
```

Output includes `transfer_syntax`, `modality`, grouped study/series/image
metadata, `phi_present`, and `phi_tags_found`.

Use this as the smallest end-to-end example of a Medical AI Skills skill. Do not use
it for anonymization, private-tag review, pixel PHI detection, or clinical
interpretation.

For second-pass evidence review, generate a trusted run:

```bash
python -m eval_engine.run_trusted skills/dicom-metadata-extract \
  --fixture skills/dicom-metadata-extract/fixtures/sample_ct.dcm \
  --out runs/dicom_metadata_trusted
```

dicom-metadata-extract 설치

스킬 파일을 다운로드하여 .claude/skills/ 디렉터리에 압축을 풀어주세요.

ZIP 다운로드

저장소를 클론하고 스킬 파일을 프로젝트에 복사하세요.

git clone https://github.com/NVIDIA/skills/tree/main/skills/dicom-metadata-extract # Copy SKILL.md to your .claude/skills/ directory

복사 복사
빠른 설정: 스킬 폴더를 .claude/skills/로 복사하세요. Claude가 해당 스킬을 자동으로 감지하여 사용합니다.
저장소 NVIDIA/skills

관련 스킬

microservices-patterns
업데이트 된 시간 2026년 6월 29일
jpa-patterns
업데이트 된 시간 2026년 6월 30일
fabric-lakehouse
업데이트 된 시간 2026년 6월 30일
prisma-expert
업데이트 된 시간 2026년 6월 29일
OR