Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 053679c817 | |||
| ffa732df12 | |||
| 786b199203 |
+4
-5
@@ -59,10 +59,10 @@ test("indicators: the KPIs are the API's MeasureReports, every tab and the patie
|
||||
await expect(page.locator('app-tab-indicadores app-plot').first()).toBeVisible();
|
||||
|
||||
await page.getByRole('tab', { name: 'Trazabilidad' }).click();
|
||||
await expect(page.locator('app-tab-trazabilidad mat-card')).toHaveCount(14);
|
||||
await expect(page.locator('app-tab-trazabilidad section.panel')).toHaveCount(9);
|
||||
|
||||
await page.getByRole('tab', { name: 'Datos y definiciones' }).click();
|
||||
await expect(page.locator('app-tab-definiciones tbody tr')).toHaveCount(14);
|
||||
await expect(page.locator('app-tab-definiciones details')).toHaveCount(14);
|
||||
|
||||
const list = page.waitForResponse((r) => r.url().includes('/fhir/Patient?'));
|
||||
await page.getByRole('tab', { name: 'Análisis de riesgos' }).click();
|
||||
@@ -73,7 +73,7 @@ test("indicators: the KPIs are the API's MeasureReports, every tab and the patie
|
||||
await expect(rows).toHaveCount(Math.min(20, bundle.total));
|
||||
await expect(rows.first().locator('a').first()).toHaveText(first);
|
||||
await page.getByRole('button', { name: 'Siguiente' }).click();
|
||||
await expect(page.getByText(`21–`)).toBeVisible();
|
||||
await expect(page.getByText('Página 2 de')).toBeVisible();
|
||||
|
||||
await page.getByRole('button', { name: 'Anterior' }).click();
|
||||
await rows.first().locator('a').first().click();
|
||||
@@ -103,13 +103,12 @@ test('conectar: open the hospital pipeline, preview a source, run it to success'
|
||||
await page.getByText('cacu', { exact: true }).click();
|
||||
await expect(page.locator('vflow')).toBeVisible();
|
||||
// a node's caption: its kind, then its name
|
||||
await page.locator('.node-caption', { hasText: 'Pacientes' }).click();
|
||||
await page.locator('.node-caption', { hasText: 'Fuente de datosPacientes' }).click();
|
||||
// drawn from a fixture, read back as a guided SQLite source: the dialog edits it
|
||||
await expect(page.getByRole('button', { name: 'Editar conexión' })).toBeVisible();
|
||||
await page.getByRole('button', { name: 'Vista previa' }).click();
|
||||
await expect(page.locator('.preview tr[mat-row]').first()).toBeVisible();
|
||||
// A map node shows the site's codes in platform terms (its ConceptMap), editable as rows.
|
||||
await page;
|
||||
await page
|
||||
.locator('.node-caption', { hasText: 'Traducir códigos' })
|
||||
.filter({ has: page.locator('.name', { hasText: /^Citología$/ }) })
|
||||
|
||||
+189
-7
@@ -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,
|
||||
|
||||
@@ -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';
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -33,6 +33,8 @@ export interface SourceDialogData {
|
||||
guided?: Guided | null;
|
||||
label?: string;
|
||||
}
|
||||
const NONE: string[] = [];
|
||||
|
||||
/** What it gives back: the dialog's answers (the node's dlt fields are made from them). */
|
||||
export interface SourceDialogResult {
|
||||
guided: Guided;
|
||||
@@ -203,17 +205,17 @@ export class SourceDialog {
|
||||
}
|
||||
}
|
||||
|
||||
/** The tables a database listed, for its table field. */
|
||||
/** A list answer (the columns picked), as a list. */
|
||||
protected listed(name: string): string[] {
|
||||
const v = this.value(name);
|
||||
return Array.isArray(v) ? (v as string[]) : [];
|
||||
return Array.isArray(v) ? (v as string[]) : NONE; // a new list each time renders forever
|
||||
}
|
||||
/** The columns to pick from: the first rows', and those already picked. */
|
||||
protected columnOptions(name: string): string[] {
|
||||
return [...new Set([...this.columns(), ...this.listed(name)])];
|
||||
}
|
||||
|
||||
/** The tables a database listed, for its table field. */
|
||||
protected tables(): string[] {
|
||||
return this.tableList();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user