-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ERSSUP-81432]-[]-[Fetch Appointments for booking worklist OAS change…
…s]-[DMW]
- Loading branch information
1 parent
a0f1e7a
commit d64879a
Showing
13 changed files
with
345 additions
and
41 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
sandbox/src/mocks/stu3/retrieveWorklist/requests/AppointmentsForBookingWithReason.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"resourceType": "Parameters", | ||
"meta": { | ||
"profile": [ | ||
"https://fhir.nhs.uk/STU3/StructureDefinition/eRS-FetchWorklist-Parameters-1" | ||
] | ||
}, | ||
"parameter": [ | ||
{ | ||
"name": "listType", | ||
"valueCodeableConcept": { | ||
"coding": [ | ||
{ | ||
"system": "https://fhir.nhs.uk/STU3/CodeSystem/eRS-ReferralListSelector-1", | ||
"code": "APPOINTMENTS_FOR_BOOKING" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"name": "bookingReason", | ||
"valueCoding": { | ||
"system": "https://fhir.nhs.uk/STU3/CodeSystem/eRS-BookingReason-1", | ||
"code": "TRIAGE_TO_BE_BOOKED" | ||
} | ||
} | ||
] | ||
} |
174 changes: 174 additions & 0 deletions
174
sandbox/src/mocks/stu3/retrieveWorklist/responses/AppointmentsForBooking.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,174 @@ | ||
{ | ||
"meta": { | ||
"profile": [ | ||
"https://fhir.nhs.uk/STU3/StructureDefinition/eRS-FetchWorklist-List-1" | ||
] | ||
}, | ||
"resourceType": "List", | ||
"status": "current", | ||
"mode": "snapshot", | ||
"entry": [ | ||
{ | ||
"extension": [ | ||
{ | ||
"extension": [ | ||
{ | ||
"url": "patient", | ||
"valueReference": { | ||
"identifier": { | ||
"system": "http://fhir.nhs.net/Id/nhs-number", | ||
"value": "9462979626" | ||
} | ||
} | ||
}, | ||
{ | ||
"url": "appointmentStart", | ||
"valueDateTime": "2021-09-05T19:24:02.198Z" | ||
}, | ||
{ | ||
"url": "eReferralPathwayStart", | ||
"valueDateTime": "2021-09-03T14:24:06.483Z" | ||
}, | ||
{ | ||
"url": "referrer", | ||
"valueReference": { | ||
"identifier": { | ||
"system": "http://fhir.nhs.net/Id/sds-user-id", | ||
"value": "021600556514" | ||
} | ||
} | ||
}, | ||
{ | ||
"url": "priority", | ||
"valueCodeableConcept": { | ||
"coding": [ | ||
{ | ||
"system": "https://fhir.nhs.uk/STU3/CodeSystem/eRS-Priority-1", | ||
"code": "ROUTINE" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"url": "reason", | ||
"valueCodeableConcept": { | ||
"coding": [ | ||
{ | ||
"system": "https://fhir.nhs.uk/STU3/CodeSystem/eRS-BookingReason-1", | ||
"code": "TRIAGE_TO_BE_BOOKED" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"url": "service", | ||
"valueReference": { | ||
"identifier": { | ||
"system": "http://fhir.nhs.net/Id/ers-service", | ||
"value": "11012" | ||
}, | ||
"display": "Excellent Cardiology Business Service 12" | ||
} | ||
}, | ||
{ | ||
"url": "specialty", | ||
"valueCodeableConcept": { | ||
"coding": [ | ||
{ | ||
"system": "_baseUrl_/STU3/CodeSystem/SPECIALTY", | ||
"code": "CARDIOLOGY" | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-eRS-AppointmentsForBooking-WorkListItem-1" | ||
} | ||
], | ||
"item": { | ||
"reference": "ReferralRequest/000000070001" | ||
} | ||
}, | ||
{ | ||
"extension": [ | ||
{ | ||
"extension": [ | ||
{ | ||
"url": "patient", | ||
"valueReference": { | ||
"identifier": { | ||
"system": "http://fhir.nhs.net/Id/nhs-number", | ||
"value": "9462979626" | ||
} | ||
} | ||
}, | ||
{ | ||
"url": "appointmentStart", | ||
"valueDateTime": "2021-09-05T19:24:02.198Z" | ||
}, | ||
{ | ||
"url": "eReferralPathwayStart", | ||
"valueDateTime": "2021-09-03T14:24:06.483Z" | ||
}, | ||
{ | ||
"url": "referrer", | ||
"valueReference": { | ||
"identifier": { | ||
"system": "http://fhir.nhs.net/Id/sds-user-id", | ||
"value": "021600556514" | ||
} | ||
} | ||
}, | ||
{ | ||
"url": "priority", | ||
"valueCodeableConcept": { | ||
"coding": [ | ||
{ | ||
"system": "https://fhir.nhs.uk/STU3/CodeSystem/eRS-Priority-1", | ||
"code": "ROUTINE" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"url": "reason", | ||
"valueCodeableConcept": { | ||
"coding": [ | ||
{ | ||
"system": "https://fhir.nhs.uk/STU3/CodeSystem/eRS-BookingReason-1", | ||
"code": "TRIAGE_TO_BE_BOOKED" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"url": "service", | ||
"valueReference": { | ||
"identifier": { | ||
"system": "http://fhir.nhs.net/Id/ers-service", | ||
"value": "11012" | ||
}, | ||
"display": "Excellent Cardiology Business Service 12" | ||
} | ||
}, | ||
{ | ||
"url": "specialty", | ||
"valueCodeableConcept": { | ||
"coding": [ | ||
{ | ||
"system": "_baseUrl_/STU3/CodeSystem/SPECIALTY", | ||
"code": "CARDIOLOGY" | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-eRS-AppointmentsForBooking-WorkListItem-1" | ||
} | ||
], | ||
"item": { | ||
"reference": "ReferralRequest/000000070001" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
...components/stu3/schemas/extensions/Extension-eRS-AppointmentsForBooking-WorklistItem.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
title: 'Extension-eRS-AppointmentsForBooking-WorklistItem' | ||
type: object | ||
required: | ||
- url | ||
- extension | ||
properties: | ||
url: | ||
type: string | ||
enum: | ||
- 'https://fhir.nhs.uk/STU3/StructureDefinition/Extension-eRS-AppointmentsForBooking-WorkListItem-1' | ||
example: 'https://fhir.nhs.uk/STU3/StructureDefinition/Extension-eRS-AppointmentsForBooking-WorkListItem-1' | ||
extension: | ||
description: | | ||
| Field | Cardinality | Notes | | ||
| ------------------------------ | ----------- | -------------------------------------------------------------------------------------------------------------------------- | | ||
| `patient` | `1..1` | The patient associated with the `ReferralRequest` | | ||
| `appointmentStart` | `0..1` | The current appointment start time | | ||
| `eReferralPathwayStart` | `1..1` | The start time of the referral pathway | | ||
| `referrer` | `1..1` | The `Practitioner` who initially creates the `ReferralRequest` | | ||
| `priority` | `1..1` | The priority associated with the `ReferralRequest` | | ||
| `service` | `1..1` | The Service Name of the deferred-to Service associated with the Appointment Request. | | ||
| `reason` | `1..1` | Reason that Appointment requires booking | | ||
| `specialty` | `1..1` | The speciality of the current booking | | ||
type: array | ||
items: | ||
anyOf: | ||
- $ref: './worklists/Extension-WorklistItem-Patient.yaml' | ||
- $ref: './worklists/Extension-WorklistItem-AppointmentStart.yaml' | ||
- $ref: './worklists/Extension-WorklistItem-ReferralPathwayStart.yaml' | ||
- $ref: './worklists/Extension-WorklistItem-Referrer.yaml' | ||
- $ref: './worklists/Extension-WorklistItem-Priority.yaml' | ||
- $ref: './worklists/Extension-WorklistItem-Service.yaml' | ||
- $ref: './worklists/Extension-WorklistItem-BookingReason.yaml' | ||
- $ref: './worklists/Extension-WorklistItem-Specialty.yaml' | ||
|
45 changes: 45 additions & 0 deletions
45
...on/components/stu3/schemas/extensions/worklists/Extension-WorklistItem-BookingReason.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
title: reason | ||
type: object | ||
required: | ||
- url | ||
- valueCodeableConcept | ||
properties: | ||
url: | ||
type: string | ||
enum: | ||
- reason | ||
example: 'reason' | ||
valueCodeableConcept: | ||
type: object | ||
required: | ||
- coding | ||
properties: | ||
coding: | ||
type: array | ||
minItems: 1 | ||
maxItems: 1 | ||
items: | ||
type: object | ||
required: | ||
- system | ||
- code | ||
properties: | ||
system: | ||
type: string | ||
enum: | ||
- https://fhir.nhs.uk/STU3/CodeSystem/eRS-BookingReason-1 | ||
example: 'https://fhir.nhs.uk/STU3/CodeSystem/eRS-BookingReason-1' | ||
code: | ||
type: string | ||
enum: | ||
- REBOOKING | ||
- CANCELLED_APPOINTMENT_ADMIN_REBOOK | ||
- CANCELLED_BY_PATIENT | ||
- CANCELLED_BY_PROVIDER | ||
- DEFERRED_TO_PROVIDER | ||
- ONWARD_REFERRAL | ||
- DNA | ||
- TRIAGE_TO_BE_BOOKED | ||
- TRIAGE_SEE_COMMENTS | ||
- TRIAGE_ANG_CONVERTED_SEE_COMMENTS | ||
example: 'TRIAGE_TO_BE_BOOKED' |
Oops, something went wrong.