DiseaseCategoryProperties.php 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <?php
  2. namespace app\model;
  3. use think\Model;
  4. class DiseaseCategoryProperties extends Model
  5. {
  6. protected $table = "jm_disease_properties_category";
  7. public static function getValueByTag($tag = '', $type = '', $gh = '')
  8. {
  9. if ('zh' === $type && 'SickNess' === $tag) {
  10. $tag = 'zySickNess';
  11. }
  12. $xyLables = [
  13. 'Disease' => '医疗疾病',
  14. 'Ferri' => 'ferri疾病',
  15. 'cases' => '病例',
  16. 'SickNess' => '科普疾病',
  17. //'Symptom' => '症状' ,
  18. 'MedicineProduction' => '药品',
  19. 'MedicalInsuranceDrugEn' => '国家医保药品目录(西医)',
  20. 'essentialDrugs' => '国家基本药物目录',
  21. 'DrugOverdose' => '超用药说明书',
  22. 'DrugAnswers' => '药品问答',
  23. 'Inspection' => '检验检查', // 检查
  24. 'ClinicalPathway' => '临床路径',
  25. //'Nursing' => '护理' ,
  26. 'Operation' => '手术操作',
  27. 'DiagnosisTreatment' => '诊疗指南',
  28. 'GuideMap' => '指南脑图',
  29. 'GuideStructure' => '指南结构化',
  30. 'DrugTarget' => '药物靶点',
  31. 'Antidiastole' => '误诊误治',
  32. 'ClinicalTrial' => '临床试验',
  33. 'Mission' => '宣教',
  34. 'XyPrescription' => '常见处方',
  35. 'Interact' => '药物相互作用',
  36. 'Xyhl' => '护理',
  37. 'Zztz' => '症状体征',
  38. 'LawRegulations' => '法律法规',
  39. 'MedicalCalculator' => '医疗计算器',
  40. ];
  41. $zyLables = [
  42. 'zySickNess' => '疾病',
  43. 'CnMedicinalCrop' => '中药',
  44. 'CnPatentMedicine' => '中成药',
  45. 'MedicalInsuranceDrugZh' => '国家医保药品目录(中成药)',
  46. 'Prescription' => '方剂',
  47. 'TonicDiet' => '药膳',
  48. 'Constitution' => '体质',
  49. 'ChannelCollateral' => '经络',
  50. 'Acupoint' => '穴位',
  51. 'zyxdya' => '中医现代医案',
  52. 'zygdya' => '中医古代医案',
  53. 'zyjbbz' => '疾病辩证',
  54. 'zyfywlf' => '中医非药物疗法',
  55. 'zhguide' => '中医诊疗指南',
  56. //'Disease' => '医疗疾病'
  57. 'ZhSymptom' => '症状'
  58. ];
  59. // 工号列表,只返回国家医保药品目录(西医)
  60. $limitedGh1 = [
  61. '0603', '0488', '0318', '2434', '0737', '3496', '1569', '0425', '3024', '2453', '0799'
  62. ];
  63. // 新的工号列表,只返回国家基本药物目录
  64. $limitedGh2 = [
  65. '2105', '2104', '2213', '3360', '2009', '2919', '3711', '2430', '3361', '2330',
  66. '2004', '2265', '2028', '2008', '2017', '2455', '2041', '2039', '1800', '1799',
  67. '3597', '1061', '0553', '0930', '0718', '0986', '2262', '3440', '3598', '3421',
  68. '3387', '2560', '1714', '2052', '1677', '1922', '2089', '3774', '0931', '1175',
  69. '0647', '0216', '1591', '1625', '2048', '2559', '1941', '2385', '1653', '0830',
  70. '0831', '0426', '0887', '0412', '0358', '1702', '0117', '1962', '1048', '2040',
  71. '3710', '2876', '3709', '3823', '2954'
  72. ];
  73. if (in_array($gh, $limitedGh1)) {
  74. $xyLables = [
  75. 'MedicalInsuranceDrugEn' => '国家医保药品目录(西医)'
  76. ];
  77. $zyLables = [];
  78. } elseif (in_array($gh, $limitedGh2)) {
  79. $xyLables = [
  80. 'essentialDrugs' => '国家基本药物目录'
  81. ];
  82. $zyLables = [];
  83. }
  84. $labels = 'zh' === $type ? $zyLables : $xyLables;
  85. return $tag ? $labels[$tag] : $labels;
  86. }
  87. }