Instruction file imported from ahagh/mimic-on-hapi-fhir (
.github/instructions/project_outline.instructions.md). Copyright stays with the author.
Provide project context and coding guidelines that AI should follow when generating code, answering questions, or reviewing changes.
-
Project Context:
- This project involves the use of FHIR (Fast Healthcare Interoperability Resources) standards for healthcare data.
- The goal is to facilitate the import and export of healthcare data in NDJSON format.
- The project includes a FHIR file server, a bulk import script, and a Docker Compose setup for easy deployment.
-
Coding Guidelines:
- Follow PEP 8 style guidelines for Python code.
- Use meaningful variable and function names.
- Include docstrings for all functions and classes.
- Write unit tests for all new features and bug fixes.
- Use logging instead of print statements for debugging and information output.
- Ensure that all code is properly commented and documented.
-
Project Structure:
- All FHIR ndjson resources are stored in the
input_data/fhir/directory. bulk_import.py: Script for importing NDJSON files into the FHIR server.fhir_file_server.py: HTTP server for serving NDJSON files for bulk import.- The
scripts/directory contains utility scripts for data processing and manipulation. - The
tests/directory includes unit tests for all components.
- All FHIR ndjson resources are stored in the