- Initialise a node.js project using npm or yarn
- Install your favourite HTTP server library with npm or yarn
- Setup an application that listens on port 8080 for incoming HTTP requests
- Create a GET route to handle requests when localhost:8080/aggregate is opened in the browser.
- In the handler for the GET route, implement the below
- Asynchronously get the data from
GET https://directory.spineservices.nhs.uk/STU3/Organization/N81082
- We want to loop through the extensions and build the object below:
{
maxStart: Date,
minStart: Date,
valueCodings: {
"key": value
}
}
- Follow further instructions from interviewer