mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-11 18:51:31 +00:00
43 lines
1.1 KiB
PHP
43 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace Streamline\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
use OwenIt\Auditing\Contracts\Auditable;
|
|
|
|
class GenderBasedViolence extends Model implements Auditable
|
|
{
|
|
use HasFactory;
|
|
|
|
public $timestamps = true;
|
|
|
|
// use laravel-auditing to track database changes
|
|
use \OwenIt\Auditing\Auditable;
|
|
|
|
// use for soft deletes
|
|
use SoftDeletes;
|
|
|
|
protected $fillable = [
|
|
'triage_id',
|
|
'patient_id',
|
|
'child_feeling_unsafe',
|
|
'past_12_threatened_humiliated_caused_afraid_when',
|
|
'past_12_threatened_humiliated_caused_afraid_by_whom',
|
|
'past_12_prevented_coming_clinic_medication_treatment',
|
|
'past_12_any_threatened_or_harmed',
|
|
'past_12_any_touched_private_parts_not_want',
|
|
'past_12_any_forced_sex',
|
|
'past_12_any_refused_condom_when_wanted',
|
|
'others',
|
|
'created_by',
|
|
'updated_by'
|
|
];
|
|
|
|
protected $guarded = ['id'];
|
|
|
|
// mutate to dates
|
|
protected $dates = ['deleted_at'];
|
|
}
|