{"uid":"cap_yKyAK36_TSyB7lEh5ruEG","slug":"eat-sleep-console-esc-neonatal-opioid-withdrawal-assessment-bea8dd8c","name":"Eat Sleep Console (ESC) Neonatal Opioid Withdrawal Assessment","description":"Grossman 2018 Eat, Sleep, Console functional assessment. well_managed iff eat ≥1 oz per feed or breastfeed well, sleep undisturbed ≥1 hour, and console within 10 minutes if crying. needs_increased_treatment iff not well_managed (boolean only; not a morphine dose). Not modified Finnegan. Not the later ESC Care Tool item list. magent does not examine the infant. Not a diagnosis or medical device.","url":"https://api.magentlab.com/api/calc/eat_sleep_console","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":["eat_ok","sleep_ok","console_ok"],"properties":{"eat_ok":{"type":"boolean","description":"Able to eat ≥1 oz per feed or breastfeed well, as assigned by the caller (Grossman 2018 Eat, Sleep, Console). true or false. magent does not observe feeding."},"sleep_ok":{"type":"boolean","description":"Able to sleep undisturbed ≥1 hour, as assigned by the caller (Grossman 2018 Eat, Sleep, Console). true or false. magent does not observe sleep."},"console_ok":{"type":"boolean","description":"Able to be consoled, if crying, within 10 minutes, as assigned by the caller (Grossman 2018 Eat, Sleep, Console). true or false. magent does not observe consolability."}}}},"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_zztdIEdHKrM0qqaYpTygN","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":"Computes the Grossman 2018 Eat, Sleep, Console functional assessment result for neonatal opioid withdrawal, returning well_managed or needs_increased_treatment based on three boolean clinical flags.","exampleAgentPrompt":"Run the Grossman 2018 Eat Sleep Console assessment: the infant is eating adequately (eat_ok = true), sleeping undisturbed for at least an hour (sleep_ok = true), but cannot be consoled within 10 minutes (console_ok = false) — is this baby well-managed or does treatment need to be increased?","exampleUseCases":[{"title":"NOWS management decision at bedside","prompt":"For this opioid-exposed newborn: the nurse reports the baby is breastfeeding well, sleeping undisturbed over an hour, and can be consoled within 10 minutes when crying. Run the Eat Sleep Console assessment so I know if treatment escalation is needed."},{"title":"Electronic health record integration for ESC scoring","prompt":"Our EHR flagged these values for baby in room 4: eat_ok is false, sleep_ok is true, console_ok is true. Apply the Grossman 2018 ESC criteria and tell me whether this infant is well-managed or needs increased treatment."},{"title":"Retrospective chart review ESC classification","prompt":"I'm reviewing a neonatal case: the infant was not feeding adequately (eat_ok false), not sleeping an hour undisturbed (sleep_ok false), and could not be consoled within 10 minutes (console_ok false). What does the ESC tool classify this as under Grossman 2018?"}],"resultDescription":"Returns a structured result indicating whether the infant is 'well_managed' (all three ESC criteria met: eat_ok, sleep_ok, and console_ok are all true) or 'needs_increased_treatment' (one or more criteria not met). This is a boolean classification only — not a morphine dose recommendation and not a diagnosis.","failureModes":["Missing required query parameters (eat_ok, sleep_ok, console_ok) returns a validation error","Non-boolean values for parameters cause schema rejection","Payment failure (x402) if USDC balance insufficient","Misuse: caller attempts to use output as a morphine dosing recommendation (output is classification only)","Confusion with modified Finnegan scoring — this is not the Finnegan or mFAS scale"],"whenToPreferThis":"Use this endpoint when implementing or automating the Grossman 2018 Eat Sleep Console (ESC) functional assessment for neonatal opioid withdrawal syndrome (NOWS) management. Prefer this over Finnegan-based tools when the clinical protocol has adopted the ESC method. Ideal for EHR integrations, clinical decision support pipelines, or audit/research workflows that need a reliable, deterministic classification of well-managed vs. needs-increased-treatment based on the three ESC criteria.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T07:03:05.085Z","isFirstParty":false}