You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: specification/patient-care-aggregator-api-producer-api-standards.yaml
+35-23Lines changed: 35 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
openapi: '3.0.3'
4
4
info:
5
5
title: "Patient Care Aggregator Get Appointments, Documents and Questionnaires API Standard"
6
-
version: "3.6.0"
6
+
version: "3.7.0"
7
7
description: |
8
8
## Overview
9
9

@@ -366,11 +366,8 @@ components:
366
366
type: array
367
367
items:
368
368
anyOf:
369
-
- description: "Appointment priority (optional)."
369
+
- description: "Appointment priority."
370
370
type: object
371
-
required:
372
-
- url
373
-
- valueCoding
374
371
properties:
375
372
url:
376
373
type: string
@@ -443,7 +440,7 @@ components:
443
440
type: array
444
441
items:
445
442
anyOf:
446
-
- description: "The ID of the Appointment in its source PAS system database (optional)"
443
+
- description: "The ID of the Appointment in its source PAS system database."
447
444
type: object
448
445
properties:
449
446
system:
@@ -454,7 +451,7 @@ components:
454
451
description: "The ID of the Appointment in its source database (e.g. a Trust PAS system)"
455
452
type: string
456
453
example: "4817508"
457
-
- description: "The ID of the Appointment in your Patient Portal database. (optional)"
454
+
- description: "The ID of the Appointment in your Patient Portal database."
458
455
type: object
459
456
properties:
460
457
system:
@@ -469,7 +466,7 @@ components:
469
466
type: array
470
467
minItems: 1
471
468
maxItems: 1
472
-
description: "NHS Specialty (required)"
469
+
description: "NHS Specialty."
473
470
items:
474
471
oneOf:
475
472
- type: object
@@ -494,15 +491,15 @@ components:
494
491
type: string
495
492
example: "DERMATOLOGY"
496
493
status:
497
-
description: "The actual appointment booking status as reported by the source Trust PAS system (required)"
494
+
description: "The actual appointment booking status as reported by the source Trust PAS system."
498
495
type: string
499
496
enum:
500
497
- booked
501
498
- fulfilled
502
499
- cancelled
503
500
- noshow
504
501
description:
505
-
description: "The patient-friendly standardised description/title of the appointment that would be appropriate to display to a patient. Note, this value should match that displayed in your own user interface. This should be structured {Specialty name}, but does not have to adhere strictly to the NHS Data Dictionary lists for Specialty/Treatment Function. Note the values presented within this field are required to be be provided for Data Quality Assurance. (required) (warning) For pre-assessments, this should be explicitly 'Pre-assessment appointment'"
502
+
description: "The patient-friendly standardised description/title of the appointment that would be appropriate to display to a patient. Note, this value should match that displayed in your own user interface. This should be structured {Specialty name}, but does not have to adhere strictly to the NHS Data Dictionary lists for Specialty/Treatment Function. Note the values presented within this field are required to be be provided for Data Quality Assurance. (warning) For pre-assessments, this should be explicitly 'Pre-assessment appointment'"
506
503
type: string
507
504
example: "Orthopaedics Appointment"
508
505
appointmentType:
@@ -534,15 +531,15 @@ components:
534
531
- "ambulatory"
535
532
- "home health"
536
533
start:
537
-
description: "Start date/time of appointment in a UTC format (required)"
534
+
description: "Start date/time of appointment in a UTC format."
538
535
type: string
539
536
example: "2021-06-13T12:30:00+00:00"
540
537
end:
541
538
description: "End date/time of appointment in a UTC format. Required for inpatient appointment, see EncounterClass in reasonCode above. This should be derived from the TCI date/time and the expected length of stay. The Intended Management could also be used. (warning) Where an end date extends beyond the start date it will be assumed to be a inpatient. when the end date is the same date as the start date it will be assumed to be a day case."
542
539
type: string
543
540
example: "2021-06-13T12:45:00+00:00"
544
541
slot:
545
-
description: "Unique Slot Reference Number and source PAS database slot ID (optional)"
542
+
description: "Unique Slot Reference Number and source PAS database slot ID."
546
543
type: array
547
544
items:
548
545
anyOf:
@@ -573,7 +570,7 @@ components:
573
570
example: "65468756"
574
571
basedOn:
575
572
type: array
576
-
description: "The ReferralID, UBRN or PathwayID to which this appointment is linked (optional)"
573
+
description: "The ReferralID, UBRN or PathwayID to which this appointment is linked."
577
574
items:
578
575
type: object
579
576
properties:
@@ -993,10 +990,10 @@ components:
993
990
properties:
994
991
start:
995
992
type: string
996
-
description: "Document effective date/time in a UTC format (required)"
993
+
description: "Document effective date/time in a UTC format."
997
994
example: "2021-06-13T12:30:00+00:00"
998
995
date:
999
-
description: "When this document reference was created in a UTC format (required)"
996
+
description: "When this document reference was created in a UTC format."
1000
997
type: string
1001
998
example: "2021-06-13T12:30:00+00:00"
1002
999
custodian:
@@ -1028,7 +1025,7 @@ components:
1028
1025
type: string
1029
1026
example: Barnsley Hospital NHS Foundation Trust
1030
1027
description:
1031
-
description: "The patient-friendly standardised description/title of the document that would be appropriate to display to a patient. Note, this value should match that displayed in your own user interface. This should be structured {Specialty name} {Document type}, but does not have to adhere strictly to the NHS Data Dictionary lists for Specialty/Treatment Function. Note the values presented within this field are required to be provided for Data Quality Assurance. (required)"
1028
+
description: "The patient-friendly standardised description/title of the document that would be appropriate to display to a patient. Note, this value should match that displayed in your own user interface. This should be structured {Specialty name} {Document type}, but does not have to adhere strictly to the NHS Data Dictionary lists for Specialty/Treatment Function. Note the values presented within this field are required to be provided for Data Quality Assurance."
1032
1029
type: string
1033
1030
example: Dermatology cancellation letter
1034
1031
content:
@@ -1081,7 +1078,7 @@ components:
1081
1078
example: "3a146c43-2b21-44e9-95bc-6f4849e504c8"
1082
1079
identifier:
1083
1080
type: object
1084
-
description: "The ID of the task in your Patient Portal database. (optional)"
1081
+
description: "The ID of the task in your Patient Portal database."
1085
1082
required:
1086
1083
- system
1087
1084
- value
@@ -1095,7 +1092,7 @@ components:
1095
1092
type: string
1096
1093
example: "3a146c43-2b21-44e9-95bc-6f4849e504c8"
1097
1094
basedOn:
1098
-
description: "CarePlan reference to the Pathway this questionnaire relates to. (optional)"
1095
+
description: Reference to the related CarePlan (Pathway). This reference should contain the pathway ID. This field is required for PIFU questionnaires to identify duplicate entries and is optional for other questionnaire types.
1099
1096
type: array
1100
1097
minItems: 0
1101
1098
maxItems: 1
@@ -1141,12 +1138,12 @@ components:
1141
1138
enum:
1142
1139
- plan
1143
1140
description:
1144
-
description: "The patient-friendly standardised description/title of the questionnaire that would be appropriate to display to a patient. Note, this value should match that displayed in your own user interface. This should be structured {Specialty name} {Questionnaire type}, but does not have to adhere strictly to the NHS Data Dictionary lists for Specialty/Treatment Function. Note the values presented within this field are required to be provided for Data Quality Assurance. (required)"
1141
+
description: "The patient-friendly, standardised title of the questionnaire that is suitable for display to patients. This value should match the name shown in your own interface and should follow the structure {Specialty name} {Questionnaire type}. If the questionnaire is linked to an appointment, the specialty should align with that appointment. For Patient Initiated Follow-Up (PIFU) questionnaires, the questionnaire type should not be included. The values presented within this field are required to be provided for Data Quality Assurance."
1145
1142
type: string
1146
1143
example: Dermatology pre-assessment questionnaire
1147
1144
focus:
1148
1145
type: object
1149
-
description: Appointment reference to the appointments this questionnaire relates to. (Optional)
1146
+
description: Appointment reference to the appointments this questionnaire relates to.
1150
1147
required:
1151
1148
- type
1152
1149
- reference
@@ -1189,8 +1186,23 @@ components:
1189
1186
example: "9123456789"
1190
1187
authored:
1191
1188
type: string
1192
-
description: Date the questionnaire was first made available to a patient in a UTC format (required)
1189
+
description: Date the questionnaire was first made available to a patient in a UTC format.
1193
1190
example: "2021-06-13T12:30:00+00:00"
1191
+
lastModified:
1192
+
type: string
1193
+
description: Records the date and time (UTC) the questionnaire was completed by the patient. For Patient Initiated Follow-up (PIFU) feature, this field represents the date and time the patient last requested a follow-up appointment, and applies only to that individual PIFU request. This date must be greater than or equal to authored date.
1194
+
example: "2025-08-28T12:30:00+00:00"
1195
+
restriction:
1196
+
type: object
1197
+
description: Constraints on the questionnaire.
1198
+
properties:
1199
+
period:
1200
+
type: object
1201
+
properties:
1202
+
end:
1203
+
type: string
1204
+
description: Indicates the end date for the questionnaire. For the Patient Initiated Follow-up (PIFU) feature, this represents the expiration date of the questionnaire. After this date has passed, the patient can no longer raise a follow-up request.
1205
+
example: "2025-10-18T12:30:00+00:00"
1194
1206
reasonReference:
1195
1207
type: object
1196
1208
description: Reference to the Questionnaire being requested.
@@ -1200,7 +1212,7 @@ components:
1200
1212
properties:
1201
1213
type:
1202
1214
type: string
1203
-
description: Questionnaire FHIR Resource
1215
+
description: Questionnaire FHIR Resource
1204
1216
enum:
1205
1217
- "Questionnaire"
1206
1218
reference:
@@ -1239,7 +1251,7 @@ components:
1239
1251
example: Barnsley Hospital NHS Foundation Trust
1240
1252
reasonCode:
1241
1253
type: object
1242
-
description: Reason for the Task, the request for a patient to complete a Questionnaire.]
1254
+
description: Reason for the Task, the request for a patient to complete a Questionnaire.
0 commit comments