Introduction
integration-service turns canonical patient/order events into outbound messages and delivers them to downstream systems. It can emit HL7 v2.x (ADT/ORM) or forward JSON unchanged, and deliver over HTTP or TCP/IP.
Authentication
Every /api/* endpoint requires a shared-secret bearer token:
Requests without a valid token are rejected with 401. Health and metrics
endpoints (/health, /health/live, /health/ready, /metrics) are public.
Base URL
How delivery works
The integration_configs block on each event drives both the output format and
the transport:
In JSON mode the internal keys (rule_templates, integration_configs) are
stripped before sending, so the receiver only gets business data.
Choosing an endpoint
deliver returns 502 when the receiver is unreachable, while validate
returns 200 and reports the outcome under delivery.
API Reference
See the API Reference section for every endpoint with its request/response schema. This reference is generated from the service’s OpenAPI schema, so it always matches the deployed code.