Skip to content

lijupm/hotflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hotflo Assessment

This application is done as part of Hotflo recruitment process

Installation

To install the application locally, please follow the steps given below

  1. git clone https://github.com/lijupm/hotflow.git
  2. cd hotflow (Make sure that you configure a site that points to the above directory)
  3. composer install
  4. bin/console doctrine:schema:update --force
  5. bin/console assetic:dump
  6. bin/console assetic:dump --env=prod
  7. bin/console cache:clear
  8. bin/console cache:clear --env=prod
  9. chmod 777 -R var/cache var/logs

Load Test data

To pre-load some test data to your application, run the following command

  1. bin/console doctrine:fixtures:load

That's it! Now you should be able to view the application home page. Alt text

ER Diagram

ER diagram of the application is given below Alt text

Application Entities

Here are some entities used in the application Alt text

Assignments

  1. Write an object oriented method in PHP that gives an overview of the sessions and the specialists and the anesthetists that are scheduled per OR.
  2. Write an object oriented method in PHP that gives an overview of the sessions and OR’s of a specific specialist.
  3. Write an object oriented method in PHP that checks if a specialists available in a certain timeslot. Do not write a query, but use the objects you have created.

Some specific test scenarios

In the assignment description, few points are noted

  • A hospital has 10 operatingrooms (OR’s).
  • This hospital has 5 specialists in service that are scheduled to perform surgeries.
  • It also has 5 anesthetists in service who sedate the patient at the beginning of the session.
  • Specialists and anesthetists are limitedly available (some work 40 hours, others 32).

All these scenarios are handled by the service CapacityManagerService

How to test above scenarios

  • A hospital has 10 operatingrooms (OR’s).

To test this scenario, go to "Data Entry" >> "Operating Rooms" page. You can see there is already 8 ORs available. You can add 2 more to the list, but cannot more than that because the hospital's OR limit is set to 10.

  • This hospital has 5 specialists in service that are scheduled to perform surgeries. To test this scenario, go to "Data Entry" >> "Specialists" and try to add more than 5 specialists. You should get an error message

  • It also has 5 anesthetists in service who sedate the patient at the beginning of the session. To test this scenario, go to "Data Entry" >> "Anesthetists" and try to add more than 5 Anesthetists, you should get an error message.

  • Specialists and anesthetists are limitedly available (some work 40 hours, others 32). To test this scenario, go to "Data Entry" >> "Sessions" page and go to 'Create new Session' page. Try to add Specialist "Adam" to a new Session. It should give an error message saying that he don't have any time left for the week. (For testing purpose, Adam's 'Availability per week' is set to 10

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published