Skip to content

qie.createDICOMMessage

Signature: qie.createDICOMMessage(input*)

Returns: DICOM Message message - the newly created message object

Replace the current message with a DICOM message based on the input.

Note

If no input is provided, the DICOM message object returned will be empty.

Note

XML and JSON parameters can be either a Message or a String.

Note

The return value MUST ALWAYS be assigned to the bound-in message object.

Parameters

Type Name Description Default
Object input* (optional) one of the following: XML string formatted DICOM, JSON string formatted DICOM, XML Message formatted DICOM, JSON Message formatted DICOM, DICOM Message, DICOM as raw bytes or raw String null

Example

var jsonDicomMessage =`
{
  "00100010": {
    "vr": "PN",
    "Value": [
      {
        "Alphabetic": "John^Doe"
      }
    ]
  },
  "00100020": {
    "vr": "LO",
    "Value": [
      "12345"
    ]
  },
  "00100030": {
    "vr": "DA",
    "Value": [
      "19800101"
    ]
  },
  "0020000D": {
    "vr": "UI",
    "Value": [
      "1.2.3.4.5.6.7.8"
    ]
  },
  "00200010": {
    "vr": "LO",
    "Value": [
      "Chest X-Ray"
    ]
  },
  "0020000E": {
    "vr": "UI",
    "Value": [
      "1.2.3.4.5.6.7.9"
    ]
  },
  "00200011": {
    "vr": "LO",
    "Value": [
      "Chest X-Ray - PA View"
    ]
  },
  "00080060": {
    "vr": "CS",
    "Value": [
      "CR"
    ]
  },
  "00080018": {
    "vr": "UI",
    "Value": [
      "1.2.3.4.5.6.7.10"
    ]
  },
  "00080016": {
    "vr": "UI",
    "Value": [
      "1.2.840.10008.5.1.4.1.1.1"
    ]
  },
  "7FE00010": {
    "vr": "OB",
    "InlineBinary": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/wQAAwAB/ocL1QAAAABJRU5ErkJggg=="
  }
}
`;

message = qie.createDICOMMessage(jsonDicomMessage);
var patientsName = message.getNode("0010,0010");