InspectionItemDescriptionConverter.cs 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. using FISLib.Consultation;
  2. namespace FISSDKDemo
  3. {
  4. class InspectionItemDescriptionGenerator
  5. {
  6. public static string GetInspectionItemDescription(FISInspectionItemType fisInspectionItemType)
  7. {
  8. switch (fisInspectionItemType)
  9. {
  10. case FISInspectionItemType.Fetu:
  11. return "胎儿";
  12. case FISInspectionItemType.Uterus:
  13. return "子宫";
  14. case FISInspectionItemType.Appendages:
  15. return "附件";
  16. case FISInspectionItemType.PelvicCavity:
  17. return "盆腔";
  18. case FISInspectionItemType.Liver:
  19. return "肝脏";
  20. case FISInspectionItemType.GB:
  21. return "胆囊";
  22. case FISInspectionItemType.BileDuct:
  23. return "胆管";
  24. case FISInspectionItemType.Pancreas:
  25. return "胰腺";
  26. case FISInspectionItemType.Spleen:
  27. return "脾脏";
  28. case FISInspectionItemType.DoubleKidney:
  29. return "双肾";
  30. case FISInspectionItemType.Ureter:
  31. return "输尿管";
  32. case FISInspectionItemType.Bladder:
  33. return "膀胱";
  34. case FISInspectionItemType.Prostate:
  35. return "前列腺";
  36. case FISInspectionItemType.MesentericLymphNode:
  37. return "肠系膜淋巴结";
  38. case FISInspectionItemType.Breast:
  39. return "乳腺";
  40. case FISInspectionItemType.Thyroid:
  41. return "甲状腺";
  42. case FISInspectionItemType.CervicalVessels:
  43. return "颈部血管";
  44. case FISInspectionItemType.VertebralArtery:
  45. return "椎动脉";
  46. case FISInspectionItemType.PeripheralSuperficial:
  47. return "外周浅表";
  48. case FISInspectionItemType.LymphNode:
  49. return "淋巴结";
  50. case FISInspectionItemType.Cardiac:
  51. return "心脏";
  52. case FISInspectionItemType.Testicle:
  53. return "睾丸";
  54. case FISInspectionItemType.Epididymis:
  55. return "附睾";
  56. case FISInspectionItemType.VenaeSpermatica:
  57. return "精索静脉";
  58. default:
  59. return fisInspectionItemType.ToString();
  60. }
  61. }
  62. public static FISInspectionItemType GetFISInspectionItemType(string inspectionItemDescription)
  63. {
  64. switch (inspectionItemDescription)
  65. {
  66. case "胎儿":
  67. return FISInspectionItemType.Fetu;
  68. case "子宫":
  69. return FISInspectionItemType.Uterus;
  70. case "附件":
  71. return FISInspectionItemType.Appendages;
  72. case "盆腔":
  73. return FISInspectionItemType.PelvicCavity;
  74. case "肝脏":
  75. return FISInspectionItemType.Liver;
  76. case "胆囊":
  77. return FISInspectionItemType.GB;
  78. case "胆管":
  79. return FISInspectionItemType.BileDuct;
  80. case "胰腺":
  81. return FISInspectionItemType.Pancreas;
  82. case "脾脏":
  83. return FISInspectionItemType.Spleen;
  84. case "双肾":
  85. return FISInspectionItemType.DoubleKidney;
  86. case "输尿管":
  87. return FISInspectionItemType.Ureter;
  88. case "膀胱":
  89. return FISInspectionItemType.Bladder;
  90. case "前列腺":
  91. return FISInspectionItemType.Prostate;
  92. case "肠系膜淋巴结":
  93. return FISInspectionItemType.MesentericLymphNode;
  94. case "乳腺":
  95. return FISInspectionItemType.Breast;
  96. case "甲状腺":
  97. return FISInspectionItemType.Thyroid;
  98. case "颈部血管":
  99. return FISInspectionItemType.CervicalVessels;
  100. case "椎动脉":
  101. return FISInspectionItemType.VertebralArtery;
  102. case "外周浅表":
  103. return FISInspectionItemType.PeripheralSuperficial;
  104. case "淋巴结":
  105. return FISInspectionItemType.LymphNode;
  106. case "心脏":
  107. return FISInspectionItemType.Cardiac;
  108. case "睾丸":
  109. return FISInspectionItemType.Testicle;
  110. case "附睾":
  111. return FISInspectionItemType.Epididymis;
  112. case "精索静脉":
  113. return FISInspectionItemType.VenaeSpermatica;
  114. default:
  115. return FISInspectionItemType.Fetu;
  116. }
  117. }
  118. }
  119. }