HIS integration methods, data flows, on-premise architecture, minimum system requirements and network/security requirements. Labels: Available ready today · Roadmap planned.
| Layer | Technology |
|---|---|
| Application | Next.js (Node.js 20) — server-side rendering + REST API |
| Database | PostgreSQL 16 |
| Authentication | Username/password (bcrypt), JWT session, role-based access control (RBAC) |
| Reverse proxy / TLS | Caddy (automatic HTTPS) — institutional certificates also supported |
| Packaging | Docker + Docker Compose (one image for cloud and on-premise) |
| Integration engine | Mirth Connect (NextGen Connect) — recommended as the HL7/MLLP broker |
| File store | Local disk (volume) or S3/MinIO (images, ultrasound and NST attachments) |
PartoAI connects to the HIS through an adapter (anti-corruption) layer. The core software knows one canonical data model; HIS-specific fields are isolated in adapters at the edge. Supported transports:
The standard most hospital information systems speak. Recommended topology: HIS ⇄ Mirth Connect (MLLP/TCP) ⇄ PartoAI REST. Mirth handles message transformation, queueing, retries and logging; PartoAI only speaks its own REST API. PartoAI includes HL7 parsing and generation helpers (PID → patient demographics, MDM generation).
If the HIS offers a REST service, the adapter calls it directly over HTTPS with a token. PartoAI's own REST API is integrated the same way (see section 5).
Some HIS products provide SOAP/WSDL; it is wrapped in the adapter and converted to the canonical model.
Works without a live connection: an HL7 ADT message from the HIS is pasted in, or a batch file is transferred. A fast go-live before the integration agreement is complete is possible this way.
| Direction | Message | Purpose |
|---|---|---|
| HIS → PartoAI | ADT^A01 / A04 / A08 | Admission / registration / update — automatically create or match the patient arriving at the labour ward |
| PartoAI → HIS | QBP^Q22 / RSP or REST | Patient lookup by national ID or protocol number |
| PartoAI → HIS | ORU^R01 | Sending observations/results (e.g. monitoring data) |
| PartoAI → HIS | MDM^T02 | Sending the birth/partogram document |
Field mappings (segment/field indexes) are confirmed in the adapter against the HIS vendor's conformance guide. Institution code and national ID matching are supported.
ADT → Mirth → PartoAI creates or matches the patient (by national ID or protocol number).MDM/ORU to the HIS through Mirth.All endpoints run over HTTPS with session/token authentication; requests and responses are JSON. Every call is written to the audit log; raw PHI is not logged.
| Endpoint | Method | Description |
|---|---|---|
/api/integrations/lookup | POST | Patient lookup by national ID / protocol number / HL7; pre-fills the admission form |
/api/integrations/push | POST | Sends the completed birth record to the HIS (or generates an HL7 MDM) |
/api/integrations/status | GET | The hospital's integration status and supported types |
/api/nst/evaluate | POST | NST/CTG assessment (rule engine + optional AI); alert on Cat. II/III |
Example — patient lookup request and response:
POST /api/integrations/lookup
Content-Type: application/json
{ "nationalId": "10000000146", "protocolNo": "2026-5567" }
→ 200 OK
{ "ok": true,
"patient": { "nationalId":"10000000146","name":"...","ga":39,"gravida":2,"parity":1 } }
Connection details (baseUrl, token) are defined per hospital in the admin panel; the token is stored encrypted, on the server only.
All components run as Docker containers on a single server. Only 443 (HTTPS) is exposed; the database, file store and integration engine are not reachable from outside.
Even if the hospital's HIS runs on Windows Server + MSSQL, PartoAI integrates without difficulty. PartoAI runs on the hospital's existing virtualisation (VMware/Hyper-V), in a small Ubuntu VM; the Windows servers are not touched. Because the integration is protocol-based (HL7/TCP) it is independent of the operating system — the HIS database (MSSQL) is never accessed.
| # | Step | Owner |
|---|---|---|
| 1 | An Ubuntu 22.04 VM is created on the existing hypervisor (8 vCPU / 16 GB / 250 GB) and attached to the internal VLAN (e.g. 10.0.1.20) | Hospital IT |
| 2 | Docker + Compose are installed on the VM; the PartoAI package is started (app + db + backup + Mirth) | Joint |
| 3 | Internal domain name + certificate for clinical access (e.g. partoai.hastane.local → 443) | Joint |
| 4 | The HL7 interface is enabled on the HIS side; the ADT feed is routed to Mirth (10.0.1.20:6661) | Hospital IT + HIS vendor |
| 5 | Mirth channels: inbound ADT → PartoAI REST; outbound birth record (MDM) → HIS. With mTLS | PartoAI |
| 6 | Test: a sample patient ADT is sent and the match is verified in PartoAI; birth-record write-back is tested | Joint |
Note: IP addresses and domain names are examples; they follow the institution's network plan. If the hospital does not want a Linux VM at all, Docker with a WSL2 back end on Windows Server, or a native (Node + PostgreSQL) installation, is also possible; an Ubuntu VM is the cleanest and recommended option.
| Resource | Minimum (pilot / single unit) | Recommended (production) |
|---|---|---|
| CPU | 4 vCPU | 8 vCPU |
| RAM | 8 GB | 16 GB |
| Disk | 100 GB SSD | 250+ GB NVMe (+ separate backup disk) |
| Operating system | Linux (Ubuntu 22.04 LTS recommended) · Docker + Docker Compose | |
| Virtualisation | VM or physical server; dedicated resources recommended | |
| Backup | Encrypted disk (LUKS) + automatic backup + off-site copy | |
Scale note: even in a national scenario of about one million births a year the write load is low for PostgreSQL; for large institutions a read replica and more memory are recommended.
| Port | Direction | Purpose |
|---|---|---|
| 443/TCP (and 80→443) | Inbound (users) | HTTPS access to the application — the only external port |
| 3000/TCP | Internal | Application (reached only by the proxy; not exposed) |
| 5432/TCP | Internal | PostgreSQL (not exposed) |
| 6661/TCP (MLLP) | Internal / HIS VLAN | HL7 integration (Mirth); with the HIS only, mTLS |
| 22/TCP (SSH) | Management | Over the management network / VPN only |
pg_dump + gzip + (optional) AES encryption + retention management; a tested restore procedure.git clone <repo> && cd rap cp .env.docker.example .env # passwords, PHI key, domain name docker compose up -d --build # app + db + caddy + backup # update: git pull && docker compose up -d --build
The deliverable is a single container package that hospital IT can start within minutes. Updates are supplied as versioned images/packages; schema migrations are applied automatically and safely at start-up (with an automatic fallback if something goes wrong).
| Area | Hospital IT | PartoAI |
|---|---|---|
| Server / VM provision, operating system | ✓ | — |
| Network, firewall, VPN, segmentation | ✓ | Advisory |
| Disk encryption, physical security | ✓ | — |
| Application installation and updates | Joint | ✓ |
| Application encryption, audit, backup script | — | ✓ |
| HIS access / test environment | ✓ (with the vendor) | Adapter development |
| Off-site backup copy and retention | ✓ | Procedure |