-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenapi.yaml
2594 lines (2569 loc) · 92.5 KB
/
openapi.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.0.1
info:
title: Healthengine PMS API
description: An API to allow an external agent to publish information to Healthengine
in order to allow booking of appointments.
contact:
email: [email protected]
version: 1.8.0
servers:
- url: https://healthengine.com.au/pms-api/v1
tags:
- name: requests
description: Operations requested from Healthengine
- name: bookings
description: Operations on Healthengine bookings
- name: availability
description: Operations to add availability to Healthengine that can be booked
- name: configuration
description: Operations to setup PMS resources, PMS appointment types, ... to Healthengine
- name: features
description: Operations to enable/disable extra features that are supported/unsupported at your end
- name: subscriptions
description: Operations to manage Healthengine subscriptions
- name: subscription error logs
description: Operations to retrieve error logs created during subscription callback
- name: documents
description: Operations to add documents to Healthengine bookings
- name: client snapshots
description: Operations to send client snapshots to Healthengine
- name: attach documents
description: Operations to get document content and confirm or reject document insert into the PMS
paths:
# paths: requests
/requests:
get:
tags:
- requests
summary: Get outstanding requests
description: >
Gets a list of requests to retrieve from the Healthengine API. You should do this on a timer.
We expect that if you are polling us that the integration is healthy, and can actively process requests or upload availability.
If your poll is more than 10 minutes apart (outside of the liveness contract) we may consider the integration unhealthy,
and hide the patient's ability to make bookings with the specified practice.
operationId: pollRequests
responses:
'200':
description: Successful
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Request'
'401':
$ref: '#/components/responses/UnauthorizedError'
/requests/bookings:
get:
tags:
- requests
summary: Get booking requests
description: Get pending bookings that should be inserted into the PMS
operationId: bookingRequests
parameters:
- in: query
name: page
schema:
type: integer
format: int64
description: The page to request
responses:
'200':
description: Successful
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/Booking'
page:
$ref: '#/components/schemas/Paginated'
'401':
$ref: '#/components/responses/UnauthorizedError'
/requests/bookingUpdates:
get:
tags:
- requests
summary: Get booking update requests
description: >
Get the changes to existing bookings that should be updated into the PMS.
This include pending cancellations.
operationId: bookingUpdateRequests
parameters:
- in: query
name: page
schema:
type: integer
format: int64
description: The page to request
responses:
'200':
description: Successful
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/BookingUpdate'
page:
$ref: '#/components/schemas/Paginated'
'401':
$ref: '#/components/responses/UnauthorizedError'
/requests/availability:
get:
tags:
- requests
summary: Get availability requests
description: >
Get dates that Healthengine wants to refresh available appointments for.
This request should only happen in specific cases.
You should not rely **only** on these requests to send availability snapshots.
The normal workflow is to send availability snapshots as soon as availability has changed in the PMS.
operationId: availabilitySnapshotRequests
parameters:
- in: query
name: page
schema:
type: integer
format: int64
description: The page to request
responses:
'200':
description: Requested days to sync to Healthengine
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/AvailabilityRequest'
page:
$ref: '#/components/schemas/Paginated'
'401':
$ref: '#/components/responses/UnauthorizedError'
/requests/pmsAppointmentChanges:
get:
tags:
- requests
summary: Get PMS appointment change requests
description: >
Get booking ids that Healthengine wants to refresh PMS appointment changes for.
This request should only happen in specific cases.
You should not rely **only** on these requests to send appointment changes.
The normal workflow is to send appointment changes as soon as the appointment has changed in the PMS.
operationId: pmsAppointmentChangeRequests
parameters:
- in: query
name: page
schema:
type: integer
format: int64
description: The page to request
responses:
'200':
description: Requested appointment changes that should be sent to Healthengine according to a list of bookingId
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/PmsAppointmentChangesRequest'
page:
$ref: '#/components/schemas/Paginated'
'401':
$ref: '#/components/responses/UnauthorizedError'
/requests/availableDocuments:
get:
tags:
- requests
summary: Get available document requests
description: >
[Extra Feature: documents]
You will only receive these requests when documents feature is supported and enabled at your end.
Get booking ids that Healthengine wants to refresh list of available documents.
The normal workflow is to send list of available documents as soon as new documents are available for a booking (scripts, referral, ...).
This request is specifically included to support reconciliation and as a backup for dropped messages.
operationId: availableDocumentsRequests
parameters:
- in: query
name: page
schema:
type: integer
format: int64
description: The page to request
responses:
'200':
description: Requested list of available documents that should be sent to Healthengine according to a list of bookingId
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/AvailableDocumentsRequest'
page:
$ref: '#/components/schemas/Paginated'
'401':
$ref: '#/components/responses/UnauthorizedError'
/requests/uploadDocuments:
get:
tags:
- requests
summary: Get upload document requests
description: >
[Extra Feature: documents]
You will only receive these requests when documents feature is supported and enabled at your end.
Get document ids that need to be uploaded to Healthengine.
Documents will only be requested if patient gives consent.
operationId: uploadDocumentsRequests
parameters:
- in: query
name: page
schema:
type: integer
format: int64
description: The page to request
responses:
'200':
description: Requested list of documents that should be uploaded to Healthengine according to a list of pmsDocumentId
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/UploadDocumentsRequest'
page:
$ref: '#/components/schemas/Paginated'
'401':
$ref: '#/components/responses/UnauthorizedError'
/requests/clientSnapshots:
get:
tags:
- requests
summary: Get client snapshot dates that Healthengine needs.
description: >
[Extra Feature: clientSnapshots]
You will only receive these requests when clientSnapshots feature is supported and enabled at your end.
These client snapshots will be requested for practices having products that need appointment and patient details from your PMS.
These products are: Appointment Reminders, Patient Feedback, Patient Waiting Room, Patient Check-Ins, New Patient Forms and more to come.
If you don't provide these client snapshots, practices will be unable to use these products.
operationId: clientSnapshotsRequests
parameters:
- in: query
name: page
schema:
type: integer
format: int64
description: The page to request
responses:
'200':
description: Requested days to sync to Healthengine
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/ClientSnapshotRequest'
page:
$ref: '#/components/schemas/Paginated'
'401':
$ref: '#/components/responses/UnauthorizedError'
/requests/attachDocuments:
get:
tags:
- requests
summary: Get attach document requests
description: >
[Extra Feature: attachDocuments]
You will only receive these requests when attachDocuments feature is supported and enabled at your end.
Get pending documents (from Healthengine) to be inserted and attached to patient in the PMS, so it is available for PMS users.
These documents are provided by the patient for products such as New Patient Forms, Pre-Screening Form, Referrals, and more to come.
Document content is not included in this list of documents.
To get document content, please call attachDocuments/{requestId} GET endpoint.
To confirm or reject insert, please call attachDocuments/{requestId}/confirmInsert or attachDocuments/{requestId}/rejectInsert POST endpoint.
operationId: attachDocumentRequests
parameters:
- in: query
name: page
schema:
type: integer
format: int64
description: The page to request
responses:
'200':
description: Successful
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/AttachDocumentRequest'
page:
$ref: '#/components/schemas/Paginated'
'401':
$ref: '#/components/responses/UnauthorizedError'
# paths: bookings
/bookings/{bookingId}/confirmInsert:
post:
tags:
- bookings
summary: Confirm booking insert into the PMS
description: >
This will remove it from the list of pending booking requests and mark it on Healthengine as successful.
operationId: confirmBookingInsert
parameters:
- name: bookingId
in: path
required: true
schema:
type: integer
format: int64
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ConfirmBookingInsert'
required: true
responses:
'200':
description: Successful
content: {}
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/UnauthorizedError'
'404':
$ref: '#/components/responses/NotFoundError'
/bookings/{bookingId}/rejectInsert:
post:
tags:
- bookings
summary: Reject booking insert into the PMS
description: >
This will remove the booking from the pending booking requests on Healthengine and mark it as failed,
resulting in the patient being presented with a new list of times to choose from. If a booking is not rejected
within 20 seconds of being created, it will progress to confirmed and the practice will have to cancel it manually.
operationId: rejectBookingInsert
parameters:
- name: bookingId
in: path
required: true
schema:
type: integer
format: int64
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/RejectBookingInsert'
required: true
responses:
'200':
description: Successful
content: {}
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/UnauthorizedError'
'404':
$ref: '#/components/responses/NotFoundError'
/bookings/{bookingId}/confirmUpdate/{requestId}:
post:
tags:
- bookings
summary: Confirm booking update into the PMS
description: Confirm the requested change to the booking has been handled into the PMS
operationId: confirmBookingUpdate
parameters:
- name: bookingId
in: path
required: true
schema:
type: integer
format: int64
- name: requestId
in: path
required: true
schema:
type: integer
format: int64
responses:
'200':
description: Successful
content: {}
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/UnauthorizedError'
'404':
$ref: '#/components/responses/NotFoundError'
/bookings/{bookingId}/rejectUpdate/{requestId}:
post:
tags:
- bookings
summary: Reject booking update into the PMS
description: Reject the requested change to the booking into the PMS
operationId: rejectBookingUpdate
parameters:
- name: bookingId
in: path
required: true
schema:
type: integer
format: int64
- name: requestId
in: path
required: true
schema:
type: integer
format: int64
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/RejectBookingUpdate'
required: true
responses:
'200':
description: Successful
content: {}
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/UnauthorizedError'
'404':
$ref: '#/components/responses/NotFoundError'
/bookings/{bookingId}/cancel:
post:
tags:
- bookings
summary: Cancel Healthengine booking
description: Cancel Healthengine booking when booking has been cancelled by the PMS
operationId: cancelBooking
parameters:
- name: bookingId
in: path
required: true
schema:
type: integer
format: int64
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CancelBooking'
required: true
responses:
'200':
description: Successful
content: {}
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/UnauthorizedError'
'404':
$ref: '#/components/responses/NotFoundError'
/bookings/{bookingId}/didNotAttend:
post:
tags:
- bookings
summary: Inform Healthengine patient DNA
description: Inform Healthengine that patient did not attend the appointment
operationId: didNotAttend
parameters:
- name: bookingId
in: path
required: true
schema:
type: integer
format: int64
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/DidNotAttendBooking'
required: true
responses:
'200':
description: Successful
content: {}
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/UnauthorizedError'
'404':
$ref: '#/components/responses/NotFoundError'
/bookings/{bookingId}/noPmsAppointmentChange:
post:
tags:
- bookings
summary: Confirm no change in response to update request
description: >
Call this endpoint when a pmsAppointmentChanges request is received but there is no change (no cancellation, no did not attend) since booking insertion in PMS.
operationId: noPmsAppointmentChange
parameters:
- name: bookingId
in: path
required: true
schema:
type: integer
format: int64
responses:
'200':
description: Successful
content: {}
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/UnauthorizedError'
'404':
$ref: '#/components/responses/NotFoundError'
# paths: availability
/availability/snapshot:
post:
tags:
- availability
summary: Upload availability snapshot
description: >
Upload snapshot of availability for a resource/practitioner for a day.
The normal workflow is to send availability snapshots as soon as availability changed into the PMS.
operationId: sendAvailabilitySnapshot
requestBody:
description: Availability snapshot that describes a resource/practitioner for a day
content:
application/json:
schema:
$ref: '#/components/schemas/AvailabilitySnapshot'
required: true
responses:
'200':
description: Successful
content: {}
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/UnauthorizedError'
# paths: configuration
/config/pmsResources/findById:
get:
tags:
- configuration
summary: Get PMS resource
description: Get a PMS resource/practitioner uploaded to Healthengine
operationId: findByPmsResourceId
parameters:
- name: id
in: query
required: true
schema:
type: string
responses:
'200':
description: Successful
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/PmsResource'
'401':
$ref: '#/components/responses/UnauthorizedError'
/config/pmsResources:
get:
tags:
- configuration
summary: Get all PMS resources
description: Get all PMS resources/practitioners uploaded to Healthengine
operationId: getResources
responses:
'200':
description: Successful
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/PmsResource'
'401':
$ref: '#/components/responses/UnauthorizedError'
/config/pmsResources/snapshot:
post:
tags:
- configuration
summary: Upload PMS resources snapshot
description: Upload a snapshot of supported PMS resources/practitioners
operationId: uploadPmsResources
requestBody:
description: Upload the list of resources/practitioners
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/PmsResource'
required: true
responses:
'200':
description: Successful
content: {}
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/UnauthorizedError'
/config/pmsAppointmentTypes/findById:
get:
tags:
- configuration
summary: Get PMS appointment type
description: Get a PMS appointment type uploaded to Healthengine
operationId: findByPmsAppointmentTypeId
parameters:
- name: id
in: query
required: true
schema:
type: string
responses:
'200':
description: Successful
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/PmsAppointmentType'
'401':
$ref: '#/components/responses/UnauthorizedError'
/config/pmsAppointmentTypes:
get:
tags:
- configuration
summary: Get all PMS appointment types
description: Get all PMS appointment types uploaded to Healthengine
operationId: getPmsAppointmentTypes
responses:
'200':
description: Successful
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/PmsAppointmentType'
'401':
$ref: '#/components/responses/UnauthorizedError'
/config/pmsAppointmentTypes/snapshot:
post:
tags:
- configuration
summary: Upload PMS appointment types snapshot
description: Upload a snapshot of supported PMS appointment types
operationId: uploadPmsAppointmentTypes
requestBody:
description: Upload the list of supported PMS Appointment Types
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/PmsAppointmentType'
required: true
responses:
'200':
description: Successful
content: {}
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/UnauthorizedError'
/config/livenessContract:
get:
tags:
- configuration
summary: Get liveness contract
description: Get the current liveness contract
operationId: getLivenessContract
responses:
'200':
description: Successful
content:
application/json:
schema:
$ref: '#/components/schemas/LivenessContract'
'401':
$ref: '#/components/responses/UnauthorizedError'
post:
tags:
- configuration
summary: Create or replace liveness contract
description: >
On Healthengine we hide bookable times if the integration is deemed to be down.
In a scenario where we are interacting with a cloud vendor we receive updates often enough to mean we dont take bookings down.
However, if your integration is on-site and the machine the integration is running on may be shut down at night,
you may specify a liveness contract. In the times specified we will only deem your integration to be alive if
you are sending updates.
e.g. from 8am to 5am, maybe we should make appointments unbookable if we can't connect because it will cause mid air collisions once connection is re-established.
operationId: uploadLivenessContract
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/LivenessContract'
required: true
responses:
'200':
description: Successful
content: {}
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/UnauthorizedError'
# paths: features
/features:
get:
tags:
- features
summary: Get all features
description: >
Get all extra features available (documents, clientSnapshots, attachDocuments, and more to come).
Features are disabled by default and must only be enabled when they are fully supported at your end (see: POST features/{id}/enable).
This gives us the flexibility to add and deploy new features at our end without changing PMS API behaviour (e.g. sending new requests to you) until you support some or all of them.
operationId: getFeatures
responses:
'200':
description: Successful
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Feature'
'401':
$ref: '#/components/responses/UnauthorizedError'
/features/{id}:
get:
tags:
- features
summary: Get feature
operationId: getFeature
parameters:
- name: id
in: path
required: true
schema:
type: string
responses:
'200':
description: Successful
content:
application/json:
schema:
$ref: '#/components/schemas/Feature'
'401':
$ref: '#/components/responses/UnauthorizedError'
'404':
$ref: '#/components/responses/NotFoundError'
/features/{id}/enable:
post:
tags:
- features
summary: Enable feature
description: >
Enable extra feature when it is fully supported at your end.
Please note when extra feature is enabled, you must handle related requests in reasonable time
or we may consider you unhealthy and hide appts / disable products at our end until you process pending requests.
operationId: enableFeature
parameters:
- name: id
in: path
required: true
schema:
type: string
responses:
'200':
description: Successful
'401':
$ref: '#/components/responses/UnauthorizedError'
'404':
$ref: '#/components/responses/NotFoundError'
/features/{id}/disable:
post:
tags:
- features
summary: Disable feature
description: >
Disable extra feature when it is no longer supported at your end.
operationId: disableFeature
parameters:
- name: id
in: path
required: true
schema:
type: string
responses:
'200':
description: Successful
'401':
$ref: '#/components/responses/UnauthorizedError'
'404':
$ref: '#/components/responses/NotFoundError'
# paths: subscriptions
/subscription:
get:
tags:
- subscriptions
summary: Get all subscriptions
description: Get all current subscriptions
operationId: getSubscriptions
responses:
'200':
description: Successful
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Subscription'
'401':
$ref: '#/components/responses/UnauthorizedError'
post:
tags:
- subscriptions
summary: Create or update subscription
description: Create or update a subscription
operationId: createSubscription
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/Subscription'
required: true
responses:
'201':
description: Successful
content:
application/json:
schema:
$ref: '#/components/schemas/Subscription'
'401':
$ref: '#/components/responses/UnauthorizedError'
'400':
$ref: '#/components/responses/BadRequest'
callbacks:
requests.bookings:
requests.bookings:
post:
summary: requests.bookings (for acceptance or rejection)
description: >
This callback is called in response to there being 1 or more bookings waiting for acceptance or rejection.
If you don't accept or reject within 20 seconds, the bookings will be optimistically presumed accepted and
it will be up to the practice to manually enter them in the PMS.
You must still ensure you call confirm or reject for all bookings requested as failure to do so may result
in the integration being marked unhealthy which will hide all appointment times for the specified practice.
requestBody:
content:
application/json:
schema:
type: object
properties:
timestamp:
type: string
format: datetime
example: 2020-12-05 01:13:55
description: The date and time of when this callback was made.
id:
type: string
example: db26bebd-63f3-47d6-9fb8-09b4edc38aa7
description: The id of the subscription. Useful for cancelling or updating.
clientId:
type: string
nullable: true
example: null
description: The same clientId you provided when subscribing.
topic:
type: string
example: requests.bookings
description: The subscription topic you subscribed to for this event.
data:
type: object
properties:
target:
type: string
example: /requests/bookings
description: The endpoint you should call to retrieve all requested (and not handled) bookings.
requestType:
type: string
example: bookings
description: The endpoint category name.
bookingId:
type: integer
format: int64
example: 123
description: The booking id that triggered this callback.
responses: # Expected responses to the callback message
'200':
description: Your server returns this code if it accepts the callback
requests.bookingUpdates:
requests.bookingUpdates:
post:
summary: requests.bookingUpdates (cancellation)
description: >
This callback is called in response to there being 1 or more bookings that have been updated.
An update to a booking is almost always a cancellation of that booking, but may be an update of other details.
requestBody:
content:
application/json:
schema:
type: object
properties:
timestamp:
type: string
format: datetime
example: 2020-12-05 01:13:55
description: The date and time of when this callback was made.
id:
type: string
example: db26bebd-63f3-47d6-9fb8-09b4edc38aa7
description: The id of the subscription. Useful for cancelling or updating.
clientId:
type: string
nullable: true
example: null
description: The same clientId you provided when subscribing.
topic:
type: string
example: requests.bookingUpdates
description: The subscription topic you subscribed to for this event.
data:
type: object
properties:
target:
type: string
example: /requests/bookingUpdates
description: The endpoint you should call to retrieve all requested (and not handled) booking updates.
requestType:
type: string
example: bookingUpdates
description: The endpoint category name.
requestId:
type: integer
format: int64
example: 312
description: The id of the sync request that triggered this callback
bookingId:
type: integer
format: int64
example: 123
description: The booking id that triggered this callback.
responses: # Expected responses to the callback message
'200':
description: Your server returns this code if it accepts the callback
requests.availability:
requests.availability:
post:
summary: requests.availability (availability refresh)
description: >
This callback is called to indicate there are one or more days of availability required by Healthengine.
Call the requests/availability GET endpoint for details.
requestBody:
content: