PMS Connect
Testing
Try your PMS Connect implementation against the hosted demo and the conformance checker.
Two tools help you get to a working integration without a real clinic.
Hosted demo
A fake PMS that implements the whole contract, populated with obviously fictional data, lives at https://pms-demo.voxlera.co. Use it to see what Voxlera expects, to compare its responses with yours, and to watch a connection from the clinic side. See the Quickstart.
Warning
Never enter real patient data in the demo. Use fictional names and phone numbers only.
Conformance checker
The check command calls your API the way Voxlera does and reports what passes. It checks GET /v1/capabilities, the shape of each response you declare, that GET /v1/appointments accepts the optional doctorId filter, the error body for an unknown id and (with --writes) booking and idempotency.
Note
The checker is not published to npm yet. For now ask Voxlera for a copy; this page will show the install command when it ships. It is a Node.js program.
check --url https://pms.example.com --key pmsk_live_a1b2c3| Option | Meaning |
|---|---|
--url | Your base URL (without /v1). |
--key | An API key, sent as Authorization: Bearer <key>. |
--writes | Also test write operations. This creates, then cancels, a test appointment, so point it at a test environment. |
--json | Print machine-readable JSON instead of a table. |
Sample output:
Required reads
PASS doctors.list
PASS patients.get
PASS appointments.list
PASS appointments.list.doctorId
PASS treatments.completed
Optional reads
PASS slots.list
n/a patients.treatments
n/a treatmentTypes.list
Other checks
PASS capabilities
PASS error-format
Result: PASS(Write operations appear in a Writes section when you pass --writes.)
appointments.list.doctorId asks for one doctor's appointments (?doctorId=<the first doctor from /v1/doctors>). Voxlera sends this filter every time it looks up free slots, so your API must answer 200 with a normal page; a 4xx fails the check and blocks connecting. It is skipped when you have no doctors yet.
PASS: the operation works and its response matches the contract.FAIL: the operation is declared but wrong; the line says why.n/a: you did not declare it, which is fine.SKIP: not run, with the reason (for example, the host could not be reached, or your test data had nothing to check against).
The exit code is 0 when every required read passes and nothing fails, and 1 otherwise, so you can run the checker in CI. The checker does not follow redirects, matching Voxlera.
Checking webhooks
Sign the test vector with your code and compare it character for character with the published header. If they match, Voxlera will accept your signatures.