Skip to content

New Structured Consumer (upto 1.2.7) Tests

BabarNHS edited this page Oct 16, 2020 · 5 revisions

Consumer Tests - Structured upto 1.5.0

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

TestScript ID Scenario Name Description Requirement ID Demonstrator Patient ID
GPC-STR-TST-PRB-01 Requesting problems (Request all problems)
Given the user wishes to view / import all problems or the system is set to only view / import all problems
When the user selects to problems
Then the resulting request is populated with valid syntax of using the includeProblems parameter only
And the resulting response is processed successfully by the Consumer.
GPC-STR-TST-PRB-01 9690937286
GPC-STR-TST-PRB-02 Requesting problems (Request with part parameter(s))
Given the user is able to select the types of problems which they wish to view / consumer or the system is set to only view / import certain types of problems
When the user selects to view problems of [status type] status and [significance level] significance
Then the resulting request is populated with valid syntax of [status request] and [significance request]
And the resulting response is processed successfully by the Consumer

Examples
  • Status type: Active, Inactive, All
  • Status request: active, inactive, part parameter filterStatus is absent

  • Significance type: Major, Minor, All
  • Significance request: Major"", Minor"", part parameter filterStatus is absent
GPC-STR-TST-PRB-02 9690937286
GPC-STR-TST-PRB-03 Requesting problems (Request with multiple parameters)
Given the user is able to select the types of problems which they wish to view / consumeror the system is set to only view / import certain
When the user selects to view problems of [status type] 'active' and [significance level] minor
And the user selects to view problems of [status type] 'inactive' and [significance level] major
Then the resulting request is populated with valid syntax of [status request] and [significance request]
And the resulting response is processed successfully by the Consumer.
GPC-STR-TST-PRB-03 9690937286
GPC-STR-TST-PRB-05 Error handling (Invalid parameter (problems))
Given I have made a request for problems to a GP Connect service invalid Problems Parametes/Part Parameters
When I receive an invalid parameter error response
Then I handle the response gracefully
And I make available all the diagnostic details to appropriate people to enable fault resolution
GPC-STR-TST-PRB-05 9690937286
GPC-STR-TST-PRB-06 Warnings (Confidential problem item)
Given I have sent a valid message to GP Connect
And I have requested problems are included
When I receive a success response including a confidential items warning for problems
Then the resulting response is processed successfully by the Consumer
And I make the user aware there are missing items and apply controls as appropriate
GPC-STR-TST-PRB-06 No Data
GPC-STR-TST-PRB-07 Warnings (Confidential item linked to a problem)
Given I have sent a valid message to GP Connect
And I have requested problems are included
When I receive a success response including a confidential items warning for a clinical item linked to a problem
Then the resulting response is processed successfully by the Consumer
And I make the user aware there are missing items and apply controls as appropriate
GPC-STR-TST-PRB-07 No Data
GPC-STR-TST-PRB-08 Warnings (Forwards compatibility)
Given I have sent a valid request for problems
When the provider returns a success response
Then I handle the response gracefully
And inform users appropriately according to my use case
GPC-STR-TST-PRB-08 9658218873
GPC-STR-TST-PRB-09 Using the problem resources (Problem header data elements)
Given I have sent a valid problems request
When I receive a successful, valid problems message response and resources
Then I display or utilise all the key information to represent or process the problems record(s) and linked records commenserate with the original record meaning and my specific use case
GPC-STR-TST-PRB-09
GPC-STR-TST-IMM-01 Requesting immunisations (Request immunisations)
Given the user wishes to view all Immunisation Data or the system is set to only view / import all Immunisation data
When the user selects to request Immunisation Data
Then the resulting request is populated with valid syntax of using the includeImmunisations Parameter and No Part Parameters present
And the resulting response is processed successfully by the Consumer
GPC-STR-TST-IMM-01 9690937294
GPC-STR-TST-IMM-02 Requesting immunisations (Request immunisations with part parameter(s))
Given the user is able to select the types of immunisations record they wish to view / consume or the system is set to only view / import certain types of immunisation records
When the user selects to view immunisation with not given events [notGiven] and dissent [dissent]
Then the resulting request is populated with valid syntax of not given part parameter [notGivenParamValue] and dissent part parameter [dissentParamValue]
And the resulting response is processed successfully by the Consumer

Examples
  • notGiven: Included, Excluded
  • Dissent: True, False
  • notGivenParamValue: Included, Excluded
  • dissentParamValue: True, False, absent
GPC-STR-TST-IMM-02 9690937294
GPC-STR-TST-IMM-04 Using the immunizations resource (Presenting immunisations not given)
Given I have sent a valid request including the includeNotGiven part paramter set to true
When I receive the response
Then I make use of the notGiven and explanation.reasonNotGiven elements alongside the vaccinationProcedure extension to identify the not given vaccination events
And I distinguish between these and the given vaccinations in my processing and storage
And if I present both types of information to the user the given and not given records are clearly identified and distinct
GPC-STR-TST-IMM-04 No Data
GPC-STR-TST-IMM-03 Using the immunizations resource (Supported immunisation data elements)
Given I have sent a valid immunizations request
When I receive a successful, valid immunizations message response and resources
Then I display or utilise all the key information to represent or process the vaccination record(s) commenserate with the original record meaning and my specific use case
GPC-STR-TST-IMM-03 No Data with the following element:-MUST support the reportOrigin element
GPC-STR-TST-IMM-05 Requesting immunisations (No immunisations available)
Given GIVEN the user wishes to view / import all immunisations or the system is set to only view / import all immunisations
When the user selects immunisations
Then the resulting request is populated with valid syntax of using the includeImmunisations parameter only
And the resulting response is processed successfully by the consumer, confirming the reason why there is no data
And the user is aware that the request has had a valid response ascerting that no records are held for immunisations
GPC-STR-TST-IMM-05 9658218903
GPC-STR-TST-IMM-06 Error handling (Invalid parameter (immunisations))
Given I have made a request for immunisations to a GP Connect service invalid Immunisations Parametes/Part Parameters
When I receive an invalid parameter error response
Then I handle the response gracefully
And I make available all the diagnostic details to appropriate people to enable fault resolution
GPC-STR-TST-IMM-06 9690937286
GPC-STR-TST-IMM-07 Warnings (Confidential immunisations item)
Given I have sent a valid message to GP Connect
And I have requested immunisations are included
When I receive a success response including a confidential items warning for immunisations
Then the resulting response is processed successfully by the Consumer
AndI make the user aware there are missing items and apply controls as appropriate
GPC-STR-TST-IMM-07 No Data
GPC-STR-TST-IMM-08 Warnings (Forwards compatibility (immunisations))
Given I have sent a valid request for immunisations
When the provider returns a success response including an operation outcome warning that immunisations is not supported
Then I handle the response gracefully
And inform users appropriately according to my use case
GPC-STR-TST-IMM-08 9658218873
GPC-STR-TST-UNC-01 Requesting uncategorised data (Request all uncategorised data)
Given the user wishes to view all uncategorised data or the system is set to only view / import all uncategorised data
When the user selects to request uncategorised data
Then the resulting request is populated with valid syntax of using the includeUncategorisedData Parameter and No Part Parameters present
And the resulting response is processed successfully by the Consumer
GPC-STR-TST-UNC-01 96909372869690937294
GPC-STR-TST-UNC-02 Requesting uncategorised data (Unategorised data from a specified date)
Given the user wishes to view / import uncatergorised data from a particular date or the system is set to only view / import uncatergorised data from a particular date
When the user selects to uncatergorised data together with a 'from' date
Then the resulting request is populated with valid syntax of using the includeUncatergorisedData and uncategorisedDataSearchPeriod.start part parameters only
And populated with a date less than or equal to the current date
And the resulting response is processed successfully by the Consumer
GPC-STR-TST-UNC-02 9690937286
GPC-STR-TST-UNC-03 Requesting uncategorised data (Unategorised data up to specified date)
Given the user wishes to view / import uncatergorised data up to a particular date or the system is set to only view / import all uncatergorised data up to a particular date
When the user selects to uncatergorised data together with a 'from' date
Then the resulting request is populated with valid syntax of using the includeUncatergorisedData and uncategorisedDataSearchPeriod.end part parameters only
And populated with a date less than or equal to the current date
And the resulting response is processed successfully by the Consumer.
GPC-STR-TST-UNC-03 9690937286
GPC-STR-TST-UNC-04 Requesting uncategorised data (Unategorised data for a date range)
Given the user wishes to view / import uncatergorised data for a specified time period or the system is set to only view / import all uncatergorised data for a specified time period
When the user selects to uncatergorised data for a time period
Then the resulting request is populated with valid syntax of using the includeUncatergorisedData with uncategorisedDataSearchPeriod.start and uncategorisedDataSearchPeriod.end part parameters only
And the end date is greater than or equal to the start date
And the end is less than or equal to the current date
And the resulting response is processed successfully by the Consumer.
GPC-STR-TST-UNC-04 9690937286
GPC-STR-TST-UNC-05 Requesting uncategorised data (No uncategorised data available)
Given a valid uncategorised data request has been made
And the patient record being requested has no uncategorised data
When the response is returned with an empty list
Then the resulting response is processed successfully by the consumer, confirming the reason why there is no data
And the user is aware that the request has had a valid response ascerting that there is no uncategorised data for the patient
GPC-STR-TST-UNC-05 9690937286
GPC-STR-TST-UNC-06 Using uncategorised data (Representing hierachical records)
Given a valid uncategorised data request has been made
And the patient record being requested has hierachical uncategorised data
When the response is returned
Then the resulting response is processed successfully by the consumer utilising the hierachical relationship between the data as appropriate to the consumer system use case
GPC-STR-TST-UNC-06 No Data
GPC-STR-TST-UNC-07 Using uncategorised data (Representing blood pressure readings)
Given a valid uncategorised data request has been made
And the patient record being requested has various blood pressure readings
When the response is returned
Then the resulting response is processed successfully by the consumer utilising the blood pressure records as appropriate to the consumer system use case
GPC-STR-TST-UNC-07 No Data
GPC-STR-TST-UNC-08 Using uncategorised data (Supported uncategorised data elements)
Given a valid uncategorised data request has been made
When I receive a successful, valid uncategorised data message response and resources
Then I display or utilise all the key information to represent or process the uncategorised data commenserate with the original record meaning and my specific use case
GPC-STR-TST-UNC-08 No Data with the following elements:-MUST support the interpretation element MUST support the comment element MUST support the bodySite element (blood pressures only) MUST support the referenceRange element MUST support the related element MUST support the component element (blood pressures only)
GPC-STR-TST-UNC-09 Error handling (Invalid parameter (uncategorised data))
Given I have made a request for uncategorised to a GP Connect service invalid Uncategorised Data Parameters/Part Parameters
When I receive an invalid parameter error response
Then I handle the response gracefully
And I make available all the diagnostic details to appropriate people to enable fault resolution
GPC-STR-TST-UNC-09 9690937286
GPC-STR-TST-UNC-10 Warnings (Confidential uncategorised data item)
Given I have sent a valid message to GP Connect
And I have requested uncategorised data is included
When I receive a success response including a confidential items warning for uncategorised data
Then the resulting response is processed successfully by the Consumer
And I make the user aware there are missing items and apply controls as appropriate
GPC-STR-TST-UNC-10 No Data
GPC-STR-TST-UNC-11 Warnings (Forwards compatibility (uncategorised data))
Given I have sent a valid request for uncategorised data
When the provider returns a success response including an operation outcome warning that uncategorised data is not supported
Then I handle the response gracefully
And inform users appropriately according to my use case
GPC-STR-TST-UNC-11 9658218873
GPC-STR-TST-ENC-01 Request consultations (Request all consultations)
Given the user wishes to view all consultations or the system is set to only view / import all consultations
When the user selects to request consultations
Then the resulting request is populated with valid syntax of using the includeConsultations Parameter and No Part Parameters present
And the resulting response is processed successfully by the Consumer
GPC-STR-TST-ENC-01 9690937286
GPC-STR-TST-ENC-02 Request consultations (Consultations from a specified date)
Given the user wishes to view / import consultations from a particular date or the system is set to only view / import consultations from a particular date
When the user selects to consultations together with a 'from' date
Then the resulting request is populated with valid syntax of using the includeConsultations and consultationsSearchPeriod.start part parameter only
And populates with a date less than or equal to the current date
And the resulting response is processed successfully by the Consumer.
GPC-STR-TST-ENC-02 9690937286
GPC-STR-TST-ENC-03 Request consultations (Consultations up to a specified date)
Given the user wishes to view / import consultations to a particular date or the system is set to only view / importconsultations to a particular date
When the user selects to consultations together with a 'to' date
Then the resulting request is populated with valid syntax of using the includeConsultations and consultationsSearchPeriod.end part parameter only
And populates with a date less than or equal to the current date
And the resulting response is processed successfully by the Consumer.
GPC-STR-TST-ENC-03 9690937286
GPC-STR-TST-ENC-04 Request consultations (Consultations for a date range)
Given the user wishes to view / import consultations for a specified time period or the system is set to only view / import all consultations for a specified time period
When the user selects to consultations together with a 'from' date and 'to' date
Then the resulting request is populated with valid syntax of using the includeConsultations and consultationSearchPeriod.start and consultationSearchPeriod.end part parameters only
And the endDate is less than or equal to the current date
And the startDate is less than or equal to the endDate
And the resulting response is processed successfully by the Consumer.
GPC-STR-TST-ENC-04 9690937286
GPC-STR-TST-ENC-05 Request consultations (Consultations by most recent)
Given the user wishes to view / import the most recent consultations only or the system is set to only view / import recent consultations only
When the user requests consultations
Then the resulting request is populated with valid syntax of using the includeConsultations parameter and a part parameter of includeNumberOfMostRecent only
And the number of most recent consultations is set to a whole number greater than zero
And the resulting response is processed successfully by the Consumer
GPC-STR-TST-ENC-05 9690937286
GPC-STR-TST-ENC-06 Request consultations (No consultations vailable)
Given the user wishes to view / import consultations or the system is set to only view / import consultations
When the user / system requests consultations
Then the resulting request is populated with valid syntax
And the resulting response is processed successfully by the consumer, confirming the reason why there is no data
And the user is aware that the request has had a valid response ascerting that no records are held for consultations within the specified search criteria
GPC-STR-TST-ENC-06 9690937308
GPC-STR-TST-ENC-07 Using consultations (Supported consultations elements)
Given a valid consultations request has been made
When I receive a successful, valid consultations message response and resources
Then I display or utilise all the key information to represent or process the consultations commenserate with the original record meaning and my specific use case
GPC-STR-TST-ENC-07 9690937308
GPC-STR-TST-ENC-08 Error handling (Invalid parameter (consultations))
Given I have made a request for consultations to a GP Connect service invalid Consultations Parameters/Part Parameters
When I receive an invalid parameter error response
Then I handle the response gracefully
And I make available all the diagnostic details to appropriate people to enable fault resolution
GPC-STR-TST-ENC-08 9690937286
GPC-STR-TST-ENC-09 Warnings (Confidential consultation)
Given I have sent a valid message to GP Connect
And I have requested consultations are included
When I receive a success response including a confidential items warning for consultations
Then he resulting response is processed successfully by the Consumer
And I make the user aware there are missing items and apply controls as appropriate
GPC-STR-TST-ENC-09 No Data
GPC-STR-TST-ENC-10 Warnings (Confidential item within a consultation)
Given I have sent a valid message to GP Connect
And I have requested consultations are included
When I receive a success response including a confidential items warning for a clinical item associated with a consultation
Then the resulting response is processed successfully by the Consumer
And I make the user aware there are missing items and apply controls as appropriate
GPC-STR-TST-ENC-10 No Data
GPC-STR-TST-ENC-11 Warnings (Forwards compatibility (uncategorised data))
Given I have sent a valid request for consultations
When the provider returns a success response including an operation outcome warning that consultations is not supported
Then I handle the response gracefully
And inform users appropriately according to my use case
GPC-STR-TST-ENC-11 9658218873
Clone this wiki locally