{"id":22317336,"url":"https://github.com/ib0b/med","last_synced_at":"2025-03-26T03:41:18.534Z","repository":{"id":39403148,"uuid":"205101380","full_name":"ib0b/med","owner":"ib0b","description":"Medical Laravel-Vue App","archived":false,"fork":false,"pushed_at":"2023-01-04T08:25:38.000Z","size":2751,"stargazers_count":1,"open_issues_count":15,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-31T04:07:27.609Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ib0b.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-29T07:00:37.000Z","updated_at":"2021-04-21T07:13:45.000Z","dependencies_parsed_at":"2023-02-02T05:16:25.551Z","dependency_job_id":null,"html_url":"https://github.com/ib0b/med","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ib0b%2Fmed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ib0b%2Fmed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ib0b%2Fmed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ib0b%2Fmed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ib0b","download_url":"https://codeload.github.com/ib0b/med/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245585807,"owners_count":20639671,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-03T23:09:24.389Z","updated_at":"2025-03-26T03:41:18.512Z","avatar_url":"https://github.com/ib0b.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Med App\nMedical Laravel-Vue App\n\n## How to Deploy or run locally.\nInstall Apache, PHP 7,composer,latest stable node and npm and MariadDB\nedit .env with your database and create MariaDB database if you need to.\n\nRun the following commands: [from /var/www/html or htdocs dir]\n\n\n```sh\ngit clone https://github.com/updatesvc/med.git\ncd med\n```\nFor windows run\n```\ngit pull origin master\ncomposer install --no-interaction --prefer-dist --optimize-autoloader\nphp artisan migrate --force\nphp artisan migrate:refresh --seed --force\nphp artisan cache:clear\nphp artisan auth:clear-resets\nphp artisan route:clear\nphp artisan route:cache\nphp artisan config:clear\nphp artisan config:cache\nnpm install\nnpm run production\n```\n\nFor linux or if you have gitbash run\n```\nnpm run initialize-linux\n```\n- might get some route:cache errors [can ignore]\n\n## Virtual Hosts\nsetup vhosts.conf for local development\n```\n\u003cVirtualHost [test domain also add to hosts file if developing locally].test:80\u003e\n    DocumentRoot \"[Med directory goes here]/public\"\n    DirectoryIndex index.php      \n    \u003cDirectory \"[Med directory goes here]/public\"\u003e\n        Options All\n        AllowOverride All\n        Order Allow,Deny\n        Allow from all\n    \u003c/Directory\u003e\n\u003c/VirtualHost\u003e\n```\n## User story\nPatient walks in hospital.\nGoes to reception first [always].\n- #### reception\nReceptionist must be logged in.\nReception checks if they are a new or existing patient. [adds them if new].\nReception then adds the patient to repective queue from drop down.\n\nPatient sits down and waits to be called to the department they were queued in.\n\n- ####  practitioner/departmnet\nPractitioner logs in.\nChecks if there is any patient in queue. \nClicks on next Patient.\nIntercom\\PA sytem announces \"Mary please report to [department]\" .\nPatients arrives at department.\nDoctors enters notes from consultation, and submits.\nDoctor then has option to end patient visit(discharge) or refer to another department.\n\n## Implementation Summary\n\nThe following accounts are seeded by default.\n\n| email | password |\n| ------ | ------ |\n| reception@med.com | reception |\n| treatment@med.com | treatment|\n| [department]@med.com | [department] |\n\nWhere departments are the respective departments in small case.\n\nIt 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.\n\nDepartment routes are guarded by authentication middleware.\n\n## Tests\nrun php unit below\n```\nphp vendor/phpunit/phpunit/phpunit\n\n```\nDue to time contraints I implemented one test for the login directory. Checking 200 OK status. For login route\n\n\n\n\n## Conlcusion\nAs much as I would like to add on this project, the time was not quite sufficient.\nMissing a few things.\n- CI/CD actions and triggers\n- Deployment Scripts, faced a few challenges in getting docker to work. Dropped it due to time constrictions\n- Better refactoring of classes and routes\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fib0b%2Fmed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fib0b%2Fmed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fib0b%2Fmed/lists"}