Convert a canonical patient event into an HL7 v2.x ADT message

Convert a canonical :class:`PatientEvent` into an HL7 v2.x ADT message. The payload is the same canonical structure accepted by ``/patient/validate``, including ``integration_configs`` which drives sender/receiver identifiers and which optional segments (GT1, IN1, OBX) to emit. Returns the HL7 message as both a ``\r``-joined string and a list of segments.

Authentication

AuthorizationBearer

Static shared-secret token for internal service-to-service calls.

Query parameters

versionenumOptional

Target HL7 version: 2.3, 2.5 or 2.7

Allowed values:

Request

This endpoint expects a map from strings to any.

Response

Successful Response

Errors

422
Unprocessable Entity Error