Decir que la paciente ya fue tratada y nombrar el grado de la citología de referencia

This commit is contained in:
2026-12-04 16:47:40 -06:00
parent c28cf31e2a
commit c128448317
4 changed files with 13 additions and 9 deletions
+3 -1
View File
@@ -331,7 +331,7 @@ export class RiskScales {
hpv: 'VPH',
hpv_positive: 'VPH',
hpv_16_18: 'VPH 16/18',
referral_grade: 'Referencia',
referral_grade: 'Citología de referencia',
bethesda: 'Citología',
hpv_16: 'VPH 16',
hpv_18: 'VPH 18',
@@ -339,6 +339,8 @@ export class RiskScales {
)[name] ?? name;
protected readonly inputValue = (name: string, value: unknown) => {
if (value === null || value === undefined) return 'No documentado';
if (name === 'referral_grade' && (value === 'high' || value === 'low'))
return value === 'high' ? 'Alto grado' : 'Bajo grado';
if (name.startsWith('hpv') && (value === 0 || value === 1 || typeof value === 'boolean'))
return value ? 'Positivo' : 'Negativo';
if (name.startsWith('hpv') && value === 'positive') return 'Positivo';