00001 function outstr = GE_dumpExamHeader(exam)
00002 %
00003 % outstr = GE_dumpExamHeader(exam)
00004 %
00005 % Writes the exam header to the string outstr
00006 %
00007 % Souheil J. Inati
00008 % Dartmouth College
00009 % May 2000
00010 % souheil.inati@dartmouth.edu
00011 %
00012
00013 outstr = sprintf('ex_suid: %s\n' , char(exam.ex_suid));
00014 outstr = strcat(outstr, sprintf('ex_uniq: %d\n' , exam.ex_uniq));
00015 outstr = strcat(outstr, sprintf('ex_diskid: %s\n' , char(exam.ex_diskid)));
00016 outstr = strcat(outstr, sprintf('ex_no: %d\n' , exam.ex_no));
00017 outstr = strcat(outstr, sprintf('hospname: %s\n' , cstring(exam.hospname)));
00018 outstr = strcat(outstr, sprintf('detect: %d\n' , exam.detect));
00019 outstr = strcat(outstr, sprintf('numcells: %d\n' , exam.numcells));
00020 outstr = strcat(outstr, sprintf('zerocell: %f\n' , exam.zerocell));
00021 outstr = strcat(outstr, sprintf('cellspace: %f\n' , exam.cellspace));
00022 outstr = strcat(outstr, sprintf('srctodet: %f\n' , exam.srctodet));
00023 outstr = strcat(outstr, sprintf('srctoiso: %f\n' , exam.srctoiso));
00024 outstr = strcat(outstr, sprintf('tubetyp: %d\n' , exam.tubetyp));
00025 outstr = strcat(outstr, sprintf('dastyp: %d\n' , exam.dastyp));
00026 outstr = strcat(outstr, sprintf('num_dcnk: %d\n' , exam.num_dcnk));
00027 outstr = strcat(outstr, sprintf('dcn_len: %d\n' , exam.dcn_len));
00028 outstr = strcat(outstr, sprintf('dcn_density: %d\n' , exam.dcn_density));
00029 outstr = strcat(outstr, sprintf('dcn_stepsize: %d\n', exam.dcn_stepsize));
00030 outstr = strcat(outstr, sprintf('dcn_shiftcnt: %d\n', exam.dcn_shiftcnt));
00031 outstr = strcat(outstr, sprintf('magstrength: %d\n' , exam.magstrength));
00032 outstr = strcat(outstr, sprintf('patid: %s\n' , cstring(exam.patid)));
00033 outstr = strcat(outstr, sprintf('patname: %s\n' , cstring(exam.patname)));
00034 outstr = strcat(outstr, sprintf('patage: %d\n' , exam.patage));
00035 outstr = strcat(outstr, sprintf('patian: %d\n' , exam.patian));
00036 outstr = strcat(outstr, sprintf('patsex: %d\n' , exam.patsex));
00037 outstr = strcat(outstr, sprintf('patweight: %d\n' , exam.patweight));
00038 outstr = strcat(outstr, sprintf('trauma: %d\n' , exam.trauma));
00039 outstr = strcat(outstr, sprintf('hist: %s\n' , cstring(exam.hist)));
00040 outstr = strcat(outstr, sprintf('reqnum: %s\n' , cstring(exam.reqnum)));
00041 outstr = strcat(outstr, sprintf('ex_datetime: %d\n' , exam.ex_datetime));
00042 outstr = strcat(outstr, sprintf('refphy: %s\n' , cstring(exam.refphy)));
00043 outstr = strcat(outstr, sprintf('diagrad: %s\n' , cstring(exam.diagrad)));
00044 outstr = strcat(outstr, sprintf('op: %s\n' , cstring(exam.op)));
00045 outstr = strcat(outstr, sprintf('ex_desc: %s\n' , cstring(exam.ex_desc)));
00046 outstr = strcat(outstr, sprintf('ex_typ: %s\n' , cstring(exam.ex_typ)));
00047 outstr = strcat(outstr, sprintf('ex_format: %d\n' , exam.ex_format));
00048 outstr = strcat(outstr, sprintf('firstaxtime: %f\n' , exam.firstaxtime));
00049 outstr = strcat(outstr, sprintf('ex_sysid: %s\n' , sprintf('%s',exam.ex_sysid)));
00050 outstr = strcat(outstr, sprintf('ex_lastmod: %d\n' , exam.ex_lastmod));
00051 outstr = strcat(outstr, sprintf('protocolflag: %d\n', exam.protocolflag));
00052 outstr = strcat(outstr, sprintf('ex_alloc_key: %s\n', sprintf('%s',exam.ex_alloc_key)));
00053 outstr = strcat(outstr, sprintf('ex_delta_cnt: %d\n', exam.ex_delta_cnt));
00054 outstr = strcat(outstr, sprintf('ex_verscre: %s\n' , char(exam.ex_verscre)));
00055 outstr = strcat(outstr, sprintf('ex_verscur: %s\n' , char(exam.ex_verscur)));
00056 outstr = strcat(outstr, sprintf('ex_checksum: %d\n' , exam.ex_checksum));
00057 outstr = strcat(outstr, sprintf('ex_complete: %d\n' , exam.ex_complete));
00058 outstr = strcat(outstr, sprintf('ex_seriesct: %d\n' , exam.ex_seriesct));
00059 outstr = strcat(outstr, sprintf('ex_numarch: %d\n' , exam.ex_numarch));
00060 outstr = strcat(outstr, sprintf('ex_numseries: %d\n', exam.ex_numseries));
00061 outstr = strcat(outstr, sprintf('ex_series.length: %d\n' , exam.ex_series.length));
00062 outstr = strcat(outstr, sprintf('ex_series.data: %d\n' , exam.ex_series.data));
00063 outstr = strcat(outstr, sprintf('ex_numunser: %d\n' , exam.ex_numunser));
00064 outstr = strcat(outstr, sprintf('ex_unseries.length: %d\n' , exam.ex_unseries.length));
00065 outstr = strcat(outstr, sprintf('ex_unseries.data: %d\n' , exam.ex_unseries.data));
00066 outstr = strcat(outstr, sprintf('ex_toarchcnt: %d\n', exam.ex_toarchcnt));
00067 outstr = strcat(outstr, sprintf('ex_toarchive.length: %d\n', exam.ex_toarchive.length));
00068 outstr = strcat(outstr, sprintf('ex_toarchive.data: %d\n', exam.ex_toarchive.data));
00069 outstr = strcat(outstr, sprintf('ex_prospcnt: %d\n' , exam.ex_prospcnt));
00070 outstr = strcat(outstr, sprintf('ex_prosp.length: %d\n' , exam.ex_prosp.length));
00071 outstr = strcat(outstr, sprintf('ex_prosp.data: %d\n' , exam.ex_prosp.data));
00072 outstr = strcat(outstr, sprintf('ex_modelnum: %d\n' , exam.ex_modelnum));
00073 outstr = strcat(outstr, sprintf('ex_modelcnt: %d\n' , exam.ex_modelcnt));
00074 outstr = strcat(outstr, sprintf('ex_models.length: %d\n' , exam.ex_models.length));
00075 outstr = strcat(outstr, sprintf('ex_models.data: %d\n' , exam.ex_models.data));
00076 outstr = strcat(outstr, sprintf('ex_stat: %d\n' , exam.ex_stat));
00077 outstr = strcat(outstr, sprintf('uniq_sys_id: %s\n' , sprintf('%s',exam.uniq_sys_id)));
00078 outstr = strcat(outstr, sprintf('service_id: %s\n' , sprintf('%s',exam.service_id)));
00079 outstr = strcat(outstr, sprintf('mobile_loc: %s\n' , sprintf('%s',exam.mobile_loc)));
00080 outstr = strcat(outstr, sprintf('study_uid: %s\n' , sprintf('%s',exam.study_uid)));
00081 outstr = strcat(outstr, sprintf('study_status: %d\n', exam.study_status));
00082 outstr = strcat(outstr, sprintf('ex_padding: %s\n' , cstring(exam.ex_padding)));
00083
00084 return