246 lines
4.7 KiB
JSON
246 lines
4.7 KiB
JSON
{
|
|
"nodes": [
|
|
{
|
|
"id": "paciente",
|
|
"kind": "source",
|
|
"label": "Pacientes",
|
|
"source": "dlt.sources.sql_database:sql_table",
|
|
"args": {
|
|
"credentials": "sqlite:///{hospital}/hospital_cama.db",
|
|
"table": "paciente"
|
|
}
|
|
},
|
|
{
|
|
"id": "mastografias",
|
|
"kind": "source",
|
|
"label": "Mastografías",
|
|
"source": "dlt.sources.sql_database:sql_table",
|
|
"args": {
|
|
"credentials": "sqlite:///{hospital}/hospital_cama.db",
|
|
"table": "mastografia",
|
|
"included_columns": [
|
|
"mast_id",
|
|
"pac_id_hospital",
|
|
"mast_fecha_toma",
|
|
"mast_fecha_reporte",
|
|
"mast_calidad_imagen",
|
|
"mast_birads"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "biopsias",
|
|
"kind": "source",
|
|
"label": "Biopsias de mama",
|
|
"source": "dlt.sources.sql_database:sql_table",
|
|
"args": {
|
|
"credentials": "sqlite:///{hospital}/hospital_cama.db",
|
|
"table": "biopsiamama",
|
|
"included_columns": [
|
|
"bx_id",
|
|
"pac_id_hospital",
|
|
"mast_id",
|
|
"bx_fecha_solicitud",
|
|
"bx_fecha_reporte",
|
|
"bx_grado_histologico"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "notas",
|
|
"kind": "source",
|
|
"label": "Notas clínicas",
|
|
"source": "dlt.sources.sql_database:sql_table",
|
|
"args": {
|
|
"credentials": "sqlite:///{hospital}/hospital_cama.db",
|
|
"table": "notamedica",
|
|
"included_columns": [
|
|
"nm_id",
|
|
"pac_id_hospital",
|
|
"nm_fecha",
|
|
"nm_especialidad",
|
|
"nm_cie_codigo",
|
|
"nm_motivo_consulta",
|
|
"nm_diagnostico_texto"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "patient_identity",
|
|
"kind": "map", "label": "Identidad (pacientes)",
|
|
"inputs": [
|
|
"paciente"
|
|
],
|
|
"fields": {
|
|
"record_number": "pac_id_hospital",
|
|
"birth_date": "pac_fecha_nacimiento",
|
|
"sex": "pac_sexo"
|
|
},
|
|
"concept_map": "hospital_cama"
|
|
},
|
|
{
|
|
"id": "deceased",
|
|
"kind": "route", "label": "Fallecidas",
|
|
"inputs": [
|
|
"paciente"
|
|
],
|
|
"when": [
|
|
{
|
|
"column": "pac_fecha_defuncion",
|
|
"op": "present"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "deaths",
|
|
"kind": "map", "label": "Defunciones",
|
|
"inputs": [
|
|
"deceased"
|
|
],
|
|
"fields": {
|
|
"death_date": "pac_fecha_defuncion"
|
|
}
|
|
},
|
|
{
|
|
"id": "mammogram_identity",
|
|
"kind": "map", "label": "Identidad (mastografías)",
|
|
"inputs": [
|
|
"mastografias"
|
|
],
|
|
"fields": {
|
|
"record_number": "pac_id_hospital"
|
|
}
|
|
},
|
|
{
|
|
"id": "mammogram",
|
|
"kind": "map", "label": "Mastografía",
|
|
"inputs": [
|
|
"mastografias"
|
|
],
|
|
"fields": {
|
|
"exam_date": "mast_fecha_toma",
|
|
"report_date": "mast_fecha_reporte",
|
|
"adequacy": "mast_calidad_imagen",
|
|
"birads": "mast_birads"
|
|
},
|
|
"concept_map": "hospital_cama"
|
|
},
|
|
{
|
|
"id": "biopsy_mammogram",
|
|
"kind": "join", "label": "Biopsia con su mastografía",
|
|
"inputs": [
|
|
"biopsias",
|
|
"mastografias"
|
|
],
|
|
"on": [
|
|
[
|
|
"mast_id",
|
|
"mast_id"
|
|
]
|
|
],
|
|
"how": "left"
|
|
},
|
|
{
|
|
"id": "biopsy_identity",
|
|
"kind": "map", "label": "Identidad (biopsias)",
|
|
"inputs": [
|
|
"biopsias"
|
|
],
|
|
"fields": {
|
|
"record_number": "pac_id_hospital"
|
|
}
|
|
},
|
|
{
|
|
"id": "biopsy",
|
|
"kind": "map", "label": "Biopsia",
|
|
"inputs": [
|
|
"biopsy_mammogram"
|
|
],
|
|
"fields": {
|
|
"request_date": "bx_fecha_solicitud",
|
|
"report_date": "bx_fecha_reporte",
|
|
"histology": "bx_grado_histologico",
|
|
"mammogram_exam_date": "mast_fecha_toma"
|
|
},
|
|
"concept_map": "hospital_cama"
|
|
},
|
|
{
|
|
"id": "note_identity",
|
|
"kind": "map", "label": "Identidad (notas)",
|
|
"inputs": [
|
|
"notas"
|
|
],
|
|
"fields": {
|
|
"record_number": "pac_id_hospital"
|
|
}
|
|
},
|
|
{
|
|
"id": "note",
|
|
"kind": "map", "label": "Nota médica",
|
|
"inputs": [
|
|
"notas"
|
|
],
|
|
"fields": {
|
|
"note_date": "nm_fecha",
|
|
"specialty": "nm_especialidad",
|
|
"icd10": "nm_cie_codigo",
|
|
"reason": "nm_motivo_consulta",
|
|
"diagnosis_text": "nm_diagnostico_texto"
|
|
},
|
|
"concept_map": "hospital_cama"
|
|
},
|
|
{
|
|
"id": "persons",
|
|
"kind": "link",
|
|
"label": "Quién es quién",
|
|
"inputs": [
|
|
"patient_identity",
|
|
"mammogram_identity",
|
|
"biopsy_identity",
|
|
"note_identity"
|
|
],
|
|
"fields": [
|
|
"record_number",
|
|
"birth_date",
|
|
"sex"
|
|
]
|
|
},
|
|
{
|
|
"id": "deaths_out",
|
|
"kind": "target", "label": "Defunciones",
|
|
"inputs": [
|
|
"deaths",
|
|
"persons"
|
|
],
|
|
"entity": "death"
|
|
},
|
|
{
|
|
"id": "mammogram_out",
|
|
"kind": "target", "label": "Mastografías",
|
|
"inputs": [
|
|
"mammogram",
|
|
"persons"
|
|
],
|
|
"entity": "mammography"
|
|
},
|
|
{
|
|
"id": "biopsy_out",
|
|
"kind": "target", "label": "Biopsias",
|
|
"inputs": [
|
|
"biopsy",
|
|
"persons"
|
|
],
|
|
"entity": "breast_biopsy"
|
|
},
|
|
{
|
|
"id": "notes_out",
|
|
"kind": "target", "label": "Notas médicas",
|
|
"inputs": [
|
|
"note",
|
|
"persons"
|
|
],
|
|
"entity": "clinical_note"
|
|
}
|
|
]
|
|
}
|