Skip to main content

EnsLib.DICOM.Util.Importer

This class imports the DICOM data dictionary from the specfied external dictionary file. Data element definitions. These are extracted from the file Dimom.dic in the specified directory. Each data element consists of four pieces of information which is of direct interest to us. The DICOM tag in the form of 2 hexadecimal numbers seperated by a comma. The first number is the group id, the second is the element id. The second piece is the name of the data element. The other three items are value representation (VR), a 2 character code which encodes the datatype of the element, the Value multiplicity (VM), which is an indication of the cardinality of the data item. Note that the official names of the DICOM images in general can be represented with a legal 'cache' name. However some have leading digits and contain underscores. A name mangling technique has been used to allow these items to be referenced within 'ensemble'. For see EnsDICOM.inc for the mangling algorithm. We index our dataelement dictionary by the internal (mangled) name but also index by the external (original) name. Transfer Syntax definitions. DICOM files contain image data whose storage is necessarily machine dependent as regards to byte order (big endian/little endian). When these files are transferred between different DICOM hosts ( modalities, ie. an instrument ) or a PACS (picture archiving system) a specific transfer mode may be required. The dictionary definitions containt the name of the transfer mode and the DICOM uid ( universal identifier ). For example, the 'Implicit VR - Little Endian' transfer method has the unique identifier 1.2.840.10008.1.2 Abstract Syntax defintions. These are identifiers used by the DICOM standard. These can be thought of as the names of operations that can be peformed. The dictionary contains the name of the operation and the DICOM uid (universal identifier). For example the 'Magnetic Resonance Image Storage' operation is defined to have the unique identifier 1.2.840.10008.5.1.4.1.1.4

Method Inventory

Methods

method CreateElementIndex() as %Status
classmethod Import(pDirectory As %String) as %Status
Call this class method specifiying the directory containing the 'AbstractSyntax.dic','PS-3.6-2014b.csv' and TransferSyntax.dic dictionary files. The Data will be imported into EnsDICOM.Dictionary at the appropriate sub-nodes.

Inherited Members

Inherited Methods

FeedbackOpens in a new tab