nhsconnect / gpconnect-demonstrator

GP Connect demonstrator is a reference implementation of a GP Connect providing system and a consumer system demonstration
https://orange.testlab.nhs.uk/
Apache License 2.0
17 stars 9 forks source link

Demonstrator improvements for swagger #40

Closed james-answer closed 6 years ago

james-answer commented 6 years ago

So there is data to be retrieved by the Swagger definition can we do the following:

lucywilcock commented 6 years ago

Two new appointments will now be booked when the data is refreshed in the demonstrator database.

These will be created for a patient with the NHS number saved under 'datasource.patient.nhsNumber' in the gpconnect-demonstrator-api.properties file. It will default to 9476719931. The appointments will be created for the first two slots in the database.

Because the id for the appointments table is auto-generated it overwrote anything I set manually. Instead, when the appointments table is cleared down the auto increment will now also be reset. This should not cause any problems as the table is empty at this point. The two saved appointments will then always be saved with ids 1 and 2.

lucywilcock commented 6 years ago

The code can be found in branch appointment-test-data

lucywilcock commented 6 years ago

This has been merged into develop and master and the 1.1.0 tag has been moved.

The sql has been updated manually for the public facing demonstrator and all three are displaying the auto-booked appointments,