DEV Community

ggebre
ggebre

Posted on

Rails Portfolio Project at Flatiron

One of the main portfolio projects that I needed to complete as a student at Flatiron School is to develop a web application using Ruby on Rails. For my Ruby on Rails project, I planned to develop a web application that mimics some functionalities from PointClickCare's healthcare software that some health care centers utilize. In the application, users are assumed to be nurses and their managers. The application helps nurses to manage their patients information and medication. And the nurse manager assigns nurses to a floor where there are some residents in the institutions care. Once a nurse is assigned to a floor, they will be able to view the informations related to residents in that floor.

Before I start coding the project, I developed a wireframe based on the interfaces the PointClickCare's healthcare software has. I then created the file structure for the web app. To include some of the functionalities, I needed to generate 12 models and migrations as shown below.
Alt Text

The migrations established has_many and many_to_many associations among the different models in the application. As the nurse can be assigned to many residents while the resident can have many nurses, many_to_many association was established between the two models. The other models are mostly associated with the resident, while the nurse can make changes to the attributes of these models so as to update the attributes. For instance, prescriptions of for a resident are filled out by the nurse which will either create or update the list of medications. The prescription model has five attributes which can be directly changed by the nurse when a new prescription is created, while the sixth attribute is created and updated through a callback in the model when the prescription is saved. The after_save callback is used to update delivery_time for the next dose to be passed.

Alt Text

The application lets users to use standard user authentication and google's Oauth authentication to login to the application. As to the views created, Bootstrap was used to structure the user interfaces.

In the application, I tried to include all the requirements of the school to make it acceptable. But it needs some refactoring and, some features should be added to make it more useful. I plan to add some graphics to show the summary of residents physical exam results, and also display how efficiently the nurse are passing the medications to residents.

Top comments (0)