{ "$schema": "http://json-schema.org/draft-04/schema#", "title": "Gender", "type": "object", "description": "Obiekt reprezentujący tabele statystyczną dotyczącą hospitalizacji w podziale na płeć pacjenta\nSchema: https://api.nfz.gov.pl/app-stat-api-jgp/schema/gender", "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/GenderAttributes" } ] } }, "definitions": { "GenderAttributes": { "type": "object", "description": "Szczegóły przedstawiające atrybuyty tabeli statystycznej\nSchema: https://api.nfz.gov.pl/app-stat-api-jgp/schema/gender-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/HospitalizationsByPatientGender" } } } }, "HospitalizationsByPatientGender": { "type": "object", "description": "Dane statystyczne dotyczące hospitalizacji w podziale na płeć pacjenta\nSchema: https://api.nfz.gov.pl/app-stat-api-jgp/schema/hospitalization-by-patient-gender", "additionalProperties": false, "properties": { "branch": { "type": [ "null", "string" ], "description": "Oddział wojewódzki - występuje tylko jeśli dane są rozbite na OW\n01: Dolnośląski\n02: Kujawsko-Pomorski\n03: Lubelski\n04: Lubuski\n05 - Łódzki\n06: Małopolski\n07: Mazowiecki\n08: Opolski\n09: Podkarpacki\n10: Podlaski\n11: Pomorski\n12: Śląski\n13: Świętokrzyski\n14: Warmińsko-mazurski\n15: Wielkopolski\n16: Zachodniopomorski" }, "hospital-types": { "type": [ "null", "string" ], "description": "Typ szpitala - występuje tylko jeśli dane są rozbite na OW\n1: gminny, powiatowy, miejski \n2: niepubliczny\n3: kliniczny\n4: wojewódzki\n5: inny" }, "gender-code": { "type": "integer", "description": "Kod płci\n0 płeć nieokreślona\n1: mężczyzna\n2: kobieta\n9: nieznana", "format": "int32" }, "gender-name": { "type": [ "null", "string" ], "description": "Nazwa płci" }, "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" } } } } }