Added Standalone Client-only Viewer with build instructions
This commit is contained in:
1 parent
18de1deff3
commit
a5a6e3a6bd
52 files changed
+2793
-2
No files matched your search
@@ -0,0 +1,29 @@
|
||||
import SimpleHTTPServer, SocketServer
|
||||
import urlparse, os
|
||||
|
||||
PORT = 3000
|
||||
|
||||
class MyHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
|
||||
def do_GET(self):
|
||||
|
||||
# Parse query data to find out what was requested
|
||||
parsedParams = urlparse.urlparse(self.path)
|
||||
|
||||
# See if the file requested exists
|
||||
if os.access('.' + os.sep + parsedParams.path, os.R_OK):
|
||||
# File exists, serve it up
|
||||
SimpleHTTPServer.SimpleHTTPRequestHandler.do_GET(self);
|
||||
else:
|
||||
# send index.html
|
||||
self.send_response(200)
|
||||
self.send_header('Content-Type', 'text/html')
|
||||
self.end_headers()
|
||||
with open('index.html', 'r') as fin:
|
||||
self.copyfile(fin, self.wfile)
|
||||
|
||||
Handler = MyHandler
|
||||
|
||||
httpd = SocketServer.TCPServer(("", PORT), Handler)
|
||||
|
||||
print "serving at port", PORT
|
||||
httpd.serve_forever()
|
||||
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"transactionId": "testDICOMs",
|
||||
"studies": [{
|
||||
"studyInstanceUid": "23.23.21.3.32",
|
||||
"patientName": "Patient Name",
|
||||
"seriesList": [{
|
||||
"seriesInstanceUid": "1.23.2.32.1.2.1.3.2",
|
||||
"seriesDescription": "T-1",
|
||||
"instances": [
|
||||
{
|
||||
"sopInstanceUid": "1.2.3.2.32.18.8",
|
||||
"rows": 1,
|
||||
"url": "dicomweb://cornerstonetech.org/images/ClearCanvas/MRStudy/1.2.840.113619.2.5.1762583153.215519.978957063.80.dcm"
|
||||
}, {
|
||||
"sopInstanceUid": "1.2.3.2.32.18.9",
|
||||
"rows": 1,
|
||||
"url": "dicomweb://cornerstonetech.org/images/ClearCanvas/MRStudy/1.2.840.113619.2.5.1762583153.215519.978957063.81.dcm"
|
||||
}
|
||||
]
|
||||
}, {
|
||||
"seriesInstanceUid": "1.33.2.32.1.2.1.3.2",
|
||||
"seriesDescription": "COR T-1",
|
||||
"instances": [
|
||||
{
|
||||
"sopInstanceUid": "1.2.3.2.32.18.10",
|
||||
"rows": 1,
|
||||
"url": "dicomweb://cornerstonetech.org/images/ClearCanvas/MRStudy/1.2.840.113619.2.5.1762583153.215519.978957063.136.dcm"
|
||||
}
|
||||
]
|
||||
}]
|
||||
}]
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"studies": [{
|
||||
"studyInstanceUid": "23.23.21.3.32",
|
||||
"patientName": "Patient Name",
|
||||
"seriesList": [{
|
||||
"seriesInstanceUid": "1.23.2.32.1.2.1.3.2",
|
||||
"seriesDescription": "Wikipedia Samples",
|
||||
"instances": [
|
||||
{
|
||||
"sopInstanceUid": "1.2.3.2.32.18.8",
|
||||
"rows": 1,
|
||||
"url": "https://upload.wikimedia.org/wikipedia/en/a/a9/Example.jpg"
|
||||
}, {
|
||||
"sopInstanceUid": "1.2.3.2.32.18.9",
|
||||
"rows": 1,
|
||||
"url": "https://upload.wikimedia.org/wikipedia/commons/thumb/9/9a/Sample_Floorplan.jpg/800px-Sample_Floorplan.jpg"
|
||||
}
|
||||
]
|
||||
}, {
|
||||
"seriesInstanceUid": "1.33.2.32.1.2.1.3.2",
|
||||
"seriesDescription": "JPS-sample",
|
||||
"instances": [
|
||||
{
|
||||
"sopInstanceUid": "1.2.3.2.32.18.10",
|
||||
"rows": 1,
|
||||
"url": "https://upload.wikimedia.org/wikipedia/commons/thumb/c/c7/JPS-sample.jpg/800px-JPS-sample.jpg"
|
||||
}
|
||||
]
|
||||
}]
|
||||
}]
|
||||
}
|
||||
Reference in new issue
Block a user