123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- namespace App\Model;
- use Illuminate\Database\Eloquent\Model;
- class DiseaseProperties extends Model
- {
- public $table = "jm_disease_properties";
- public function diseaseCategoryProperties()
- {
- return $this->belongsTo(DiseaseCategoryProperties::class , 'category_id' , 'id');
- }
- public static function getLables($label = '')
- {
- $labels = [
- 'Disease' => '西医科室疾病',
- 'SickNess' => '西医科普疾病',
- 'Symptom' => '症状体征',
- 'MedicineProduction' => '药品',
- 'Inspection' => '检查',
- 'Identity' => '鉴别诊断',
- 'ClinicalPathway' => '临床路径',
- 'zySickNess' => '中医疾病',
- 'CnMedicinalCrop' => '中药',
- 'CnPatentMedicine' => '中成药',
- 'Prescription' => '方剂',
- 'TonicDiet' => '药膳',
- 'ChannelCollateral' => '经络',
- 'Acupoint' => '穴位',
- 'Nursing' => '护理',
- 'Operation' => '手术操作'
- ];
- return $label ? $labels[$label] : $labels;
- }
- }
|