This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# set -x | |
# This example script allows a Google Cloud Healthcare API DICOM Store user to change the StorageClass across all studies. | |
# High level instructions can be found at the following: | |
# https://cloud.google.com/healthcare-api/docs/dicom-storage-class#use_filters | |
STUDIES_FILE=studies.lst | |
REQUEST_FILE=request.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# example dcmtk findscu query, to retrieve study level info (studyinstanceuid and instance count) | |
findscu -v -S -k QueryRetrieveLevel=STUDY -k StudyDate="20201101" -k NumberOfStudyRelatedInstances -aec AE_PACS -aet AE_MYSELF <ipPacs> <portPacs> | |
# example dcmtk movescu to retrieve study to self from pacs | |
movescu -v -S -k QueryRetrieveLevel=STUDY -k StudyInstanceUID="<studyUid>" -aec AE_PACS -aet AE_MYSELF -aem AE_MYSELF <ipPacs> <portPacs> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
[ $# -lt 2 ] && { echo "Usage: $0 dcmtk|dcm4che arguments"; exit 1; } | |
IMAGE_ALIAS=$1 | |
case $IMAGE_ALIAS in | |
dcmtk) | |
IMAGE="imbio/dcmtk" | |
;; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Make sure you have dcmtk installed (sudo apt install dcmtk). | |
DCMODIFY=dcmodify | |
if [ $# -ne 4 ] | |
then | |
echo "Usage : $0 inputfile outputdir #series #instances" | |
exit | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const util = require('util'); | |
const HOT_SPOT_MIN = 100; // amount in ms to determine if there's a hot spot | |
function getStackLine(rewind) { | |
const stackRewind = rewind || 0; | |
const stack = new Error().stack; | |
const line0 = stack.split('\n')[stackRewind + 1]; | |
const sub0 = line0.indexOf('/'); | |
const sub1 = line0.lastIndexOf(':'); |