// 通知 function type(name) { if(name=='紧急'){ return 'urgent' }else if(name=='重要'){ return 'important' }else{ return 'normal' } } // 严重程度区分 function ztLevel(type) { if(type=='轻度'){ return 'low' }else if(type=='中度'){ return 'moderate' }else{ return 'high' } } // 药品标签 function medicineType(type) { if(type=='处方药'){ return 'prescription' }else if(type=='非处方药'){ return 'otc' }else if(type=='中成药'){ return 'chinese' }else{ return 'health' } } module.exports = { type:type, ztLevel:ztLevel, medicineType:medicineType }