// // Image J Macro to extract DICOM header tags required for NHSBSP Patient Dose software // into a csv file (MS Excel compatible). // This version is specific for images produced by GE equipment. // Version 1.2G // Requires ImageJ v 1.43k as minimum // Author - Lindsay Mungutroy // Jarvis Breast Centre, Guildford. // // Date 29 March 2013 // // // locate folder where images are dir = getDirectory("Browse to select folder where images are"); // set up file for data output - not in the same folder as images (as explained in manual) f = File.open(""); // set up header information for output file. The headers are the same as used in the Patient Dose software print(f, "Survey Number" + "," + "Patient Number" + "," + "View code" + ","+ "kV" + "," + "Anode" + "," + "Filter"+ "," + "Thickness (mm)" + "," + "mAs" + "," + "large cassette used" + "," + "auto/man" + "," + "Automatic mode" + "," + "AEC density set" + "," + "Age" + "," + "Comment" + "," + "Error" + "," + "AEC Density Mode" + "," + "Force" + "," + "Focal Spot(mm)" + "," + "View" + "," + "Image Time" + "," + "Image Type" + "," + "Model" + "," + "Device Serial No" + "," + "Study Date"); // use batch mode to reduce on-screen processing (does not dsplay images) setBatchMode(true); // extract dose info from individual image in folder list = getFileList(dir); for (i=0; i