diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..b7368ca --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "python.formatting.provider": "black" +} diff --git a/.flake8 b/lib/.flake8 similarity index 100% rename from .flake8 rename to lib/.flake8 diff --git a/.gitignore b/lib/.gitignore similarity index 100% rename from .gitignore rename to lib/.gitignore diff --git a/README.md b/lib/README.md similarity index 100% rename from README.md rename to lib/README.md diff --git a/fhir_utils/__init__.py b/lib/fhir_utils/__init__.py similarity index 100% rename from fhir_utils/__init__.py rename to lib/fhir_utils/__init__.py diff --git a/fhir_utils/conf.py b/lib/fhir_utils/conf.py similarity index 100% rename from fhir_utils/conf.py rename to lib/fhir_utils/conf.py diff --git a/fhir_utils/healthcare_api.py b/lib/fhir_utils/healthcare_api.py similarity index 100% rename from fhir_utils/healthcare_api.py rename to lib/fhir_utils/healthcare_api.py diff --git a/fhir_utils/utils.py b/lib/fhir_utils/utils.py similarity index 97% rename from fhir_utils/utils.py rename to lib/fhir_utils/utils.py index de53398..661943c 100644 --- a/fhir_utils/utils.py +++ b/lib/fhir_utils/utils.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- import json import xmltodict @@ -25,8 +26,8 @@ def xml_to_dict(xml_file_path): except Exception as e: print(f"Error: Unable to parse XML file. Reason: {str(e)}") return None - - + + def save_to_json(dict, json_path,): with open(json_path, "w") as file: json.dump(dict, file) \ No newline at end of file diff --git a/fhir_utils/version.py b/lib/fhir_utils/version.py similarity index 100% rename from fhir_utils/version.py rename to lib/fhir_utils/version.py diff --git a/poetry.lock b/lib/poetry.lock similarity index 100% rename from poetry.lock rename to lib/poetry.lock diff --git a/pyproject.toml b/lib/pyproject.toml similarity index 100% rename from pyproject.toml rename to lib/pyproject.toml diff --git a/pytest.ini b/lib/pytest.ini similarity index 100% rename from pytest.ini rename to lib/pytest.ini diff --git a/scripts/__init__.py b/lib/scripts/__init__.py similarity index 100% rename from scripts/__init__.py rename to lib/scripts/__init__.py diff --git a/scripts/docs.py b/lib/scripts/docs.py similarity index 100% rename from scripts/docs.py rename to lib/scripts/docs.py diff --git a/scripts/lint.py b/lib/scripts/lint.py similarity index 100% rename from scripts/lint.py rename to lib/scripts/lint.py diff --git a/scripts/test.py b/lib/scripts/test.py similarity index 100% rename from scripts/test.py rename to lib/scripts/test.py diff --git a/tests/__init__.py b/lib/tests/__init__.py similarity index 100% rename from tests/__init__.py rename to lib/tests/__init__.py diff --git a/tests/test_sanity.py b/lib/tests/test_sanity.py similarity index 100% rename from tests/test_sanity.py rename to lib/tests/test_sanity.py