{ "$schema": "http://json-schema.org/draft-04/schema#", "title": "AgreementPlanMonthData", "type": "object", "description": "Szczególy umowy\nSchema: https://api.nfz.gov.pl/app-umw-api/schemas/#agreement-plan-month-data", "additionalProperties": false, "properties": { "header": { "description": "Nagłówek odpowiedzi", "oneOf": [ { "type": "null" }, { "$ref": "#/definitions/AgreementMonthHeader" } ] }, "month": { "description": "Miesiąc w planie umowy", "oneOf": [ { "type": "null" }, { "$ref": "#/definitions/AgreementPlanMonth" } ] }, "packages": { "type": [ "array", "null" ], "description": "Lista pakietów w miesiącu umowy", "items": { "$ref": "#/definitions/AgreementPackage" } } }, "definitions": { "AgreementMonthHeader": { "allOf": [ { "$ref": "#/definitions/AgreementPlanHeader" }, { "type": "object", "description": "Nagłówek odpowiedzi planu umowy w rozbicu na miesiące\nSchema: https://api.nfz.gov.pl/app-umw-api/schemas/#agreement-month-header", "additionalProperties": false, "properties": { "order": { "type": [ "null", "string" ], "description": "Wyróżnik" }, "contract-product-code": { "type": [ "null", "string" ], "description": "Produkt kontraktowy" } } } ] }, "AgreementPlanHeader": { "allOf": [ { "$ref": "#/definitions/BaseHeader" }, { "type": "object", "description": "Nagłówek planu umowy\nSchema: https://api.nfz.gov.pl/app-umw-api/schemas/#agreement-plan-header", "additionalProperties": false, "properties": { "agreement-code": { "type": [ "null", "string" ], "description": "Kod umowy" }, "service-type-name": { "type": [ "null", "string" ], "description": "Nazwa rodzaju świadczenia" } } } ] }, "BaseHeader": { "type": "object", "description": "Podstawowe właściwości nagłówków", "x-abstract": true, "additionalProperties": false, "properties": { "year": { "type": "integer", "description": "Rok", "format": "int32" }, "branch": { "type": [ "null", "string" ], "description": "Oddział wojewódzki" }, "provider-code": { "type": [ "null", "string" ], "description": "Kod świadczeniodawcy" }, "provider-name": { "type": [ "null", "string" ], "description": "Nazwa świadczeniodawcy" } } }, "AgreementPlanMonth": { "type": "object", "description": "Szczegóły planu umowy w rozbiciu na miesiąc\nSchema: https://api.nfz.gov.pl/app-umw-api/schemas/#agreement-plan-month", "additionalProperties": false, "properties": { "id": { "type": "string", "description": "Identyfikator miesiąca", "format": "guid" }, "type": { "type": [ "null", "string" ], "description": "Typ obiektu" }, "attributes": { "description": "Atrybuty miesiąca", "oneOf": [ { "type": "null" }, { "$ref": "#/definitions/AgreementPlanMonthAttributes" } ] }, "links": { "description": "Linki ", "oneOf": [ { "type": "null" }, { "$ref": "#/definitions/BaseLinks" } ] } } }, "AgreementPlanMonthAttributes": { "type": "object", "description": "Atrybuty miesiąca w planie umowy\nSchema: https://api.nfz.gov.pl/app-umw-api/schemas/#agreement-plan-month-attributes", "additionalProperties": false, "properties": { "unit-count": { "type": "number", "description": "Sumaryczna liczba kontraktu dla produktu", "format": "decimal" }, "month": { "type": "integer", "description": "Miesiąc", "format": "int32" }, "price": { "type": "number", "description": "Sumaryczna kwota kontraktu dla produktu ", "format": "decimal" }, "avg-price": { "type": "number", "description": "Średnia cena produktu ", "format": "decimal" }, "packages-type": { "type": [ "null", "string" ], "description": "Typ pakietów" } } }, "BaseLinks": { "type": "object", "description": "Podstawowe linki nawigujące\nWięcej informacji: https://api.nfz.gov.pl/app-umw-api/#links", "additionalProperties": false, "properties": { "related": { "type": [ "null", "string" ], "description": "Link do zasobu powiązanego" } } }, "AgreementPackage": { "type": "object", "description": "Szczegóły pakietu umowy\nSchema: https://api.nfz.gov.pl/app-umw-api/schemas/#agreement-package", "additionalProperties": false, "properties": { "type": { "type": [ "null", "string" ], "description": "Typ obiektu" }, "attributes": { "description": "Atrybuty miesiąca", "oneOf": [ { "type": "null" }, { "$ref": "#/definitions/AgreementPackageAttributes" } ] } } }, "AgreementPackageAttributes": { "type": "object", "description": "Atrybuty pakietu umowy\nSchema: https://api.nfz.gov.pl/app-umw-api/schemas/#agreement-package-attributes", "additionalProperties": false, "properties": { "unit-product-code": { "type": [ "null", "string" ], "description": "Kod produktu kontraktowego" }, "unit-product-name": { "type": [ "null", "string" ], "description": "Nazwa produktu kontraktowego" }, "weight": { "type": "number", "description": "Waga efektywna", "format": "decimal" } } } } }