feat(assessments): layered clinical assessment engine end-to-end
Deploy Ladill Care / deploy (push) Successful in 1m26s
Deploy Ladill Care / deploy (push) Successful in 1m26s
Add a template-driven assessment system with universal intake, clinical pathways, disease instruments (stroke MVP + extended, diabetes, and ten specialty packs), scoring, patient outcome trends, REST/API + FHIR export, and Enterprise org-level assessment analytics. Seed packs and design/licensing docs ship for deploy and pre-GA review.
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
/** Catalog binding: pathway → template_code (resolve is_current at assessment start). */
|
||||
class PathwayTemplate extends Model
|
||||
{
|
||||
public const PHASE_ACUTE = 'acute';
|
||||
|
||||
public const PHASE_FOLLOW_UP = 'follow_up';
|
||||
|
||||
public const PHASE_ANY = 'any';
|
||||
|
||||
protected $table = 'care_pathway_templates';
|
||||
|
||||
protected $fillable = [
|
||||
'pathway_id', 'template_code', 'is_required_on_activation', 'phase', 'sort_order',
|
||||
];
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
return [
|
||||
'is_required_on_activation' => 'boolean',
|
||||
'sort_order' => 'integer',
|
||||
];
|
||||
}
|
||||
|
||||
public function pathway(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(ClinicalPathway::class, 'pathway_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user