merge claim detail
This commit is contained in:
@@ -264,5 +264,11 @@ class Claim extends Model
|
||||
{
|
||||
return $this->items->sum('nominal_ditagihkan');
|
||||
}
|
||||
|
||||
public function historyHospitalCare()
|
||||
{
|
||||
return $this->hasMany(ClaimHistoryCare::class, 'claim_id');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -42,6 +42,19 @@ class ClaimHistoryCare extends Model
|
||||
return $this->belongsTo(Icd::class, 'main_diagnosis_id');
|
||||
}
|
||||
|
||||
public function claim()
|
||||
{
|
||||
return $this->hasOne(Claim::class, 'claim_id');
|
||||
}
|
||||
|
||||
public function person()
|
||||
{
|
||||
return $this->belongsTo(Person::class, 'practitioner_id');
|
||||
}
|
||||
|
||||
public function comparativeDiagnosis()
|
||||
{
|
||||
return $this->hasMany(DiagnosisSecondaryClaimHistoryCare::class, 'claim_history_care_id');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user