18 if(unit==NULL)
return(-1);
19 if(strlen(unit)==0)
return CUNIT_UNKNOWN;
20 else if(strcasecmp(unit,
"unknown")==0)
return CUNIT_UNKNOWN;
21 else if(strcasecmp(unit,
"cnts/sec")==0)
return CUNIT_CPS;
22 else if(strcasecmp(unit,
"counts/sec")==0)
return CUNIT_CPS;
23 else if(strcasecmp(unit,
"ECAT counts/sec")==0)
return CUNIT_CPS;
24 else if(strcasecmp(unit,
"cps")==0)
return CUNIT_CPS;
25 else if(strcasecmp(unit,
"counts")==0)
return CUNIT_COUNTS;
26 else if(strcasecmp(unit,
"cnts")==0)
return CUNIT_COUNTS;
27 else if(strcasecmp(unit,
"kBq/cc")==0)
return CUNIT_KBQ_PER_ML;
28 else if(strcasecmp(unit,
"kBqcc")==0)
return CUNIT_KBQ_PER_ML;
29 else if(strcasecmp(unit,
"kBq/mL")==0)
return CUNIT_KBQ_PER_ML;
30 else if(strcasecmp(unit,
"kBqmL")==0)
return CUNIT_KBQ_PER_ML;
31 else if(strcasecmp(unit,
"sec*kBq/cc")==0)
return CUNIT_SEC_KBQ_PER_ML;
32 else if(strcasecmp(unit,
"sec*kBq/mL")==0)
return CUNIT_SEC_KBQ_PER_ML;
33 else if(strcasecmp(unit,
"integral")==0)
return CUNIT_SEC_KBQ_PER_ML;
34 else if(strcasecmp(unit,
"1/sec")==0)
return CUNIT_PER_SEC;
35 else if(strcasecmp(unit,
"1/s")==0)
return CUNIT_PER_SEC;
36 else if(strcasecmp(unit,
"s-1")==0)
return CUNIT_PER_SEC;
37 else if(strcasecmp(unit,
"1/min")==0)
return CUNIT_PER_MIN;
38 else if(strcasecmp(unit,
"min-1")==0)
return CUNIT_PER_MIN;
39 else if(strcasecmp(unit,
"mL/mL")==0)
return CUNIT_ML_PER_ML;
40 else if(strcasecmp(unit,
"mL/cc")==0)
return CUNIT_ML_PER_ML;
41 else if(strcasecmp(unit,
"mL/dL")==0)
return CUNIT_ML_PER_DL;
42 else if(strcasecmp(unit,
"mL/100mL")==0)
return CUNIT_ML_PER_DL;
43 else if(strcasecmp(unit,
"mL/(mL*min)")==0)
return CUNIT_ML_PER_ML_PER_MIN;
44 else if(strcasecmp(unit,
"mL/(min*mL)")==0)
return CUNIT_ML_PER_ML_PER_MIN;
45 else if(strcasecmp(unit,
"mL/(cc*min)")==0)
return CUNIT_ML_PER_ML_PER_MIN;
46 else if(strcasecmp(unit,
"mL/(min*cc)")==0)
return CUNIT_ML_PER_ML_PER_MIN;
47 else if(strcasecmp(unit,
"mL/mL/min")==0)
return CUNIT_ML_PER_ML_PER_MIN;
48 else if(strcasecmp(unit,
"mL/min/mL")==0)
return CUNIT_ML_PER_ML_PER_MIN;
49 else if(strcasecmp(unit,
"mL/cc/min")==0)
return CUNIT_ML_PER_ML_PER_MIN;
50 else if(strcasecmp(unit,
"mL/min/cc")==0)
return CUNIT_ML_PER_ML_PER_MIN;
51 else if(strcasecmp(unit,
"mL/(dL*min)")==0)
return CUNIT_ML_PER_DL_PER_MIN;
52 else if(strcasecmp(unit,
"mL/(min*dL)")==0)
return CUNIT_ML_PER_DL_PER_MIN;
53 else if(strcasecmp(unit,
"mL/(100mL*min)")==0)
return CUNIT_ML_PER_DL_PER_MIN;
54 else if(strcasecmp(unit,
"mL/(min*100mL)")==0)
return CUNIT_ML_PER_DL_PER_MIN;
55 else if(strcasecmp(unit,
"mL/dL/min")==0)
return CUNIT_ML_PER_DL_PER_MIN;
56 else if(strcasecmp(unit,
"mL/min/dL")==0)
return CUNIT_ML_PER_DL_PER_MIN;
57 else if(strcasecmp(unit,
"mL/100mL/min")==0)
return CUNIT_ML_PER_DL_PER_MIN;
58 else if(strcasecmp(unit,
"mL/min/100mL")==0)
return CUNIT_ML_PER_DL_PER_MIN;
59 else if(strcasecmp(unit,
"unitless")==0)
return CUNIT_UNITLESS;
60 else if(strcasecmp(unit,
"Hounsfield Unit")==0)
return CUNIT_HU;
61 else if(strcasecmp(unit,
"HU")==0)
return CUNIT_HU;
62 else if(strcasecmp(unit,
"nCi/cc")==0)
return CUNIT_NCI_PER_ML;
63 else if(strcasecmp(unit,
"nCicc")==0)
return CUNIT_NCI_PER_ML;
64 else if(strcasecmp(unit,
"nCi/mL")==0)
return CUNIT_NCI_PER_ML;
65 else if(strcasecmp(unit,
"nCimL")==0)
return CUNIT_NCI_PER_ML;
66 else if(strcasecmp(unit,
"MBq/cc")==0)
return CUNIT_MBQ_PER_ML;
67 else if(strcasecmp(unit,
"MBqcc")==0)
return CUNIT_MBQ_PER_ML;
68 else if(strcasecmp(unit,
"MBq/mL")==0)
return CUNIT_MBQ_PER_ML;
69 else if(strcasecmp(unit,
"MBqmL")==0)
return CUNIT_MBQ_PER_ML;
70 else if(strcasecmp(unit,
"Bq/cc")==0)
return CUNIT_BQ_PER_ML;
71 else if(strcasecmp(unit,
"Bqcc")==0)
return CUNIT_BQ_PER_ML;
72 else if(strcasecmp(unit,
"Bq/mL")==0)
return CUNIT_BQ_PER_ML;
73 else if(strcasecmp(unit,
"BqmL")==0)
return CUNIT_BQ_PER_ML;
74 else if(strcasecmp(unit,
"uCi/cc")==0)
return CUNIT_UCI_PER_ML;
75 else if(strcasecmp(unit,
"uCicc")==0)
return CUNIT_UCI_PER_ML;
76 else if(strcasecmp(unit,
"uCi/mL")==0)
return CUNIT_UCI_PER_ML;
77 else if(strcasecmp(unit,
"uCimL")==0)
return CUNIT_UCI_PER_ML;
78 else if(strcasecmp(unit,
"umol/(100g*min)")==0)
return CUNIT_UMOL_PER_MIN_PER_100G;
79 else if(strcasecmp(unit,
"umol/(min*100g)")==0)
return CUNIT_UMOL_PER_MIN_PER_100G;
80 else if(strcasecmp(unit,
"umol/100g/min")==0)
return CUNIT_UMOL_PER_MIN_PER_100G;
81 else if(strcasecmp(unit,
"umol/min/100g")==0)
return CUNIT_UMOL_PER_MIN_PER_100G;
82 else if(strcasecmp(unit,
"mg/(100g*min)")==0)
return CUNIT_MG_PER_MIN_PER_100G;
83 else if(strcasecmp(unit,
"mg/(min*100g)")==0)
return CUNIT_MG_PER_MIN_PER_100G;
84 else if(strcasecmp(unit,
"mg/100g/min")==0)
return CUNIT_MG_PER_MIN_PER_100G;
85 else if(strcasecmp(unit,
"mg/min/100g")==0)
return CUNIT_MG_PER_MIN_PER_100G;
181 case CUNIT_CPS: ecat_unit=9;
break;
182 case CUNIT_COUNTS: ecat_unit=2;
break;
183 case CUNIT_KBQ_PER_ML: ecat_unit=10;
break;
184 case CUNIT_SEC_KBQ_PER_ML: ecat_unit=13;
break;
185 case CUNIT_PER_SEC: ecat_unit=15;
break;
186 case CUNIT_PER_MIN: ecat_unit=11;
break;
187 case CUNIT_ML_PER_ML: ecat_unit=16;
break;
188 case CUNIT_ML_PER_DL: ecat_unit=16;
break;
189 case CUNIT_ML_PER_ML_PER_MIN: ecat_unit=11;
break;
190 case CUNIT_ML_PER_DL_PER_MIN: ecat_unit=12;
break;
191 case CUNIT_UNITLESS: ecat_unit=16;
break;
192 case CUNIT_HU: ecat_unit=17;
break;
193 case CUNIT_NCI_PER_ML: ecat_unit=7;
break;
194 case CUNIT_MBQ_PER_ML: ecat_unit=1;
break;
195 case CUNIT_BQ_PER_ML: ecat_unit=9;
break;
196 case CUNIT_UCI_PER_ML: ecat_unit=3;
break;
197 case CUNIT_UMOL_PER_MIN_PER_100G: ecat_unit=5;
break;
198 case CUNIT_MG_PER_MIN_PER_100G: ecat_unit=6;
break;
199 default: ecat_unit=0;
break;
short int calibration_units
short int calibration_units_label