{"success":true,"data":{"ext":"dcm","name":"Digital Imaging and Communications in Medicine","description":"Digital Imaging and Communications in Medicine (DICOM) is a medical imaging file format and communication standard developed and maintained by the DICOM Standards Committee, jointly supported by the National Electrical Manufacturers Association and the American College of Radiology. It is used to store, exchange, and manage radiology images and related data from modalities such as CT, MRI, ultrasound, and X-ray within healthcare systems and PACS. It remains widely used, and files may include sensitive patient information, so privacy controls are important.","mime":["application/dicom"],"risk_level":"Safe","signatures":[{"hex":"44 49 43 4D","offset":128,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"},{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]},{"hex":"3C 48 50 53 20 76 65 72 73 69 6F 6E 3D 22","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]},{"hex":"45 45 53 63 68 65 6D 61 2D 44 4F 43 4C 49 42 20","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]},{"hex":"44 49 43 4D","offset":0,"sources":[{"name":"Neil Harvey FileSignatures","url":"https://raw.githubusercontent.com/neilharvey/FileSignatures/master/src/FileSignatures/Formats/Dicom.cs"}]}],"related":[],"usage":{"python":"def is_dcm(file_path: str) -> bool:\n    \"\"\"Check if file is a valid DCM by magic bytes at offset 128.\"\"\"\n    signature = bytes([0x44, 0x49, 0x43, 0x4D])\n    with open(file_path, \"rb\") as f:\n        f.seek(128)\n        return f.read(4) == signature","node":"function isDCM(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x44, 0x49, 0x43, 0x4D]);\n  if (buffer.length < 132) return false;\n  return buffer.subarray(128, 132).equals(signature);\n}","go":"func IsDCM(data []byte) bool {\n    signature := []byte{0x44, 0x49, 0x43, 0x4D}\n    if len(data) < 132 {\n        return false\n    }\n    return bytes.Equal(data[128:132], signature)\n}"}}}