{ "$schema": "http://json-schema.org/draft-04/schema#", "title": "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" } } }, "definitions": { "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" } } } } }