@@ -5,12 +5,6 @@ const log = require('loglevel')
55const errorResourceNotFoundResponse = require ( './responses/error-resource-not-found.json' )
66const errorSandboxResponseNotFound = require ( './responses/error-sandbox-response-not-found.json' )
77
8- // Common health questions - Responses
9- const commonHealthQuestionsRootResponse = require ( './responses/common-health-questions-root-no-params.json' )
10- const commonHealthQuestionsAccidentsFirstAidAndTreatmentsResponse = require ( './responses/common-health-questions-accidents-first-aid-and-treatments-no-params.json' )
11- const commonHealthQuestionsCaringCarersAndLongTermConditionsResponse = require ( './responses/common-health-questions-caring-carers-and-long-term-conditions-no-params.json' )
12- const commonHealthQuestionsChildrensHealthCanMyBabyGoSwimmingBeforeOrAfterVaccinationsResponse = require ( './responses/common-health-questions-childrens-health-can-my-baby-go-swimming-before-or-after-vaccinations-no-params.json' )
13-
148// Conditions - Responses
159const conditionsRootNoParamsResponse = require ( './responses/conditions-root-no-params.json' )
1610const conditionsAcanthosisNigricansResponse = require ( './responses/conditions-acanthosis-nigricans-no-params.json' )
@@ -106,90 +100,6 @@ async function root(req, res, next) {
106100 next ( )
107101}
108102
109- // ******************************************************************
110- // ** Common Health Questions pages
111- // ******************************************************************
112-
113- // Live website URL
114- // https://www.nhs.uk/common-health-questions/
115- // This sandbox on localhost
116- // http://localhost:9000/common-health-questions/
117- // API on Azure API Management
118- // https://api.nhs.uk/common-health-questions/
119- // Wagtail (Python) Application (no auth key required)
120- // https://www.nhs.uk/content-api/common-health-questions/
121- // Apigee Sandbox environment (no auth key required)
122- // https://sandbox.api.service.nhs.uk/nhs-website-content/common-health-questions/
123- // Apigee Integration environment ('apikey' required in Header)
124- // https://int.api.service.nhs.uk/nhs-website-content/common-health-questions/
125- // Apigee Production environment ('apikey' required in Header)
126- // https://api.service.nhs.uk/nhs-website-content/common-health-questions/
127- async function commonHealthQuestionsRoot ( req , res , next ) {
128- res . status ( 200 ) . json ( commonHealthQuestionsRootResponse )
129- res . end ( )
130- next ( )
131- }
132-
133- // Live website URL
134- // https://www.nhs.uk/common-health-questions/accidents-first-aid-and-treatments/
135- // This sandbox on localhost
136- // http://localhost:9000/common-health-questions/accidents-first-aid-and-treatments/
137- // API on Azure API Management
138- // https://api.nhs.uk/common-health-questions/accidents-first-aid-and-treatments/
139- // Wagtail (Python) Application (no auth key required)
140- // https://www.nhs.uk/content-api/common-health-questions/accidents-first-aid-and-treatments/
141- // Apigee Sandbox environment (no auth key required)
142- // https://sandbox.api.service.nhs.uk/nhs-website-content/common-health-questions/accidents-first-aid-and-treatments/
143- // Apigee Integration environment ('apikey' required in Header)
144- // https://int.api.service.nhs.uk/nhs-website-content/common-health-questions/accidents-first-aid-and-treatments/
145- // Apigee Production environment ('apikey' required in Header)
146- // https://api.service.nhs.uk/nhs-website-content/common-health-questions/accidents-first-aid-and-treatments/
147- async function commonHealthQuestionsAccidentsFirstAidAndTreatments ( req , res , next ) {
148- res . status ( 200 ) . json ( commonHealthQuestionsAccidentsFirstAidAndTreatmentsResponse )
149- res . end ( )
150- next ( )
151- }
152-
153- // Live website URL
154- // https://www.nhs.uk/common-health-questions/caring-carers-and-long-term-conditions/
155- // This sandbox on localhost
156- // http://localhost:9000/common-health-questions/caring-carers-and-long-term-conditions/
157- // API on Azure API Management
158- // https://api.nhs.uk/common-health-questions/caring-carers-and-long-term-conditions/
159- // Wagtail (Python) Application (no auth key required)
160- // https://www.nhs.uk/content-api/common-health-questions/caring-carers-and-long-term-conditions/
161- // Apigee Sandbox environment (no auth key required)
162- // https://sandbox.api.service.nhs.uk/nhs-website-content/common-health-questions/caring-carers-and-long-term-conditions/
163- // Apigee Integration environment ('apikey' required in Header)
164- // https://int.api.service.nhs.uk/nhs-website-content/common-health-questions/caring-carers-and-long-term-conditions/
165- // Apigee Production environment ('apikey' required in Header)
166- // https://api.service.nhs.uk/nhs-website-content/common-health-questions/caring-carers-and-long-term-conditions/
167- async function commonHealthQuestionsCaringCarersAndLongTermConditions ( req , res , next ) {
168- res . status ( 200 ) . json ( commonHealthQuestionsCaringCarersAndLongTermConditionsResponse )
169- res . end ( )
170- next ( )
171- }
172-
173- // Live website URL
174- // https://www.nhs.uk/common-health-questions/childrens-health/can-my-baby-go-swimming-before-or-after-vaccinations/
175- // This sandbox on localhost
176- // http://localhost:9000/common-health-questions/childrens-health/can-my-baby-go-swimming-before-or-after-vaccinations/
177- // API on Azure API Management
178- // https://api.nhs.uk/common-health-questions/childrens-health/can-my-baby-go-swimming-before-or-after-vaccinations/
179- // Wagtail (Python) Application (no auth key required)
180- // https://www.nhs.uk/content-api/common-health-questions/childrens-health/can-my-baby-go-swimming-before-or-after-vaccinations/
181- // Apigee Sandbox environment (no auth key required)
182- // https://sandbox.api.service.nhs.uk/nhs-website-content/common-health-questions/childrens-health/can-my-baby-go-swimming-before-or-after-vaccinations/
183- // Apigee Integration environment ('apikey' required in Header)
184- // https://int.api.service.nhs.uk/nhs-website-content/common-health-questions/childrens-health/can-my-baby-go-swimming-before-or-after-vaccinations/
185- // Apigee Production environment ('apikey' required in Header)
186- // https://api.service.nhs.uk/nhs-website-content/common-health-questions/childrens-health/can-my-baby-go-swimming-before-or-after-vaccinations/
187- async function commonHealthQuestionsChildrensHealthCanMyBabyGoSwimmingBeforeOrAfterVaccinations ( req , res , next ) {
188- res . status ( 200 ) . json ( commonHealthQuestionsChildrensHealthCanMyBabyGoSwimmingBeforeOrAfterVaccinationsResponse )
189- res . end ( )
190- next ( )
191- }
192-
193103// ******************************************************************
194104// ** Conditions pages
195105// ******************************************************************
@@ -1102,10 +1012,6 @@ async function status(req, res, next) {
11021012
11031013module . exports = {
11041014 root,
1105- commonHealthQuestionsAccidentsFirstAidAndTreatments,
1106- commonHealthQuestionsCaringCarersAndLongTermConditions,
1107- commonHealthQuestionsChildrensHealthCanMyBabyGoSwimmingBeforeOrAfterVaccinations,
1108- commonHealthQuestionsRoot,
11091015 conditionsAcanthosisNigricans,
11101016 conditionsAchalasia,
11111017 conditionsAcne,
0 commit comments