fix: add db() to ingest_paciente; get_examenes_rips and recepcion updates
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
6bba6c6165
commit
e595f5e569
@@ -136,6 +136,10 @@ if (!in_array($modo, ['insertar', 'upsert'], true)) {
|
||||
$examenesRaw = $data['examenes'] ?? null;
|
||||
$examenesGuardados = 0;
|
||||
|
||||
function db(): \PDO {
|
||||
return Database::getInstance()->getConnection();
|
||||
}
|
||||
|
||||
function guardarExamenesPendientes(string $doc, array $examenes): int {
|
||||
if (!$examenes || !$doc) return 0;
|
||||
$pdo = db();
|
||||
|
||||
Reference in New Issue
Block a user