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