Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
muarachmann opened this issue Jan 25, 2023 · 13 comments
Open

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

muarachmann opened this issue Jan 25, 2023 · 13 comments
Labels
good first issue Good for newcomers setup

Comments

@muarachmann
Copy link
Member

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
Copy link
Contributor

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
Copy link
Member Author

muarachmann commented Mar 26, 2023 via email

@chaitak-gorai
Copy link
Contributor

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

@chaitak-gorai
Copy link
Contributor

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
Copy link
Member Author

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
Copy link
Contributor

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
Copy link
Contributor

jordyparker commented Mar 31, 2023

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
Copy link
Member Author

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

@jordyparker
Copy link
Contributor

jordyparker commented Apr 1, 2023

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
Copy link

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
Copy link
Contributor

jordyparker commented Apr 1, 2023

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
Copy link

Obiasong commented Apr 4, 2023

Hello @muarachmann
I have successfully completed the setup.

Screenshot (11)
Screenshot (12)

@aarishshahmohsin
Copy link

Can I be assigned this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers setup
Projects
None yet
Development

No branches or pull requests

6 participants