dcm2json(1) OFFIS DCMTK dcm2json(1) (NAME) dcm2json - DICOM JSON (SYNOPSIS) dcm2json [options] dcmfile-in [jsonfile-out] (DESCRIPTION) dcm2json DICOM ( ) JSON (JavaScript Object Notation) . << DICOM JSON>> F DICOM (DICOM Part 18 Section F) . dcm2json ( DICOM ) (transfer syntax) . ( dcmconv) . -f -t[ieb] dcm2json . (PARAMETERS) dcmfile-in DICOM ("-" stdin) jsonfile-out JSON (: stdout) (OPTIONS) (general options) -h --help --version --arguments -q --quiet -v --verbose -d --debug -ll --log-level [l]evel: string constant (fatal, error, warn, info, debug, trace) l -lc --log-config [f]ilename: string f (input options) : +f --read-file () +fo --read-file-only -f --read-dataset : -t= --read-xfer-auto (TS) () -td --read-xfer-detect (TS) -te --read-xfer-little VR little endian -tb --read-xfer-big VR big endian -ti --read-xfer-implicit VR little endian (processing options) (infinity) (not-a-number): -es --encode-strict 'inf' 'nan' () -ee --encode-extended 'inf' 'nan' JSON IS DS ( /): -ia --is-ds-auto () -in --is-ds-num -is --is-ds-string URI (bulk data): -b --bulk-disabled (inline binary) () +b --bulk-enabled (bulk data) +bz --bulk-size [s]ize: integer (: 1) bulk data >= s +bp --bulk-uri-prefix [u]ri prefix: string u URI bulk data (: file URI) +bd --bulk-dir [d]irectory: string bulk data d (: '.') +bs --bulk-subdir SOP (: ) (output options) : +fc --formatted-code () # # -fc --compact-code +m --write-meta (: DICOM ) JSON (JSON Format) JSON DICOM ( F DICOM ): { "00080005": { "vr": "CS", "Value": [ "ISO_IR 192" ] }, "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": "^Bob^^Dr." } ] }, "00081190": { "vr": "UR", "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", "InlineBinary": "z0x9c8v7" }, "00100010": { "vr": "PN", "Value": [ { "Alphabetic": "Wang^XiaoDong" } ] }, "00100020": { "vr": "LO", "Value": [ "12345" ] }, "00100021": { "vr": "LO", "Value": [ "Hospital A" ] }, "00100030": { "vr": "DA", "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 ] } } (Bulk Data) DICOM (VR) OB OD OF OL OV OW UN "InlineBinary" ( base64) JSON . --bulk-enabled (: ) DS FD FL IS SV UV "BulkDataURI" . --bulk-size . --bulk-dir (: ). SHA-256 . URI . URI WADO-RS --bulk-uri-prefix . bulk dcm2json . --bulk-subdir SOP ( URI ). JSON "InlineBinary" DICOM JSON . DICOM dcm2json JSON . MIME WADO-RS : Extension MIME Type .bin application/octet-stream .jpeg image/jpeg .dicom-rle image/dicom-rle .jls image/jls .jp2 image/jp2 .jpx image/jpx .jphc image/jphc .jxl image/jxl .mpeg video/mpeg .mp4 video/mp4 .H265 video/H265 << >> (as is) dcm2json . JPEG (baseline compressed) JPEG dcm2json JFIF . (NOTES) (Numbers as Strings) DICOM DICOM DS IS SV UV JSON JSON . dcm2json DS IS JSON . dcm2json SV UV 9007199254740991ll -9007199254740991ll . JSON . JSON . (Character Encoding) DICOM JSON dcm2json UTF-8 DICOM . DCMTK . (LOGGING) . . --verbose . --debug . --log-level . --quiet . . "oflog" . ( ) syslog () event log () --log-config . . /logger.cfg . (COMMAND LINE) : (-) (-n) n . '+' '-' . ( ). . . '@' ( @command.txt). ( ). . / ( /dumppat.txt ). (EXIT CODES) dcm2json . . (general) EXITCODE_NO_ERROR 0 EXITCODE_COMMANDLINE_SYNTAX_ERROR 1 (input file errors) EXITCODE_CANNOT_READ_INPUT_FILE 20 EXITCODE_NO_INPUT_FILES 21 (output file errors) EXITCODE_CANNOT_WRITE_OUTPUT_FILE 40 (processing errors) EXITCODE_CANNOT_CONVERT_TO_UNICODE 80 EXITCODE_CANNOT_WRITE_VALID_JSON 81 (ENVIRONMENT) dcm2json DICOM DCMDICTPATH . DCMDICTPATH /dicom.dic ( ). DCMDICTPATH . DCMDICTPATH PATH (":") . (";") . DCMDICTPATH . . dcm2json . DCMTK oficonv ( ) ( DCMTK ). DCMTK . DCMICONVPATH . . (COPYRIGHT) Copyright (C) 2016-2025 by OFFIS e.V., Escherweg 2, 26121 Oldenburg, Germany. Version 3.7.0 Thu Jul 9 2026 18:43:40 dcm2json(1)