From a382663849cdfaa5fbcbe38ce9978d501aaa6c27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elton=20Tom=C3=A1s=20Laice?= Date: Tue, 1 Oct 2024 13:43:58 +0200 Subject: [PATCH 1/3] Create LICENSE --- LICENSE | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..512282b --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2024 Elton Laice + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. From 5a2ae4378ad6899a09bba8abf98a680e511cd26a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elton=20Tom=C3=A1s=20Laice?= Date: Tue, 1 Oct 2024 13:47:42 +0200 Subject: [PATCH 2/3] create .env.example --- .env.example | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .env.example diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..21199d5 --- /dev/null +++ b/.env.example @@ -0,0 +1,15 @@ +# OpenMRS Configuration +OPENMRS_BASE_URL=http://localhost:8080/openmrs +OPENMRS_USERNAME=admin +OPENMRS_PASSWORD=Admin123 + +# OpenAI Configuration +OPENAI_API_KEY=your_openai_api_key_here + +# Flask Configuration +FLASK_ENV=development +FLASK_DEBUG=True +SECRET_KEY=your_secret_key_here + +# MongoDB Configuration +MONGO_URI=mongodb://localhost:27017/openmrs_smart_ia From d97eb9d5cf3fbd09aa5fe8eab12e70a3b693ca27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elton=20Tom=C3=A1s=20Laice?= Date: Tue, 1 Oct 2024 13:56:29 +0200 Subject: [PATCH 3/3] basic components created --- .gitignore | 63 +++++++++++++++++++++++++++++++++ app/__init__.py | 0 app/models.py | 0 app/routes.py | 0 app/services/__init__.py | 0 app/services/openai_service.py | 0 app/services/openmrs_service.py | 0 app/utils/__init__.py | 0 app/utils/helpers.py | 0 requirements.txt | 0 run.py | 0 tests/__init__.py | 0 tests/test_routes.py | 0 tests/test_services.py | 0 14 files changed, 63 insertions(+) create mode 100644 .gitignore create mode 100644 app/__init__.py create mode 100644 app/models.py create mode 100644 app/routes.py create mode 100644 app/services/__init__.py create mode 100644 app/services/openai_service.py create mode 100644 app/services/openmrs_service.py create mode 100644 app/utils/__init__.py create mode 100644 app/utils/helpers.py create mode 100644 requirements.txt create mode 100644 run.py create mode 100644 tests/__init__.py create mode 100644 tests/test_routes.py create mode 100644 tests/test_services.py diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f0e22c8 --- /dev/null +++ b/.gitignore @@ -0,0 +1,63 @@ +.env +# Python +__pycache__/ +*.py[cod] +*.pyo +*.pyd +*.pyc + +# Virtual Environment +venv/ +env/ +.venv/ + +# Flask +instance/ +.webassets-cache + +# Logs +*.log + +# Database +*.db +*.sqlite3 + +# Environment variables +.env +.env.* + +# IDE-specific files +.vscode/ +.idea/ +*.swp +*.swo + +# OS-specific files +.DS_Store +Thumbs.db + +# Temporary files +*.tmp +*.bak +*.swp + +# Dependency directories +node_modules/ + +# Distribution / packaging +dist/ +build/ +*.egg-info/ + +# Jupyter Notebook +.ipynb_checkpoints + +# pytest +.pytest_cache/ + +# Coverage reports +htmlcov/ +.coverage +.coverage.* +coverage.xml +*.cover diff --git a/app/__init__.py b/app/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/app/models.py b/app/models.py new file mode 100644 index 0000000..e69de29 diff --git a/app/routes.py b/app/routes.py new file mode 100644 index 0000000..e69de29 diff --git a/app/services/__init__.py b/app/services/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/app/services/openai_service.py b/app/services/openai_service.py new file mode 100644 index 0000000..e69de29 diff --git a/app/services/openmrs_service.py b/app/services/openmrs_service.py new file mode 100644 index 0000000..e69de29 diff --git a/app/utils/__init__.py b/app/utils/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/app/utils/helpers.py b/app/utils/helpers.py new file mode 100644 index 0000000..e69de29 diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..e69de29 diff --git a/run.py b/run.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/test_routes.py b/tests/test_routes.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/test_services.py b/tests/test_services.py new file mode 100644 index 0000000..e69de29