DiseaseCategoryProperties.php 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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. 'Snomed_ct' => 'SNOMED CT标准术语'
  41. ];
  42. $zyLables = [
  43. 'zySickNess' => '疾病',
  44. 'CnMedicinalCrop' => '中药',
  45. 'CnPatentMedicine' => '中成药',
  46. 'MedicalInsuranceDrugZh' => '国家医保药品目录(中成药)',
  47. 'Prescription' => '方剂',
  48. 'TonicDiet' => '药膳',
  49. 'Constitution' => '体质',
  50. 'ChannelCollateral' => '经络',
  51. 'Acupoint' => '穴位',
  52. 'zyxdya' => '中医现代医案',
  53. 'zygdya' => '中医古代医案',
  54. 'zyjbbz' => '疾病辩证',
  55. 'zyfywlf' => '中医非药物疗法',
  56. 'zhguide' => '中医诊疗指南',
  57. //'Disease' => '医疗疾病'
  58. 'ZhSymptom' => '症状'
  59. ];
  60. // 工号列表,只返回国家医保药品目录(西医)
  61. $limitedGh1 = [
  62. '0603', '0488', '0318', '2434', '0737', '3496', '1569', '0425', '3024', '2453', '0799'
  63. ];
  64. // 新的工号列表,只返回国家基本药物目录
  65. $limitedGh2 = [
  66. '2105', '2104', '2213', '3360', '2009', '2919', '3711', '2430', '3361', '2330',
  67. '2004', '2265', '2028', '2008', '2017', '2455', '2041', '2039', '1800', '1799',
  68. '3597', '1061', '0553', '0930', '0718', '0986', '2262', '3440', '3598', '3421',
  69. '3387', '2560', '1714', '2052', '1677', '1922', '2089', '3774', '0931', '1175',
  70. '0647', '0216', '1591', '1625', '2048', '2559', '1941', '2385', '1653', '0830',
  71. '0831', '0426', '0887', '0412', '0358', '1702', '0117', '1962', '1048', '2040',
  72. '3710', '2876', '3709', '3823', '2954'
  73. ];
  74. if (in_array($gh, $limitedGh1)) {
  75. $xyLables = [
  76. 'MedicalInsuranceDrugEn' => '国家医保药品目录(西医)'
  77. ];
  78. $zyLables = [];
  79. } elseif (in_array($gh, $limitedGh2)) {
  80. $xyLables = [
  81. 'essentialDrugs' => '国家基本药物目录'
  82. ];
  83. $zyLables = [];
  84. }
  85. $labels = 'zh' === $type ? $zyLables : $xyLables;
  86. return $tag ? $labels[$tag] : $labels;
  87. }
  88. }