nhsconnect / gpconnect-provider-testing

GP Connect automated test suite for API providers
Apache License 2.0
11 stars 5 forks source link

Tests for Access Record - Structured: Allergies #27

Closed lucywilcock closed 6 years ago

lucywilcock commented 6 years ago

GpConnect Version 1.0.0. specification begins to implement Access Record - Structured. One of the first sections to be included will be the Allergies section. New tests will need to be created to ensure this section works as expected.

At minimum, the following should be tested (other relevant tests may be also appropriate):

lucywilcock commented 6 years ago

The following tests have been implemented:

When patient data is brought back all mandatory fields are checked to ensure they are present and valid and the majority of required fields are also checked. This includes: the category, the asserted date, the clinical status, the code, the Id, the metadata, the patient reference, the verification status, the reaction, the end date (where applicable). It also asserts that the correct lists are returned and the patient, practitioner and organisation are there.

The following should also be tested but rely on supplier data. They have been added as manual tests for now:

lucywilcock commented 6 years ago

Tests are currently in branch structured-record-allergies

lucywilcock commented 6 years ago

The test around onsetDate has been commented out awaiting clarification from the specification as to whether it is mandatory or required.

If the former then the test should be added back in. If the latter then the test can be deleted.