# HL7 v2 interfaces

Canonical URL: https://docs.chartvoyant.com/hl7/
Endpoint: `POST https://chartvoyant.com/api/v1/interop/hl7/{interfaceId}`

Lab results, radiology reports, and hospital admit, discharge, and demographic messages, sent to one practice over HTTPS by a lab, an imaging center, a hospital, or an interface engine. ChartVoyant answers every authenticated, well-formed message with an HL7 acknowledgment, files matched results to the chart for a clinician to review, and never creates or merges a patient.

## At a glance

| Status | Deployed in production on October 29, 2026. Each interface is turned on individually, for one practice, once its onboarding is complete: agreements, a synthetic test run, independent security testing, and the practice's go-ahead. |
| --- | --- |
| Endpoint | `POST https://chartvoyant.com/api/v1/interop/hl7/{interfaceId}`, one message per request. ChartVoyant assigns the interface ID when it sets up your feed. |
| Standard | HL7 v2 in the pipe-delimited ER7 encoding. Version 2.5.1, or 2.3 through 2.5.1 on an interface set up with the tolerant profile. |
| Transport | HTTPS, HL7 over HTTP style: the request body is the raw message, sent as `x-application/hl7-v2+er7` or `application/hl7-v2`, and the ACK comes back in the response body. MLLP and SFTP are not available. |
| Authentication | An HL7 sender key that can deliver to one interface and do nothing else, or a SMART Backend Services token that carries `system/hl7v2-ingest`. See Authentication. |
| Messages | `ORU^R01` for lab and radiology results; `ADT^A01`, `A03`, `A04`, `A08`, `A11`, `A13`, `A28`, and `A31` for hospital events and demographics. An `A40` merge becomes a notice for staff and never merges charts. |
| Limits | 2 MiB per message. 20 messages per second and 600 per minute for each interface. |
| Where data lands | One practice per interface. A result files only to a patient matched with certainty, and is marked not yet reviewed until a clinician reviews it. |

### How an interface goes live

The receive endpoint, result filing, the review desk, and hospital event notices run in production. Each interface carries its own approvals before it takes a message: an interface agreement, a business associate agreement (and one for any intermediary in the path), the message types it may send, independent security testing that covers this endpoint, and the practice's go-ahead. Testing runs first on a separate interface in a ChartVoyant sandbox office, with processing ID `T` and synthetic messages, and it needs the same approvals on file.

## Send a message

Synthetic values throughout. Use carriage returns between segments; line feeds are accepted too, and the strict profile notes them with a warning. Use the `MSH-3` to `MSH-6` values and the processing ID agreed when your interface is set up.

**HTTP Request**

```er7
POST https://chartvoyant.com/api/v1/interop/hl7/INTERFACE_ID
Authorization: Bearer cvk_YOUR_HL7_SENDER_KEY
Content-Type: x-application/hl7-v2+er7

MSH|^~\&|SYNLAB|SYNLAB-CLEVELAND|CHARTVOYANT|EXAMPLE-PRACTICE|20261031101500-0400||ORU^R01^ORU_R01|SYN000123|T|2.5.1
PID|1||SYN-000123^^^SYNLAB^MR||ZZTEST^ALPHA||19700101|F
ORC|RE|PLACER_ORDER_ID|SYN-F-7781
OBR|1|PLACER_ORDER_ID|SYN-F-7781|4548-4^Hemoglobin A1c/Hemoglobin.total in Blood^LN|||20261030083000-0400|||||||||||||||20261031101000-0400||CH|F
OBX|1|NM|4548-4^Hemoglobin A1c/Hemoglobin.total in Blood^LN||6.1|%|4.0-5.6|H|||F
```

**cURL**

```bash
curl -X POST "https://chartvoyant.com/api/v1/interop/hl7/$INTERFACE_ID" \
  -H "Authorization: Bearer $HL7_SENDER_KEY" \
  -H "Content-Type: x-application/hl7-v2+er7" \
  --data-binary @synthetic-oru.hl7
```
