Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ib0b/med
Medical Laravel-Vue App
https://github.com/ib0b/med
Last synced: about 2 months ago
JSON representation
Medical Laravel-Vue App
- Host: GitHub
- URL: https://github.com/ib0b/med
- Owner: ib0b
- License: mit
- Created: 2019-08-29T07:00:37.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T08:25:38.000Z (about 2 years ago)
- Last Synced: 2023-03-04T11:18:47.229Z (almost 2 years ago)
- Language: PHP
- Size: 2.62 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Med App
Medical Laravel-Vue App## How to Deploy or run locally.
Install Apache, PHP 7,composer,latest stable node and npm and MariadDB
edit .env with your database and create MariaDB database if you need to.Run the following commands: [from /var/www/html or htdocs dir]
```sh
git clone https://github.com/updatesvc/med.git
cd med
```
For windows run
```
git pull origin master
composer install --no-interaction --prefer-dist --optimize-autoloader
php artisan migrate --force
php artisan migrate:refresh --seed --force
php artisan cache:clear
php artisan auth:clear-resets
php artisan route:clear
php artisan route:cache
php artisan config:clear
php artisan config:cache
npm install
npm run production
```For linux or if you have gitbash run
```
npm run initialize-linux
```
- might get some route:cache errors [can ignore]## Virtual Hosts
setup vhosts.conf for local development
```DocumentRoot "[Med directory goes here]/public"
DirectoryIndex index.php
Options All
AllowOverride All
Order Allow,Deny
Allow from all
```
## User story
Patient walks in hospital.
Goes to reception first [always].
- #### reception
Receptionist must be logged in.
Reception checks if they are a new or existing patient. [adds them if new].
Reception then adds the patient to repective queue from drop down.Patient sits down and waits to be called to the department they were queued in.
- #### practitioner/departmnet
Practitioner logs in.
Checks if there is any patient in queue.
Clicks on next Patient.
Intercom\PA sytem announces "Mary please report to [department]" .
Patients arrives at department.
Doctors enters notes from consultation, and submits.
Doctor then has option to end patient visit(discharge) or refer to another department.## Implementation Summary
The following accounts are seeded by default.
| email | password |
| ------ | ------ |
| [email protected] | reception |
| [email protected] | treatment|
| [department]@med.com | [department] |Where departments are the respective departments in small case.
It implements a queue system [a queue table] where each department views its respective queue and can call a patient and pop them form the queue/stack. Except for the Reception department.
Department routes are guarded by authentication middleware.
## Tests
run php unit below
```
php vendor/phpunit/phpunit/phpunit```
Due to time contraints I implemented one test for the login directory. Checking 200 OK status. For login route## Conlcusion
As much as I would like to add on this project, the time was not quite sufficient.
Missing a few things.
- CI/CD actions and triggers
- Deployment Scripts, faced a few challenges in getting docker to work. Dropped it due to time constrictions
- Better refactoring of classes and routes[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)