Compare commits

...

7 Commits

7 changed files with 36 additions and 2 deletions
+3
View File
@@ -10,4 +10,7 @@ WebApp/
**/uv.lock
!WebApi/uv.lock
dist/
# The image compiles its own manifest.
Transformation/target/
Transformation/logs/
**/node_modules/
+1
View File
@@ -71,6 +71,7 @@ class OrdenesEstudio(TeaModel, table=True):
)
ord_tipo_estudio: Optional[str] = _text() # TipoEstudio: ADOS2, NEUROPEDIATRIA, EEG
ord_fecha: Optional[date] = _date()
ord_pdf_blob: Optional[bytes] = Field(default=None, sa_column=sa.Column(FileBlob)) # the study's report, as PDF
class Mchat(TeaModel, table=True):
+1
View File
@@ -29,6 +29,7 @@ canales, duración, sueño, métricas y valores por electrodo.
| `ord_id_hospital` | VARCHAR(64), indexado | — | Llave natural para unir órdenes de varias fuentes al importar. | — |
| `ord_tipo_estudio` | TEXT | — | Catálogo `TipoEstudio`: `ADOS2, NEUROPEDIATRIA, EEG`. | — |
| `ord_fecha` | DATE | — | No puede ser una fecha futura. | — |
| `ord_pdf_blob` | BLOB (LONGBLOB en MySQL/MariaDB) | — | Informe del estudio en PDF, si la fuente lo trae. | — |
---
@@ -0,0 +1,28 @@
"""tea order pdf
`ordenes_estudio.ord_pdf_blob` holds the report of the study an order asks for, as a PDF.
Revision ID: a7d3c9e5b160
Revises: f2b6d1e8c934
Create Date: 2026-11-13 10:12:00.000000
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import mysql
# revision identifiers, used by Alembic.
revision = 'a7d3c9e5b160'
down_revision = 'f2b6d1e8c934'
branch_labels = None
depends_on = None
def upgrade() -> None:
with op.batch_alter_table('ordenes_estudio', schema=None) as batch_op:
batch_op.add_column(sa.Column('ord_pdf_blob', sa.LargeBinary().with_variant(mysql.LONGBLOB(), 'mariadb').with_variant(mysql.LONGBLOB(), 'mysql'), nullable=True))
def downgrade() -> None:
with op.batch_alter_table('ordenes_estudio', schema=None) as batch_op:
batch_op.drop_column('ord_pdf_blob')
+1
View File
@@ -7,3 +7,4 @@ uv.lock
package-lock.yml
.venv/
graphify-out/
*.db
+1 -1
Submodule WebApi updated: 0f9433949f...461d651805
+1 -1
Submodule WebApp updated: 62cdb252ca...4ffd3797b6