Accept 64-bit patient identifiers
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user