nhsconnect / gpconnect-provider-testing

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

1.2.0 - Medications prescribed elsewhere #57

Closed lucywilcock closed 6 years ago

lucywilcock commented 6 years ago

Add a test for medications prescribed elsewhere as per the spec.

lucywilcock commented 6 years ago

A medication prescribed elsewhere is medication that is in the patient's record but that was not prescribed at the provider that is handling the GpConnect request.

This medication will therefore have no 'issue' information associated with it. It should have a single MedicationRequest with an intent of plan. This is similar to unissued medication but medication prescribed elsewhere should also have the PrescribingAgency field populated in the associated MedicationStatement.

lucywilcock commented 6 years ago

Unless commented below, patient 12 will have medication prescribed elsewhere.

lucywilcock commented 6 years ago

Added a new test for patient 12. This will check that any prescriptions from elsewhere (with the prescribing agency populated) have a single request with intent of plan.

This test will be need to be added to when the spec is completed - PrescribingAgency still has a TODO to do.

Leaving issue open until demonstrator is done and can be tested properly.

lucywilcock commented 6 years ago

Demonstrator has been completed and the tests now pass. Closing.