using FISLib.Consultation; namespace FISSDKDemo { class InspectionItemDescriptionGenerator { public static string GetInspectionItemDescription(FISInspectionItemType fisInspectionItemType) { switch (fisInspectionItemType) { case FISInspectionItemType.Fetu: return "胎儿"; case FISInspectionItemType.Uterus: return "子宫"; case FISInspectionItemType.Appendages: return "附件"; case FISInspectionItemType.PelvicCavity: return "盆腔"; case FISInspectionItemType.Liver: return "肝脏"; case FISInspectionItemType.GB: return "胆囊"; case FISInspectionItemType.BileDuct: return "胆管"; case FISInspectionItemType.Pancreas: return "胰腺"; case FISInspectionItemType.Spleen: return "脾脏"; case FISInspectionItemType.DoubleKidney: return "双肾"; case FISInspectionItemType.Ureter: return "输尿管"; case FISInspectionItemType.Bladder: return "膀胱"; case FISInspectionItemType.Prostate: return "前列腺"; case FISInspectionItemType.MesentericLymphNode: return "肠系膜淋巴结"; case FISInspectionItemType.Breast: return "乳腺"; case FISInspectionItemType.Thyroid: return "甲状腺"; case FISInspectionItemType.CervicalVessels: return "颈部血管"; case FISInspectionItemType.VertebralArtery: return "椎动脉"; case FISInspectionItemType.PeripheralSuperficial: return "外周浅表"; case FISInspectionItemType.LymphNode: return "淋巴结"; case FISInspectionItemType.Cardiac: return "心脏"; case FISInspectionItemType.Testicle: return "睾丸"; case FISInspectionItemType.Epididymis: return "附睾"; case FISInspectionItemType.VenaeSpermatica: return "精索静脉"; default: return fisInspectionItemType.ToString(); } } public static FISInspectionItemType GetFISInspectionItemType(string inspectionItemDescription) { switch (inspectionItemDescription) { case "胎儿": return FISInspectionItemType.Fetu; case "子宫": return FISInspectionItemType.Uterus; case "附件": return FISInspectionItemType.Appendages; case "盆腔": return FISInspectionItemType.PelvicCavity; case "肝脏": return FISInspectionItemType.Liver; case "胆囊": return FISInspectionItemType.GB; case "胆管": return FISInspectionItemType.BileDuct; case "胰腺": return FISInspectionItemType.Pancreas; case "脾脏": return FISInspectionItemType.Spleen; case "双肾": return FISInspectionItemType.DoubleKidney; case "输尿管": return FISInspectionItemType.Ureter; case "膀胱": return FISInspectionItemType.Bladder; case "前列腺": return FISInspectionItemType.Prostate; case "肠系膜淋巴结": return FISInspectionItemType.MesentericLymphNode; case "乳腺": return FISInspectionItemType.Breast; case "甲状腺": return FISInspectionItemType.Thyroid; case "颈部血管": return FISInspectionItemType.CervicalVessels; case "椎动脉": return FISInspectionItemType.VertebralArtery; case "外周浅表": return FISInspectionItemType.PeripheralSuperficial; case "淋巴结": return FISInspectionItemType.LymphNode; case "心脏": return FISInspectionItemType.Cardiac; case "睾丸": return FISInspectionItemType.Testicle; case "附睾": return FISInspectionItemType.Epididymis; case "精索静脉": return FISInspectionItemType.VenaeSpermatica; default: return FISInspectionItemType.Fetu; } } } }