Learning path
Processed nodes3
Isolates evaluated locally1160
Raw rows exported0

Aggregated pathogen counts

CRAB
397
CRE
439
CRPA
324

Aggregated resistance by antibiotic

amikacin
69.6%
cefiderocol
67.5%
colistin
65.8%
meropenem
75.5%

Node status

The coordinator sees status and aggregates; it does not receive patients, specimens, isolates, or row-level AST results.

NodeStatus
nodo_barcelona_marOK
nodo_madrid_norteOK
nodo_valencia_turiaOK

Node Agent API (FastAPI microservice)

Each node exposes a local REST API. The webapp tries to connect in real time; if the microservice is not running, it falls back to static aggregates.

Node agent microservice not detected. Showing static data. Start with: python -m node_agent (from 09_node_agent_simulado/).

madrid-norte

Offline

barcelona-sur

Offline

valencia-este

Offline

Module README

09 Simulated Hospital Node Agent

This module simulates a local hospital node agent. The agent reads the relational AMR model from module 08, validates minimum quality, and exports only permitted artifacts.

Core idea

In PROTEONEXT, sensitive data should not move to a central repository. The correct pattern is:

Local node data
        |
        v
Node agent
        - validates schema
        - computes quality
        - executes aggregated query
        - prepares permitted export
        |
        v
Only metrics, aggregates, and non-identifiable evidence leave

Outputs

The script generates:

  • salida/node_exports/<node_id>_export.json
  • salida/coordinator_summary.json

Each export includes:

  • Row count per table.
  • Minimum quality.
  • Count by pathogen.
  • Resistance by antibiotic.
  • Genomics availability.
  • Simulated job hash.
  • raw_rows_exported: 0

Run

From Desarrollo:

& 'C:\ProgramData\miniconda3\python.exe' .\09_node_agent_simulado\node_agent.py

Disclaimer

This is an educational simulation. It does not implement real security, real authentication, real attestation, or real hospital connectors.