Skip to content

New Appointments Consumer Tests

BabarNHS edited this page Sep 15, 2020 · 5 revisions

Consumer Tests - Appointments

Please scroll to the right to view the full test information including test data

Test ID Scenario Name Description Requirement ID Demonstrator Patient ID
GPC-AMUS-BPA-1/1 Request format and content
Given I search for free slots
When the search request is sent to the provider system
Then the request is formed as described in the specification
GPC-AMUS-BPA-1/1 9658218873
GPC-AMUS-BPA-1/2 Request format and content
Given Practice has created a slot
And I search for a free slot
When the results of the search are returned
Then The system can receive
And read the following data elements from the returned data
And display them correctly Slot start date
And time Slot end date
And time OR Duration Slot location name
And address Practitioner name Practitioner gender Delivery channel (in person,telephone,video)Practitioner Role
GPC-AMUS-BPA-1/2 9658218873
GPC-AMUS-BPA-1/3 Request format
And content

Given I don't include a parameter of ""status=free"" in my request parameters
When I search for available slots
Then The error returned is captured
And displayed appropriately to the caller
GPC-AMUS-BPA-1/3 9658218873
GPC-AMUS-BPA-1/4 Request format
And content

Given I don't include a parameter of ""_include=Slot:Schedule"" in my request parameters
When I search for available slots
Then The error returned is captured
And displayed appropriately to the caller
GPC-AMUS-BPA-1/4 9658218873
GPC-AMUS-BPA-1/5 Get appropriate slot
Given I request for Practitoner details to be included when I search for slots
When the results of the search are returned
Then My system receives
And reads the Practitioner resource correctly
GPC-AMUS-BPA-1/5 9658218873
GPC-AMUS-BPA-1/6 Get appropriate slot
Given I request for Location details to be included when I search for slots
When the results of the search are returned
Then My system receives
And reads the Location resource for the slot resource correctly
GPC-AMUS-BPA-1/6 9658218873
GPC-AMUS-BPA-1/7 Get appropriate slot
Given I request for Organisation details to be included when I search for slots
When the results of the search are returned
Then My system receives
And reads the Organisation resource for the managing organisation correctly
GPC-AMUS-BPA-1/7 9658218873
GPC-AMUS-BPA-1/8 Get appropriate slot
Given I search for free slots
When the results of the search are returned
Then My system receives
And displays the Slot Type
And Schedule Type correctly
GPC-AMUS-BPA-1/8 9658218873
GPC-AMUS-BPA-1-2/1 Slots by ODS code
Given I want to find a free slot at a practice which has been made available to my organisation so that I can book an appointment for a patient
When I search for available slots
Then The request that I send includes my ODS code in the search parameters
GPC-AMUS-BPA-1-2/1 9658218873
GPC-AMUS-BPA-1-3/1 Slots by organisation type
Given I want to find a free slot at a practice which has been made available to my type of organisation so that I can book an appointment for a patient
When I search for available slots
Then The request that I send includes my organisation type in the search parameters
GPC-AMUS-BPA-1-3/1 9658218873
GPC-AMUS-BPA-1-7/1 Branch surgery
Given I want to find a suitable appointment for a patient
And the patient is registered with a practice that has branch surgeries
When the results of the search are returned
Then The Location (name
And address) of each free slot, either the main surgery or a branch surgery, is displayed correctly by the consumer system
GPC-AMUS-BPA-1-7/1 9658218873
GPC-AMUS-BPA-1-8/1 Search by date
Given Practice has created slots which are available to me
And I search for free slots using a date range or a date/time range
When I search for available slots
Then the date range or date/time range is formatted correctly as part of the search parameters for the search
GPC-AMUS-BPA-1-8/1 9658218873
GPC-AMUS-BPA-1-8/2 Search by date
Given Practice has created slots which are available to me
And I enter a date range which is not formatted correctly or is otherwise invalid (exception case)
When I search for available slots
Then The error returned is captured
And displayed appropriately to the caller
GPC-AMUS-BPA-1-8/2 9658218873
GPC-AMUS-BPA-1-8/3 Search by date
Given Practice has created slots which are available to me
And I enter a date range of more than 14 days
When I search for available slots
Then The error returned is captured
And displayed appropriately to the caller
GPC-AMUS-BPA-1-8/3 9658218873
GPC-AMUS-BPA-2-1/1 Multiple slots
Given The patient needs more than one adjacent free slot as the slot durations aren't long enough for their needs
And I have searched for
And selected more than one slot
When I confirm the booking
Then In the provider's system, the multiple slots are booked
And become an appointment with the patient's details recorded against it
And I can retrieve
And read the details of the appointment when they are returned to me
GPC-AMUS-BPA-2-1/1 9658218873
GPC-AMUS-BPA-2-1/2 Multiple slots
Given The patient needs more than one adjacent free slot as the slot durations aren't long enough for their needs
And I have searched for
And selected more than one slot
And all the slots I have selected have the same Slot Type
When I confirm the booking
Then In the provider's system, the multiple slots are booked
And become an appointment with the patient's details recorded against it
And I can retrieve
And read the details of the appointment when they are returned to me
GPC-AMUS-BPA-2-1/2 9658218873
GPC-AMUS-BPA-2-1/3 Multiple slots
Given The patient needs more than one adjacent free slot as the slot durations aren't long enough for their needs
And I have searched for
And selected more than one slot
And all the slots I have selected do not have the same Slot Type
When I confirm the booking
Then The error returned is captured
And displayed appropriately to the caller
GPC-AMUS-BPA-2-1/3 9658218873
GPC-AMUS-BPA-4-1/1 Format
And content of request

Given I book an appointment
When the request to book is sent to the provider system
Then the request is formed as described in the specification
GPC-AMUS-BPA-4-1/1 9658218873
GPC-AMUS-BPA-4-1/2 Book an appointment
Given I have found a suitable slot for the patient's needs
And selected it
When I confirm the booking
Then In the provider's system, the slot is booked
And becomes an appointment with the patient's details recorded against it
And I can retrieve
And read the details of the appointment when they are returned to me
GPC-AMUS-BPA-4-1/2 9658218873
GPC-AMUS-BPA-4-1/3 Book an appointment
Given I have found a suitable slot for the patient's needs
And selected it
And since I selected it the start or end date/time have been changed in the GP system
When I confirm the booking
Then The error returned is captured
And displayed appropriately to the caller
GPC-AMUS-BPA-4-1/3 9658218873
GPC-AMUS-BPA-4-1/4 Book an appointment
Given I have found a suitable slot for the patient's needs
And selected it
And since I selected it the status of the slot has been changed from Free in the GP system
When I confirm the booking
Then The error returned is captured
And displayed appropriately to the caller
GPC-AMUS-BPA-4-1/4 9658218873
GPC-AMUS-BPA-4-1/5 Book an appointment
Given I have found a suitable slot for the patient's needs
And selected it
And since I selected it the practitioner resource associated with the slot has been changed in the GP system
When I confirm the booking
Then The error returned is captured
And displayed appropriately to the caller
GPC-AMUS-BPA-4-1/5 9658218873
GPC-AMUS-PRE-2.2 Practice is not patient's registered
Given The patient needs an appointment at a practice other than their registered practice (for example an out-of-hours hub or federated practice)
And I have resolved the ODS code of the hub or practice
And the hub or practice has a GP Connect datas sharing agreement with my organisation
And I search for slots using the ODS code
When I search for available slots
Then The request that I send includes the correct ODS code for the hub or federated practice in the search parameters
GPC-AMUS-PRE-2.2 9658218873
GPC-AMUS-MPA-1/1 Format and content of request
Given I search for all future appointments for a patient
When the search request is sent to the provider system
Then the request is formed as described in the specification
GPC-AMUS-MPA-1/1 9658218873
GPC-AMUS-MPA-1/2 Find patient's appointments
Given I need to see future-dated appointments for a patient at a particular organisation (practice)
And I search using a date range
When I send the search request
Then the date range is formatted correctly as part of the search parameters for the search
GPC-AMUS-MPA-1/2 9658218873
GPC-AMUS-MPA-1/3 Find patient's appointments
Given I need to see future-dated appointments for a patient at a particular organisation (practice)
And I search using a date range
And patient has future-dated appointments which have been cancelled
When the results of the search are returned
Then any cancelled appointments are displayed by the consumer system
GPC-AMUS-MPA-1/3 9658218873
GPC-AMUS-MPA-1/4 Find patient's appointments
Given I need to see future-dated appointments for a patient at a particular organisation (practice)
And I search using a date range
And the start date is today
When the results of the search are returned
Then any appointments for today are displayed by the consumer system
GPC-AMUS-MPA-1/4 9658218873
GPC-AMUS-MPA-1/5 Find patient's appointments
Given I need to see future-dated appointments for a patient at a particular organisation (practice)
And I enter a date range which is not formatted correctly or is otherwise invalid (exception case)
When I search for appointments
Then The error returned is captured
And displayed appropriately to the caller
GPC-AMUS-MPA-1/5 9658218873
GPC-AMUS-MPA-1/6 Find patient's appointments
Given I want to see all future appointments for a patient
When the results of the search are returned
Then My system receives
And displays the Slot Type
And Schedule Type correctly
GPC-AMUS-MPA-1/6 9658218873
GPC-AMUS-MPA-2/1 Format and content of request
Given I request details of a specific appointment
When the request is sent to the provider
Then the request is formed as described in the specification
GPC-AMUS-MPA-2/1 9658218873
GPC-AMUS-MPA-2/2 Read an appointment
Given I have found an appointment
And I have selected to see details
And the start date/time of the appointment is after the current date/time
When I select the appointment
Then the appointment details are returned as described in the specification,
And can be displayed if required
GPC-AMUS-MPA-2/2 9658218873
GPC-AMUS-MPA-2/3 Read an appointment
Given I have found an appointment
And I have selected to see details
And the start date/time of the appointment is before the current date/time (exception case)
When I select the appointment
Then The error returned is captured
And displayed appropriately to the caller
GPC-AMUS-MPA-2/3 9658218873
GPC-AMUS-MPA-2/4 Read an appointment
Given I have found an appointment
And I have selected to see details
And the start date/time of the appointment is after the current date/time
And I have provided a patient identifier which is invalid
When I select the appointment
Then I shall display a suitable error message
GPC-AMUS-MPA-2/4 9658218873
GPC-AMUS-MPA-4/1 Cancel an appointment
Given I send a request to cancel an appointment
When the request is sent to the provider system
Then the request is formed as described in the specification
GPC-AMUS-MPA-4/1 9658218873
GPC-AMUS-MPA-4/2 Cancel an appointment
Given I need to cancel an appointment because the patient no longer needs it
And I have retrieved
And selected the appointment to be cancelled
When I confirm the cancellation, with a reason for cancellation
Then the reason for cancellation is included in the request to the provider
GPC-AMUS-MPA-4/2 9658218873
GPC-AMUS-MPA-4/3 Cancel an appointment
Given I need to cancel an appointment because the patient no longer needs it
And I have retrieved
And selected the appointment to cancel
And the appointment was originally booked by a different organisation
When I confirm the cancellation, with a reason for cancellation
Then The appointment is cancelled in the provider system,
And I can retrieve
And read a confirmation returned from the provider indicating that the cancellation was successful
GPC-AMUS-MPA-4/3 9658218873
GPC-AMUS-MPA-4/4 Cancel an appointment
Given I need to cancel an appointment because the patient no longer needs it
And I have retrieved
And selected the appointment to cancel
And the appointment was not originally booked through the GP Connect API
When I confirm the cancellation, with a reason for cancellation
Then The appointment is cancelled in the provider system,
And I can retrieve
And read a confirmation returned from the provider indicating that the cancellation was successful
GPC-AMUS-MPA-4/4 9658218873
GPC-AMUS-MPA-4/5 Cancel an appointment
Given I need to cancel an appointment because the patient no longer needs it
And I have retrieved
And selected the appointment to cancel
And the appointment is in the past (appointment start date
And time is before the current date
And time) (exception case)
When I confirm the cancellation, with a reason for cancellation
Then The error returned is captured
And displayed appropriately to the caller
GPC-AMUS-MPA-4/5 9658218873
GPC-AMUS-MPA-5/1 Format
And content of request

Given I send a request to amend an appointment
When the request is sent to the provider system
Then the request is formed as described in the specification
GPC-AMUS-MPA-5/1 9658218873
GPC-AMUS-MPA-5/2 Amend an appointment
Given An appointment has been made for a patient
And I need to add a description to the booked appointment
And I have retrieved
And selected the relevant appointment
When I add a description to the appointment
Then the request includes the description I want to add
GPC-AMUS-MPA-5/2 9658218873
GPC-AMUS-MPA-5/3 Amend an appointment
Given An appointment has been made for a patient
And I need to change the description on the booked appointment
And I have retrieved
And selected the relevant appointment
When I change the existing description on the appointment
Then the request includes the new description
GPC-AMUS-MPA-5/3 9658218873
GPC-AMUS-MPA-5/4 Amend an appointment
Given An appointment has been made for a patient
And I need to add a comment to the booked appointment
And I have retrieved
And selected the relevant appointment
When I add a comment to the appointment
Then the request includes the comment I want to add
GPC-AMUS-MPA-5/4 9658218873
GPC-AMUS-MPA-5/5 Amend an appointment
Given An appointment has been made for a patient
And I need to change a comment on the booked appointment
And I have retrieved
And selected the relevant appointment
When I change the existing comment on the appointment
Then The request includes the new comment
GPC-AMUS-MPA-5/5 9658218873
GPC-AMUS-MPA-5/6 Amend an appointment
Given An appointment has been made for a patient
And I need to add a description to the booked appointment
And I have retrieved
And selected the relevant appointment
And the appointment was originally made by another organisation
When I add a description to the appointment
Then the request includes the description I want to add
GPC-AMUS-MPA-5/6 9658218873
GPC-AMUS-MPA-5/7 Amend an appointment
Given An appointment has been made for a patient
And I need to add a comment to the booked appointment
And I have retrieved
And selected the relevant appointment
And the appointment was originally made by another organisation
When I add a comment to the appointment
Then the request includes the comment I want to add
GPC-AMUS-MPA-5/7 9658218873
GPC-AMUS-MPA-5/8 Amend an appointment
Given An appointment has been made for a patient
And the status of the appointment is 'Cancelled'
And I want to change the reason for cancellation
And I have retrieved
And selected the relevant appointment
When I change the existing Cancellation Reason on the appointment
Then the request includes the new Cancellation Reason
And the appointment is updated in the provider system
GPC-AMUS-MPA-5/8 9658218873
GPC-AMUS-MPA-4/6 Cancel an appointment
Given I need to cancel an appointment because the patient no longer needs it
And I have retrieved
And selected the appointment to be cancelled
When I confirm the cancellation, with a reason for cancellation
And with amendments to any other field or fields
Then The error returned is captured
And displayed appropriately to the caller
GPC-AMUS-MPA-4/6 9658218873
GPC-AMUS-MPA-5/9 Amend an appointment
Given An appointment has been made for a patient
And the status of the appointment is 'Cancelled'
And I want to change the reason for cancellation
And I have retrieved
And selected the relevant appointment (exception case)
When I change the existing Cancellation Reason on the appointment
Then The error returned is captured
And displayed appropriately to the caller
GPC-AMUS-MPA-5/9 9658218873
GPC-AMUS-MPA-5/10 Amend an appointment
Given An appointment has been made for a patient
And I need to add a description to the booked appointment
And I have retrieved
And selected the relevant appointment
When I add a description to the appointment that contains more than 100 characters
Then The error returned is captured
And displayed appropriately to the caller
GPC-AMUS-MPA-5/10 9658218873
GPC-AMUS-MPA-5/11 Amend an appointment
Given An appointment has been made for a patient
And I need to add a comment to the booked appointment
And I have retrieved
And selected the relevant appointment
When I add a comment to the appointment that contains more than 500 characters
Then The error returned is captured
And displayed appropriately to the caller
GPC-AMUS-MPA-5/11 9658218873
GPC-AMUS-MPA-5/12 Amend an appointment
Given An appointment has been made for a patient
And I want to change some detail about the appointment
And I have retrieved
And selected the relevant appointment
When I change some detail other than the description or the comment
Then The error returned is captured
And displayed appropriately to the caller
GPC-AMUS-MPA-5/12 9658218873
GPC-AMUS-MPA-5/13 Amend an appointment
Given An appointment has been made for a patient
And I want to change some detail about the appointment
And I have retrieved
And selected the relevant appointment
And the start date/time of the appointment are in the past (before the current date/time)
When I confirm the change to the appointment
Then The error returned is captured
And displayed appropriately to the caller
GPC-AMUS-MPA-5/13 9658218873
Clone this wiki locally