Regenerate client for CaCu exports and follow-up contracts

This commit is contained in:
Angel Capetillo Zavala
2026-11-30 16:01:58 -06:00
parent c5da898265
commit bc621f34f9
8 changed files with 309 additions and 1 deletions
+209 -1
View File
@@ -328,6 +328,88 @@
"title": "Correction",
"type": "object"
},
"Document": {
"properties": {
"columns": {
"items": {
"type": "string"
},
"maxItems": 12,
"minItems": 1,
"title": "Columns",
"type": "array"
},
"parameters": {
"items": {
"items": {
"type": "string"
},
"type": "array"
},
"maxItems": 30,
"title": "Parameters",
"type": "array"
},
"risk_scales": {
"items": {
"additionalProperties": true,
"type": "object"
},
"maxItems": 40,
"title": "Risk Scales",
"type": "array"
},
"row_stages": {
"items": {
"items": {
"additionalProperties": {
"type": "string"
},
"type": "object"
},
"type": "array"
},
"maxItems": 5000,
"title": "Row Stages",
"type": "array"
},
"rows": {
"items": {
"items": {
"type": "string"
},
"type": "array"
},
"maxItems": 5000,
"title": "Rows",
"type": "array"
},
"timeline": {
"items": {
"additionalProperties": {
"type": "string"
},
"type": "object"
},
"maxItems": 5,
"title": "Timeline",
"type": "array"
},
"title": {
"maxLength": 150,
"title": "Title",
"type": "string"
}
},
"required": [
"title",
"parameters",
"columns",
"rows"
],
"title": "Document",
"type": "object"
},
"Domain": {
"enum": [
"cacu",
@@ -2790,6 +2872,75 @@
]
}
},
"/cacu/exports/capabilities": {
"get": {
"operationId": "capabilities",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {}
}
},
"description": "Successful Response"
}
},
"summary": "Capabilities",
"tags": [
"exports"
]
}
},
"/cacu/exports/{kind}": {
"post": {
"operationId": "export",
"parameters": [
{
"in": "path",
"name": "kind",
"required": true,
"schema": {
"title": "Kind",
"type": "string"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Document"
}
}
},
"required": true
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {}
}
},
"description": "Successful Response"
},
"422": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
},
"description": "Validation Error"
}
},
"summary": "Export",
"tags": [
"exports"
]
}
},
"/domains": {
"get": {
"operationId": "domains",
@@ -5107,7 +5258,7 @@
},
"/{domain}/fhir/DiagnosticReport": {
"get": {
"description": "The domain's reports (each study of the catalog with a report), as known by the last\nday with data.",
"description": "The domain's reports (each study of the catalog with a report), as known by the last\nday with data (CaCu: or by `stage-cutoff`, for the stages of each sample's route).",
"operationId": "search_diagnostic_report",
"parameters": [
{
@@ -5136,6 +5287,23 @@
"title": "Subject"
}
},
{
"in": "query",
"name": "stage-cutoff",
"required": false,
"schema": {
"anyOf": [
{
"format": "date",
"type": "string"
},
{
"type": "null"
}
],
"title": "Stage-Cutoff"
}
},
{
"in": "query",
"name": "_count",
@@ -5727,6 +5895,46 @@
"title": "Identifier"
}
},
{
"description": "CaCu: completed years at the cut-off",
"in": "query",
"name": "follow-up-age-min",
"required": false,
"schema": {
"anyOf": [
{
"maximum": 150,
"minimum": 0,
"type": "integer"
},
{
"type": "null"
}
],
"description": "CaCu: completed years at the cut-off",
"title": "Follow-Up-Age-Min"
}
},
{
"description": "CaCu: completed years at the cut-off",
"in": "query",
"name": "follow-up-age-max",
"required": false,
"schema": {
"anyOf": [
{
"maximum": 150,
"minimum": 0,
"type": "integer"
},
{
"type": "null"
}
],
"description": "CaCu: completed years at the cut-off",
"title": "Follow-Up-Age-Max"
}
},
{
"description": "-recent or -risk-<outcome>",
"in": "query",