LibreHealthIO / lh-ehr-laravel

LibreHealth EHR laravel
27 stars 38 forks source link

LH EHR SETUP - INITIAL TASK (LEGACY CODE) #27

Open muarachmann opened 1 year ago

muarachmann commented 1 year ago

Hello all.

As first task, you will have to clone and setup this repo - https://github.com/LibreHealthIO/lh-ehr

Use the https://chat.librehealth.io to discuss any issues you may encounter during this process or tag me here. Please comment on this thread only when you have completed your setup with the initial screen. It should look something like this.

Image 25-01-2023 at 09 02

Welcome to LH and look forward to your contributions.

chaitak-gorai commented 1 year ago

Hello, @muarachmann, I was going through the setup for windows it is mentioned to have php 7.0 0r 5.6 I wanna ask whether it is strict or if we can have a higher version ( As I have PHP 8.1.10 installed in my system)

I am getting undefined variables even after editing php.ini files as mentioned in the setup. image

whether these errors because of version differences? It will be great if you clear my doubts. Thank you.

muarachmann commented 1 year ago

You will need to turn off these warnings. Another way is to install via docker

On Sun, 26 Mar 2023 at 17:09 Chaitak Gorai @.***> wrote:

Hello, @muarachmann https://github.com/muarachmann, I was going through the setup for windows it is mentioned to have php 7.0 0r 5.6 I wanna ask whether it is strict or if we can have a higher version ( As I have PHP 8.1.10 installed in my system)

I am getting undefined variables even after editing php.ini files as mentioned in the setup. [image: image] https://user-images.githubusercontent.com/77141674/227788689-6c97fcc5-3266-44a1-9c3a-8668b5110638.png

whether these errors because of version differences? It will be great if you clear my doubts. Thank you.

— Reply to this email directly, view it on GitHub https://github.com/LibreHealthIO/lh-ehr-laravel/issues/27#issuecomment-1484145059, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD4X4XT5MBR2MSVNH32AGBLW6BS2DANCNFSM6AAAAAAUGAEPUA . You are receiving this because you were mentioned.Message ID: @.***>

chaitak-gorai commented 1 year ago

I have installed the strict 5.60 version and it solved the issue.

chaitak-gorai commented 1 year ago

Also @muarachmann I have successfully set up the project in the system. (Screen shot attached below)

I am interested to contribute to this project and also applying for GSoC for the same. Can you please suggest to me what to do next? What are the basic issues I can solve? It will be great.. Thank You 😊

setup_done

muarachmann commented 1 year ago

Also @muarachmann I have successfully set up the project in the system. (Screen shot attached below)

I am interested to contribute to this project and also applying for GSoC for the same. Can you please suggest to me what to do next? What are the basic issues I can solve? It will be great.. Thank You 😊

setup_done

Great @chaitak-gorai. Which project are you interested in working on. Please comment here in our chats and forums

jordyparker commented 1 year ago

Hello @muarachmann I've successfully run the project on my pc. See the screenshot of the login page below

Screenshot 2023-03-31 063716
jordyparker commented 1 year ago

Hello @muarachmann I've successfully run the project on my pc. See the screenshot of the login page below

Screenshot 2023-03-31 063716

However, when I log in with my credentials, I get the following error

ERROR: query failed: SELECT pnotes.id, pnotes.user, pnotes.pid, pnotes.title, pnotes.date, pnotes.message_status, IF(pnotes.pid = 0 OR pnotes.user != pnotes.pid,users.fname,patient_data.fname) as users_fname, IF(pnotes.pid = 0 OR pnotes.user != pnotes.pid,users.lname,patient_data.lname) as users_lname, patient_data.fname as patient_data_fname, patient_data.lname as patient_data_lname FROM ((pnotes LEFT JOIN users ON pnotes.user = users.username) LEFT JOIN patient_data ON pnotes.pid = patient_data.pid) WHERE pnotes.message_status != 'Done' AND pnotes.activity = 1 AND pnotes.deleted != '1' AND pnotes.assigned_to = ?

Error: Table 'libreehr.patient_data' doesn't exist

/var/www/html/library/pnotes.inc at 82:sqlStatement
/var/www/html/interface/main/tabs/templates/user_data_template.php at 8:getPnotesByUser(1,,admin,1)
/var/www/html/interface/main/tabs/main.php at 78:require_once(/var/www/html/interface/main/tabs/templates/user_data_template.php)

I did the installation with docker and I don't know if there is a way to dynamically create the missing table.

muarachmann commented 1 year ago

@jordyparker usually the docker installation seeds data. Can you run docker-composer up?

jordyparker commented 1 year ago

docker-composer up

I ran docker-compose up and i got this in the console

[+] Running 5/5
 ⠿ Network lh-ehr_default      Created                                                                             0.1s
 ⠿ Volume "lh-ehr_db_data"     Created                                                                             0.0s
 ⠿ Container lh-ehr-db-1       Created                                                                             0.6s
 ⠿ Container lh-ehr-adminer-1  Created                                                                             0.3s
 ⠿ Container lh-ehr-lh-ehr-1   Created                                                                             0.5s
Attaching to lh-ehr-adminer-1, lh-ehr-db-1, lh-ehr-lh-ehr-1
lh-ehr-db-1       | 2023-04-01 06:28:50+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.3.38+maria~ubu2004 started.
lh-ehr-db-1       | 2023-04-01 06:28:51+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
lh-ehr-db-1       | 2023-04-01 06:28:51+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.3.38+maria~ubu2004 started.
Error response from daemon: driver failed programming external connectivity on endpoint lh-ehr-adminer-1 (0689c56796a5d3bee9107f0a60daa49a88d7f3c9cf24f76266f66cafb5b2a33d): Bind for 0.0.0.0:8001 failed: port is already allocated 
umagloire99 commented 1 year ago

hello @muarachmann,

I have successfully set up the project. (Screenshot attached below)

I have been able to simulate the different features present in the system

Screen Shot 2023-03-30 at 03 21 18
jordyparker commented 1 year ago

docker-composer up

I ran docker-compose up and i got this in the console

[+] Running 5/5
 ⠿ Network lh-ehr_default      Created                                                                             0.1s
 ⠿ Volume "lh-ehr_db_data"     Created                                                                             0.0s
 ⠿ Container lh-ehr-db-1       Created                                                                             0.6s
 ⠿ Container lh-ehr-adminer-1  Created                                                                             0.3s
 ⠿ Container lh-ehr-lh-ehr-1   Created                                                                             0.5s
Attaching to lh-ehr-adminer-1, lh-ehr-db-1, lh-ehr-lh-ehr-1
lh-ehr-db-1       | 2023-04-01 06:28:50+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.3.38+maria~ubu2004 started.
lh-ehr-db-1       | 2023-04-01 06:28:51+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
lh-ehr-db-1       | 2023-04-01 06:28:51+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.3.38+maria~ubu2004 started.
Error response from daemon: driver failed programming external connectivity on endpoint lh-ehr-adminer-1 (0689c56796a5d3bee9107f0a60daa49a88d7f3c9cf24f76266f66cafb5b2a33d): Bind for 0.0.0.0:8001 failed: port is already allocated 

Hello @muarachmann I imported the sql file present in the sql > nhanes folder using the adminer client and that solved my problem. Now my dashboard is showing correctly.

Thank you for your help.

Obiasong commented 1 year ago

Hello @muarachmann I have successfully completed the setup.

Screenshot (11) Screenshot (12)

aarishshahmohsin commented 7 months ago

Can I be assigned this issue?