Accept 64-bit patient identifiers

This commit is contained in:
Angel Capetillo Zavala
2026-11-13 18:23:45 -06:00
parent 3b246b4f1f
commit 01d6e71f07
2 changed files with 2 additions and 1 deletions
@@ -18,7 +18,7 @@ export const ETIQUETA_IDENTIDAD: Readonly<Record<CampoIdentidad, string>> = {
};
// No leading zeros and no sign: the value is compared and sent as text, so it has one spelling.
const PAC_ID = /^(0|[1-9][0-9]{0,17})$/;
const PAC_ID = /^(0|[1-9][0-9]{0,18})$/;
/** The fields of a row that matter here; a typed row or a plain record both fit. */
export interface FilaConIdentidad { readonly pac_id?: unknown; readonly id_seudonimo?: unknown }
const texto = (v: unknown): v is string => typeof v === 'string' && v.length > 0;