# ---------------------------------------------------------------------------
# Patient data guard
#
# This project must never contain real clinical data. The rules below block
# data files by default and then allow back only the two places that hold
# generated, synthetic fixtures. If you need to add a data file somewhere else,
# that is a decision to make deliberately, not one to make by forgetting to
# look at `git status`.
# ---------------------------------------------------------------------------
*.csv
*.jsonl
*.ndjson
*.parquet
*.feather
*.arrow
*.dta
*.sav
*.xpt
*.xls
*.xlsx
*.sas7bdat
*.db
*.sqlite
*.sqlite3
*.h5
*.hdf5
*.pkl
*.pickle
*.zip
*.tar
*.tar.gz
*.tgz
*.gz
*.7z

# The only committed data: the deterministic synthetic walkthrough set and the
# test fixtures. Both are generated by clinval.synth or written by hand to a
# documented contract.
!examples/data/**
!tests/fixtures/**
!docs/benchmarks/**
!src/fhirground/schemas/mention.schema.json

# Never allow these back, even under an allowed directory.
**/phi/
**/PHI/
**/real_data/
**/patient_data/
*mimic*
*MIMIC*
*physionet*
# Synthea output is synthetic but large; regenerate it rather than commit it.
tests/fixtures/synthea/
*.phi.*

# ---------------------------------------------------------------------------
# Credentials
# ---------------------------------------------------------------------------
.env
.env.*
!.env.example
*.pem
*.key
*.p12
*.pfx
credentials.json
service-account*.json
.aws/
.netrc
*token*
!**/tokens_in*
!**/*token*.py

# ---------------------------------------------------------------------------
# Python
# ---------------------------------------------------------------------------
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# Environments
.venv/
venv/
ENV/
env/
.python-version

# Testing and typing caches
.pytest_cache/
.hypothesis/
.mypy_cache/
.ruff_cache/
.coverage
.coverage.*
coverage.xml
htmlcov/
*.cover
.tox/
.nox/

# ---------------------------------------------------------------------------
# fhirground outputs
#
# Anchored with a leading slash so they match only at the repository root.
# An unanchored `report/` would also match `src/clinval/report/`, which is
# package source, and would silently ship a broken package.
# ---------------------------------------------------------------------------
/demo_output/
/out/
/output/
/outputs/
/bundles/
/ndjson/
/score.json
/calibrator.json
/run_summary.json
/debug.jsonl
/clinval_predictions.jsonl

# The LLM call cache and the RxNav cache both contain
# note-derived text. Never commit them. See docs/phi.md.
.cache/
*.sqlite
*.sqlite3-journal
llm_cache*
rxnav*.sqlite

# ---------------------------------------------------------------------------
# Docs build
# ---------------------------------------------------------------------------
site/
docs/_build/

# ---------------------------------------------------------------------------
# Editors and OS
# ---------------------------------------------------------------------------
.idea/
.vscode/
*.swp
*.swo
*~
.DS_Store
Thumbs.db
.ipynb_checkpoints/
