Skip to content

Commit 04edc6c

Browse files
authored
Merge pull request #138 from NHSDigital/apm-000-pifu-lastmodified-expiry-dates
PEP PIFU lastModified and expiry dates field added
2 parents 1b91be2 + 01f28a9 commit 04edc6c

File tree

1 file changed

+35
-23
lines changed

1 file changed

+35
-23
lines changed

specification/patient-care-aggregator-api-producer-api-standards.yaml

Lines changed: 35 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
openapi: '3.0.3'
44
info:
55
title: "Patient Care Aggregator Get Appointments, Documents and Questionnaires API Standard"
6-
version: "3.6.0"
6+
version: "3.7.0"
77
description: |
88
## Overview
99
![Patient Care Aggregator Get Appointments, Documents and Questionnaires API Standard context diagram](https://digital.nhs.uk/binaries/content/gallery/website/developer/api-catalogue/patient-care-aggregator-fhir-api/patient-care-aggregator-get-appointments-api-standard.svg?raw=true)
@@ -366,11 +366,8 @@ components:
366366
type: array
367367
items:
368368
anyOf:
369-
- description: "Appointment priority (optional)."
369+
- description: "Appointment priority."
370370
type: object
371-
required:
372-
- url
373-
- valueCoding
374371
properties:
375372
url:
376373
type: string
@@ -443,7 +440,7 @@ components:
443440
type: array
444441
items:
445442
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."
447444
type: object
448445
properties:
449446
system:
@@ -454,7 +451,7 @@ components:
454451
description: "The ID of the Appointment in its source database (e.g. a Trust PAS system)"
455452
type: string
456453
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."
458455
type: object
459456
properties:
460457
system:
@@ -469,7 +466,7 @@ components:
469466
type: array
470467
minItems: 1
471468
maxItems: 1
472-
description: "NHS Specialty (required)"
469+
description: "NHS Specialty."
473470
items:
474471
oneOf:
475472
- type: object
@@ -494,15 +491,15 @@ components:
494491
type: string
495492
example: "DERMATOLOGY"
496493
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."
498495
type: string
499496
enum:
500497
- booked
501498
- fulfilled
502499
- cancelled
503500
- noshow
504501
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'"
506503
type: string
507504
example: "Orthopaedics Appointment"
508505
appointmentType:
@@ -534,15 +531,15 @@ components:
534531
- "ambulatory"
535532
- "home health"
536533
start:
537-
description: "Start date/time of appointment in a UTC format (required)"
534+
description: "Start date/time of appointment in a UTC format."
538535
type: string
539536
example: "2021-06-13T12:30:00+00:00"
540537
end:
541538
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."
542539
type: string
543540
example: "2021-06-13T12:45:00+00:00"
544541
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."
546543
type: array
547544
items:
548545
anyOf:
@@ -573,7 +570,7 @@ components:
573570
example: "65468756"
574571
basedOn:
575572
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."
577574
items:
578575
type: object
579576
properties:
@@ -993,10 +990,10 @@ components:
993990
properties:
994991
start:
995992
type: string
996-
description: "Document effective date/time in a UTC format (required)"
993+
description: "Document effective date/time in a UTC format."
997994
example: "2021-06-13T12:30:00+00:00"
998995
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."
1000997
type: string
1001998
example: "2021-06-13T12:30:00+00:00"
1002999
custodian:
@@ -1028,7 +1025,7 @@ components:
10281025
type: string
10291026
example: Barnsley Hospital NHS Foundation Trust
10301027
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."
10321029
type: string
10331030
example: Dermatology cancellation letter
10341031
content:
@@ -1081,7 +1078,7 @@ components:
10811078
example: "3a146c43-2b21-44e9-95bc-6f4849e504c8"
10821079
identifier:
10831080
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."
10851082
required:
10861083
- system
10871084
- value
@@ -1095,7 +1092,7 @@ components:
10951092
type: string
10961093
example: "3a146c43-2b21-44e9-95bc-6f4849e504c8"
10971094
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.
10991096
type: array
11001097
minItems: 0
11011098
maxItems: 1
@@ -1141,12 +1138,12 @@ components:
11411138
enum:
11421139
- plan
11431140
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."
11451142
type: string
11461143
example: Dermatology pre-assessment questionnaire
11471144
focus:
11481145
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.
11501147
required:
11511148
- type
11521149
- reference
@@ -1189,8 +1186,23 @@ components:
11891186
example: "9123456789"
11901187
authored:
11911188
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.
11931190
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"
11941206
reasonReference:
11951207
type: object
11961208
description: Reference to the Questionnaire being requested.
@@ -1200,7 +1212,7 @@ components:
12001212
properties:
12011213
type:
12021214
type: string
1203-
description: Questionnaire FHIR Resource
1215+
description: Questionnaire FHIR Resource
12041216
enum:
12051217
- "Questionnaire"
12061218
reference:
@@ -1239,7 +1251,7 @@ components:
12391251
example: Barnsley Hospital NHS Foundation Trust
12401252
reasonCode:
12411253
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.
12431255
required:
12441256
- coding
12451257
- text

0 commit comments

Comments
 (0)