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.

Example

{
    "00080005": {
        "vr": "CS",
        "Value": [
            "ISO_IR192"
        ]
    },
    "00080020": {
        "vr": "DT",
        "Value": [
            "20130409"
        ]
    },
    "00080030": {
        "vr": "TM",
        "Value": [
            "131600.0000"
        ]
    },
    "00080050": {
        "vr": "SH",
        "Value": [
            "11235813"
        ]
    },
    "00080056": {
        "vr": "CS",
        "Value": [
            "ONLINE"
        ]
    },
    "00080061": {
        "vr": "CS",
        "Value": [
            "CT",
            "PET"
        ]
    },
    "00080090": {
        "vr": "PN",
        "Value": [
            {
                "Alphabetic": {
                    "Given": [
                        "Bob"
                    ],
                    "Suffix": [
                        "Dr."
                    ]
                }
            }
        ]
    },
    "00081190": {
        "vr": "UT",
        "Value": [
            "http://wado.nema.org/studies/1.2.392.200036.9116.2.2.2.1762893313.1029997326.945873"
        ]
    },
    "00090010": {
        "vr": "LO",
        "Value": [
            "Vendor A"
        ]
    },
    "00091002": {
        "vr": "UN",
        "Value": [
            "z0x9c8v7"
        ]
    },
    "00100010": {
        "vr": "PN",
        "Value": [
            {
                "Alphabetic": {
                    "Family": [
                        "Wang"
                    ],
                    "Given": [
                        "XiaoDong"
                    ]
                },
                "Ideographic": {
                    "Family": [
                        "王"
                    ],
                    "Given": [
                        "小東"
                    ]
                }
            }
        ]
    },
    "00100020": {
        "vr": "LO",
        "Value": [
            "12345"
        ]
    },
    "00100021": {
        "vr": "LO",
        "Value": [
            "Hospital A"
        ]
    },
    "00100030": {
        "vr": "DT",
        "Value": [
            "19670701"
        ]
    },
    "00100040": {
        "vr": "CS",
        "Value": [
            "M"
        ]
    },
    "00101002": {
        "vr": "SQ",
        "Value": [
            {
                "00100020": {
                    "vr": "LO",
                    "Value": [
                        "54321"
                    ]
                },
                "00100021": {
                    "vr": "LO",
                    "Value": [
                        "Hospital B"
                    ]
                }
            },
            {
                "00100020": {
                    "vr": "LO",
                    "Value": [
                        "24680"
                    ]
                },
                "00100021": {
                    "vr": "LO",
                    "Value": [
                        "Hospital C"
                    ]
                }
            }
        ]
    },
    "0020000D": {
        "vr": "UI",
        "Value": [
            "1.2.392.200036.9116.2.2.2.1762893313.1029997326.945873"
        ]
    },
    "00200010": {
        "vr": "SH",
        "Value": [
            "11235813"
        ]
    },
    "00201206": {
        "vr": "IS",
        "Value": [
            4
        ]
    },
    "00201208": {
        "vr": "IS",
        "Value": [
            942
        ]
    }
}