{"id":22504956,"url":"https://github.com/bcbi/ascvd-risk-calculator","last_synced_at":"2025-03-27T23:21:35.695Z","repository":{"id":249174336,"uuid":"820542644","full_name":"bcbi/ASCVD-Risk-Calculator","owner":"bcbi","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-23T23:30:49.000Z","size":104,"stargazers_count":0,"open_issues_count":7,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-02T01:27:29.704Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bcbi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-26T17:18:46.000Z","updated_at":"2024-08-20T15:32:53.000Z","dependencies_parsed_at":"2025-02-02T01:37:20.724Z","dependency_job_id":null,"html_url":"https://github.com/bcbi/ASCVD-Risk-Calculator","commit_stats":null,"previous_names":["bcbi/ascvd-risk-calculator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcbi%2FASCVD-Risk-Calculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcbi%2FASCVD-Risk-Calculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcbi%2FASCVD-Risk-Calculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcbi%2FASCVD-Risk-Calculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bcbi","download_url":"https://codeload.github.com/bcbi/ASCVD-Risk-Calculator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245938757,"owners_count":20697086,"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-07T00:12:13.859Z","updated_at":"2025-03-27T23:21:35.675Z","avatar_url":"https://github.com/bcbi.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ASCVD Risk Calculator\n\nThis ASCVD Risk calculator is used to study the risk prediction for cardiovascular disease (CVD).\n\nThis calculator uses the Pooled Cohort risk prediction equations to predict 10-year atherosclerotic cardiovascular disease risk. More information about the predictor equation can be found here https://github.com/bcjaeger/PooledCohort/tree/master\n\n# Steps to run the ASCVD Risk Calculator\n\n## 1. Check if R and python are installed where you are running this app.\n\n```\npython3 --version\nR --version\n```\n\n## 2. Before running the app\n\nChange these parameters in the .env file. Use the port number assigned to you to run the app for FHIR_PORT.\n\n```\nFHIR_SERVER_BASE_URL= http://pwebmedcit.services.brown.edu:????/fhir\nFHIR_USERNAME = ???\nFHIR_PASSWORD = ???\nFHIR_PORT=????\n\n```\n\nStart R and run the R.home() and .libPaths() commands to get the directory names\n\n```\n\u003e R.home()\n[1] \"/Library/Frameworks/R.framework/Resources\"\n\u003e .libPaths()\n[1] \"/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library\"\n```\n\n\n## 3. Clone the repo\n```\ngit clone https://github.com/bcbi/ASCVD-Risk-Calculator.git\n\ncd ASCVD-Risk-Calculator\n```\n\n## 4. Update the above R dirceory paths in the app.py file in the ASCVD-Risk-Calculator directory in line 8 and 9\n\n```\nos.environ['R_HOME'] = \"????\"\nos.environ['R_USER'] = \"????\"\n```\n## 5. Run the setup script\n```\n./setup_environment.sh\n```\n\n## 6. Activate the virtual environment\n```\nsource venv/bin/activate\n```\n\n## 7. Run the flask app\n```\npython src/app.py\n```\n\nThis will start the app on port \"FHIR_PORT\". You can open your preferred browser and see the app running on `http://localhost:FHIR_PORT` replace the FHIR_PORT with the actual port number assigned to you. \nThe exact URL to the app can also be found on the terminal output after running the app.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbcbi%2Fascvd-risk-calculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbcbi%2Fascvd-risk-calculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbcbi%2Fascvd-risk-calculator/lists"}