{"uid":"cap_LpuV2fQuupiQaAwYfBvnL","slug":"magent-aih-original-score-alvarez-1999-e9cbee3c","name":"magent AIH Original Score (Alvarez 1999)","description":"Alvarez 1999 revised original IAIHG AIH score, not Hennes 2008 simplified. Caller-assigned sex, ALP:AST/ALT ratio, globulin/IgG, ANA/SMA/LKM titer, AMA, viral markers, drugs, alcohol, additive histology, other autoimmune disease; optional HLA/other autoantibodies if seronegative and treatment response. Pretreatment definite >15 / probable 10-15; posttreatment definite >17 / probable 12-17. magent does not read histology. Not a diagnosis or immunosuppression order.","url":"https://api.magentlab.com/api/calc/aih_original","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"queryParams":{"type":"object","required":["sex","alp_ratio","globulin_igg","autoantibody_titer","ama_positive","viral_markers_positive","hepatotoxic_drugs","alcohol_intake","interface_hepatitis","lymphoplasmacytic_infiltrate","liver_cell_rosettes","biliary_changes","other_atypical_histology","other_autoimmune_disease"],"properties":{"sex":{"enum":["female","male"],"type":"string","description":"Caller-assigned sex (Alvarez 1999). female scores 2; male scores 0. magent does not examine the patient."},"alp_ratio":{"enum":["lt_1_5","1_5_to_3","gt_3"],"type":"string","description":"Caller-assigned ALP:(AST or ALT) ratio as multiples of ULN (Alvarez 1999 note 1). lt_1_5 (<1.5) scores 2; 1_5_to_3 (1.5–3.0) scores 0; gt_3 (>3) scores -2. magent does not take raw enzymes."},"ama_positive":{"type":"boolean","description":"Caller-assigned antimitochondrial antibody. true scores -4; false scores 0 (Alvarez 1999). magent does not assay AMA."},"globulin_igg":{"enum":["lt_1x","1_to_1_5x","1_5_to_2x","gt_2x"],"type":"string","description":"Caller-assigned serum globulin or IgG as multiples of ULN (Alvarez 1999). lt_1x scores 0; 1_to_1_5x scores 1; 1_5_to_2x scores 2; gt_2x scores 3. magent does not assay globulin or IgG."},"alcohol_intake":{"enum":["lt_25","25_to_60","gt_60"],"type":"string","description":"Caller-assigned average alcohol intake (Alvarez 1999). lt_25 (<25 g/day) scores 2; 25_to_60 scores 0 (gap between the tabulated <25 and >60 cells); gt_60 (>60 g/day) scores -2."},"hla_dr3_or_dr4":{"type":"boolean","description":"Optional. HLA DR3 or DR4 (Alvarez 1999 note 9). true scores 1 only when autoantibody_titer is lt_1_40; otherwise 0. Omit or false scores 0."},"biliary_changes":{"type":"boolean","description":"Caller-assigned biliary changes typical of PBC or PSC (Alvarez 1999 note 5). true scores -3; additive with other histology items. magent does not read histology."},"hepatotoxic_drugs":{"type":"boolean","description":"Recent or current known or suspected hepatotoxic drugs (Alvarez 1999 note 4). true scores -4; false scores 1."},"autoantibody_titer":{"enum":["lt_1_40","1_40","1_80","gt_1_80"],"type":"string","description":"Caller-assigned highest ANA, SMA, or LKM-1 immunofluorescence titer (Alvarez 1999). lt_1_40 scores 0; 1_40 scores 1; 1_80 scores 2; gt_1_80 scores 3. magent does not titer autoantibodies."},"treatment_response":{"enum":["none","complete","relapse"],"type":"string","description":"Optional. Alvarez 1999 response to therapy, added to presentation points. none or omit: pretreatment bands (definite >15, probable 10-15). complete scores 2; relapse scores 3; both use posttreatment bands (definite >17, probable 12-17). Not an immunosuppression order."},"interface_hepatitis":{"type":"boolean","description":"Caller-assigned interface hepatitis on liver histology. true scores 3 (Alvarez 1999; additive). magent does not read histology."},"liver_cell_rosettes":{"type":"boolean","description":"Caller-assigned liver-cell rosettes. true scores 1 (Alvarez 1999; additive). magent does not read histology."},"other_autoantibodies":{"type":"boolean","description":"Optional. Seropositivity for other defined autoantibodies (pANCA, anti-LC1, anti-SLA, anti-ASGPR, anti-LP, anti-sulfatide; Alvarez 1999 note 8). true scores 2 only when autoantibody_titer is lt_1_40; otherwise 0. Omit or false scores 0."},"viral_markers_positive":{"type":"boolean","description":"Caller-assigned hepatitis A/B/C viral markers (Alvarez 1999 note 3). true scores -3; false (negative) scores 3. magent does not interpret viral serology."},"other_atypical_histology":{"type":"boolean","description":"Caller-assigned other prominent histologic features suggesting a different etiology (Alvarez 1999 note 6). true scores -3; additive. magent does not read histology."},"other_autoimmune_disease":{"type":"boolean","description":"Any other autoimmune disorder in the patient or first-degree relatives (Alvarez 1999 note 7). true scores 2; false scores 0."},"lymphoplasmacytic_infiltrate":{"type":"boolean","description":"Caller-assigned predominantly lymphoplasmacytic infiltrate. true scores 1 (Alvarez 1999; additive). magent does not read histology."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_xByUdg8FaOFqFoHbQdKB8","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates the Alvarez 1999 revised original IAIHG autoimmune hepatitis (AIH) scoring system, returning a numeric score with pretreatment and posttreatment diagnostic thresholds.","exampleAgentPrompt":"Calculate the original Alvarez 1999 AIH score for a female patient: ALP:AST ratio less than 1.5x ULN, IgG between 1.5 and 2x ULN, ANA titer 1:80 (1+ category), AMA negative, no viral markers, no hepatotoxic drugs, alcohol under 25 g/day, interface hepatitis present, lymphoplasmacytic infiltrate present, liver cell rosettes present, no biliary changes, no atypical histology, and no other autoimmune disease — what's the pretreatment score and does it meet definite or probable AIH?","exampleUseCases":[{"title":"Pretreatment AIH workup staging","prompt":"I have a female patient with ALP:AST ratio under 1.5x ULN, IgG at 1.5–2x ULN, ANA titer at 1:80, AMA negative, no viral markers, no hepatotoxic drugs, alcohol under 25 g/day, interface hepatitis present, lymphoplasmacytic infiltrate present, liver cell rosettes present, no biliary changes, no other atypical histology, and no other autoimmune disease — run the original Alvarez 1999 AIH score and tell me if she meets definite or probable criteria pretreatment."},{"title":"Posttreatment AIH response confirmation","prompt":"After treatment, a male patient has ALP:AST ratio under 1.5x ULN, IgG now at 1–1.5x ULN, SMA titer 1:40, AMA negative, no viral markers, no drug or alcohol concerns, interface hepatitis still present, lymphoplasmacytic infiltrate present, no rosettes, no biliary changes, no other atypical histology, and he has another autoimmune disease — compute the original IAIHG AIH score and check whether posttreatment definite criteria are met."},{"title":"Seronegative AIH with HLA tiebreaker","prompt":"I need the Alvarez 1999 AIH score for a female patient who is seronegative (autoantibody titer below 1:40), ALP:AST ratio under 1.5x ULN, IgG over 2x ULN, AMA negative, no viral markers, no hepatotoxic drugs, alcohol under 25 g/day, interface hepatitis present, lymphoplasmacytic infiltrate present, liver cell rosettes present, no biliary changes, no atypical histology, no other autoimmune disease — and she is HLA DR4 positive, so include that in the score."}],"resultDescription":"Returns a numeric AIH score computed from all weighted input parameters, along with interpretation of that score against the Alvarez 1999 pretreatment thresholds (definite >15, probable 10–15) and posttreatment thresholds (definite >17, probable 12–17). Does not provide a diagnosis or treatment recommendation.","failureModes":["Missing required query parameters (sex, alp_ratio, globulin_igg, autoantibody_titer, ama_positive, viral_markers_positive, hepatotoxic_drugs, alcohol_intake, histology fields, other_autoimmune_disease) returns a 400 error","Invalid enum values for categorical parameters return validation errors","HLA parameter ignored unless autoantibody_titer is lt_1_40 (seronegative), so passing it in non-seronegative contexts has no scoring effect","Payment failure or missing x402 header causes payment-required rejection"],"whenToPreferThis":"Use this endpoint when you need the full 1999 Alvarez revised original IAIHG AIH scoring system rather than the simpler 2008 Hennes simplified score. Prefer it when histology data is available and you want granular multi-component scoring including HLA, treatment response thresholds, and additive histology sub-components. Not appropriate as a standalone diagnosis or to replace clinical judgment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:58:14.076Z","isFirstParty":false}