
Pydicom
Look up standard DICOM attribute names, tag numbers, and types while building Python medical-imaging pipelines with pydicom.
Install
npx skills add https://github.com/k-dense-ai/scientific-agent-skills --skill pydicomWhat is this skill?
- Patient, study, and related tag tables with hex tuples and VR types
- Access patterns for attribute names (ds.PatientName) and tag tuples (ds[0x0010, 0x0010])
- Organized by clinical metadata category for faster agent lookups during implementation
- Pairs with scientific-agent workflows that manipulate imaging datasets in Python
Adoption & trust: 513 installs on skills.sh; 27.6k GitHub stars; 3/3 security scanners passed (skills.sh audits).
Recommended Skills
Paper Context Resolverlllllllama/ai-paper-reproduction-skill
Repo Intake And Planlllllllama/ai-paper-reproduction-skill
Env And Assets Bootstraplllllllama/ai-paper-reproduction-skill
Minimal Run And Auditlllllllama/ai-paper-reproduction-skill
Analyze Projectlllllllama/rigorpilot-skills
Ai Research Reproductionlllllllama/rigorpilot-skills
Journey fit
Primary fit
Medical imaging ingestion and metadata handling happens while you implement backend or research code that reads DICOM studies. Backend is the canonical shelf because the skill documents dataset fields agents need when parsing, validating, or exporting DICOM in application code.
Common Questions / FAQ
Is Pydicom safe to install?
skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.
SKILL.md
READMESKILL.md - Pydicom
# Common DICOM Tags Reference This document provides a comprehensive list of commonly used DICOM tags organized by category. Tags can be accessed in pydicom using attribute notation (e.g., `ds.PatientName`) or tag tuple notation (e.g., `ds[0x0010, 0x0010]`). ## Patient Information Tags | Tag | Name | Type | Description | |-----|------|------|-------------| | (0010,0010) | PatientName | PN | Patient's full name | | (0010,0020) | PatientID | LO | Primary identifier for the patient | | (0010,0030) | PatientBirthDate | DA | Date of birth (YYYYMMDD) | | (0010,0032) | PatientBirthTime | TM | Time of birth (HHMMSS) | | (0010,0040) | PatientSex | CS | Patient's sex (M, F, O) | | (0010,1010) | PatientAge | AS | Patient's age (format: nnnD/W/M/Y) | | (0010,1020) | PatientSize | DS | Patient's height in meters | | (0010,1030) | PatientWeight | DS | Patient's weight in kilograms | | (0010,1040) | PatientAddress | LO | Patient's mailing address | | (0010,2160) | EthnicGroup | SH | Ethnic group of patient | | (0010,4000) | PatientComments | LT | Additional comments about patient | ## Study Information Tags | Tag | Name | Type | Description | |-----|------|------|-------------| | (0020,000D) | StudyInstanceUID | UI | Unique identifier for the study | | (0008,0020) | StudyDate | DA | Date study started (YYYYMMDD) | | (0008,0030) | StudyTime | TM | Time study started (HHMMSS) | | (0008,1030) | StudyDescription | LO | Description of the study | | (0020,0010) | StudyID | SH | User or site-defined study identifier | | (0008,0050) | AccessionNumber | SH | RIS-generated study identifier | | (0008,0090) | ReferringPhysicianName | PN | Name of patient's referring physician | | (0008,1060) | NameOfPhysiciansReadingStudy | PN | Name of physician(s) reading study | | (0008,1080) | AdmittingDiagnosesDescription | LO | Diagnosis description at admission | ## Series Information Tags | Tag | Name | Type | Description | |-----|------|------|-------------| | (0020,000E) | SeriesInstanceUID | UI | Unique identifier for the series | | (0020,0011) | SeriesNumber | IS | Numeric identifier for this series | | (0008,103E) | SeriesDescription | LO | Description of the series | | (0008,0060) | Modality | CS | Type of equipment (CT, MR, US, etc.) | | (0008,0021) | SeriesDate | DA | Date series started (YYYYMMDD) | | (0008,0031) | SeriesTime | TM | Time series started (HHMMSS) | | (0018,0015) | BodyPartExamined | CS | Body part examined | | (0018,5100) | PatientPosition | CS | Patient position (HFS, FFS, etc.) | | (0020,0060) | Laterality | CS | Laterality of paired body part (R, L) | ## Image Information Tags | Tag | Name | Type | Description | |-----|------|------|-------------| | (0008,0018) | SOPInstanceUID | UI | Unique identifier for this instance | | (0020,0013) | InstanceNumber | IS | Number that identifies this image | | (0008,0008) | ImageType | CS | Image identification characteristics | | (0008,0023) | ContentDate | DA | Date of content creation (YYYYMMDD) | | (0008,0033) | ContentTime | TM | Time of content creation (HHMMSS) | | (0020,0032) | ImagePositionPatient | DS | Position of image (x, y, z) in mm | | (0020,0037) | ImageOrientationPatient | DS | Direction cosines of image rows/columns | | (0020,1041) | SliceLocation | DS | Relative position of image plane | | (0018,0050) | SliceThickness | DS | Slice thickness in mm | | (0018,0088) | SpacingBetweenSlices | DS | Spacing between slices in mm | ## Pixel Data Tags | Tag | Name | Type | Description | |-----|------|------|-------------| | (7FE0,0010) | PixelData | OB/OW | Actual pixel data of the image | | (0028,0010) | Rows | US | Number of rows in image | | (0028,0011) | Columns | US | Number of columns in image | | (0028,0100) | BitsAllocated | US | Bits allocated for each pixel sample | | (0028,0101) | BitsStored | US | Bits stored for each pixel sample | | (0028,0102) | HighBit | US | Most significant bit for pixel sample | | (0028,0103) | PixelRepresentation | US | 0=unsigned, 1=signed | |