Skip to content

Request: Better Documentation for Writing DICOM Files #440

@csadom

Description

@csadom

Request: Better Documentation for Writing DICOM Files

Hello! Thank you for maintaining dcmjs. It's a really useful library for working with DICOM in JavaScript.

However, the documentation for creating DICOM files (especially from scratch ) is very limited and difficult to follow for new users. It’s unclear what the expected structure of the dataset should be, or how to correctly handle PixelData and metadata like Rows, Columns, BitsAllocated, etc.

Problem Areas:

  • No clear example of how to build a valid dataset for writing a new .dcm file
  • Missing explanation of naturalizeDataset, denaturalizeDataset, and when to use each
  • Lack of typing or reference for what a valid DICOM dictionary structure looks like
  • No guide for writing multi-frame or image-based DICOMs (e.g., Ultrasound, CT)

Request:

Could you please add:

  • A section in the README for writing/exporting DICOM
  • A full working example of writing a DICOM image (single-frame and optionally multi-frame)
  • Explanation of the required tags and structure (SOPClassUID, PixelRepresentation, etc.)

Thanks again for your work! I’d be happy to help test or contribute examples if needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions