{ "$schema": "http://json-schema.org/draft-04/schema#", "title": "IndexOfTables", "type": "object", "description": "Obiekt reprezentujący indeks (listę) wszystkich dostępnych tabel statystycznych\nSchema: https://api.nfz.gov.pl/app-stat-api-jgp/schema/index-of-tables", "additionalProperties": false, "properties": { "type": { "type": [ "null", "string" ], "description": "Typ obiektu" }, "attributes": { "description": "Lista atrybutów ineksu tabel statystycznych", "oneOf": [ { "type": "null" }, { "$ref": "#/definitions/IndexAttributes" } ] } }, "definitions": { "IndexAttributes": { "type": "object", "description": "Szczegóły przedstawiające atrybuyty indeksu tabel statystycznych\nSchema: https://api.nfz.gov.pl/app-stat-api-jgp/schema/index-attributes", "additionalProperties": false, "properties": { "product-code": { "type": [ "null", "string" ], "description": "Kod produktu" }, "product-name": { "type": [ "null", "string" ], "description": "Nazwa produktu" }, "comment": { "type": [ "null", "string" ], "description": "Komentarz" }, "years": { "type": [ "array", "null" ], "description": "Agregat tabel statystycznych dla konkretnego roku", "items": { "$ref": "#/definitions/IndexYear" } } } }, "IndexYear": { "type": "object", "description": "Agregat tabel statystycznych dla konkretnego roku\nSchema: https://api.nfz.gov.pl/app-stat-api-jgp/schema/index-year", "additionalProperties": false, "properties": { "year": { "type": "integer", "description": "Rok zebranych danych statystycznych", "format": "int32" }, "tables": { "type": [ "array", "null" ], "description": "Lista dostępnych tabel statystycznych za cały rok", "items": { "$ref": "#/definitions/Table" } }, "periods": { "type": [ "array", "null" ], "description": "Okresy niepełnego roku dla którego występują tabele statystyczne", "items": { "$ref": "#/definitions/Period" } } } }, "Table": { "type": "object", "description": "Tabela statystyczna", "additionalProperties": false, "properties": { "id": { "type": "string", "description": "Unikalny identyfikator. Potrzebny w celu wyświetlenia tabeli poprzez wywołanie odpowiedniej metody", "format": "guid" }, "type": { "type": [ "null", "string" ], "description": "Typ obiektu" }, "attributes": { "description": "Lista atrybutów tabeli statystycznej", "oneOf": [ { "type": "null" }, { "$ref": "#/definitions/TableAttributes" } ] }, "links": { "description": "Linki do zasobów", "oneOf": [ { "type": "null" }, { "$ref": "#/definitions/BaseLinks" } ] } } }, "TableAttributes": { "type": "object", "description": "Szczegóły przedstawiające atrybuty tabeli statystycznej", "additionalProperties": false, "properties": { "header": { "type": [ "null", "string" ], "description": "Tytuł tabeli" }, "resource-name": { "type": [ "null", "string" ], "description": "Nazwa zasobu zawierającego szczegóły" }, "additional-infromation": { "description": "Dodatkowe informacje", "oneOf": [ { "type": "null" }, { "$ref": "#/definitions/AdditionalInfo" } ] } } }, "AdditionalInfo": { "type": "object", "description": "Dodatkowe informacje na temat tabeli statystycznej", "additionalProperties": false, "properties": { "divided-by-branches": { "type": "boolean", "description": "Znacznik określający czy tabela jest podzilona na Oddziały Wojewódzkie NFZ" }, "divided-by-hospital-types": { "type": "boolean", "description": "Znacznik określający czy tabela jest podzilona na typy szpitali" }, "divided-by-products": { "type": "boolean", "description": "Znacznik określający czy tabela jest podzilona na rodzaj produktu" } } }, "BaseLinks": { "type": "object", "description": "Podstawowe linki nawigujące", "additionalProperties": false, "properties": { "related": { "type": [ "null", "string" ], "description": "Link do zasobu powiązanego" } } }, "Period": { "type": "object", "description": "Okres dla którego dostępne są tabele statystyczne\nSchema: https://api.nfz.gov.pl/app-stat-api-jgp/schema/period", "additionalProperties": false, "properties": { "date-from": { "type": "string", "description": "Data początku okresu", "format": "date-time" }, "date-to": { "type": [ "null", "string" ], "description": "Data końca okresu", "format": "date-time" }, "tables": { "type": [ "array", "null" ], "description": "Lista dostępnych tabel statystycznych w okresie", "items": { "$ref": "#/definitions/Table" } } } } } }