comparison Applications/StoneWebViewer/NOTES.txt @ 1696:572652803929

bootstrapping the Stone Web viewer configuration file
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 27 Nov 2020 09:34:02 +0100
parents e787b52d025f
children bc40b6450261
comparison
equal deleted inserted replaced
1695:a691ab50d416 1696:572652803929
45 http://.../index.html?study=<StudyInstanceUID1>,<StudyInstanceUID2>,...&selectedStudies=<StudyInstanceUID1> 45 http://.../index.html?study=<StudyInstanceUID1>,<StudyInstanceUID2>,...&selectedStudies=<StudyInstanceUID1>
46 46
47 If the "selectedStudies" is not provided, then all the studies are 47 If the "selectedStudies" is not provided, then all the studies are
48 displayed at the startup. 48 displayed at the startup.
49 49
50
51 Dynamic actions using messages
52 ==============================
53
54 Some actions can be dynamically triggered in the Stone Web viewer from
55 another Web page. This is done by using the "window.postMessage()"
56 primitive of JavaScript:
57 https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage
58
59 Each message must be a JSON object containing at least the "type"
60 field. The latter field indicates the type of action to be triggered.
61
62 For security, the "ExpectedMessageOrigin" configuration option of the
63 Stone Web viewer must have been set to the expected origin of the
64 messages. Otherwise, the Stone Web viewer will reject the message.
65
66
67 Action of type "show-osirix-annotations"
68 ----------------------------------------
69
70 This action loads a set of ROIs exported from OsiriX. The ROIs must
71 use the XML file format of OsiriX.
72
73 The parent DICOM study containing the annotation(s) must have been
74 loaded by the Stone Web viewer beforehand. The Stone Web viewer shall
75 automatically focus on one instance that is associated with the ROIs.
76
77 The JSON message must contain the following fields:
78
79 - "type" must be equal to "show-osirix-annotations"
80
81 - "xml" must contain the XML file generated by OsiriX
82
83 - "clear" is a Boolean to indicate whether to clear the annotations
84 that have previously been opened.