diff --git a/openapi.json b/openapi.json index 4f8abae..4eda5c5 100644 --- a/openapi.json +++ b/openapi.json @@ -422,6 +422,7 @@ }, "default": {}, "description": "Dato \u2192 columna, sin leer el texto.", + "keys": "field", "title": "Datos tomados de columnas", "type": "object" }, @@ -455,13 +456,70 @@ "eeg" ], "title": "Estudio", - "type": "string" + "type": "string", + "widget": { + "formlyConfig": { + "props": { + "options": [ + { + "label": "Identidad de la persona", + "value": "identity" + }, + { + "label": "Citolog\u00eda cervical", + "value": "cervical_cytology" + }, + { + "label": "Biopsia cervical", + "value": "cervical_biopsy" + }, + { + "label": "Mastograf\u00eda", + "value": "mammography" + }, + { + "label": "Biopsia de mama", + "value": "breast_biopsy" + }, + { + "label": "Tratamiento de c\u00e1ncer de mama", + "value": "breast_treatment" + }, + { + "label": "Recurrencia de c\u00e1ncer de mama", + "value": "breast_recurrence" + }, + { + "label": "Nota m\u00e9dica", + "value": "clinical_note" + }, + { + "label": "Defunci\u00f3n", + "value": "death" + }, + { + "label": "M-CHAT-R/F", + "value": "mchat" + }, + { + "label": "ADOS-2", + "value": "ados2" + }, + { + "label": "Electroencefalograma", + "value": "eeg" + } + ] + } + } + } }, "formats": { "additionalProperties": { "type": "string" }, "default": {}, + "keys": "field", "title": "Formatos de fecha", "type": "object" }, @@ -535,6 +593,7 @@ }, "default": {}, "description": "Dato \u2192 expresi\u00f3n con un grupo ( ).", + "keys": "field", "title": "Patrones", "type": "object" }, @@ -595,7 +654,63 @@ "eeg" ], "title": "Estudio", - "type": "string" + "type": "string", + "widget": { + "formlyConfig": { + "props": { + "options": [ + { + "label": "Identidad de la persona", + "value": "identity" + }, + { + "label": "Citolog\u00eda cervical", + "value": "cervical_cytology" + }, + { + "label": "Biopsia cervical", + "value": "cervical_biopsy" + }, + { + "label": "Mastograf\u00eda", + "value": "mammography" + }, + { + "label": "Biopsia de mama", + "value": "breast_biopsy" + }, + { + "label": "Tratamiento de c\u00e1ncer de mama", + "value": "breast_treatment" + }, + { + "label": "Recurrencia de c\u00e1ncer de mama", + "value": "breast_recurrence" + }, + { + "label": "Nota m\u00e9dica", + "value": "clinical_note" + }, + { + "label": "Defunci\u00f3n", + "value": "death" + }, + { + "label": "M-CHAT-R/F", + "value": "mchat" + }, + { + "label": "ADOS-2", + "value": "ados2" + }, + { + "label": "Electroencefalograma", + "value": "eeg" + } + ] + } + } + } }, "id": { "maxLength": 40, @@ -705,7 +820,8 @@ "url", "oauth", "table", - "format" + "format", + "columns" ], "title": "Type", "type": "string" @@ -828,7 +944,7 @@ "type": "string" }, "on": { - "description": "Pares [columna izquierda, derecha].", + "description": "Columna de la primera entrada = columna de la segunda.", "items": { "maxItems": 2, "minItems": 2, @@ -1003,6 +1119,7 @@ "type": "string" }, "description": "Dato de la plataforma \u2192 columna del sitio.", + "keys": "field", "title": "Campos", "type": "object" }, @@ -1012,6 +1129,7 @@ }, "default": {}, "description": "Por ejemplo %d/%m/%Y.", + "keys": "field", "title": "Formatos de fecha", "type": "object" }, @@ -1059,6 +1177,7 @@ }, "default": {}, "description": "Un dato igual para todas las filas.", + "keys": "field", "title": "Valores fijos", "type": "object" } @@ -1710,12 +1829,14 @@ "properties": { "args": { "additionalProperties": true, + "advanced": true, "default": {}, "description": "Los de la fuente dlt.", - "title": "Argumentos (JSON)", + "title": "Argumentos", "type": "object" }, "guided": { + "advanced": true, "anyOf": [ { "$ref": "#/components/schemas/Guided" @@ -1723,7 +1844,8 @@ { "type": "null" } - ] + ], + "title": "Asistente" }, "id": { "maxLength": 40, @@ -1764,6 +1886,7 @@ ] }, "primary_key": { + "advanced": true, "default": [], "description": "Columnas que identifican una fila.", "items": { @@ -1773,6 +1896,7 @@ "type": "array" }, "resource": { + "advanced": true, "anyOf": [ { "type": "string" @@ -1785,12 +1909,14 @@ "title": "Recurso" }, "source": { + "advanced": true, "description": "M\u00f3dulo:funci\u00f3n de la fuente dlt.", "pattern": "^[A-Za-z_][\\w.]*:[A-Za-z_]\\w*$", "title": "Fuente dlt", "type": "string" }, "then": { + "advanced": true, "anyOf": [ { "pattern": "^[A-Za-z_][\\w.]*:[A-Za-z_]\\w*$", @@ -2004,7 +2130,63 @@ "eeg" ], "title": "Estudio", - "type": "string" + "type": "string", + "widget": { + "formlyConfig": { + "props": { + "options": [ + { + "label": "Identidad de la persona", + "value": "identity" + }, + { + "label": "Citolog\u00eda cervical", + "value": "cervical_cytology" + }, + { + "label": "Biopsia cervical", + "value": "cervical_biopsy" + }, + { + "label": "Mastograf\u00eda", + "value": "mammography" + }, + { + "label": "Biopsia de mama", + "value": "breast_biopsy" + }, + { + "label": "Tratamiento de c\u00e1ncer de mama", + "value": "breast_treatment" + }, + { + "label": "Recurrencia de c\u00e1ncer de mama", + "value": "breast_recurrence" + }, + { + "label": "Nota m\u00e9dica", + "value": "clinical_note" + }, + { + "label": "Defunci\u00f3n", + "value": "death" + }, + { + "label": "M-CHAT-R/F", + "value": "mchat" + }, + { + "label": "ADOS-2", + "value": "ados2" + }, + { + "label": "Electroencefalograma", + "value": "eeg" + } + ] + } + } + } }, "id": { "maxLength": 40, diff --git a/src/app/api/models/field-spec.ts b/src/app/api/models/field-spec.ts index 2c5d061..db35e8d 100644 --- a/src/app/api/models/field-spec.ts +++ b/src/app/api/models/field-spec.ts @@ -11,5 +11,5 @@ export interface FieldSpec { placeholder?: string; provider?: (string | null); required?: boolean; - type?: 'text' | 'number' | 'password' | 'select' | 'folder' | 'server_file' | 'upload' | 'url' | 'oauth' | 'table' | 'format'; + type?: 'text' | 'number' | 'password' | 'select' | 'folder' | 'server_file' | 'upload' | 'url' | 'oauth' | 'table' | 'format' | 'columns'; } diff --git a/src/app/api/models/join.ts b/src/app/api/models/join.ts index 96c7fe6..8a820be 100644 --- a/src/app/api/models/join.ts +++ b/src/app/api/models/join.ts @@ -18,7 +18,7 @@ export interface Join { label?: string; /** - * Pares [columna izquierda, derecha]. + * Columna de la primera entrada = columna de la segunda. */ on: Array<[string, string]>; position?: (Position | null);