Add clinical device registry, browser wedge scan, and local agent API.
Deploy Ladill Care / deploy (push) Successful in 1m39s

Branch-scoped Care devices with hashed agent tokens, patient barcode lookup/labels, and provenance-aware vitals from a minimal device agent (Pro for agent hardware; wedge free).

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-17 14:28:46 +00:00
co-authored by Cursor
parent 1da90203e8
commit e0a7a64d38
37 changed files with 1970 additions and 10 deletions
+13 -1
View File
@@ -12,10 +12,16 @@ class VitalSign extends Model
protected $table = 'care_vital_signs';
public const SOURCE_MANUAL = 'manual';
public const SOURCE_DEVICE = 'device';
public const SOURCE_IMPORT = 'import';
protected $fillable = [
'owner_ref', 'consultation_id', 'bp_systolic', 'bp_diastolic', 'pulse',
'temperature', 'weight_kg', 'height_cm', 'spo2', 'respiratory_rate',
'recorded_by', 'recorded_at',
'recorded_by', 'recorded_at', 'source', 'device_id', 'raw_payload',
];
protected function casts(): array
@@ -25,6 +31,7 @@ class VitalSign extends Model
'weight_kg' => 'decimal:2',
'height_cm' => 'decimal:1',
'recorded_at' => 'datetime',
'raw_payload' => 'array',
];
}
@@ -32,4 +39,9 @@ class VitalSign extends Model
{
return $this->belongsTo(Consultation::class, 'consultation_id');
}
public function device(): BelongsTo
{
return $this->belongsTo(Device::class, 'device_id');
}
}