{ "$schema": "http://json-schema.org/draft-04/schema#", "title": "IcdDisease", "type": "object", "description": "Obiekt reprezentujący tabele statystyczną dotyczącą rozpoznań ICD\nSchema: https://api.nfz.gov.pl/app-stat-api-jgp/schema/icd-disease", "additionalProperties": false, "properties": { "id": { "type": "string", "description": "Unikalny identyfikator tabeli statystycznej", "format": "guid" }, "type": { "type": [ "null", "string" ], "description": "Typ obiektu" }, "attributes": { "description": "Lista atrybutów tabeli statystycznej", "oneOf": [ { "type": "null" }, { "$ref": "#/definitions/IcdDiseaseAttributes" } ] } }, "definitions": { "IcdDiseaseAttributes": { "type": "object", "description": "Szczegóły przedstawiające atrybuyty tabeli statystycznej\nSchema: https://api.nfz.gov.pl/app-stat-api-jgp/schema/icd-disease-attributes", "additionalProperties": false, "properties": { "year": { "type": "integer", "description": "Rok którego dotyczą dane", "format": "int32" }, "code": { "type": [ "null", "string" ], "description": "Kod świadczenia" }, "name": { "type": [ "null", "string" ], "description": "Nazwa świadczenia" }, "header": { "type": [ "null", "string" ], "description": "Tytuł tabeli statystycznej" }, "data": { "type": [ "array", "null" ], "description": "Dane statystyczne", "items": { "$ref": "#/definitions/Disease" } } } }, "Disease": { "type": "object", "description": "Dane statystyczne dotyczące rozpoznania ICD\nSchema: https://api.nfz.gov.pl/app-stat-api-jgp/schema/icd-disease", "additionalProperties": false, "properties": { "disease-code": { "type": [ "null", "string" ], "description": "Kod rozpoznania" }, "disease-name": { "type": [ "null", "string" ], "description": "Nazwa rozpoznania" }, "number-of-hospitalizations": { "type": "integer", "description": "Liczba hospitalizacji", "format": "int32" }, "percentage": { "type": "number", "description": "Udział hospitalizacji (%)", "format": "decimal" }, "duration-of-hospitalization-mediana": { "type": "integer", "description": "Mediana czasu pobytu", "format": "int32" } } } } }