5617 lines
111 KiB
JSON
5617 lines
111 KiB
JSON
{
|
|
"components": {
|
|
"schemas": {
|
|
"Analysis": {
|
|
"properties": {
|
|
"age_months": {
|
|
"anyOf": [
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Age Months"
|
|
},
|
|
"id": {
|
|
"title": "Id",
|
|
"type": "string"
|
|
},
|
|
"level": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Level"
|
|
},
|
|
"metrics": {
|
|
"items": {
|
|
"$ref": "#/components/schemas/Metric"
|
|
},
|
|
"title": "Metrics",
|
|
"type": "array"
|
|
},
|
|
"valid": {
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Valid"
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"valid",
|
|
"level",
|
|
"age_months",
|
|
"metrics"
|
|
],
|
|
"title": "Analysis",
|
|
"type": "object"
|
|
},
|
|
"Answers": {
|
|
"properties": {
|
|
"answers": {
|
|
"additionalProperties": true,
|
|
"default": {},
|
|
"title": "Answers",
|
|
"type": "object"
|
|
},
|
|
"node": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Node"
|
|
},
|
|
"pipeline": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Pipeline"
|
|
},
|
|
"type": {
|
|
"title": "Type",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"type"
|
|
],
|
|
"title": "Answers",
|
|
"type": "object"
|
|
},
|
|
"Body_add_clinical_validation": {
|
|
"properties": {
|
|
"file": {
|
|
"contentMediaType": "application/octet-stream",
|
|
"title": "File",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"file"
|
|
],
|
|
"title": "Body_add_clinical_validation",
|
|
"type": "object"
|
|
},
|
|
"Body_upload": {
|
|
"properties": {
|
|
"files": {
|
|
"items": {
|
|
"contentMediaType": "application/octet-stream",
|
|
"type": "string"
|
|
},
|
|
"title": "Files",
|
|
"type": "array"
|
|
},
|
|
"folder": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Folder"
|
|
}
|
|
},
|
|
"required": [
|
|
"files"
|
|
],
|
|
"title": "Body_upload",
|
|
"type": "object"
|
|
},
|
|
"Browsed": {
|
|
"properties": {
|
|
"entries": {
|
|
"items": {
|
|
"$ref": "#/components/schemas/Entry"
|
|
},
|
|
"title": "Entries",
|
|
"type": "array"
|
|
},
|
|
"parent": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Parent"
|
|
},
|
|
"path": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Path"
|
|
}
|
|
},
|
|
"required": [
|
|
"path",
|
|
"parent",
|
|
"entries"
|
|
],
|
|
"title": "Browsed",
|
|
"type": "object"
|
|
},
|
|
"Catalog": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"formats": {
|
|
"items": {
|
|
"$ref": "#/components/schemas/Option"
|
|
},
|
|
"title": "Formats",
|
|
"type": "array"
|
|
},
|
|
"groups": {
|
|
"additionalProperties": {
|
|
"$ref": "#/components/schemas/Group"
|
|
},
|
|
"title": "Groups",
|
|
"type": "object"
|
|
},
|
|
"providers": {
|
|
"additionalProperties": {
|
|
"$ref": "#/components/schemas/Provider"
|
|
},
|
|
"title": "Providers",
|
|
"type": "object"
|
|
},
|
|
"types": {
|
|
"additionalProperties": {
|
|
"$ref": "#/components/schemas/SourceType"
|
|
},
|
|
"title": "Types",
|
|
"type": "object"
|
|
}
|
|
},
|
|
"required": [
|
|
"groups",
|
|
"providers",
|
|
"formats",
|
|
"types"
|
|
],
|
|
"title": "Catalog",
|
|
"type": "object"
|
|
},
|
|
"Condition": {
|
|
"properties": {
|
|
"column": {
|
|
"description": "Por ejemplo \u00abtext\u00bb, el texto le\u00eddo del documento.",
|
|
"title": "Columna",
|
|
"type": "string"
|
|
},
|
|
"op": {
|
|
"enum": [
|
|
"equals",
|
|
"contains",
|
|
"matches",
|
|
"present"
|
|
],
|
|
"title": "Condici\u00f3n",
|
|
"type": "string",
|
|
"widget": {
|
|
"formlyConfig": {
|
|
"props": {
|
|
"options": [
|
|
{
|
|
"label": "es igual a",
|
|
"value": "equals"
|
|
},
|
|
{
|
|
"label": "contiene",
|
|
"value": "contains"
|
|
},
|
|
{
|
|
"label": "coincide con la expresi\u00f3n",
|
|
"value": "matches"
|
|
},
|
|
{
|
|
"label": "tiene alg\u00fan valor",
|
|
"value": "present"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"default": "",
|
|
"description": "Lo que se busca; por ejemplo \u00abcitolog\u00eda\u00bb.",
|
|
"title": "Valor",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"column",
|
|
"op"
|
|
],
|
|
"title": "Condition",
|
|
"type": "object"
|
|
},
|
|
"Correction": {
|
|
"description": "One field of one record as a reviewer read it in the source document: an identity\nfield (a mistyped record number) or a study's (a stage the scan made unreadable).",
|
|
"properties": {
|
|
"entity": {
|
|
"default": "identity",
|
|
"enum": [
|
|
"identity",
|
|
"cervical_cytology",
|
|
"cervical_biopsy",
|
|
"mammography",
|
|
"breast_biopsy",
|
|
"breast_treatment",
|
|
"clinical_note",
|
|
"death",
|
|
"mchat",
|
|
"ados2",
|
|
"eeg"
|
|
],
|
|
"title": "Entity",
|
|
"type": "string"
|
|
},
|
|
"field": {
|
|
"title": "Field",
|
|
"type": "string"
|
|
},
|
|
"record": {
|
|
"title": "Record",
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"title": "Value",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"record",
|
|
"field",
|
|
"value"
|
|
],
|
|
"title": "Correction",
|
|
"type": "object"
|
|
},
|
|
"Domain": {
|
|
"enum": [
|
|
"cacu",
|
|
"cama",
|
|
"tea"
|
|
],
|
|
"title": "Domain",
|
|
"type": "string"
|
|
},
|
|
"Entry": {
|
|
"properties": {
|
|
"kind": {
|
|
"enum": [
|
|
"folder",
|
|
"file"
|
|
],
|
|
"title": "Kind",
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"title": "Name",
|
|
"type": "string"
|
|
},
|
|
"path": {
|
|
"title": "Path",
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"anyOf": [
|
|
{
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Size"
|
|
}
|
|
},
|
|
"required": [
|
|
"name",
|
|
"path",
|
|
"kind"
|
|
],
|
|
"title": "Entry",
|
|
"type": "object"
|
|
},
|
|
"ErrorModel": {
|
|
"properties": {
|
|
"detail": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
},
|
|
"type": "object"
|
|
}
|
|
],
|
|
"title": "Detail"
|
|
}
|
|
},
|
|
"required": [
|
|
"detail"
|
|
],
|
|
"title": "ErrorModel",
|
|
"type": "object"
|
|
},
|
|
"Extract": {
|
|
"additionalProperties": false,
|
|
"description": "Platform fields read from text, each kept with the text it was read from.\n\n`auto` asks the LLM when one is configured and answering, else applies `patterns`;\nwith neither, the row is held. Patterns are regexes with one group, per field (the\nLLM can propose them from sample documents); their values go through the ConceptMap\nand `formats` as in `map`.",
|
|
"properties": {
|
|
"column": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"type": "array"
|
|
}
|
|
],
|
|
"title": "Columna con el texto"
|
|
},
|
|
"columns": {
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
},
|
|
"default": {},
|
|
"description": "Dato \u2192 columna, sin leer el texto.",
|
|
"title": "Datos tomados de columnas",
|
|
"type": "object"
|
|
},
|
|
"concept_map": {
|
|
"anyOf": [
|
|
{
|
|
"maxLength": 40,
|
|
"pattern": "^[a-z][a-z0-9_]*$",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Equivalencias de c\u00f3digos"
|
|
},
|
|
"entity": {
|
|
"description": "Qu\u00e9 estudio se saca del documento.",
|
|
"enum": [
|
|
"identity",
|
|
"cervical_cytology",
|
|
"cervical_biopsy",
|
|
"mammography",
|
|
"breast_biopsy",
|
|
"breast_treatment",
|
|
"clinical_note",
|
|
"death",
|
|
"mchat",
|
|
"ados2",
|
|
"eeg"
|
|
],
|
|
"title": "Estudio",
|
|
"type": "string"
|
|
},
|
|
"formats": {
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
},
|
|
"default": {},
|
|
"title": "Formatos de fecha",
|
|
"type": "object"
|
|
},
|
|
"hints": {
|
|
"default": "",
|
|
"description": "Para el modelo de lenguaje.",
|
|
"title": "Indicaciones",
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"maxLength": 40,
|
|
"pattern": "^[a-z][a-z0-9_]*$",
|
|
"title": "Id",
|
|
"type": "string"
|
|
},
|
|
"inputs": {
|
|
"default": [],
|
|
"items": {
|
|
"maxLength": 40,
|
|
"pattern": "^[a-z][a-z0-9_]*$",
|
|
"type": "string"
|
|
},
|
|
"title": "Inputs",
|
|
"type": "array"
|
|
},
|
|
"kind": {
|
|
"const": "extract",
|
|
"default": "extract",
|
|
"title": "Kind",
|
|
"type": "string"
|
|
},
|
|
"label": {
|
|
"default": "",
|
|
"description": "C\u00f3mo se ve en el diagrama.",
|
|
"title": "Nombre",
|
|
"type": "string"
|
|
},
|
|
"method": {
|
|
"default": "auto",
|
|
"enum": [
|
|
"auto",
|
|
"llm",
|
|
"patterns"
|
|
],
|
|
"title": "C\u00f3mo leer",
|
|
"type": "string",
|
|
"widget": {
|
|
"formlyConfig": {
|
|
"props": {
|
|
"options": [
|
|
{
|
|
"label": "Autom\u00e1tico",
|
|
"value": "auto"
|
|
},
|
|
{
|
|
"label": "Con el modelo de lenguaje",
|
|
"value": "llm"
|
|
},
|
|
{
|
|
"label": "Con patrones",
|
|
"value": "patterns"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"patterns": {
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
},
|
|
"default": {},
|
|
"description": "Dato \u2192 expresi\u00f3n con un grupo ( ).",
|
|
"title": "Patrones",
|
|
"type": "object"
|
|
},
|
|
"position": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/components/schemas/Position"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"column",
|
|
"entity"
|
|
],
|
|
"title": "Extract",
|
|
"type": "object"
|
|
},
|
|
"Fhir": {
|
|
"additionalProperties": false,
|
|
"description": "FHIR R4 Bundles a standard hospital sent (a column of their JSON) as rows of one\nentity: identity, death or a study (core.fhir_in). The sender's own codes go through\nits ConceptMap.",
|
|
"properties": {
|
|
"column": {
|
|
"default": "doc",
|
|
"title": "Columna con el FHIR",
|
|
"type": "string"
|
|
},
|
|
"concept_map": {
|
|
"anyOf": [
|
|
{
|
|
"maxLength": 40,
|
|
"pattern": "^[a-z][a-z0-9_]*$",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Equivalencias de c\u00f3digos"
|
|
},
|
|
"entity": {
|
|
"enum": [
|
|
"identity",
|
|
"cervical_cytology",
|
|
"cervical_biopsy",
|
|
"mammography",
|
|
"breast_biopsy",
|
|
"breast_treatment",
|
|
"clinical_note",
|
|
"death",
|
|
"mchat",
|
|
"ados2",
|
|
"eeg"
|
|
],
|
|
"title": "Estudio",
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"maxLength": 40,
|
|
"pattern": "^[a-z][a-z0-9_]*$",
|
|
"title": "Id",
|
|
"type": "string"
|
|
},
|
|
"inputs": {
|
|
"default": [],
|
|
"items": {
|
|
"maxLength": 40,
|
|
"pattern": "^[a-z][a-z0-9_]*$",
|
|
"type": "string"
|
|
},
|
|
"title": "Inputs",
|
|
"type": "array"
|
|
},
|
|
"kind": {
|
|
"const": "fhir",
|
|
"default": "fhir",
|
|
"title": "Kind",
|
|
"type": "string"
|
|
},
|
|
"label": {
|
|
"default": "",
|
|
"description": "C\u00f3mo se ve en el diagrama.",
|
|
"title": "Nombre",
|
|
"type": "string"
|
|
},
|
|
"position": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/components/schemas/Position"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"entity"
|
|
],
|
|
"title": "Fhir",
|
|
"type": "object"
|
|
},
|
|
"FieldSpec": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"advanced": {
|
|
"default": false,
|
|
"title": "Advanced",
|
|
"type": "boolean"
|
|
},
|
|
"default": {
|
|
"title": "Default"
|
|
},
|
|
"help": {
|
|
"default": "",
|
|
"title": "Help",
|
|
"type": "string"
|
|
},
|
|
"label": {
|
|
"title": "Label",
|
|
"type": "string"
|
|
},
|
|
"options": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/components/schemas/Option"
|
|
},
|
|
"title": "Options",
|
|
"type": "array"
|
|
},
|
|
"placeholder": {
|
|
"default": "",
|
|
"title": "Placeholder",
|
|
"type": "string"
|
|
},
|
|
"provider": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Provider"
|
|
},
|
|
"required": {
|
|
"default": true,
|
|
"title": "Required",
|
|
"type": "boolean"
|
|
},
|
|
"type": {
|
|
"default": "text",
|
|
"enum": [
|
|
"text",
|
|
"number",
|
|
"password",
|
|
"select",
|
|
"folder",
|
|
"server_file",
|
|
"upload",
|
|
"url",
|
|
"oauth",
|
|
"table",
|
|
"format"
|
|
],
|
|
"title": "Type",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"label"
|
|
],
|
|
"title": "FieldSpec",
|
|
"type": "object"
|
|
},
|
|
"Group": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"description": {
|
|
"title": "Description",
|
|
"type": "string"
|
|
},
|
|
"title": {
|
|
"title": "Title",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"title",
|
|
"description"
|
|
],
|
|
"title": "Group",
|
|
"type": "object"
|
|
},
|
|
"Guided": {
|
|
"additionalProperties": false,
|
|
"description": "How the Conectar dialog drew a source: its type (core.sources) and the answers given.\nThe node's dlt fields are made from them; drawn by hand (\"Avanzado\"), a node has none.",
|
|
"properties": {
|
|
"answers": {
|
|
"additionalProperties": true,
|
|
"default": {},
|
|
"title": "Answers",
|
|
"type": "object"
|
|
},
|
|
"type": {
|
|
"title": "Type",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"type"
|
|
],
|
|
"title": "Guided",
|
|
"type": "object"
|
|
},
|
|
"HTTPValidationError": {
|
|
"properties": {
|
|
"detail": {
|
|
"items": {
|
|
"$ref": "#/components/schemas/ValidationError"
|
|
},
|
|
"title": "Detail",
|
|
"type": "array"
|
|
}
|
|
},
|
|
"title": "HTTPValidationError",
|
|
"type": "object"
|
|
},
|
|
"Join": {
|
|
"additionalProperties": false,
|
|
"description": "Two inputs side by side where their columns match.",
|
|
"properties": {
|
|
"how": {
|
|
"default": "inner",
|
|
"enum": [
|
|
"inner",
|
|
"left"
|
|
],
|
|
"title": "Cu\u00e1les quedan",
|
|
"type": "string",
|
|
"widget": {
|
|
"formlyConfig": {
|
|
"props": {
|
|
"options": [
|
|
{
|
|
"label": "Solo las que tienen pareja",
|
|
"value": "inner"
|
|
},
|
|
{
|
|
"label": "Todas las de la izquierda",
|
|
"value": "left"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": {
|
|
"maxLength": 40,
|
|
"pattern": "^[a-z][a-z0-9_]*$",
|
|
"title": "Id",
|
|
"type": "string"
|
|
},
|
|
"inputs": {
|
|
"default": [],
|
|
"items": {
|
|
"maxLength": 40,
|
|
"pattern": "^[a-z][a-z0-9_]*$",
|
|
"type": "string"
|
|
},
|
|
"title": "Inputs",
|
|
"type": "array"
|
|
},
|
|
"kind": {
|
|
"const": "join",
|
|
"default": "join",
|
|
"title": "Kind",
|
|
"type": "string"
|
|
},
|
|
"label": {
|
|
"default": "",
|
|
"description": "C\u00f3mo se ve en el diagrama.",
|
|
"title": "Nombre",
|
|
"type": "string"
|
|
},
|
|
"on": {
|
|
"description": "Pares [columna izquierda, derecha].",
|
|
"items": {
|
|
"maxItems": 2,
|
|
"minItems": 2,
|
|
"prefixItems": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"type": "array"
|
|
},
|
|
"title": "Columnas iguales",
|
|
"type": "array"
|
|
},
|
|
"position": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/components/schemas/Position"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"on"
|
|
],
|
|
"title": "Join",
|
|
"type": "object"
|
|
},
|
|
"Link": {
|
|
"additionalProperties": false,
|
|
"description": "Identity rows from every input, grouped into persons (Splink).\n\nTwo records are the same person when any rule holds (Splink's SQL rule syntax, `l.`\nand `r.` for the two records); persons are the connected groups. A person whose\nrecords disagree on birth date or sex is held for review as a whole. Pairs Splink\nscores above `review` that ended up apart are queued as possible matches.",
|
|
"properties": {
|
|
"fields": {
|
|
"default": [
|
|
"record_number",
|
|
"full_name",
|
|
"curp",
|
|
"nss",
|
|
"birth_date",
|
|
"sex"
|
|
],
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"title": "Datos que comparar",
|
|
"type": "array"
|
|
},
|
|
"id": {
|
|
"maxLength": 40,
|
|
"pattern": "^[a-z][a-z0-9_]*$",
|
|
"title": "Id",
|
|
"type": "string"
|
|
},
|
|
"inputs": {
|
|
"default": [],
|
|
"items": {
|
|
"maxLength": 40,
|
|
"pattern": "^[a-z][a-z0-9_]*$",
|
|
"type": "string"
|
|
},
|
|
"title": "Inputs",
|
|
"type": "array"
|
|
},
|
|
"kind": {
|
|
"const": "link",
|
|
"default": "link",
|
|
"title": "Kind",
|
|
"type": "string"
|
|
},
|
|
"label": {
|
|
"default": "",
|
|
"description": "C\u00f3mo se ve en el diagrama.",
|
|
"title": "Nombre",
|
|
"type": "string"
|
|
},
|
|
"position": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/components/schemas/Position"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"review": {
|
|
"default": 0.5,
|
|
"description": "Parecidos por encima de esto los ve un revisor.",
|
|
"exclusiveMinimum": 0.0,
|
|
"maximum": 1.0,
|
|
"title": "Umbral para revisar",
|
|
"type": "number"
|
|
},
|
|
"rules": {
|
|
"default": [],
|
|
"description": "Vac\u00edo: las de siempre (mismo identificador, o misma fecha de nacimiento y nombre).",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"title": "Reglas",
|
|
"type": "array"
|
|
}
|
|
},
|
|
"required": [
|
|
"id"
|
|
],
|
|
"title": "Link",
|
|
"type": "object"
|
|
},
|
|
"Listing": {
|
|
"additionalProperties": false,
|
|
"description": "What \"Probar conexi\u00f3n\" shows: a database's tables (the resources of `source`, built\nfrom `args`), or the first rows the type's own node reads (files, records).",
|
|
"properties": {
|
|
"args": {
|
|
"additionalProperties": true,
|
|
"default": {},
|
|
"title": "Args",
|
|
"type": "object"
|
|
},
|
|
"kind": {
|
|
"enum": [
|
|
"tables",
|
|
"rows"
|
|
],
|
|
"title": "Kind",
|
|
"type": "string"
|
|
},
|
|
"source": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Source"
|
|
}
|
|
},
|
|
"required": [
|
|
"kind"
|
|
],
|
|
"title": "Listing",
|
|
"type": "object"
|
|
},
|
|
"Map": {
|
|
"additionalProperties": false,
|
|
"description": "Columns to platform fields, the site's codes translated by its ConceptMap\n(core.concept_map), and its date formats.",
|
|
"properties": {
|
|
"concept_map": {
|
|
"anyOf": [
|
|
{
|
|
"maxLength": 40,
|
|
"pattern": "^[a-z][a-z0-9_]*$",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"description": "La tabla de c\u00f3digos del sitio.",
|
|
"title": "Equivalencias de c\u00f3digos"
|
|
},
|
|
"fields": {
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
},
|
|
"description": "Dato de la plataforma \u2192 columna del sitio.",
|
|
"title": "Campos",
|
|
"type": "object"
|
|
},
|
|
"formats": {
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
},
|
|
"default": {},
|
|
"description": "Por ejemplo %d/%m/%Y.",
|
|
"title": "Formatos de fecha",
|
|
"type": "object"
|
|
},
|
|
"id": {
|
|
"maxLength": 40,
|
|
"pattern": "^[a-z][a-z0-9_]*$",
|
|
"title": "Id",
|
|
"type": "string"
|
|
},
|
|
"inputs": {
|
|
"default": [],
|
|
"items": {
|
|
"maxLength": 40,
|
|
"pattern": "^[a-z][a-z0-9_]*$",
|
|
"type": "string"
|
|
},
|
|
"title": "Inputs",
|
|
"type": "array"
|
|
},
|
|
"kind": {
|
|
"const": "map",
|
|
"default": "map",
|
|
"title": "Kind",
|
|
"type": "string"
|
|
},
|
|
"label": {
|
|
"default": "",
|
|
"description": "C\u00f3mo se ve en el diagrama.",
|
|
"title": "Nombre",
|
|
"type": "string"
|
|
},
|
|
"position": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/components/schemas/Position"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"values": {
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
},
|
|
"default": {},
|
|
"description": "Un dato igual para todas las filas.",
|
|
"title": "Valores fijos",
|
|
"type": "object"
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"fields"
|
|
],
|
|
"title": "Map",
|
|
"type": "object"
|
|
},
|
|
"Metric": {
|
|
"properties": {
|
|
"code": {
|
|
"title": "Code",
|
|
"type": "string"
|
|
},
|
|
"model": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Model"
|
|
},
|
|
"outside": {
|
|
"anyOf": [
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Outside"
|
|
},
|
|
"value": {
|
|
"title": "Value",
|
|
"type": "number"
|
|
},
|
|
"z": {
|
|
"anyOf": [
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Z"
|
|
}
|
|
},
|
|
"required": [
|
|
"code",
|
|
"value",
|
|
"z",
|
|
"outside",
|
|
"model"
|
|
],
|
|
"title": "Metric",
|
|
"type": "object"
|
|
},
|
|
"Option": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"label": {
|
|
"title": "Label",
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"title": "Value"
|
|
}
|
|
},
|
|
"required": [
|
|
"value",
|
|
"label"
|
|
],
|
|
"title": "Option",
|
|
"type": "object"
|
|
},
|
|
"PersonDecision": {
|
|
"properties": {
|
|
"candidate": {
|
|
"title": "Candidate",
|
|
"type": "string"
|
|
},
|
|
"person": {
|
|
"title": "Person",
|
|
"type": "string"
|
|
},
|
|
"same": {
|
|
"title": "Same",
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"required": [
|
|
"person",
|
|
"candidate",
|
|
"same"
|
|
],
|
|
"title": "PersonDecision",
|
|
"type": "object"
|
|
},
|
|
"Pipeline": {
|
|
"properties": {
|
|
"nodes": {
|
|
"items": {
|
|
"discriminator": {
|
|
"mapping": {
|
|
"extract": "#/components/schemas/Extract",
|
|
"fhir": "#/components/schemas/Fhir",
|
|
"join": "#/components/schemas/Join",
|
|
"link": "#/components/schemas/Link",
|
|
"map": "#/components/schemas/Map",
|
|
"read": "#/components/schemas/Read",
|
|
"route": "#/components/schemas/Route",
|
|
"source": "#/components/schemas/Source",
|
|
"target": "#/components/schemas/Target"
|
|
},
|
|
"propertyName": "kind"
|
|
},
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/components/schemas/Source"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/Read"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/Route"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/Map"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/Extract"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/Fhir"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/Join"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/Link"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/Target"
|
|
}
|
|
]
|
|
},
|
|
"title": "Nodes",
|
|
"type": "array"
|
|
}
|
|
},
|
|
"required": [
|
|
"nodes"
|
|
],
|
|
"title": "Pipeline",
|
|
"type": "object"
|
|
},
|
|
"Position": {
|
|
"properties": {
|
|
"x": {
|
|
"title": "X",
|
|
"type": "number"
|
|
},
|
|
"y": {
|
|
"title": "Y",
|
|
"type": "number"
|
|
}
|
|
},
|
|
"required": [
|
|
"x",
|
|
"y"
|
|
],
|
|
"title": "Position",
|
|
"type": "object"
|
|
},
|
|
"Provider": {
|
|
"additionalProperties": false,
|
|
"description": "A sign-in button's OAuth 2.0 provider (authorization code flow).",
|
|
"properties": {
|
|
"authorize_params": {
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
},
|
|
"default": {},
|
|
"title": "Authorize Params",
|
|
"type": "object"
|
|
},
|
|
"authorize_url": {
|
|
"title": "Authorize Url",
|
|
"type": "string"
|
|
},
|
|
"env": {
|
|
"title": "Env",
|
|
"type": "string"
|
|
},
|
|
"scope": {
|
|
"title": "Scope",
|
|
"type": "string"
|
|
},
|
|
"title": {
|
|
"title": "Title",
|
|
"type": "string"
|
|
},
|
|
"token_url": {
|
|
"title": "Token Url",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"title",
|
|
"env",
|
|
"authorize_url",
|
|
"token_url",
|
|
"scope"
|
|
],
|
|
"title": "Provider",
|
|
"type": "object"
|
|
},
|
|
"Read": {
|
|
"additionalProperties": false,
|
|
"description": "Files in a column (PDF, Word, Excel, scans...) to text (MarkItDown, OCRmyPDF).",
|
|
"properties": {
|
|
"column": {
|
|
"description": "Donde la entrada trae cada documento.",
|
|
"title": "Columna con los archivos",
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"maxLength": 40,
|
|
"pattern": "^[a-z][a-z0-9_]*$",
|
|
"title": "Id",
|
|
"type": "string"
|
|
},
|
|
"inputs": {
|
|
"default": [],
|
|
"items": {
|
|
"maxLength": 40,
|
|
"pattern": "^[a-z][a-z0-9_]*$",
|
|
"type": "string"
|
|
},
|
|
"title": "Inputs",
|
|
"type": "array"
|
|
},
|
|
"kind": {
|
|
"const": "read",
|
|
"default": "read",
|
|
"title": "Kind",
|
|
"type": "string"
|
|
},
|
|
"label": {
|
|
"default": "",
|
|
"description": "C\u00f3mo se ve en el diagrama.",
|
|
"title": "Nombre",
|
|
"type": "string"
|
|
},
|
|
"position": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/components/schemas/Position"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"column"
|
|
],
|
|
"title": "Read",
|
|
"type": "object"
|
|
},
|
|
"Rejection": {
|
|
"properties": {
|
|
"entity": {
|
|
"enum": [
|
|
"identity",
|
|
"cervical_cytology",
|
|
"cervical_biopsy",
|
|
"mammography",
|
|
"breast_biopsy",
|
|
"breast_treatment",
|
|
"clinical_note",
|
|
"death",
|
|
"mchat",
|
|
"ados2",
|
|
"eeg"
|
|
],
|
|
"title": "Entity",
|
|
"type": "string"
|
|
},
|
|
"reason": {
|
|
"title": "Reason",
|
|
"type": "string"
|
|
},
|
|
"record": {
|
|
"title": "Record",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"entity",
|
|
"record",
|
|
"reason"
|
|
],
|
|
"title": "Rejection",
|
|
"type": "object"
|
|
},
|
|
"Route": {
|
|
"additionalProperties": false,
|
|
"description": "Only the rows where every condition holds (e.g. reports titled \"Citolog\u00eda\"). An\n`otherwise` route takes the rows of its input that none of the other routes on that\ninput take (documents nobody recognises, for a reviewer), then its own conditions.",
|
|
"properties": {
|
|
"id": {
|
|
"maxLength": 40,
|
|
"pattern": "^[a-z][a-z0-9_]*$",
|
|
"title": "Id",
|
|
"type": "string"
|
|
},
|
|
"inputs": {
|
|
"default": [],
|
|
"items": {
|
|
"maxLength": 40,
|
|
"pattern": "^[a-z][a-z0-9_]*$",
|
|
"type": "string"
|
|
},
|
|
"title": "Inputs",
|
|
"type": "array"
|
|
},
|
|
"kind": {
|
|
"const": "route",
|
|
"default": "route",
|
|
"title": "Kind",
|
|
"type": "string"
|
|
},
|
|
"label": {
|
|
"default": "",
|
|
"description": "C\u00f3mo se ve en el diagrama.",
|
|
"title": "Nombre",
|
|
"type": "string"
|
|
},
|
|
"otherwise": {
|
|
"default": false,
|
|
"description": "Recoge lo que nadie reconoce, para revisarlo.",
|
|
"title": "Lo que ning\u00fan otro tome",
|
|
"type": "boolean"
|
|
},
|
|
"position": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/components/schemas/Position"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"when": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/components/schemas/Condition"
|
|
},
|
|
"title": "Pasan las filas donde",
|
|
"type": "array"
|
|
}
|
|
},
|
|
"required": [
|
|
"id"
|
|
],
|
|
"title": "Route",
|
|
"type": "object"
|
|
},
|
|
"RunRequest": {
|
|
"properties": {
|
|
"version": {
|
|
"anyOf": [
|
|
{
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Version"
|
|
}
|
|
},
|
|
"title": "RunRequest",
|
|
"type": "object"
|
|
},
|
|
"SavedPipeline": {
|
|
"properties": {
|
|
"pipeline": {
|
|
"$ref": "#/components/schemas/Pipeline"
|
|
},
|
|
"version": {
|
|
"title": "Version",
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"version",
|
|
"pipeline"
|
|
],
|
|
"title": "SavedPipeline",
|
|
"type": "object"
|
|
},
|
|
"SignIn": {
|
|
"properties": {
|
|
"state": {
|
|
"title": "State",
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"title": "Url",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"url",
|
|
"state"
|
|
],
|
|
"title": "SignIn",
|
|
"type": "object"
|
|
},
|
|
"Source": {
|
|
"additionalProperties": false,
|
|
"description": "One table, file set or API resource, copied as it is (dlt). Merged on the source's\nown primary key or `primary_key`; replaced whole when it has none.",
|
|
"properties": {
|
|
"args": {
|
|
"additionalProperties": true,
|
|
"default": {},
|
|
"description": "Los de la fuente dlt.",
|
|
"title": "Argumentos (JSON)",
|
|
"type": "object"
|
|
},
|
|
"guided": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/components/schemas/Guided"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"id": {
|
|
"maxLength": 40,
|
|
"pattern": "^[a-z][a-z0-9_]*$",
|
|
"title": "Id",
|
|
"type": "string"
|
|
},
|
|
"inputs": {
|
|
"default": [],
|
|
"items": {
|
|
"maxLength": 40,
|
|
"pattern": "^[a-z][a-z0-9_]*$",
|
|
"type": "string"
|
|
},
|
|
"title": "Inputs",
|
|
"type": "array"
|
|
},
|
|
"kind": {
|
|
"const": "source",
|
|
"default": "source",
|
|
"title": "Kind",
|
|
"type": "string"
|
|
},
|
|
"label": {
|
|
"default": "",
|
|
"description": "C\u00f3mo se ve en el diagrama.",
|
|
"title": "Nombre",
|
|
"type": "string"
|
|
},
|
|
"position": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/components/schemas/Position"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"primary_key": {
|
|
"default": [],
|
|
"description": "Columnas que identifican una fila.",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"title": "Llave",
|
|
"type": "array"
|
|
},
|
|
"resource": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"description": "Cu\u00e1l, si la fuente ofrece varios (una tabla).",
|
|
"title": "Recurso"
|
|
},
|
|
"source": {
|
|
"description": "M\u00f3dulo:funci\u00f3n de la fuente dlt.",
|
|
"pattern": "^[A-Za-z_][\\w.]*:[A-Za-z_]\\w*$",
|
|
"title": "Fuente dlt",
|
|
"type": "string"
|
|
},
|
|
"then": {
|
|
"anyOf": [
|
|
{
|
|
"pattern": "^[A-Za-z_][\\w.]*:[A-Za-z_]\\w*$",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"description": "Transformador dlt para los archivos.",
|
|
"title": "Lector"
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"source"
|
|
],
|
|
"title": "Source",
|
|
"type": "object"
|
|
},
|
|
"SourceRef": {
|
|
"properties": {
|
|
"args": {
|
|
"additionalProperties": true,
|
|
"default": {},
|
|
"title": "Args",
|
|
"type": "object"
|
|
},
|
|
"source": {
|
|
"pattern": "^[A-Za-z_][\\w.]*:[A-Za-z_]\\w*$",
|
|
"title": "Source",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"source"
|
|
],
|
|
"title": "SourceRef",
|
|
"type": "object"
|
|
},
|
|
"SourceType": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"args": {
|
|
"additionalProperties": true,
|
|
"default": {},
|
|
"title": "Args",
|
|
"type": "object"
|
|
},
|
|
"description": {
|
|
"title": "Description",
|
|
"type": "string"
|
|
},
|
|
"fields": {
|
|
"additionalProperties": {
|
|
"$ref": "#/components/schemas/FieldSpec"
|
|
},
|
|
"title": "Fields",
|
|
"type": "object"
|
|
},
|
|
"group": {
|
|
"title": "Group",
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"title": "Icon",
|
|
"type": "string"
|
|
},
|
|
"listing": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/components/schemas/Listing"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"primary_key": {
|
|
"default": [],
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"title": "Primary Key",
|
|
"type": "array"
|
|
},
|
|
"resource": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Resource"
|
|
},
|
|
"source": {
|
|
"title": "Source",
|
|
"type": "string"
|
|
},
|
|
"then": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Then"
|
|
},
|
|
"title": {
|
|
"title": "Title",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"group",
|
|
"title",
|
|
"description",
|
|
"icon",
|
|
"fields",
|
|
"source"
|
|
],
|
|
"title": "SourceType",
|
|
"type": "object"
|
|
},
|
|
"Study": {
|
|
"properties": {
|
|
"analysed": {
|
|
"title": "Analysed",
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"title": "Id",
|
|
"type": "string"
|
|
},
|
|
"lab_record_id": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Lab Record Id"
|
|
},
|
|
"level": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Level"
|
|
},
|
|
"person_id": {
|
|
"title": "Person Id",
|
|
"type": "string"
|
|
},
|
|
"study_date": {
|
|
"title": "Study Date",
|
|
"type": "string"
|
|
},
|
|
"valid": {
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Valid"
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"person_id",
|
|
"study_date",
|
|
"lab_record_id",
|
|
"analysed",
|
|
"valid",
|
|
"level"
|
|
],
|
|
"title": "Study",
|
|
"type": "object"
|
|
},
|
|
"Target": {
|
|
"additionalProperties": false,
|
|
"description": "Rows of platform fields into one platform entity, each row given its person by the\none `link` node among the inputs. Rule breaks are held for review.",
|
|
"properties": {
|
|
"entity": {
|
|
"description": "En qu\u00e9 estudio de la plataforma se guarda.",
|
|
"enum": [
|
|
"identity",
|
|
"cervical_cytology",
|
|
"cervical_biopsy",
|
|
"mammography",
|
|
"breast_biopsy",
|
|
"breast_treatment",
|
|
"clinical_note",
|
|
"death",
|
|
"mchat",
|
|
"ados2",
|
|
"eeg"
|
|
],
|
|
"title": "Estudio",
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"maxLength": 40,
|
|
"pattern": "^[a-z][a-z0-9_]*$",
|
|
"title": "Id",
|
|
"type": "string"
|
|
},
|
|
"inputs": {
|
|
"default": [],
|
|
"items": {
|
|
"maxLength": 40,
|
|
"pattern": "^[a-z][a-z0-9_]*$",
|
|
"type": "string"
|
|
},
|
|
"title": "Inputs",
|
|
"type": "array"
|
|
},
|
|
"kind": {
|
|
"const": "target",
|
|
"default": "target",
|
|
"title": "Kind",
|
|
"type": "string"
|
|
},
|
|
"label": {
|
|
"default": "",
|
|
"description": "C\u00f3mo se ve en el diagrama.",
|
|
"title": "Nombre",
|
|
"type": "string"
|
|
},
|
|
"position": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/components/schemas/Position"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"entity"
|
|
],
|
|
"title": "Target",
|
|
"type": "object"
|
|
},
|
|
"Tested": {
|
|
"properties": {
|
|
"detail": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Detail"
|
|
},
|
|
"message": {
|
|
"title": "Message",
|
|
"type": "string"
|
|
},
|
|
"ok": {
|
|
"title": "Ok",
|
|
"type": "boolean"
|
|
},
|
|
"rows": {
|
|
"default": [],
|
|
"items": {
|
|
"additionalProperties": true,
|
|
"type": "object"
|
|
},
|
|
"title": "Rows",
|
|
"type": "array"
|
|
},
|
|
"tables": {
|
|
"default": [],
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"title": "Tables",
|
|
"type": "array"
|
|
}
|
|
},
|
|
"required": [
|
|
"ok",
|
|
"message"
|
|
],
|
|
"title": "Tested",
|
|
"type": "object"
|
|
},
|
|
"Training": {
|
|
"properties": {
|
|
"as_of": {
|
|
"anyOf": [
|
|
{
|
|
"format": "date",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "As Of"
|
|
},
|
|
"models": {
|
|
"default": [],
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"title": "Models",
|
|
"type": "array"
|
|
}
|
|
},
|
|
"title": "Training",
|
|
"type": "object"
|
|
},
|
|
"Uploaded": {
|
|
"properties": {
|
|
"bucket_url": {
|
|
"title": "Bucket Url",
|
|
"type": "string"
|
|
},
|
|
"files": {
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"title": "Files",
|
|
"type": "array"
|
|
}
|
|
},
|
|
"required": [
|
|
"bucket_url",
|
|
"files"
|
|
],
|
|
"title": "Uploaded",
|
|
"type": "object"
|
|
},
|
|
"UserCreate": {
|
|
"properties": {
|
|
"domains": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/components/schemas/Domain"
|
|
},
|
|
"title": "Domains",
|
|
"type": "array"
|
|
},
|
|
"email": {
|
|
"format": "email",
|
|
"title": "Email",
|
|
"type": "string"
|
|
},
|
|
"is_active": {
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": true,
|
|
"title": "Is Active"
|
|
},
|
|
"is_superuser": {
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": false,
|
|
"title": "Is Superuser"
|
|
},
|
|
"is_verified": {
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": false,
|
|
"title": "Is Verified"
|
|
},
|
|
"name": {
|
|
"default": "",
|
|
"title": "Name",
|
|
"type": "string"
|
|
},
|
|
"password": {
|
|
"title": "Password",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"email",
|
|
"password"
|
|
],
|
|
"title": "UserCreate",
|
|
"type": "object"
|
|
},
|
|
"UserRead": {
|
|
"properties": {
|
|
"domains": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/components/schemas/Domain"
|
|
},
|
|
"title": "Domains",
|
|
"type": "array"
|
|
},
|
|
"email": {
|
|
"format": "email",
|
|
"title": "Email",
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"format": "uuid",
|
|
"title": "Id",
|
|
"type": "string"
|
|
},
|
|
"is_active": {
|
|
"default": true,
|
|
"title": "Is Active",
|
|
"type": "boolean"
|
|
},
|
|
"is_superuser": {
|
|
"default": false,
|
|
"title": "Is Superuser",
|
|
"type": "boolean"
|
|
},
|
|
"is_verified": {
|
|
"default": false,
|
|
"title": "Is Verified",
|
|
"type": "boolean"
|
|
},
|
|
"name": {
|
|
"default": "",
|
|
"title": "Name",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"email"
|
|
],
|
|
"title": "UserRead",
|
|
"type": "object"
|
|
},
|
|
"UserUpdate": {
|
|
"properties": {
|
|
"domains": {
|
|
"anyOf": [
|
|
{
|
|
"items": {
|
|
"$ref": "#/components/schemas/Domain"
|
|
},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Domains"
|
|
},
|
|
"email": {
|
|
"anyOf": [
|
|
{
|
|
"format": "email",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Email"
|
|
},
|
|
"is_active": {
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Is Active"
|
|
},
|
|
"is_superuser": {
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Is Superuser"
|
|
},
|
|
"is_verified": {
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Is Verified"
|
|
},
|
|
"name": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Name"
|
|
},
|
|
"password": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Password"
|
|
}
|
|
},
|
|
"title": "UserUpdate",
|
|
"type": "object"
|
|
},
|
|
"ValidationError": {
|
|
"properties": {
|
|
"ctx": {
|
|
"title": "Context",
|
|
"type": "object"
|
|
},
|
|
"input": {
|
|
"title": "Input"
|
|
},
|
|
"loc": {
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "integer"
|
|
}
|
|
]
|
|
},
|
|
"title": "Location",
|
|
"type": "array"
|
|
},
|
|
"msg": {
|
|
"title": "Message",
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"title": "Error Type",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"loc",
|
|
"msg",
|
|
"type"
|
|
],
|
|
"title": "ValidationError",
|
|
"type": "object"
|
|
},
|
|
"Version": {
|
|
"properties": {
|
|
"aliases": {
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"title": "Aliases",
|
|
"type": "array"
|
|
},
|
|
"created": {
|
|
"title": "Created",
|
|
"type": "integer"
|
|
},
|
|
"metrics": {
|
|
"additionalProperties": {
|
|
"type": "number"
|
|
},
|
|
"title": "Metrics",
|
|
"type": "object"
|
|
},
|
|
"params": {
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
},
|
|
"title": "Params",
|
|
"type": "object"
|
|
},
|
|
"reports": {
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"title": "Reports",
|
|
"type": "array"
|
|
},
|
|
"version": {
|
|
"title": "Version",
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"version",
|
|
"created",
|
|
"aliases",
|
|
"metrics",
|
|
"params",
|
|
"reports"
|
|
],
|
|
"title": "Version",
|
|
"type": "object"
|
|
},
|
|
"login": {
|
|
"properties": {
|
|
"client_id": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Client Id"
|
|
},
|
|
"client_secret": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"format": "password",
|
|
"title": "Client Secret"
|
|
},
|
|
"grant_type": {
|
|
"anyOf": [
|
|
{
|
|
"pattern": "^password$",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Grant Type"
|
|
},
|
|
"password": {
|
|
"format": "password",
|
|
"title": "Password",
|
|
"type": "string"
|
|
},
|
|
"scope": {
|
|
"default": "",
|
|
"title": "Scope",
|
|
"type": "string"
|
|
},
|
|
"username": {
|
|
"title": "Username",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"username",
|
|
"password"
|
|
],
|
|
"title": "Body_auth:cookie.login",
|
|
"type": "object"
|
|
}
|
|
},
|
|
"securitySchemes": {
|
|
"APIKeyCookie": {
|
|
"in": "cookie",
|
|
"name": "isssteleon_session",
|
|
"type": "apiKey"
|
|
}
|
|
}
|
|
},
|
|
"info": {
|
|
"title": "ISSSTELEON",
|
|
"version": "0.0.0"
|
|
},
|
|
"openapi": "3.1.0",
|
|
"paths": {
|
|
"/auth/login": {
|
|
"post": {
|
|
"operationId": "auth:cookie.login",
|
|
"requestBody": {
|
|
"content": {
|
|
"application/x-www-form-urlencoded": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/login"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {}
|
|
}
|
|
},
|
|
"description": "Successful Response"
|
|
},
|
|
"204": {
|
|
"description": "No Content"
|
|
},
|
|
"400": {
|
|
"content": {
|
|
"application/json": {
|
|
"examples": {
|
|
"LOGIN_BAD_CREDENTIALS": {
|
|
"summary": "Bad credentials or the user is inactive.",
|
|
"value": {
|
|
"detail": "LOGIN_BAD_CREDENTIALS"
|
|
}
|
|
},
|
|
"LOGIN_USER_NOT_VERIFIED": {
|
|
"summary": "The user is not verified.",
|
|
"value": {
|
|
"detail": "LOGIN_USER_NOT_VERIFIED"
|
|
}
|
|
}
|
|
},
|
|
"schema": {
|
|
"$ref": "#/components/schemas/ErrorModel"
|
|
}
|
|
}
|
|
},
|
|
"description": "Bad Request"
|
|
},
|
|
"422": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
},
|
|
"description": "Validation Error"
|
|
}
|
|
},
|
|
"summary": "Auth:Cookie.Login",
|
|
"tags": [
|
|
"auth"
|
|
]
|
|
}
|
|
},
|
|
"/auth/logout": {
|
|
"post": {
|
|
"operationId": "auth:cookie.logout",
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {}
|
|
}
|
|
},
|
|
"description": "Successful Response"
|
|
},
|
|
"204": {
|
|
"description": "No Content"
|
|
},
|
|
"401": {
|
|
"description": "Missing token or inactive user."
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"APIKeyCookie": []
|
|
}
|
|
],
|
|
"summary": "Auth:Cookie.Logout",
|
|
"tags": [
|
|
"auth"
|
|
]
|
|
}
|
|
},
|
|
"/domains": {
|
|
"get": {
|
|
"operationId": "domains",
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"items": {
|
|
"$ref": "#/components/schemas/Domain"
|
|
},
|
|
"title": "Response Domains",
|
|
"type": "array"
|
|
}
|
|
}
|
|
},
|
|
"description": "Successful Response"
|
|
}
|
|
},
|
|
"summary": "Domains"
|
|
}
|
|
},
|
|
"/health": {
|
|
"get": {
|
|
"operationId": "health",
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
},
|
|
"title": "Response Health",
|
|
"type": "object"
|
|
}
|
|
}
|
|
},
|
|
"description": "Successful Response"
|
|
}
|
|
},
|
|
"summary": "Health"
|
|
}
|
|
},
|
|
"/ingest/concept-maps": {
|
|
"get": {
|
|
"description": "Every ConceptMap a site saved: its id, latest version and when.",
|
|
"operationId": "concept_maps",
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"items": {
|
|
"additionalProperties": true,
|
|
"type": "object"
|
|
},
|
|
"title": "Response Concept Maps",
|
|
"type": "array"
|
|
}
|
|
}
|
|
},
|
|
"description": "Successful Response"
|
|
}
|
|
},
|
|
"summary": "Concept Maps",
|
|
"tags": [
|
|
"ingest"
|
|
]
|
|
}
|
|
},
|
|
"/ingest/concept-maps/{map_id}": {
|
|
"get": {
|
|
"description": "A site's codes in platform terms (FHIR R4B ConceptMap), latest version.",
|
|
"operationId": "get_concept_map",
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "map_id",
|
|
"required": true,
|
|
"schema": {
|
|
"maxLength": 40,
|
|
"pattern": "^[a-z][a-z0-9_]*$",
|
|
"title": "Map Id",
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"additionalProperties": true,
|
|
"title": "Response Get Concept Map",
|
|
"type": "object"
|
|
}
|
|
}
|
|
},
|
|
"description": "Successful Response"
|
|
},
|
|
"422": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
},
|
|
"description": "Validation Error"
|
|
}
|
|
},
|
|
"summary": "Get Concept Map",
|
|
"tags": [
|
|
"ingest"
|
|
]
|
|
},
|
|
"put": {
|
|
"description": "Saves a new version of a ConceptMap. Its groups target the systems platform fields\ntake codes from, and only codes those fields allow (core.concept_map).",
|
|
"operationId": "save_concept_map",
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "map_id",
|
|
"required": true,
|
|
"schema": {
|
|
"maxLength": 40,
|
|
"pattern": "^[a-z][a-z0-9_]*$",
|
|
"title": "Map Id",
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"additionalProperties": true,
|
|
"title": "Doc",
|
|
"type": "object"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"additionalProperties": {
|
|
"type": "integer"
|
|
},
|
|
"title": "Response Save Concept Map",
|
|
"type": "object"
|
|
}
|
|
}
|
|
},
|
|
"description": "Successful Response"
|
|
},
|
|
"422": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
},
|
|
"description": "Validation Error"
|
|
}
|
|
},
|
|
"summary": "Save Concept Map",
|
|
"tags": [
|
|
"ingest"
|
|
]
|
|
}
|
|
},
|
|
"/ingest/pipelines": {
|
|
"get": {
|
|
"operationId": "pipelines",
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"items": {
|
|
"additionalProperties": true,
|
|
"type": "object"
|
|
},
|
|
"title": "Response Pipelines",
|
|
"type": "array"
|
|
}
|
|
}
|
|
},
|
|
"description": "Successful Response"
|
|
}
|
|
},
|
|
"summary": "Pipelines",
|
|
"tags": [
|
|
"ingest"
|
|
]
|
|
}
|
|
},
|
|
"/ingest/pipelines/{pipeline_id}": {
|
|
"get": {
|
|
"description": "A saved pipeline (latest by default), with its secrets masked.",
|
|
"operationId": "pipeline",
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "pipeline_id",
|
|
"required": true,
|
|
"schema": {
|
|
"maxLength": 40,
|
|
"pattern": "^[a-z][a-z0-9_]*$",
|
|
"title": "Pipeline Id",
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"in": "query",
|
|
"name": "version",
|
|
"required": false,
|
|
"schema": {
|
|
"anyOf": [
|
|
{
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Version"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/SavedPipeline"
|
|
}
|
|
}
|
|
},
|
|
"description": "Successful Response"
|
|
},
|
|
"422": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
},
|
|
"description": "Validation Error"
|
|
}
|
|
},
|
|
"summary": "Pipeline",
|
|
"tags": [
|
|
"ingest"
|
|
]
|
|
},
|
|
"put": {
|
|
"description": "Saves a new version. Masked secrets sent back are kept as they were saved; every\nConceptMap a node names must exist.",
|
|
"operationId": "save_pipeline",
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "pipeline_id",
|
|
"required": true,
|
|
"schema": {
|
|
"maxLength": 40,
|
|
"pattern": "^[a-z][a-z0-9_]*$",
|
|
"title": "Pipeline Id",
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/Pipeline"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"additionalProperties": {
|
|
"type": "integer"
|
|
},
|
|
"title": "Response Save Pipeline",
|
|
"type": "object"
|
|
}
|
|
}
|
|
},
|
|
"description": "Successful Response"
|
|
},
|
|
"422": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
},
|
|
"description": "Validation Error"
|
|
}
|
|
},
|
|
"summary": "Save Pipeline",
|
|
"tags": [
|
|
"ingest"
|
|
]
|
|
}
|
|
},
|
|
"/ingest/pipelines/{pipeline_id}/nodes/{node_id}/rows": {
|
|
"get": {
|
|
"description": "What a node produced in the last run (empty if it produced nothing yet).",
|
|
"operationId": "node_rows",
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "pipeline_id",
|
|
"required": true,
|
|
"schema": {
|
|
"maxLength": 40,
|
|
"pattern": "^[a-z][a-z0-9_]*$",
|
|
"title": "Pipeline Id",
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"in": "path",
|
|
"name": "node_id",
|
|
"required": true,
|
|
"schema": {
|
|
"maxLength": 40,
|
|
"pattern": "^[a-z][a-z0-9_]*$",
|
|
"title": "Node Id",
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"in": "query",
|
|
"name": "limit",
|
|
"required": false,
|
|
"schema": {
|
|
"default": 50,
|
|
"maximum": 500,
|
|
"minimum": 1,
|
|
"title": "Limit",
|
|
"type": "integer"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"items": {
|
|
"additionalProperties": true,
|
|
"type": "object"
|
|
},
|
|
"title": "Response Node Rows",
|
|
"type": "array"
|
|
}
|
|
}
|
|
},
|
|
"description": "Successful Response"
|
|
},
|
|
"422": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
},
|
|
"description": "Validation Error"
|
|
}
|
|
},
|
|
"summary": "Node Rows",
|
|
"tags": [
|
|
"ingest"
|
|
]
|
|
}
|
|
},
|
|
"/ingest/pipelines/{pipeline_id}/runs": {
|
|
"post": {
|
|
"description": "Starts the `ingest` job for this pipeline; follow it at /runs/{run_id}.",
|
|
"operationId": "start_run",
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "pipeline_id",
|
|
"required": true,
|
|
"schema": {
|
|
"maxLength": 40,
|
|
"pattern": "^[a-z][a-z0-9_]*$",
|
|
"title": "Pipeline Id",
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/RunRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
},
|
|
"title": "Response Start Run",
|
|
"type": "object"
|
|
}
|
|
}
|
|
},
|
|
"description": "Successful Response"
|
|
},
|
|
"422": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
},
|
|
"description": "Validation Error"
|
|
}
|
|
},
|
|
"summary": "Start Run",
|
|
"tags": [
|
|
"ingest"
|
|
]
|
|
}
|
|
},
|
|
"/ingest/schema": {
|
|
"get": {
|
|
"description": "What the canvas draws with: every node kind's form, and the platform entities.",
|
|
"operationId": "schema",
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"additionalProperties": true,
|
|
"title": "Response Schema",
|
|
"type": "object"
|
|
}
|
|
}
|
|
},
|
|
"description": "Successful Response"
|
|
}
|
|
},
|
|
"summary": "Schema",
|
|
"tags": [
|
|
"ingest"
|
|
]
|
|
}
|
|
},
|
|
"/ingest/sources/browse": {
|
|
"get": {
|
|
"description": "The server folders a source may read: the roots, or what one folder under them\nholds. Nothing outside the roots is shown.",
|
|
"operationId": "browse",
|
|
"parameters": [
|
|
{
|
|
"in": "query",
|
|
"name": "path",
|
|
"required": false,
|
|
"schema": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Path"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/Browsed"
|
|
}
|
|
}
|
|
},
|
|
"description": "Successful Response"
|
|
},
|
|
"422": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
},
|
|
"description": "Validation Error"
|
|
}
|
|
},
|
|
"summary": "Browse",
|
|
"tags": [
|
|
"ingest"
|
|
]
|
|
}
|
|
},
|
|
"/ingest/sources/oauth/{provider}/start": {
|
|
"get": {
|
|
"description": "The provider's sign-in address. `origin` is the web app's (where the user returns:\n`{origin}/api/\u2026/callback`, the address IT registered).",
|
|
"operationId": "oauth_start",
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "provider",
|
|
"required": true,
|
|
"schema": {
|
|
"title": "Provider",
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"in": "query",
|
|
"name": "origin",
|
|
"required": true,
|
|
"schema": {
|
|
"title": "Origin",
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/SignIn"
|
|
}
|
|
}
|
|
},
|
|
"description": "Successful Response"
|
|
},
|
|
"422": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
},
|
|
"description": "Validation Error"
|
|
}
|
|
},
|
|
"summary": "Oauth Start",
|
|
"tags": [
|
|
"ingest"
|
|
]
|
|
}
|
|
},
|
|
"/ingest/sources/preview": {
|
|
"post": {
|
|
"description": "The first rows a source node would load.",
|
|
"operationId": "source_preview",
|
|
"parameters": [
|
|
{
|
|
"in": "query",
|
|
"name": "limit",
|
|
"required": false,
|
|
"schema": {
|
|
"default": 20,
|
|
"maximum": 200,
|
|
"minimum": 1,
|
|
"title": "Limit",
|
|
"type": "integer"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/Source"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"items": {
|
|
"additionalProperties": true,
|
|
"type": "object"
|
|
},
|
|
"title": "Response Source Preview",
|
|
"type": "array"
|
|
}
|
|
}
|
|
},
|
|
"description": "Successful Response"
|
|
},
|
|
"422": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
},
|
|
"description": "Validation Error"
|
|
}
|
|
},
|
|
"summary": "Source Preview",
|
|
"tags": [
|
|
"ingest"
|
|
]
|
|
}
|
|
},
|
|
"/ingest/sources/resources": {
|
|
"post": {
|
|
"description": "What a source offers (a database's tables...): also tests that it can be reached.",
|
|
"operationId": "source_resources",
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/SourceRef"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"title": "Response Source Resources",
|
|
"type": "array"
|
|
}
|
|
}
|
|
},
|
|
"description": "Successful Response"
|
|
},
|
|
"422": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
},
|
|
"description": "Validation Error"
|
|
}
|
|
},
|
|
"summary": "Source Resources",
|
|
"tags": [
|
|
"ingest"
|
|
]
|
|
}
|
|
},
|
|
"/ingest/sources/test": {
|
|
"post": {
|
|
"description": "\"Probar conexi\u00f3n\": reaches the source with the answers given. A database lists its\ntables (until one is picked; then its first rows); files and records show their first\nrows. Never a server error: what went wrong comes back in plain words.",
|
|
"operationId": "test_source",
|
|
"parameters": [
|
|
{
|
|
"in": "query",
|
|
"name": "limit",
|
|
"required": false,
|
|
"schema": {
|
|
"default": 20,
|
|
"maximum": 100,
|
|
"minimum": 1,
|
|
"title": "Limit",
|
|
"type": "integer"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/Answers"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/Tested"
|
|
}
|
|
}
|
|
},
|
|
"description": "Successful Response"
|
|
},
|
|
"422": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
},
|
|
"description": "Validation Error"
|
|
}
|
|
},
|
|
"summary": "Test Source",
|
|
"tags": [
|
|
"ingest"
|
|
]
|
|
}
|
|
},
|
|
"/ingest/sources/types": {
|
|
"get": {
|
|
"description": "Every kind of source the dialog offers, grouped, with the fields each one asks.",
|
|
"operationId": "source_types",
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/Catalog"
|
|
}
|
|
}
|
|
},
|
|
"description": "Successful Response"
|
|
}
|
|
},
|
|
"summary": "Source Types",
|
|
"tags": [
|
|
"ingest"
|
|
]
|
|
}
|
|
},
|
|
"/ingest/uploads": {
|
|
"post": {
|
|
"description": "Files from the operator's computer (one, many, or a whole folder), kept on the\nserver for a `filesystem` source; streamed to disk, so large recordings fit. Send\n`folder` from a previous answer to add to the same set.",
|
|
"operationId": "upload",
|
|
"requestBody": {
|
|
"content": {
|
|
"multipart/form-data": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/Body_upload"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/Uploaded"
|
|
}
|
|
}
|
|
},
|
|
"description": "Successful Response"
|
|
},
|
|
"422": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
},
|
|
"description": "Validation Error"
|
|
}
|
|
},
|
|
"summary": "Upload",
|
|
"tags": [
|
|
"ingest"
|
|
]
|
|
}
|
|
},
|
|
"/models/{domain}": {
|
|
"get": {
|
|
"operationId": "models",
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "domain",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/components/schemas/Domain"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"title": "Response Models",
|
|
"type": "array"
|
|
}
|
|
}
|
|
},
|
|
"description": "Successful Response"
|
|
},
|
|
"422": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
},
|
|
"description": "Validation Error"
|
|
}
|
|
},
|
|
"summary": "Models",
|
|
"tags": [
|
|
"models"
|
|
]
|
|
}
|
|
},
|
|
"/models/{domain}/analyze": {
|
|
"post": {
|
|
"description": "Starts analysing the studies the domain's models read whole (TEA: its EEGs); follow\nit at /runs.",
|
|
"operationId": "analyze",
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "domain",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/components/schemas/Domain"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
},
|
|
"title": "Response Analyze",
|
|
"type": "object"
|
|
}
|
|
}
|
|
},
|
|
"description": "Successful Response"
|
|
},
|
|
"422": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
},
|
|
"description": "Validation Error"
|
|
}
|
|
},
|
|
"summary": "Analyze",
|
|
"tags": [
|
|
"models"
|
|
]
|
|
}
|
|
},
|
|
"/models/{domain}/score": {
|
|
"post": {
|
|
"description": "Starts a risk batch from each model's champion; follow it at /runs.",
|
|
"operationId": "score",
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "domain",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/components/schemas/Domain"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
},
|
|
"title": "Response Score",
|
|
"type": "object"
|
|
}
|
|
}
|
|
},
|
|
"description": "Successful Response"
|
|
},
|
|
"422": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
},
|
|
"description": "Validation Error"
|
|
}
|
|
},
|
|
"summary": "Score",
|
|
"tags": [
|
|
"models"
|
|
]
|
|
}
|
|
},
|
|
"/models/{domain}/train": {
|
|
"post": {
|
|
"description": "Starts training a new version of every model of the domain; follow it at /runs.",
|
|
"operationId": "train",
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "domain",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/components/schemas/Domain"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/Training"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
},
|
|
"title": "Response Train",
|
|
"type": "object"
|
|
}
|
|
}
|
|
},
|
|
"description": "Successful Response"
|
|
},
|
|
"422": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
},
|
|
"description": "Validation Error"
|
|
}
|
|
},
|
|
"summary": "Train",
|
|
"tags": [
|
|
"models"
|
|
]
|
|
}
|
|
},
|
|
"/models/{domain}/{name}/versions": {
|
|
"get": {
|
|
"operationId": "versions",
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "domain",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/components/schemas/Domain"
|
|
}
|
|
},
|
|
{
|
|
"in": "path",
|
|
"name": "name",
|
|
"required": true,
|
|
"schema": {
|
|
"title": "Name",
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"items": {
|
|
"$ref": "#/components/schemas/Version"
|
|
},
|
|
"title": "Response Versions",
|
|
"type": "array"
|
|
}
|
|
}
|
|
},
|
|
"description": "Successful Response"
|
|
},
|
|
"422": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
},
|
|
"description": "Validation Error"
|
|
}
|
|
},
|
|
"summary": "Versions",
|
|
"tags": [
|
|
"models"
|
|
]
|
|
}
|
|
},
|
|
"/models/{domain}/{name}/versions/{version}/promote": {
|
|
"post": {
|
|
"description": "The version risk batches come from from now on; refused (409) without its three\nreports: technical validation, interpretability and clinical validation.",
|
|
"operationId": "promote",
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "domain",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/components/schemas/Domain"
|
|
}
|
|
},
|
|
{
|
|
"in": "path",
|
|
"name": "name",
|
|
"required": true,
|
|
"schema": {
|
|
"title": "Name",
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"in": "path",
|
|
"name": "version",
|
|
"required": true,
|
|
"schema": {
|
|
"title": "Version",
|
|
"type": "integer"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"additionalProperties": true,
|
|
"title": "Response Promote",
|
|
"type": "object"
|
|
}
|
|
}
|
|
},
|
|
"description": "Successful Response"
|
|
},
|
|
"422": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
},
|
|
"description": "Validation Error"
|
|
}
|
|
},
|
|
"summary": "Promote",
|
|
"tags": [
|
|
"models"
|
|
]
|
|
}
|
|
},
|
|
"/models/{domain}/{name}/versions/{version}/reports/clinical_validation": {
|
|
"post": {
|
|
"description": "The clinical team's validation of a version: the third report promotion needs.",
|
|
"operationId": "add_clinical_validation",
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "domain",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/components/schemas/Domain"
|
|
}
|
|
},
|
|
{
|
|
"in": "path",
|
|
"name": "name",
|
|
"required": true,
|
|
"schema": {
|
|
"title": "Name",
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"in": "path",
|
|
"name": "version",
|
|
"required": true,
|
|
"schema": {
|
|
"title": "Version",
|
|
"type": "integer"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"multipart/form-data": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/Body_add_clinical_validation"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"additionalProperties": true,
|
|
"title": "Response Add Clinical Validation",
|
|
"type": "object"
|
|
}
|
|
}
|
|
},
|
|
"description": "Successful Response"
|
|
},
|
|
"422": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
},
|
|
"description": "Validation Error"
|
|
}
|
|
},
|
|
"summary": "Add Clinical Validation",
|
|
"tags": [
|
|
"models"
|
|
]
|
|
}
|
|
},
|
|
"/models/{domain}/{name}/versions/{version}/reports/{report}": {
|
|
"get": {
|
|
"description": "A version's report: the generated ones as JSON (what the governance page draws), the\nclinical validation as the file the clinical team uploaded.",
|
|
"operationId": "read_report",
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "domain",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/components/schemas/Domain"
|
|
}
|
|
},
|
|
{
|
|
"in": "path",
|
|
"name": "name",
|
|
"required": true,
|
|
"schema": {
|
|
"title": "Name",
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"in": "path",
|
|
"name": "version",
|
|
"required": true,
|
|
"schema": {
|
|
"title": "Version",
|
|
"type": "integer"
|
|
}
|
|
},
|
|
{
|
|
"in": "path",
|
|
"name": "report",
|
|
"required": true,
|
|
"schema": {
|
|
"title": "Report",
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/json": {},
|
|
"application/octet-stream": {}
|
|
},
|
|
"description": "the report as stored"
|
|
},
|
|
"422": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
},
|
|
"description": "Validation Error"
|
|
}
|
|
},
|
|
"summary": "Read Report",
|
|
"tags": [
|
|
"models"
|
|
]
|
|
}
|
|
},
|
|
"/review/conflicts": {
|
|
"get": {
|
|
"description": "Rows of one person and date that disagree; reject the wrong ones.",
|
|
"operationId": "conflicts",
|
|
"parameters": [
|
|
{
|
|
"in": "query",
|
|
"name": "entity",
|
|
"required": true,
|
|
"schema": {
|
|
"enum": [
|
|
"identity",
|
|
"cervical_cytology",
|
|
"cervical_biopsy",
|
|
"mammography",
|
|
"breast_biopsy",
|
|
"breast_treatment",
|
|
"clinical_note",
|
|
"death",
|
|
"mchat",
|
|
"ados2",
|
|
"eeg"
|
|
],
|
|
"title": "Entity",
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"items": {
|
|
"additionalProperties": true,
|
|
"type": "object"
|
|
},
|
|
"title": "Response Conflicts",
|
|
"type": "array"
|
|
}
|
|
}
|
|
},
|
|
"description": "Successful Response"
|
|
},
|
|
"422": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
},
|
|
"description": "Validation Error"
|
|
}
|
|
},
|
|
"summary": "Conflicts",
|
|
"tags": [
|
|
"review"
|
|
]
|
|
}
|
|
},
|
|
"/review/corrections": {
|
|
"post": {
|
|
"description": "A corrected field of one record; the next run uses it (linking for identity fields,\nthe study's target for the others). Fixing the source too is still worth it.",
|
|
"operationId": "correct",
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/Correction"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"responses": {
|
|
"201": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
},
|
|
"title": "Response Correct",
|
|
"type": "object"
|
|
}
|
|
}
|
|
},
|
|
"description": "Successful Response"
|
|
},
|
|
"422": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
},
|
|
"description": "Validation Error"
|
|
}
|
|
},
|
|
"summary": "Correct",
|
|
"tags": [
|
|
"review"
|
|
]
|
|
}
|
|
},
|
|
"/review/held": {
|
|
"get": {
|
|
"description": "Rows a rule held, with the reasons and the values as they came.",
|
|
"operationId": "held",
|
|
"parameters": [
|
|
{
|
|
"in": "query",
|
|
"name": "entity",
|
|
"required": true,
|
|
"schema": {
|
|
"enum": [
|
|
"identity",
|
|
"cervical_cytology",
|
|
"cervical_biopsy",
|
|
"mammography",
|
|
"breast_biopsy",
|
|
"breast_treatment",
|
|
"clinical_note",
|
|
"death",
|
|
"mchat",
|
|
"ados2",
|
|
"eeg"
|
|
],
|
|
"title": "Entity",
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"items": {
|
|
"additionalProperties": true,
|
|
"type": "object"
|
|
},
|
|
"title": "Response Held",
|
|
"type": "array"
|
|
}
|
|
}
|
|
},
|
|
"description": "Successful Response"
|
|
},
|
|
"422": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
},
|
|
"description": "Validation Error"
|
|
}
|
|
},
|
|
"summary": "Held",
|
|
"tags": [
|
|
"review"
|
|
]
|
|
}
|
|
},
|
|
"/review/persons": {
|
|
"get": {
|
|
"description": "Persons to settle (with their possible owners), torn persons and persons nothing\nnames (with their records) left by a pipeline's link node.",
|
|
"operationId": "persons",
|
|
"parameters": [
|
|
{
|
|
"in": "query",
|
|
"name": "pipeline",
|
|
"required": true,
|
|
"schema": {
|
|
"maxLength": 40,
|
|
"pattern": "^[a-z][a-z0-9_]*$",
|
|
"title": "Pipeline",
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"in": "query",
|
|
"name": "node",
|
|
"required": true,
|
|
"schema": {
|
|
"maxLength": 40,
|
|
"pattern": "^[a-z][a-z0-9_]*$",
|
|
"title": "Node",
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"additionalProperties": {
|
|
"items": {
|
|
"additionalProperties": true,
|
|
"type": "object"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"title": "Response Persons",
|
|
"type": "object"
|
|
}
|
|
}
|
|
},
|
|
"description": "Successful Response"
|
|
},
|
|
"422": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
},
|
|
"description": "Validation Error"
|
|
}
|
|
},
|
|
"summary": "Persons",
|
|
"tags": [
|
|
"review"
|
|
]
|
|
},
|
|
"post": {
|
|
"description": "Whether a person and a possible owner are one patient; applied on the next run.",
|
|
"operationId": "decide_persons",
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/PersonDecision"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"responses": {
|
|
"201": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
},
|
|
"title": "Response Decide Persons",
|
|
"type": "object"
|
|
}
|
|
}
|
|
},
|
|
"description": "Successful Response"
|
|
},
|
|
"422": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
},
|
|
"description": "Validation Error"
|
|
}
|
|
},
|
|
"summary": "Decide Persons",
|
|
"tags": [
|
|
"review"
|
|
]
|
|
}
|
|
},
|
|
"/review/rejections": {
|
|
"post": {
|
|
"description": "This record's row must not reach silver; applied on the next run.",
|
|
"operationId": "reject",
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/Rejection"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"responses": {
|
|
"201": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
},
|
|
"title": "Response Reject",
|
|
"type": "object"
|
|
}
|
|
}
|
|
},
|
|
"description": "Successful Response"
|
|
},
|
|
"422": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
},
|
|
"description": "Validation Error"
|
|
}
|
|
},
|
|
"summary": "Reject",
|
|
"tags": [
|
|
"review"
|
|
]
|
|
}
|
|
},
|
|
"/review/unrecognised": {
|
|
"get": {
|
|
"description": "Documents a pipeline's routes don't recognise (what its `otherwise` routes took):\na new layout, a study the platform doesn't know, a scan nothing could read.",
|
|
"operationId": "unrecognised",
|
|
"parameters": [
|
|
{
|
|
"in": "query",
|
|
"name": "pipeline",
|
|
"required": true,
|
|
"schema": {
|
|
"maxLength": 40,
|
|
"pattern": "^[a-z][a-z0-9_]*$",
|
|
"title": "Pipeline",
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"items": {
|
|
"additionalProperties": true,
|
|
"type": "object"
|
|
},
|
|
"title": "Response Unrecognised",
|
|
"type": "array"
|
|
}
|
|
}
|
|
},
|
|
"description": "Successful Response"
|
|
},
|
|
"422": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
},
|
|
"description": "Validation Error"
|
|
}
|
|
},
|
|
"summary": "Unrecognised",
|
|
"tags": [
|
|
"review"
|
|
]
|
|
}
|
|
},
|
|
"/runs/{run_id}": {
|
|
"get": {
|
|
"operationId": "run_status",
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "run_id",
|
|
"required": true,
|
|
"schema": {
|
|
"title": "Run Id",
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
},
|
|
"title": "Response Run Status",
|
|
"type": "object"
|
|
}
|
|
}
|
|
},
|
|
"description": "Successful Response"
|
|
},
|
|
"422": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
},
|
|
"description": "Validation Error"
|
|
}
|
|
},
|
|
"summary": "Run Status",
|
|
"tags": [
|
|
"runs"
|
|
]
|
|
}
|
|
},
|
|
"/tea/eegs": {
|
|
"get": {
|
|
"operationId": "studies",
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"items": {
|
|
"$ref": "#/components/schemas/Study"
|
|
},
|
|
"title": "Response Studies",
|
|
"type": "array"
|
|
}
|
|
}
|
|
},
|
|
"description": "Successful Response"
|
|
}
|
|
},
|
|
"summary": "Studies",
|
|
"tags": [
|
|
"eeg"
|
|
]
|
|
}
|
|
},
|
|
"/tea/eegs/{eeg_id}": {
|
|
"get": {
|
|
"operationId": "study",
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "eeg_id",
|
|
"required": true,
|
|
"schema": {
|
|
"title": "Eeg Id",
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/Analysis"
|
|
}
|
|
}
|
|
},
|
|
"description": "Successful Response"
|
|
},
|
|
"422": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
},
|
|
"description": "Validation Error"
|
|
}
|
|
},
|
|
"summary": "Study",
|
|
"tags": [
|
|
"eeg"
|
|
]
|
|
}
|
|
},
|
|
"/users/me": {
|
|
"get": {
|
|
"operationId": "users:current_user",
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/UserRead"
|
|
}
|
|
}
|
|
},
|
|
"description": "Successful Response"
|
|
},
|
|
"401": {
|
|
"description": "Missing token or inactive user."
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"APIKeyCookie": []
|
|
}
|
|
],
|
|
"summary": "Users:Current User",
|
|
"tags": [
|
|
"users"
|
|
]
|
|
},
|
|
"patch": {
|
|
"operationId": "users:patch_current_user",
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/UserUpdate"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/UserRead"
|
|
}
|
|
}
|
|
},
|
|
"description": "Successful Response"
|
|
},
|
|
"400": {
|
|
"content": {
|
|
"application/json": {
|
|
"examples": {
|
|
"UPDATE_USER_EMAIL_ALREADY_EXISTS": {
|
|
"summary": "A user with this email already exists.",
|
|
"value": {
|
|
"detail": "UPDATE_USER_EMAIL_ALREADY_EXISTS"
|
|
}
|
|
},
|
|
"UPDATE_USER_INVALID_PASSWORD": {
|
|
"summary": "Password validation failed.",
|
|
"value": {
|
|
"detail": {
|
|
"code": "UPDATE_USER_INVALID_PASSWORD",
|
|
"reason": "Password should beat least 3 characters"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"schema": {
|
|
"$ref": "#/components/schemas/ErrorModel"
|
|
}
|
|
}
|
|
},
|
|
"description": "Bad Request"
|
|
},
|
|
"401": {
|
|
"description": "Missing token or inactive user."
|
|
},
|
|
"422": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
},
|
|
"description": "Validation Error"
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"APIKeyCookie": []
|
|
}
|
|
],
|
|
"summary": "Users:Patch Current User",
|
|
"tags": [
|
|
"users"
|
|
]
|
|
}
|
|
},
|
|
"/users/register": {
|
|
"post": {
|
|
"operationId": "register:register",
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/UserCreate"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"responses": {
|
|
"201": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/UserRead"
|
|
}
|
|
}
|
|
},
|
|
"description": "Successful Response"
|
|
},
|
|
"400": {
|
|
"content": {
|
|
"application/json": {
|
|
"examples": {
|
|
"REGISTER_INVALID_PASSWORD": {
|
|
"summary": "Password validation failed.",
|
|
"value": {
|
|
"detail": {
|
|
"code": "REGISTER_INVALID_PASSWORD",
|
|
"reason": "Password should beat least 3 characters"
|
|
}
|
|
}
|
|
},
|
|
"REGISTER_USER_ALREADY_EXISTS": {
|
|
"summary": "A user with this email already exists.",
|
|
"value": {
|
|
"detail": "REGISTER_USER_ALREADY_EXISTS"
|
|
}
|
|
}
|
|
},
|
|
"schema": {
|
|
"$ref": "#/components/schemas/ErrorModel"
|
|
}
|
|
}
|
|
},
|
|
"description": "Bad Request"
|
|
},
|
|
"422": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
},
|
|
"description": "Validation Error"
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"APIKeyCookie": []
|
|
}
|
|
],
|
|
"summary": "Register:Register",
|
|
"tags": [
|
|
"users"
|
|
]
|
|
}
|
|
},
|
|
"/users/{id}": {
|
|
"delete": {
|
|
"operationId": "users:delete_user",
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "id",
|
|
"required": true,
|
|
"schema": {
|
|
"title": "Id",
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"204": {
|
|
"description": "Successful Response"
|
|
},
|
|
"401": {
|
|
"description": "Missing token or inactive user."
|
|
},
|
|
"403": {
|
|
"description": "Not a superuser."
|
|
},
|
|
"404": {
|
|
"description": "The user does not exist."
|
|
},
|
|
"422": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
},
|
|
"description": "Validation Error"
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"APIKeyCookie": []
|
|
}
|
|
],
|
|
"summary": "Users:Delete User",
|
|
"tags": [
|
|
"users"
|
|
]
|
|
},
|
|
"get": {
|
|
"operationId": "users:user",
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "id",
|
|
"required": true,
|
|
"schema": {
|
|
"title": "Id",
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/UserRead"
|
|
}
|
|
}
|
|
},
|
|
"description": "Successful Response"
|
|
},
|
|
"401": {
|
|
"description": "Missing token or inactive user."
|
|
},
|
|
"403": {
|
|
"description": "Not a superuser."
|
|
},
|
|
"404": {
|
|
"description": "The user does not exist."
|
|
},
|
|
"422": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
},
|
|
"description": "Validation Error"
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"APIKeyCookie": []
|
|
}
|
|
],
|
|
"summary": "Users:User",
|
|
"tags": [
|
|
"users"
|
|
]
|
|
},
|
|
"patch": {
|
|
"operationId": "users:patch_user",
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "id",
|
|
"required": true,
|
|
"schema": {
|
|
"title": "Id",
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/UserUpdate"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/UserRead"
|
|
}
|
|
}
|
|
},
|
|
"description": "Successful Response"
|
|
},
|
|
"400": {
|
|
"content": {
|
|
"application/json": {
|
|
"examples": {
|
|
"UPDATE_USER_EMAIL_ALREADY_EXISTS": {
|
|
"summary": "A user with this email already exists.",
|
|
"value": {
|
|
"detail": "UPDATE_USER_EMAIL_ALREADY_EXISTS"
|
|
}
|
|
},
|
|
"UPDATE_USER_INVALID_PASSWORD": {
|
|
"summary": "Password validation failed.",
|
|
"value": {
|
|
"detail": {
|
|
"code": "UPDATE_USER_INVALID_PASSWORD",
|
|
"reason": "Password should beat least 3 characters"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"schema": {
|
|
"$ref": "#/components/schemas/ErrorModel"
|
|
}
|
|
}
|
|
},
|
|
"description": "Bad Request"
|
|
},
|
|
"401": {
|
|
"description": "Missing token or inactive user."
|
|
},
|
|
"403": {
|
|
"description": "Not a superuser."
|
|
},
|
|
"404": {
|
|
"description": "The user does not exist."
|
|
},
|
|
"422": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
},
|
|
"description": "Validation Error"
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"APIKeyCookie": []
|
|
}
|
|
],
|
|
"summary": "Users:Patch User",
|
|
"tags": [
|
|
"users"
|
|
]
|
|
}
|
|
},
|
|
"/{domain}/fhir": {
|
|
"post": {
|
|
"description": "A standard hospital's Bundle: checked as FHIR, kept as sent in the sender's inbox,\nand placed by the sender's pipeline (a run starts; follow it at the Location).",
|
|
"operationId": "post_bundle",
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "domain",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/components/schemas/Domain"
|
|
}
|
|
},
|
|
{
|
|
"description": "the sender's pipeline (its fhir nodes read this inbox)",
|
|
"in": "query",
|
|
"name": "sender",
|
|
"required": true,
|
|
"schema": {
|
|
"description": "the sender's pipeline (its fhir nodes read this inbox)",
|
|
"maxLength": 40,
|
|
"pattern": "^[a-z][a-z0-9_]*$",
|
|
"title": "Sender",
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"additionalProperties": true,
|
|
"description": "a FHIR R4 batch or transaction Bundle",
|
|
"title": "Bundle",
|
|
"type": "object"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/fhir+json": {
|
|
"schema": {
|
|
"type": "object"
|
|
}
|
|
}
|
|
},
|
|
"description": "FHIR"
|
|
},
|
|
"202": {
|
|
"description": "Successful Response"
|
|
},
|
|
"422": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
},
|
|
"description": "Validation Error"
|
|
}
|
|
},
|
|
"summary": "Post Bundle",
|
|
"tags": [
|
|
"fhir"
|
|
]
|
|
}
|
|
},
|
|
"/{domain}/fhir/Condition": {
|
|
"get": {
|
|
"description": "What clinical notes diagnosed.",
|
|
"operationId": "search_condition",
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "domain",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/components/schemas/Domain"
|
|
}
|
|
},
|
|
{
|
|
"description": "Patient/<id>, comma-separated",
|
|
"in": "query",
|
|
"name": "subject",
|
|
"required": false,
|
|
"schema": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"description": "Patient/<id>, comma-separated",
|
|
"title": "Subject"
|
|
}
|
|
},
|
|
{
|
|
"in": "query",
|
|
"name": "_count",
|
|
"required": false,
|
|
"schema": {
|
|
"anyOf": [
|
|
{
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": " Count"
|
|
}
|
|
},
|
|
{
|
|
"in": "query",
|
|
"name": "_offset",
|
|
"required": false,
|
|
"schema": {
|
|
"default": 0,
|
|
"title": " Offset",
|
|
"type": "integer"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/fhir+json": {
|
|
"schema": {
|
|
"type": "object"
|
|
}
|
|
}
|
|
},
|
|
"description": "FHIR"
|
|
},
|
|
"422": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
},
|
|
"description": "Validation Error"
|
|
}
|
|
},
|
|
"summary": "Search Condition",
|
|
"tags": [
|
|
"fhir"
|
|
]
|
|
}
|
|
},
|
|
"/{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.",
|
|
"operationId": "search_diagnostic_report",
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "domain",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/components/schemas/Domain"
|
|
}
|
|
},
|
|
{
|
|
"description": "Patient/<id>, comma-separated",
|
|
"in": "query",
|
|
"name": "subject",
|
|
"required": false,
|
|
"schema": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"description": "Patient/<id>, comma-separated",
|
|
"title": "Subject"
|
|
}
|
|
},
|
|
{
|
|
"in": "query",
|
|
"name": "_count",
|
|
"required": false,
|
|
"schema": {
|
|
"anyOf": [
|
|
{
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": " Count"
|
|
}
|
|
},
|
|
{
|
|
"in": "query",
|
|
"name": "_offset",
|
|
"required": false,
|
|
"schema": {
|
|
"default": 0,
|
|
"title": " Offset",
|
|
"type": "integer"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/fhir+json": {
|
|
"schema": {
|
|
"type": "object"
|
|
}
|
|
}
|
|
},
|
|
"description": "FHIR"
|
|
},
|
|
"422": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
},
|
|
"description": "Validation Error"
|
|
}
|
|
},
|
|
"summary": "Search Diagnostic Report",
|
|
"tags": [
|
|
"fhir"
|
|
]
|
|
}
|
|
},
|
|
"/{domain}/fhir/Encounter": {
|
|
"get": {
|
|
"description": "Consultations: each study of the catalog without a report, as an encounter.",
|
|
"operationId": "search_encounter",
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "domain",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/components/schemas/Domain"
|
|
}
|
|
},
|
|
{
|
|
"description": "Patient/<id>, comma-separated",
|
|
"in": "query",
|
|
"name": "subject",
|
|
"required": false,
|
|
"schema": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"description": "Patient/<id>, comma-separated",
|
|
"title": "Subject"
|
|
}
|
|
},
|
|
{
|
|
"in": "query",
|
|
"name": "_count",
|
|
"required": false,
|
|
"schema": {
|
|
"anyOf": [
|
|
{
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": " Count"
|
|
}
|
|
},
|
|
{
|
|
"in": "query",
|
|
"name": "_offset",
|
|
"required": false,
|
|
"schema": {
|
|
"default": 0,
|
|
"title": " Offset",
|
|
"type": "integer"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/fhir+json": {
|
|
"schema": {
|
|
"type": "object"
|
|
}
|
|
}
|
|
},
|
|
"description": "FHIR"
|
|
},
|
|
"422": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
},
|
|
"description": "Validation Error"
|
|
}
|
|
},
|
|
"summary": "Search Encounter",
|
|
"tags": [
|
|
"fhir"
|
|
]
|
|
}
|
|
},
|
|
"/{domain}/fhir/Measure": {
|
|
"get": {
|
|
"description": "Every measure of the domain (none for a domain without them yet).",
|
|
"operationId": "search_measure",
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "domain",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/components/schemas/Domain"
|
|
}
|
|
},
|
|
{
|
|
"in": "query",
|
|
"name": "_count",
|
|
"required": false,
|
|
"schema": {
|
|
"anyOf": [
|
|
{
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": " Count"
|
|
}
|
|
},
|
|
{
|
|
"in": "query",
|
|
"name": "_offset",
|
|
"required": false,
|
|
"schema": {
|
|
"default": 0,
|
|
"title": " Offset",
|
|
"type": "integer"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/fhir+json": {
|
|
"schema": {
|
|
"type": "object"
|
|
}
|
|
}
|
|
},
|
|
"description": "FHIR"
|
|
},
|
|
"422": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
},
|
|
"description": "Validation Error"
|
|
}
|
|
},
|
|
"summary": "Search Measure",
|
|
"tags": [
|
|
"fhir"
|
|
]
|
|
}
|
|
},
|
|
"/{domain}/fhir/Measure/{id}": {
|
|
"get": {
|
|
"operationId": "read_measure",
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "domain",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/components/schemas/Domain"
|
|
}
|
|
},
|
|
{
|
|
"in": "path",
|
|
"name": "id",
|
|
"required": true,
|
|
"schema": {
|
|
"title": "Id",
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/fhir+json": {
|
|
"schema": {
|
|
"type": "object"
|
|
}
|
|
}
|
|
},
|
|
"description": "FHIR"
|
|
},
|
|
"422": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
},
|
|
"description": "Validation Error"
|
|
}
|
|
},
|
|
"summary": "Read Measure",
|
|
"tags": [
|
|
"fhir"
|
|
]
|
|
}
|
|
},
|
|
"/{domain}/fhir/MeasureReport": {
|
|
"get": {
|
|
"description": "The measure's summary report for each period asked for, evaluated over gold.",
|
|
"operationId": "search_measure_report",
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "domain",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/components/schemas/Domain"
|
|
}
|
|
},
|
|
{
|
|
"description": "the Measure's id or canonical URL",
|
|
"in": "query",
|
|
"name": "measure",
|
|
"required": true,
|
|
"schema": {
|
|
"description": "the Measure's id or canonical URL",
|
|
"title": "Measure",
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"description": "semesters (2025-S1) or months (2025-03), comma-separated",
|
|
"in": "query",
|
|
"name": "reporting-period",
|
|
"required": true,
|
|
"schema": {
|
|
"description": "semesters (2025-S1) or months (2025-03), comma-separated",
|
|
"title": "Reporting-Period",
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"description": "count only what was known by then",
|
|
"in": "query",
|
|
"name": "as-of",
|
|
"required": false,
|
|
"schema": {
|
|
"anyOf": [
|
|
{
|
|
"format": "date-time",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"description": "count only what was known by then",
|
|
"title": "As-Of"
|
|
}
|
|
},
|
|
{
|
|
"description": "durations count to this day",
|
|
"in": "query",
|
|
"name": "event-cutoff",
|
|
"required": false,
|
|
"schema": {
|
|
"anyOf": [
|
|
{
|
|
"format": "date",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"description": "durations count to this day",
|
|
"title": "Event-Cutoff"
|
|
}
|
|
},
|
|
{
|
|
"in": "query",
|
|
"name": "_count",
|
|
"required": false,
|
|
"schema": {
|
|
"anyOf": [
|
|
{
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": " Count"
|
|
}
|
|
},
|
|
{
|
|
"in": "query",
|
|
"name": "_offset",
|
|
"required": false,
|
|
"schema": {
|
|
"default": 0,
|
|
"title": " Offset",
|
|
"type": "integer"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/fhir+json": {
|
|
"schema": {
|
|
"type": "object"
|
|
}
|
|
}
|
|
},
|
|
"description": "FHIR"
|
|
},
|
|
"422": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
},
|
|
"description": "Validation Error"
|
|
}
|
|
},
|
|
"summary": "Search Measure Report",
|
|
"tags": [
|
|
"fhir"
|
|
]
|
|
}
|
|
},
|
|
"/{domain}/fhir/Observation": {
|
|
"get": {
|
|
"description": "Every result of the domain's reports, one per field of the catalog.",
|
|
"operationId": "search_observation",
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "domain",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/components/schemas/Domain"
|
|
}
|
|
},
|
|
{
|
|
"description": "Patient/<id>, comma-separated",
|
|
"in": "query",
|
|
"name": "subject",
|
|
"required": false,
|
|
"schema": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"description": "Patient/<id>, comma-separated",
|
|
"title": "Subject"
|
|
}
|
|
},
|
|
{
|
|
"in": "query",
|
|
"name": "_count",
|
|
"required": false,
|
|
"schema": {
|
|
"anyOf": [
|
|
{
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": " Count"
|
|
}
|
|
},
|
|
{
|
|
"in": "query",
|
|
"name": "_offset",
|
|
"required": false,
|
|
"schema": {
|
|
"default": 0,
|
|
"title": " Offset",
|
|
"type": "integer"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/fhir+json": {
|
|
"schema": {
|
|
"type": "object"
|
|
}
|
|
}
|
|
},
|
|
"description": "FHIR"
|
|
},
|
|
"422": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
},
|
|
"description": "Validation Error"
|
|
}
|
|
},
|
|
"summary": "Search Observation",
|
|
"tags": [
|
|
"fhir"
|
|
]
|
|
}
|
|
},
|
|
"/{domain}/fhir/Patient": {
|
|
"get": {
|
|
"description": "Patients; with `follow-up-window`, the domain's follow-up list at the cut-off,\nfiltered by status and in reading order, with what the list shows of each patient\nincluded.",
|
|
"operationId": "search_patient",
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "domain",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/components/schemas/Domain"
|
|
}
|
|
},
|
|
{
|
|
"in": "query",
|
|
"name": "_id",
|
|
"required": false,
|
|
"schema": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": " Id"
|
|
}
|
|
},
|
|
{
|
|
"description": "months: the domain's follow-up list over that window up to the cut-off",
|
|
"in": "query",
|
|
"name": "follow-up-window",
|
|
"required": false,
|
|
"schema": {
|
|
"anyOf": [
|
|
{
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"description": "months: the domain's follow-up list over that window up to the cut-off",
|
|
"title": "Follow-Up-Window"
|
|
}
|
|
},
|
|
{
|
|
"description": "default: the last day with data",
|
|
"in": "query",
|
|
"name": "follow-up-cutoff",
|
|
"required": false,
|
|
"schema": {
|
|
"anyOf": [
|
|
{
|
|
"format": "date",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"description": "default: the last day with data",
|
|
"title": "Follow-Up-Cutoff"
|
|
}
|
|
},
|
|
{
|
|
"in": "query",
|
|
"name": "follow-up-status",
|
|
"required": false,
|
|
"schema": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Follow-Up-Status"
|
|
}
|
|
},
|
|
{
|
|
"description": "-recent or -risk-<outcome>",
|
|
"in": "query",
|
|
"name": "_sort",
|
|
"required": false,
|
|
"schema": {
|
|
"default": "-recent",
|
|
"description": "-recent or -risk-<outcome>",
|
|
"title": " Sort",
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"description": "years",
|
|
"in": "query",
|
|
"name": "risk-horizon",
|
|
"required": false,
|
|
"schema": {
|
|
"anyOf": [
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"description": "years",
|
|
"title": "Risk-Horizon"
|
|
}
|
|
},
|
|
{
|
|
"description": "any of ('DiagnosticReport:subject', 'RiskAssessment:subject', 'Observation:subject')",
|
|
"in": "query",
|
|
"name": "_revinclude",
|
|
"required": false,
|
|
"schema": {
|
|
"default": [],
|
|
"description": "any of ('DiagnosticReport:subject', 'RiskAssessment:subject', 'Observation:subject')",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"title": " Revinclude",
|
|
"type": "array"
|
|
}
|
|
},
|
|
{
|
|
"description": "DiagnosticReport:result",
|
|
"in": "query",
|
|
"name": "_include:iterate",
|
|
"required": false,
|
|
"schema": {
|
|
"default": [],
|
|
"description": "DiagnosticReport:result",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"title": " Include:Iterate",
|
|
"type": "array"
|
|
}
|
|
},
|
|
{
|
|
"in": "query",
|
|
"name": "_count",
|
|
"required": false,
|
|
"schema": {
|
|
"anyOf": [
|
|
{
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": " Count"
|
|
}
|
|
},
|
|
{
|
|
"in": "query",
|
|
"name": "_offset",
|
|
"required": false,
|
|
"schema": {
|
|
"default": 0,
|
|
"title": " Offset",
|
|
"type": "integer"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/fhir+json": {
|
|
"schema": {
|
|
"type": "object"
|
|
}
|
|
}
|
|
},
|
|
"description": "FHIR"
|
|
},
|
|
"422": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
},
|
|
"description": "Validation Error"
|
|
}
|
|
},
|
|
"summary": "Search Patient",
|
|
"tags": [
|
|
"fhir"
|
|
]
|
|
}
|
|
},
|
|
"/{domain}/fhir/Patient/{id}": {
|
|
"get": {
|
|
"operationId": "read_patient",
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "domain",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/components/schemas/Domain"
|
|
}
|
|
},
|
|
{
|
|
"in": "path",
|
|
"name": "id",
|
|
"required": true,
|
|
"schema": {
|
|
"title": "Id",
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/fhir+json": {
|
|
"schema": {
|
|
"type": "object"
|
|
}
|
|
}
|
|
},
|
|
"description": "FHIR"
|
|
},
|
|
"422": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
},
|
|
"description": "Validation Error"
|
|
}
|
|
},
|
|
"summary": "Read Patient",
|
|
"tags": [
|
|
"fhir"
|
|
]
|
|
}
|
|
},
|
|
"/{domain}/fhir/Procedure": {
|
|
"get": {
|
|
"description": "The procedures the domain's timeline infers (CaCu: colposcopies and treatments).",
|
|
"operationId": "search_procedure",
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "domain",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/components/schemas/Domain"
|
|
}
|
|
},
|
|
{
|
|
"description": "Patient/<id>, comma-separated",
|
|
"in": "query",
|
|
"name": "subject",
|
|
"required": false,
|
|
"schema": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"description": "Patient/<id>, comma-separated",
|
|
"title": "Subject"
|
|
}
|
|
},
|
|
{
|
|
"in": "query",
|
|
"name": "_count",
|
|
"required": false,
|
|
"schema": {
|
|
"anyOf": [
|
|
{
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": " Count"
|
|
}
|
|
},
|
|
{
|
|
"in": "query",
|
|
"name": "_offset",
|
|
"required": false,
|
|
"schema": {
|
|
"default": 0,
|
|
"title": " Offset",
|
|
"type": "integer"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/fhir+json": {
|
|
"schema": {
|
|
"type": "object"
|
|
}
|
|
}
|
|
},
|
|
"description": "FHIR"
|
|
},
|
|
"422": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
},
|
|
"description": "Validation Error"
|
|
}
|
|
},
|
|
"summary": "Search Procedure",
|
|
"tags": [
|
|
"fhir"
|
|
]
|
|
}
|
|
},
|
|
"/{domain}/fhir/RiskAssessment": {
|
|
"get": {
|
|
"description": "The champion models' risks, one per model and index date.",
|
|
"operationId": "search_risk_assessment",
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "domain",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/components/schemas/Domain"
|
|
}
|
|
},
|
|
{
|
|
"description": "Patient/<id>, comma-separated",
|
|
"in": "query",
|
|
"name": "subject",
|
|
"required": false,
|
|
"schema": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"description": "Patient/<id>, comma-separated",
|
|
"title": "Subject"
|
|
}
|
|
},
|
|
{
|
|
"in": "query",
|
|
"name": "_count",
|
|
"required": false,
|
|
"schema": {
|
|
"anyOf": [
|
|
{
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": " Count"
|
|
}
|
|
},
|
|
{
|
|
"in": "query",
|
|
"name": "_offset",
|
|
"required": false,
|
|
"schema": {
|
|
"default": 0,
|
|
"title": " Offset",
|
|
"type": "integer"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/fhir+json": {
|
|
"schema": {
|
|
"type": "object"
|
|
}
|
|
}
|
|
},
|
|
"description": "FHIR"
|
|
},
|
|
"422": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
},
|
|
"description": "Validation Error"
|
|
}
|
|
},
|
|
"summary": "Search Risk Assessment",
|
|
"tags": [
|
|
"fhir"
|
|
]
|
|
}
|
|
},
|
|
"/{domain}/fhir/metadata": {
|
|
"get": {
|
|
"description": "What this base serves: built from the routes above, so it cannot drift from them.",
|
|
"operationId": "metadata",
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "domain",
|
|
"required": true,
|
|
"schema": {
|
|
"$ref": "#/components/schemas/Domain"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/fhir+json": {
|
|
"schema": {
|
|
"type": "object"
|
|
}
|
|
}
|
|
},
|
|
"description": "FHIR"
|
|
},
|
|
"422": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HTTPValidationError"
|
|
}
|
|
}
|
|
},
|
|
"description": "Validation Error"
|
|
}
|
|
},
|
|
"summary": "Metadata",
|
|
"tags": [
|
|
"fhir"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|