{"uid":"cap_t1xNp83UhggqP7nebEXV4","slug":"hospital-capacity-adjacent-row-changes-and-iqr-outlier-flags-1588137b","name":"Hospital Capacity Adjacent Row Changes and IQR Outlier Flags","description":"Hospital capacity — Adjacent row changes + IQR outlier flags: Adjacent row changes + IQR outlier flags for supplied hospital capacity records (occupied_beds, available_beds). Up to 200 rows; 2 independent reports using shared local analytical engines. No live lookup, prediction, professional assessment or external action. 0.01 USDC includes 2 supplied-data reports for up to 200 rows.","url":"https://market.datapackvibe.com/x402/assistant-ib26-economics-09-157?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","region","date","occupied_beds","available_beds"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"region":{"type":"string","default":"","maxLength":80},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"occupied_beds":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"available_beds":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"date":"2026-10-01","region":"group-a","row_id":"row-1","occupied_beds":10,"available_beds":1},{"date":"2026-10-02","region":"group-b","row_id":"row-2","occupied_beds":20,"available_beds":2},{"date":"2026-10-03","region":"group-a","row_id":"row-3","occupied_beds":15,"available_beds":3},{"date":"2026-10-04","region":"group-b","row_id":"row-4","occupied_beds":30,"available_beds":4}],"maxItems":200,"minItems":1},"field":{"enum":["occupied_beds","available_beds"],"type":"string","default":"occupied_beds"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_vPUgcEYpymLA-wgddUSOm","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes adjacent row-to-row changes and IQR-based outlier flags for supplied hospital capacity records (occupied_beds or available_beds) across up to 200 rows, returning two analytical reports.","exampleAgentPrompt":"Can you analyze these hospital bed records for row-to-row changes and IQR outlier flags on occupied_beds? I have 5 rows: row-1 on 2026-10-01 for region-a with 200 occupied and 50 available, row-2 on 2026-10-02 for region-a with 210 occupied and 48 available, row-3 on 2026-10-03 for region-b with 500 occupied and 10 available, row-4 on 2026-10-04 for region-b with 215 occupied and 40 available, row-5 on 2026-10-05 for region-a with 208 occupied and 52 available.","exampleUseCases":[{"title":"Detecting bed occupancy spikes in daily reports","prompt":"I have daily hospital records for two regions over the past week — can you run adjacent row change analysis and IQR outlier detection on occupied_beds so I can spot any sudden spikes or anomalous days?"},{"title":"Auditing available bed data for reporting errors","prompt":"We're auditing our hospital capacity dataset for data entry errors. Can you check these 50 rows of available_beds figures for row-to-row jumps and IQR outliers so we can flag anything that looks wrong before we submit the report?"},{"title":"Regional capacity monitoring across multiple hospitals","prompt":"I'm comparing bed availability across three hospital regions over the last month — run IQR outlier flagging and adjacent row changes on the available_beds column so I can see which dates and regions look statistically unusual."}],"resultDescription":"Returns two analytical reports per call: (1) adjacent row-to-row change values for each record in the supplied sequence for the selected field, and (2) IQR-based outlier flags indicating which rows fall outside the interquartile range bounds — all computed locally from the supplied data with no external lookup or prediction.","failureModes":["Fewer than 1 row or more than 200 rows submitted returns a validation error","Missing required fields (row_id, region, date, occupied_beds, available_beds) cause schema rejection","Invalid date format (non-YYYY-MM-DD) triggers pattern validation failure","Invalid field enum value (not occupied_beds or available_beds) causes rejection","Null values in the selected numeric field may affect IQR computation or produce null deltas","row_id exceeding 80 characters or missing causes validation error"],"whenToPreferThis":"Choose this endpoint when you have a batch of hospital capacity records (up to 200 rows) and need both sequential change detection and statistical outlier flagging in a single low-cost call ($0.01 USDC for both reports). Ideal for data quality audits, anomaly detection in time-series bed data, and pre-reporting validation where no live data lookup or predictive modeling is needed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T19:10:05.141Z","isFirstParty":false,"canonicalSlug":"hospital-capacity-adjacent-row-changes-and-iqr-outlier-flags-1588137b"}