Back to Projects List
OHIFViewer can currently serialize/deserialize to DICOM SR for length measurements with unsecured dcm4chee back end.
Here’s an example endpoint for testing:
curl quantome.org:8080/dcm4chee-arc/aets/DCM4CHEE/rs/patients
STOW request bash script “stow.sh”
#/bin/bash
if [ "$#" -ne 2 ]; then
echo "Usage: stow.sh <endpointURL> <instance>"
exit -1
fi
echo $1 $2
endpointURL=$1
instance=$2
temp=$(mktemp)
echo Using temp dir $temp
echo -ne "\r\n--EOF\r\nContent-Type: application/dicom\r\n\r\n" > $temp
cat $instance >> $temp
echo -ne "\r\n--EOF--" >> $temp
curl -X POST -H "Content-Type: multipart/related; type=application/dicom; boundary=EOF" $endpointURL --data-binary @$temp
For example use this script like this from a directory full of DICOM files:
find . -exec stow.sh http://quantome.org:8080/dcm4chee-arc/aets/DCM4CHEE/rs/studies \{\} \;