DiseaseProperties.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. namespace App\Model;
  3. use Illuminate\Database\Eloquent\Model;
  4. class DiseaseProperties extends Model
  5. {
  6. public $table = "jm_disease_properties";
  7. public function diseaseCategoryProperties()
  8. {
  9. return $this->belongsTo(DiseaseCategoryProperties::class , 'category_id' , 'id');
  10. }
  11. public static function getLables($label = '')
  12. {
  13. $labels = [
  14. 'Disease' => '西医科室疾病',
  15. 'SickNess' => '西医科普疾病',
  16. 'Symptom' => '症状体征',
  17. 'MedicineProduction' => '药品',
  18. 'Inspection' => '检查',
  19. 'Identity' => '鉴别诊断',
  20. 'ClinicalPathway' => '临床路径',
  21. 'zySickNess' => '中医疾病',
  22. 'CnMedicinalCrop' => '中药',
  23. 'CnPatentMedicine' => '中成药',
  24. 'Prescription' => '方剂',
  25. 'TonicDiet' => '药膳',
  26. 'ChannelCollateral' => '经络',
  27. 'Acupoint' => '穴位',
  28. 'Nursing' => '护理',
  29. 'Operation' => '手术操作'
  30. ];
  31. return $label ? $labels[$label] : $labels;
  32. }
  33. }