Victor Fernandes - Backend-interview Finished #38
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request Template
Description
The solution was implemented in accordance with the challenge requirements, featuring an algorithm that processes a set of historical patient data to compute a score for each patient. This score, ranging from 1 (lowest) to 10 (highest), represents the likelihood of a patient accepting an appointment offer from the waitlist.
Implementation
The implementation follows a five-step process:
Technical decisions
The core code follows a service-oriented architecture, adhering to SOLID principles. Each service is designed with a clear, single responsibility, ensuring modularity and maintainability. A facade layer was also created to aggregate these services, allowing them to be seamlessly exposed as a single function within the library.
Each service and the facade have been thoroughly tested with unit tests to ensure reliability and correctness.
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.
You can run unit tests:
npm run test:unit:cov
Or get information on README Api section, to test via endpoint.
Checklist: