[WIP] Encounter

This commit is contained in:
R
2023-03-16 14:27:53 +07:00
parent f65b28107c
commit 229908e492
15 changed files with 433 additions and 10 deletions

31
app/Models/Encounter.php Normal file
View File

@@ -0,0 +1,31 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Encounter extends Model
{
use HasFactory;
public $fillable = [
'part_of',
'status',
'class',
'type',
'patient_id',
'start',
'end',
];
public function participants()
{
return $this->hasMany(EncounterParticipant::class, 'encounter_id');
}
public function diagnoses()
{
return $this->hasMany(EncounterDiagnosis::class, 'encounter_id');
}
}