{"openapi":"3.1.1","info":{"title":"Hospital patient-safety ratings by state and county: PSI 90 and healthcare-associated infections (CMS Care Compare): data API","version":"v1","summary":"Static, read-only JSON and CSV files. No key, no sign-up. CORS open.","description":"Hospital patient-safety ratings by state and county: PSI 90 and healthcare-associated infections (CMS Care Compare): How Medicare's Care Compare rates hospitals on patient safety, for each state, DC and territory and for each county with at least three hospitals: how many hospitals are rated worse, the same or better than the national benchmark on the PSI 90 patient-safety and adverse-events composite (claims July 2022 to June 2024), and on the six healthcare-associated infection ratios (October 2024 to September 2025), with each state's own infection ratios and confidence limits as CMS prints them. Counties with fewer than three hospitals are combined. Hospital names are not kept. A figure CMS does not print is left out.\n\nProbative is a marketing firm, not a law firm; not legal advice. Every JSON response starts with a \"meta\" object holding the credit line, citation, DOI and license (CC BY 4.0).","license":{"name":"CC BY 4.0","url":"https://creativecommons.org/licenses/by/4.0/"},"contact":{"name":"Probative Growth","url":"https://probativegrowth.com/contact/","email":"hello@probativegrowth.com"}},"servers":[{"url":"https://probativegrowth.com"}],"externalDocs":{"description":"How to use the API and the MCP server","url":"https://probativegrowth.com/resources/rules-api/"},"paths":{"/data/v1/hospital-safety/index.json":{"get":{"summary":"Hospital patient-safety ratings by state and county: PSI 90 and healthcare-associated infections (CMS Care Compare): index","description":"hospital-safety: meta, summary and what the dataset holds","parameters":[],"responses":{"200":{"description":"Hospital patient-safety ratings by state and county: PSI 90 and healthcare-associated infections (CMS Care Compare): index","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"404":{"description":"No such file"}},"tags":["hospital-safety"]}},"/data/v1/hospital-safety/changes.json":{"get":{"summary":"Hospital patient-safety ratings by state and county: PSI 90 and healthcare-associated infections (CMS Care Compare): confirmed changes","description":"hospital-safety: confirmed changes, newest first","parameters":[],"responses":{"200":{"description":"Hospital patient-safety ratings by state and county: PSI 90 and healthcare-associated infections (CMS Care Compare): confirmed changes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"404":{"description":"No such file"}},"tags":["hospital-safety"]}},"/data/v1/hospital-safety/jurisdictions/{key}.json":{"get":{"summary":"Hospital patient-safety ratings by state and county: PSI 90 and healthcare-associated infections (CMS Care Compare): one jurisdiction","description":"hospital-safety: the records for one jurisdiction","parameters":[{"name":"key","in":"path","required":true,"description":"The jurisdiction key, uppercase","schema":{"type":"string"},"example":"AK"}],"responses":{"200":{"description":"Hospital patient-safety ratings by state and county: PSI 90 and healthcare-associated infections (CMS Care Compare): one jurisdiction","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"404":{"description":"No such file"}},"tags":["hospital-safety"]}},"/data/v1/hospital-safety/hospital-safety.csv":{"get":{"summary":"Hospital patient-safety ratings by state and county: PSI 90 and healthcare-associated infections (CMS Care Compare) as CSV","description":"hospital-safety: every record (credit line in README.txt)","parameters":[],"responses":{"200":{"description":"Hospital patient-safety ratings by state and county: PSI 90 and healthcare-associated infections (CMS Care Compare) as CSV","content":{"text/csv":{"schema":{"type":"string"}}}},"404":{"description":"No such file"}},"tags":["hospital-safety"]}},"/data/v1/hospital-safety/hospital-safety.json":{"get":{"summary":"Hospital patient-safety ratings by state and county: PSI 90 and healthcare-associated infections (CMS Care Compare): every record","description":"hospital-safety: every record in one file","parameters":[],"responses":{"200":{"description":"Hospital patient-safety ratings by state and county: PSI 90 and healthcare-associated infections (CMS Care Compare): every record","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"404":{"description":"No such file"}},"tags":["hospital-safety"]}},"/data/v1/hospital-safety/search.json":{"get":{"summary":"Hospital patient-safety ratings by state and county: PSI 90 and healthcare-associated infections (CMS Care Compare): keyword index","description":"hospital-safety: id, key, status and text of every record","parameters":[],"responses":{"200":{"description":"Hospital patient-safety ratings by state and county: PSI 90 and healthcare-associated infections (CMS Care Compare): keyword index","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"404":{"description":"No such file"}},"tags":["hospital-safety"]}},"/data/v1/hospital-safety/README.txt":{"get":{"summary":"Credit line, citation and columns","description":"hospital-safety: the CSV sidecar","parameters":[],"responses":{"200":{"description":"Credit line, citation and columns","content":{"text/plain":{"schema":{"type":"string"}}}},"404":{"description":"No such file"}},"tags":["hospital-safety"]}}},"components":{"schemas":{"Meta":{"type":"object","description":"Credit line, citation, DOI, version, license and disclaimer. Present in every response.","required":["dataset","version","license","attribution","disclaimer","url"],"properties":{"dataset":{"type":"string"},"title":{"type":"string"},"version":{"type":"string"},"doi":{"type":["string","null"]},"doiUrl":{"type":["string","null"]},"conceptDoi":{"type":["string","null"]},"license":{"type":"string","const":"CC BY 4.0"},"licenseUrl":{"type":"string"},"attribution":{"type":"string"},"citation":{"type":"string"},"disclaimer":{"type":"string"},"notice":{"type":"string"},"lastChecked":{"type":"string"},"url":{"type":"string"},"humanUrl":{"type":"string"},"statusCodes":{"type":"object"}}},"Envelope":{"type":"object","required":["meta"],"properties":{"meta":{"$ref":"#/components/schemas/Meta"}},"additionalProperties":true}}}}