[WIP] Encounter
This commit is contained in:
31
app/Models/Encounter.php
Normal file
31
app/Models/Encounter.php
Normal 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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user