{
    "openapi": "3.1.0",
    "info": {
        "title": "WageVitals open data",
        "version": "1.0.0",
        "summary": "Pay for entry-level U.S. healthcare jobs (BLS OEWS), CNA certification rules by state, California CNA training programs.",
        "description": "Static JSON files rebuilt with each data update of https://wagevitals.com/; no key, no query parameters. A figure BLS did not publish is null with its reason, never zero. Every count equals the count on the matching page. Wages: BLS, public domain, not endorsed by BLS. Compilation licensed CC BY 4.0.",
        "termsOfService": "https://wagevitals.com/terms/",
        "license": {
            "name": "CC BY 4.0",
            "url": "https://creativecommons.org/licenses/by/4.0/"
        }
    },
    "externalDocs": {
        "description": "Sources and method",
        "url": "https://wagevitals.com/sources/"
    },
    "servers": [
        {
            "url": "https://wagevitals.com/datasets/v1"
        }
    ],
    "security": [],
    "paths": {
        "/index.json": {
            "get": {
                "operationId": "getIndex",
                "summary": "Totals and the list of files",
                "responses": {
                    "200": {
                        "description": "Totals and the list of files",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Index"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "File not found."
                    }
                }
            }
        },
        "/wages/{job}.json": {
            "get": {
                "operationId": "getWages",
                "summary": "BLS wages of one occupation for the U.S., states and metro areas",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/job"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "BLS wages of one occupation for the U.S., states and metro areas",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Wages"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "File not found."
                    }
                }
            }
        },
        "/cna-rules.json": {
            "get": {
                "operationId": "getCnaRules",
                "summary": "CNA certification rules by state and the federal minimum",
                "responses": {
                    "200": {
                        "description": "CNA certification rules by state and the federal minimum",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/CnaRules"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "File not found."
                    }
                }
            }
        },
        "/california-cna-programs.json": {
            "get": {
                "operationId": "getCaliforniaPrograms",
                "summary": "California CNA training locations by county (CDPH)",
                "responses": {
                    "200": {
                        "description": "California CNA training locations by county (CDPH)",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/CaliforniaPrograms"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "File not found."
                    }
                }
            }
        }
    },
    "components": {
        "parameters": {
            "job": {
                "name": "job",
                "in": "path",
                "required": true,
                "description": "Occupation slug.",
                "schema": {
                    "type": "string",
                    "enum": [
                        "cna",
                        "phlebotomist",
                        "medical-assistant",
                        "emt",
                        "dental-assistant",
                        "pharmacy-technician"
                    ]
                }
            }
        },
        "schemas": {
            "Meta": {
                "type": "object",
                "required": [
                    "title",
                    "schema_version",
                    "self",
                    "data_checked",
                    "reuse"
                ],
                "properties": {
                    "title": {
                        "type": "string"
                    },
                    "schema_version": {
                        "type": "string"
                    },
                    "self": {
                        "type": "string",
                        "format": "uri"
                    },
                    "page": {
                        "oneOf": [
                            {
                                "type": "string",
                                "format": "uri"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "data_checked": {
                        "type": "string",
                        "format": "date"
                    },
                    "method": {
                        "type": "string",
                        "format": "uri"
                    },
                    "reuse": {
                        "type": "object",
                        "additionalProperties": {
                            "type": "string"
                        }
                    }
                }
            },
            "Index": {
                "type": "object",
                "required": [
                    "meta",
                    "totals",
                    "files"
                ],
                "properties": {
                    "meta": {
                        "$ref": "#/components/schemas/Meta"
                    },
                    "summary": {
                        "type": "string"
                    },
                    "totals": {
                        "type": "object",
                        "additionalProperties": {
                            "type": "integer",
                            "minimum": 0
                        }
                    },
                    "files": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "path": {
                                    "type": "string",
                                    "format": "uri"
                                },
                                "holds": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "openapi": {
                        "type": "string",
                        "format": "uri"
                    },
                    "api_catalog": {
                        "type": "string",
                        "format": "uri"
                    }
                }
            },
            "WageRecord": {
                "type": "object",
                "properties": {
                    "employment": {
                        "oneOf": [
                            {
                                "type": "number"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "jobs_per_1000": {
                        "oneOf": [
                            {
                                "type": "number"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "location_quotient": {
                        "oneOf": [
                            {
                                "type": "number"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "hourly_mean": {
                        "oneOf": [
                            {
                                "type": "number"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "annual_mean": {
                        "oneOf": [
                            {
                                "type": "number"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "hourly_p10": {
                        "oneOf": [
                            {
                                "type": "number"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "hourly_p25": {
                        "oneOf": [
                            {
                                "type": "number"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "hourly_median": {
                        "oneOf": [
                            {
                                "type": "number"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "hourly_p75": {
                        "oneOf": [
                            {
                                "type": "number"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "hourly_p90": {
                        "oneOf": [
                            {
                                "type": "number"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "annual_p10": {
                        "oneOf": [
                            {
                                "type": "number"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "annual_p25": {
                        "oneOf": [
                            {
                                "type": "number"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "annual_median": {
                        "oneOf": [
                            {
                                "type": "number"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "annual_p75": {
                        "oneOf": [
                            {
                                "type": "number"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "annual_p90": {
                        "oneOf": [
                            {
                                "type": "number"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "not_published": {
                        "type": "object",
                        "additionalProperties": {
                            "type": "string"
                        },
                        "description": "Why BLS left a field empty (BLS footnote wording)."
                    }
                }
            },
            "Wages": {
                "type": "object",
                "required": [
                    "meta",
                    "occupation",
                    "source",
                    "united_states",
                    "states",
                    "metro_areas"
                ],
                "properties": {
                    "meta": {
                        "$ref": "#/components/schemas/Meta"
                    },
                    "occupation": {
                        "type": "object",
                        "properties": {
                            "soc": {
                                "type": "string"
                            },
                            "bls_title": {
                                "type": "string"
                            },
                            "name": {
                                "type": "string"
                            },
                            "scope": {
                                "type": "string"
                            }
                        }
                    },
                    "source": {
                        "type": "object",
                        "properties": {
                            "publisher": {
                                "type": "string"
                            },
                            "release": {
                                "type": "string"
                            },
                            "tables": {
                                "type": "string",
                                "format": "uri"
                            },
                            "checked": {
                                "type": "string",
                                "format": "date"
                            },
                            "estimates": {
                                "type": "string"
                            },
                            "top_coded": {
                                "type": "object",
                                "properties": {
                                    "hourly": {
                                        "type": "number"
                                    },
                                    "annual": {
                                        "type": "number"
                                    }
                                }
                            }
                        }
                    },
                    "units": {
                        "type": "object",
                        "additionalProperties": {
                            "type": "string"
                        }
                    },
                    "united_states": {
                        "$ref": "#/components/schemas/WageRecord"
                    },
                    "states": {
                        "type": "array",
                        "items": {
                            "allOf": [
                                {
                                    "type": "object",
                                    "properties": {
                                        "usps": {
                                            "type": "string"
                                        },
                                        "name": {
                                            "type": "string"
                                        },
                                        "bls_area": {
                                            "type": "string"
                                        },
                                        "page": {
                                            "oneOf": [
                                                {
                                                    "type": "string",
                                                    "format": "uri"
                                                },
                                                {
                                                    "type": "null"
                                                }
                                            ]
                                        }
                                    }
                                },
                                {
                                    "$ref": "#/components/schemas/WageRecord"
                                }
                            ]
                        }
                    },
                    "metro_areas": {
                        "type": "array",
                        "items": {
                            "allOf": [
                                {
                                    "type": "object",
                                    "properties": {
                                        "bls_area": {
                                            "type": "string"
                                        },
                                        "name": {
                                            "type": "string"
                                        },
                                        "usps": {
                                            "type": "string"
                                        },
                                        "page": {
                                            "oneOf": [
                                                {
                                                    "type": "string",
                                                    "format": "uri"
                                                },
                                                {
                                                    "type": "null"
                                                }
                                            ]
                                        }
                                    }
                                },
                                {
                                    "$ref": "#/components/schemas/WageRecord"
                                }
                            ]
                        }
                    }
                }
            },
            "Fact": {
                "type": "object",
                "required": [
                    "value",
                    "source_url",
                    "checked"
                ],
                "properties": {
                    "label": {
                        "type": "string"
                    },
                    "value": {
                        "description": "Text, number or yes/no as the source states it."
                    },
                    "source_url": {
                        "type": "string",
                        "format": "uri"
                    },
                    "source_title": {
                        "type": "string"
                    },
                    "source_kind": {
                        "type": "string"
                    },
                    "checked": {
                        "type": "string",
                        "format": "date"
                    },
                    "source_dated": {
                        "type": "string",
                        "format": "date"
                    },
                    "quote": {
                        "type": "string"
                    }
                }
            },
            "CnaRules": {
                "type": "object",
                "required": [
                    "meta",
                    "federal",
                    "states"
                ],
                "properties": {
                    "meta": {
                        "$ref": "#/components/schemas/Meta"
                    },
                    "federal": {
                        "type": "object",
                        "properties": {
                            "rule": {
                                "type": "string"
                            },
                            "citation": {
                                "type": "string",
                                "format": "uri"
                            },
                            "checked": {
                                "type": "string",
                                "format": "date"
                            },
                            "facts": {
                                "type": "object",
                                "additionalProperties": {
                                    "$ref": "#/components/schemas/Fact"
                                }
                            }
                        }
                    },
                    "states": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "required": [
                                "usps",
                                "name",
                                "checked",
                                "facts"
                            ],
                            "properties": {
                                "usps": {
                                    "type": "string"
                                },
                                "name": {
                                    "type": "string"
                                },
                                "page": {
                                    "oneOf": [
                                        {
                                            "type": "string",
                                            "format": "uri"
                                        },
                                        {
                                            "type": "null"
                                        }
                                    ]
                                },
                                "checked": {
                                    "type": "string",
                                    "format": "date"
                                },
                                "federal_minimum_applies": {
                                    "type": "boolean"
                                },
                                "facts": {
                                    "type": "object",
                                    "additionalProperties": {
                                        "$ref": "#/components/schemas/Fact"
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "CaliforniaPrograms": {
                "type": "object",
                "required": [
                    "meta",
                    "source",
                    "counties",
                    "locations",
                    "online_providers"
                ],
                "properties": {
                    "meta": {
                        "$ref": "#/components/schemas/Meta"
                    },
                    "source": {
                        "type": "object",
                        "properties": {
                            "publisher": {
                                "type": "string"
                            },
                            "landing_page": {
                                "type": "string",
                                "format": "uri"
                            },
                            "lists": {
                                "type": "array",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "list": {
                                            "type": "string"
                                        },
                                        "url": {
                                            "type": "string",
                                            "format": "uri"
                                        },
                                        "page_last_updated": {
                                            "type": "string",
                                            "format": "date"
                                        },
                                        "rows": {
                                            "type": "integer",
                                            "minimum": 0
                                        }
                                    }
                                }
                            },
                            "downloaded": {
                                "type": "string",
                                "format": "date"
                            },
                            "checked": {
                                "type": "string",
                                "format": "date"
                            },
                            "not_in_source": {
                                "type": "string"
                            }
                        }
                    },
                    "note": {
                        "type": "string"
                    },
                    "counties": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "name": {
                                    "type": "string"
                                },
                                "locations": {
                                    "type": "integer",
                                    "minimum": 0
                                },
                                "facility_based": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "description": "Locations of the facility-based CDPH list; 0 when the county has none (machine data, not shown as a zero on the pages)."
                                },
                                "online_providers_with_clinical_sites": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "description": "Online-theory providers whose clinical sites CDPH lists in this county; 0 when none."
                                },
                                "page": {
                                    "oneOf": [
                                        {
                                            "type": "string",
                                            "format": "uri"
                                        },
                                        {
                                            "type": "null"
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "locations": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "required": [
                                "name",
                                "address",
                                "city",
                                "county"
                            ],
                            "properties": {
                                "name": {
                                    "type": "string"
                                },
                                "address": {
                                    "type": "string"
                                },
                                "city": {
                                    "type": "string"
                                },
                                "county": {
                                    "type": "string"
                                },
                                "zip_codes": {
                                    "type": "array",
                                    "items": {
                                        "type": "string"
                                    }
                                },
                                "phones": {
                                    "type": "array",
                                    "items": {
                                        "type": "string"
                                    }
                                },
                                "facility_based": {
                                    "type": "boolean"
                                }
                            }
                        }
                    },
                    "online_providers": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "required": [
                                "name",
                                "clinical_counties"
                            ],
                            "properties": {
                                "name": {
                                    "type": "string"
                                },
                                "provider_type": {
                                    "type": "string"
                                },
                                "note": {
                                    "type": "string"
                                },
                                "website": {
                                    "type": "string",
                                    "format": "uri"
                                },
                                "phones": {
                                    "type": "array",
                                    "items": {
                                        "type": "string"
                                    }
                                },
                                "clinical_counties": {
                                    "type": "array",
                                    "items": {
                                        "type": "string"
                                    }
                                },
                                "clinical_cities": {
                                    "type": "array",
                                    "items": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
