{ "$schema": "http://json-schema.org/draft-04/schema#", "title": "AgreementPlanData", "definitions": { "AgreementPlan": { "allOf": [ { "$ref": "#/definitions/AgreementPlanBase" }, { "type": "object", "description": "Szczegóły planu umowy\nSchema: https://api.nfz.gov.pl/app-umw-api/schemas/#agreement-plan", "additionalProperties": false, "properties": { "attributes": { "description": "Atrybuty planu umowy", "oneOf": [ { "type": "null" }, { "$ref": "#/definitions/AgreementPlanAttributes" } ] } } } ] }, "AgreementPlanAttributes": { "allOf": [ { "$ref": "#/definitions/AgreementPlanAttributesBase" }, { "type": "object", "description": "Atrybuty planu umowy\nSchema: https://api.nfz.gov.pl/app-umw-api/schemas/#agreement-plan-attributes", "additionalProperties": false, "properties": { "date-from": { "type": [ "null", "string" ], "description": "Data początku obowiązywania produktu kontraktowego w planie umowy", "format": "date-time" }, "date-to": { "type": [ "null", "string" ], "description": "Data końca obowiązywania produktu kontraktowego w planie umowy", "format": "date-time" } } } ] }, "AgreementPlanAttributesBase": { "type": "object", "description": "Atrybuty planu umowy\nSchema: https://api.nfz.gov.pl/app-umw-api/schemas/#agreement-plan-attributes", "additionalProperties": false, "properties": { "product-code": { "type": [ "null", "string" ], "description": "Kod produktu kontraktowego" }, "product-name": { "type": [ "null", "string" ], "description": "Nazwa produktu kontraktowego" }, "order": { "type": "integer", "description": "Wyróżnik produktu w planie umowy", "format": "int32" }, "unit-count": { "type": "number", "description": "Sumaryczna liczba kontraktu dla produktu", "format": "decimal" }, "price": { "type": "number", "description": "Sumaryczna kwota kontraktu dla produktu ", "format": "decimal" }, "avg-price": { "type": "number", "description": "Średnia cena produktu ", "format": "decimal" } } }, "AgreementPlanBase": { "type": "object", "description": "Szczegóły planu umowy\nSchema: https://api.nfz.gov.pl/app-umw-api/schemas/#agreement-plan", "additionalProperties": false, "properties": { "id": { "type": "string", "description": "Identyfikator umowy", "format": "guid" }, "type": { "type": [ "null", "string" ], "description": "Typ obiektu" }, "attributes": { "description": "Atrybuty planu umowy", "oneOf": [ { "type": "null" }, { "$ref": "#/definitions/AgreementPlanAttributesBase" } ] }, "links": { "description": "Linki ", "oneOf": [ { "type": "null" }, { "$ref": "#/definitions/BaseLinks" } ] } } }, "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" } } }, "AgreementPlanDataBase": { "type": "object", "description": "Szczególy umowy\nSchema: https://api.nfz.gov.pl/app-umw-api/schemas/#agreement-plan-data", "additionalProperties": false, "properties": { "header": { "description": "Nagłówek odpowiedzi", "oneOf": [ { "type": "null" }, { "$ref": "#/definitions/AgreementPlanHeader" } ] }, "agreement-plan": { "description": "Umowa", "oneOf": [ { "type": "null" }, { "$ref": "#/definitions/AgreementPlanBase" } ] }, "months": { "type": [ "array", "null" ], "description": "Lista planów umowy", "items": { "$ref": "#/definitions/AgreementPlanMonth" } } } }, "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" } } } }, "allOf": [ { "$ref": "#/definitions/AgreementPlanDataBase" }, { "type": "object", "description": "Szczególy umowy\nSchema: https://api.nfz.gov.pl/app-umw-api/schemas/#agreement-plan-data", "additionalProperties": false, "properties": { "agreement-plan": { "description": "Umowa", "oneOf": [ { "type": "null" }, { "$ref": "#/definitions/AgreementPlan" } ] } } } ] }