dwv icon indicating copy to clipboard operation
dwv copied to clipboard

Follow DICOM json standard

Open ivmartel opened this issue 3 years ago • 1 comments

DICOM defines a json format for tags: dicom-json-format. It must be used to export tags from the API (instead of the locally defined format).

ivmartel avatar Dec 30 '21 12:12 ivmartel

In short:

{
  "0020000D": {
    "vr": "UI",
    "Value": [ "1.2.392.200036.9116.2.2.2.1762893313.1029997326.945873" ]
  },
  "0020000D" : {
    "vr": "UI",
    "Value": [ "1.2.392.200036.9116.2.2.2.2162893313.1029997326.945876" ]
  },
  "00100010": {
    "vr": "PN",
    "Value": [
      {
        "Alphabetic": "Wang^XiaoDong",
        "Ideographic": "王^小東"
      }
    ]
  },
  "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" ]
        }
      }
    ]
  }
}

See F.4 DICOM JSON Model Example

ivmartel avatar Jul 20 '22 10:07 ivmartel

See also the VR to json mapping: F.2.3 DICOM JSON Value Representation

ivmartel avatar Nov 16 '22 13:11 ivmartel