Creates an appointment comment/alert for a pending reporting appointment.
Idempotency: supports the Idempotency-Key header. Best-effort process-local deduplication only, with a cache lifetime of up to 24 hours. A cached identical request replays its response; a cached key with a different payload returns 409. Eviction, restarts, different instances or concurrent requests can still create duplicates. Verify existing comments after an uncertain outcome before retrying; retain the original key and payload.
Returns 404 when the appointment is not found or is not in the PENDING REPORTING status.
Optional key for best-effort process-local deduplication. Reuse the original key and payload, but duplicates remain possible after eviction, restarts, on another instance or with concurrent requests. See endpoint notes for cache lifetimes and recovery guidance.
Comment text. Required; blank values are rejected.
Optional comment type. One of: AC (Appointment Comment), AA (Appointment Alert), PC (Patient Comment), PA (Patient Alert). Defaults to AA when isAlert is true, otherwise AC.
- Mock serverhttps://partnerdocs.qubs.io/_mock/openapi/integrations/v1/{domain}/reporting/appointments/{appointmentId}/comments
- Production APIhttps://partners.qubs.io/integrations/v1/{domain}/reporting/appointments/{appointmentId}/comments
- Relative to the current hosthttps://partnerdocs.qubs.io/integrations/v1/{domain}/reporting/appointments/{appointmentId}/comments
curl -i -X POST \
https://partnerdocs.qubs.io/_mock/openapi/integrations/v1/acme/reporting/appointments/200006/comments \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: cd4a859c7a1f4b44b765a8fe17bb44c1' \
-H 'X-Correlation-Id: 4b7f0a91b4f54f2a' \
-d '{
"commentText": "Please prioritize this study.",
"commentType": "AA",
"isAlert": true,
"commentDateTime": "2025-01-10T02:03:04Z"
}'Created
Comment type. One of: AC (Appointment Comment), AA (Appointment Alert), PC (Patient Comment), PA (Patient Alert).
Opaque appointment identifier for appointment comments; empty for patient-level comments.
When the comment was created (UTC) when available.
{ "guid": "ed6ef45a-4e3d-41b2-8049-7aec53bb9ab1", "commentType": "AA", "appointmentId": "200006", "patientId": "220000", "commentText": "Please prioritize this study.", "commentDateTime": "2025-01-10T02:03:04Z", "isAlert": true, "commentBy": { "username": "mbrown", "firstName": "Maya", "initials": "MB", "lastName": "Brown", "role": "Reception" }, "lastModifiedDateTime": "2025-01-10T02:03:04Z" }