{"type": "object", "$schema": "http://json-schema.org/draft-07/schema#", "required": ["id", "name", "code", "group", "beneficiaryType", "resources"], "x-unique": ["id"], "properties": {"id": {"type": "string"}, "code": {"type": "string"}, "name": {"type": "string"}, "type": {"type": "string"}, "group": {"type": "string"}, "cycles": {"type": "array", "items": {"type": "object", "required": ["mandatoryWaitSinceLastCycleInDays", "startDate", "endDate", "id", "deliveries"], "properties": {"id": {"type": "integer"}, "endDate": {"type": "integer"}, "startDate": {"type": "integer"}, "deliveries": {"type": "array", "items": {"type": "object", "required": ["id", "deliveryStrategy", "mandatoryWaitSinceLastDeliveryInDays", "doseCriteria"], "properties": {"id": {"type": "integer"}, "doseCriteria": {"type": "array", "items": {"type": "object", "required": ["condition", "ProductVariants"], "properties": {"condition": {"type": "string"}, "ProductVariants": {"type": "array", "items": {"type": "object", "required": ["productVariantId", "quantity"], "properties": {"quantity": {"type": "integer", "minimum": 0}, "productVariantId": {"type": "string"}}}}}}}, "deliveryStrategy": {"type": "string"}, "mandatoryWaitSinceLastDeliveryInDays": {"type": "integer", "minimum": 0}}}}, "mandatoryWaitSinceLastCycleInDays": {"type": "integer", "minimum": 0}}}}, "resources": {"type": "array", "items": {"type": "object", "required": ["productVariantId", "isBaseUnitVariant"], "properties": {"productVariantId": {"type": "string"}, "isBaseUnitVariant": {"type": "boolean"}}}}, "validMaxAge": {"type": "integer"}, "validMinAge": {"type": "integer"}, "taskProcedure": {"type": "array", "items": {"type": "string"}}, "beneficiaryType": {"type": "string"}, "eligibilityCriteria": {"type": "array", "items": {"type": "string"}}, "observationStrategy": {"type": "string"}}}