/** * CMS SDK — typed API client for Centers for Medicare & Medicaid Services provider data. * * Standalone — no MCP server required. Usage: * * import { searchDatasets, queryDataset } from "us-gov-open-data-mcp/sdk/cms"; * * No API key required. * Docs: https://data.cms.gov/provider-data/ */ /** Cms Dataset Summary. */ export interface CmsDatasetSummary { identifier: string; title: string; description: string; modified?: string; theme?: string[]; keyword?: string[]; } /** Cms Distribution. */ export interface CmsDistribution { identifier: string; downloadURL?: string; mediaType?: string; } /** Cms Dataset Detail. */ export interface CmsDatasetDetail { identifier: string; title: string; description: string; modified?: string; distribution?: CmsDistribution[]; keyword?: Array<{ data: string; }>; theme?: Array<{ data: string; }>; } /** Cms Query Result. */ export interface CmsQueryResult { results: Record[]; count?: number; limit?: number; offset?: number; } /** Available datasets with Socrata endpoint IDs. */ export declare const DATASETS: { readonly hospital_info: { readonly id: "xubh-q36u"; readonly name: "Hospital General Information"; readonly description: "All Medicare-certified hospitals: name, address, phone, type, ownership, star ratings, emergency services"; readonly theme: "Hospitals"; }; readonly nursing_home_info: { readonly id: "4pq5-n9py"; readonly name: "Nursing Home Provider Information"; readonly description: "All nursing homes: beds, quality ratings, staffing, penalties, five-star ratings"; readonly theme: "Nursing homes"; }; readonly home_health_info: { readonly id: "6jpm-sxkc"; readonly name: "Home Health Agency Information"; readonly description: "Medicare-registered home health agencies: addresses, quality ratings"; readonly theme: "Home health services"; }; readonly hospice_info: { readonly id: "yc9t-dgbk"; readonly name: "Hospice General Information"; readonly description: "Medicare-certified hospice providers: addresses, phone numbers"; readonly theme: "Hospice care"; }; readonly dialysis_info: { readonly id: "23ew-n7w9"; readonly name: "Dialysis Facility Information"; readonly description: "Dialysis facilities: addresses, services, quality of care measures"; readonly theme: "Dialysis facilities"; }; readonly hospital_mortality: { readonly id: "ynj2-r877"; readonly name: "Complications and Deaths - Hospital"; readonly description: "Hospital-level mortality rates, hip/knee complications, patient safety indicators"; readonly theme: "Hospitals"; }; readonly hospital_readmissions: { readonly id: "9n3s-kdb3"; readonly name: "Hospital Readmissions Reduction Program"; readonly description: "Excess readmission ratios and payment reductions for hospitals"; readonly theme: "Hospitals"; }; readonly hospital_infections: { readonly id: "77hc-ibv8"; readonly name: "Healthcare Associated Infections - Hospital"; readonly description: "HAI measures: CLABSI, CAUTI, SSI, MRSA, C.difficile rates by hospital"; readonly theme: "Hospitals"; }; readonly hospital_timely_care: { readonly id: "yv7e-xc69"; readonly name: "Timely and Effective Care - Hospital"; readonly description: "ED wait times, heart attack/stroke care, preventive care, immunization measures"; readonly theme: "Hospitals"; }; readonly hospital_spending: { readonly id: "rrqw-56er"; readonly name: "Medicare Spending Per Beneficiary - Hospital"; readonly description: "Medicare spending per episode of care compared to national average"; readonly theme: "Hospitals"; }; readonly hospital_patient_survey: { readonly id: "dgck-syfz"; readonly name: "Patient Survey (HCAHPS) - Hospital"; readonly description: "HCAHPS patient experience scores: communication, responsiveness, cleanliness, recommendations"; readonly theme: "Hospitals"; }; readonly nursing_home_health_citations: { readonly id: "r5ix-sfxw"; readonly name: "Nursing Home Health Deficiencies"; readonly description: "Health inspection citations in the last 3 years: tag codes, scope/severity, correction dates"; readonly theme: "Nursing homes"; }; readonly nursing_home_quality: { readonly id: "djen-97ju"; readonly name: "Nursing Home Quality Measures (MDS)"; readonly description: "Quality measures from the Minimum Data Set: falls, pressure ulcers, pain, UTIs, restraints"; readonly theme: "Nursing homes"; }; }; /** * Search CMS Provider Data catalog by keyword. */ export declare function searchDatasets(keyword: string): Promise; /** * Get details for a specific CMS dataset by identifier. */ export declare function getDatasetDetails(datasetId: string): Promise; /** * Query data from a CMS dataset. The SDK resolves the distribution UUID * automatically from the dataset identifier. */ export declare function queryDataset(opts: { datasetId: string; conditions?: Array<{ property: string; value: string; operator?: string; }>; limit?: number; offset?: number; }): Promise; /** * Query a dataset using its short key from the DATASETS catalog. */ export declare function queryByKey(key: string, conditions?: Array<{ property: string; value: string; operator?: string; }>, limit?: number, offset?: number): Promise; /** Clear the CMS SDK cache. */ export declare function clearCache(): void; //# sourceMappingURL=sdk.d.ts.map