DICOM JSON Format

Following is an example of DICOM JSON Model. Note, that when in a query (QIDO-RS) response, you will get an array of the object shown below. More information about the DICOM JSON Model can be found in PS3.18 Appendix F.

Attribute Names

The JSON tag names are based on the hexadecimal identifier in DICOM. Tag listsings can be found in PS3.6 Section 6; alternatively, use a reference site like DICOMtags.com to find the specific tags you need.

Lookup Object

Consider using a JSON lookup library, such as the “dicom.json” file in the following repository:

By including that file in your implementation, you will be able to reference tags by simple english names, as follows:

result[dicom.PatientName]

Child Attributes

The “vr” (value representation) attribute describes the value type. Some of the more common types include CS (code string), PN, (person’s name), and DT (Date/Time, in YYYYMMDD). See DICOM PS3.5 Section 6.2 for additional details.

The “Value” attribute is typically where data can be found. Person names and binary data are exceptions to this. Value, when present, is always an array. If the value is null, it is entirely omitted.