GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - aurabx/dicom-data: Makes the Inolitic dicom-data set available for PHP applications

BranchesTags
Open more actions menu

Latest commit

 

History

14 Commits
14 Commits

Folders and files

NameName
Last commit message
Last commit date
resources
resources
 
 
src
src
 
 
tests
tests
 
 
utils
utils
 
 
.gitignore
.gitignore
 
 
LICENCE.txt
LICENCE.txt
 
 
README.md
README.md
 
 
composer.json
composer.json
 
 
phpunit.xml
phpunit.xml
 
 

Repository files navigation

Dicom Data

Aurabx\DicomData is a PHP 8.2+ library for managing and resolving DICOM tag metadata. It provides an interface for loading DICOM dictionaries and resolving tag names with ease. Designed for integration with medical imaging platforms or DICOMWeb services.

This module effectively utilises the excellent DICOM data source from https://github.com/innolitics/dicom-standard and makes it available for PHP sources. \

By default, the DicomDictionary will load a PHP source, which is intended to help memory management, however the original JSON sources are also available. Unlike the Innolitics source, we rekey these so they are easier to use.

Requirements

  • PHP 8.2 or higher
  • ext-json

Installation

composer require aurabx/dicom-data

Usage

use Aurabx\DicomData\DicomDictionary;

// Lookup tag ID by name
$tagId = DicomDictionary::getTagIdByName('ImagingFrequency');  // Returns '00180084'

// Get full metadata
$info = DicomDictionary::getAttributeInfo('00180084');

// Get tag VR or keyword
$vr = DicomDictionary::getAttributeVr('00180084');
$desc = DicomDictionary::getAttributeKeyword('00180084');

Testing with Custom Tags

use Aurabx\DicomData\DicomDictionary;
use Aurabx\DicomData\DicomTagLoader;

$loader = new DicomTagLoader();
$loader->loadFromArray([
    '00100020' => ['keyword' => 'PatientID', 'valueRepresentation' => 'LO'],
    '00180084' => ['keyword' => 'ImagingFrequency', 'valueRepresentation' => 'DS'],
]);

DicomDictionary::preload($loader);

Development

Update the standards from the Innolitics source

python -m venv venv
source venv/bin/activate
pip install pydicom

python utils/update_dicom_dict.py

Run tests

composer test

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT – see LICENSE for details.

About

Makes the Inolitic dicom-data set available for PHP applications

Resources

Readme
MIT license
Activity
Custom properties

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.