// Create new object in the hash variable
var hash = new Object;
// Set wishard_modality variable to OBR.24.1
var wishard_modality = msg['OBR']['OBR.24']['OBR.24.1'].toString();
// Assign replacement values for the hash variable
hash.CAT = 'CT'; //Computed Tomography
hash.CT = 'CT'; //Computed Tomography
hash.RAD = 'CR'; //Computed Radiography
hash.CR = 'CR'; //Computed Radiography
hash.MRI = 'MR'; //Magnetic Resonance
我正在尝试添加
hash.999-other = 'OT';
但我得到一个错误 = 第 33 行的错误:缺失;声明之前