F7a: ADOS-2 scoring from the manual algorithm sheets
Algorithm scores 0, 1, 2, 3 -> 0, 1, 2, 2 and 7, 8, 9 -> 0, with the Toddler B-1 exception (1 -> 2). The algorithm column comes from completed months and item A-1 (new catalog field language_level): Toddler 12-20 months few words, 21-30 by A-1; Module 1 by A-1; Module 2 under five or not. The total adds only the column's items. Classification from the manual's total cuts; Toddler CSS from Esler 2015 table 3; Modules 1-2 CSS from the manual's comparison tables (test transcription, in code for now). Module 3 is not scored (no items in the ADOS-2 list). Labels non_tea / autism_spectrum / autism and little_or_no / mild_to_moderate / moderate_to_severe concern. A-1 travels to FHIR, follow-up (ados2_language_level), association input, synthetic hospital, pipelines and the Gobernanza preview. Ported from the tea library 0.4.0 (patches 0001/0002).
This commit is contained in:
@@ -33,6 +33,7 @@ const observation: Observation = {
|
||||
code: { coding: [{ code: 'ados2' }] },
|
||||
component: [
|
||||
{ code: { coding: [{ code: 'ados2.module' }] }, valueCodeableConcept: { text: 'Módulo 1' } },
|
||||
{ code: { coding: [{ code: 'ados2.language_level' }] }, valueQuantity: { value: 3 } },
|
||||
item('pointing', AS, 'Comunicación', 'A-7', 'Señalar', 2),
|
||||
item('gestures', AS, 'Comunicación', 'A-8', 'Gestos', 1),
|
||||
item(
|
||||
@@ -96,5 +97,6 @@ describe('Ítems del ADOS-2', () => {
|
||||
expect(ados2Component(observation, 2)?.code.text).toBe('Señalar');
|
||||
expect(ados2Component(observation, 8)?.code.coding?.[0].code).toBe('ados2.response_to_name');
|
||||
expect(ados2Component(observation, 0)).toBeUndefined();
|
||||
expect(ados2Component(observation, 23)?.valueQuantity?.value).toBe(3);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -24,6 +24,7 @@ const ADOS2_ITEMS = [
|
||||
'unusual_sensory_interest',
|
||||
'hand_finger_mannerisms',
|
||||
'repetitive_interests',
|
||||
'language_level',
|
||||
];
|
||||
|
||||
interface Ados2Item {
|
||||
|
||||
@@ -35,8 +35,12 @@ const result: PreviewResult = {
|
||||
ados2: {
|
||||
module: 'module_1',
|
||||
evaluation_date: '2026-01-12',
|
||||
items: { pointing: 2, gestures: null, intonation: null, ignoring: 1 },
|
||||
titles: { pointing: 'A-7 Señalar', gestures: 'A-8 Gestos' },
|
||||
items: { language_level: 3, pointing: 2, gestures: null, intonation: null, ignoring: 1 },
|
||||
titles: {
|
||||
language_level: 'A-1 Nivel general de lenguaje oral no ecolálico',
|
||||
pointing: 'A-7 Señalar',
|
||||
gestures: 'A-8 Gestos',
|
||||
},
|
||||
css: 7,
|
||||
classification: 'autism',
|
||||
read: ['module', 'pointing'],
|
||||
@@ -85,6 +89,7 @@ describe('previewPdfContent', () => {
|
||||
widths: ['*', 'auto'],
|
||||
body: [
|
||||
['Ítem', 'Puntuación'],
|
||||
['A-1 Nivel general de lenguaje oral no ecolálico', '3'],
|
||||
['A-7 Señalar', '2'],
|
||||
['A-8 Gestos', '—'],
|
||||
['ignoring', '1'],
|
||||
|
||||
@@ -93,11 +93,12 @@ const steps: Record<string, string> = {
|
||||
};
|
||||
|
||||
const classifications: Record<string, string> = {
|
||||
non_spectrum: 'Fuera del espectro',
|
||||
non_tea: 'Fuera del espectro (No TEA)',
|
||||
autism_spectrum: 'Espectro autista',
|
||||
autism: 'Autismo',
|
||||
little_or_no_concern: 'Poca o ninguna preocupación',
|
||||
mild_to_moderate_concern: 'Preocupación leve a moderada',
|
||||
severe_concern: 'Preocupación grave',
|
||||
moderate_to_severe_concern: 'Preocupación moderada a severa',
|
||||
};
|
||||
|
||||
const quality: Record<string, string> = {
|
||||
|
||||
Reference in New Issue
Block a user