Add ClinicalMultimodalDB, Flask clinical API, docs and end-to-end tests#1
Open
pifu-dabai wants to merge 1 commit intomainfrom
Open
Add ClinicalMultimodalDB, Flask clinical API, docs and end-to-end tests#1pifu-dabai wants to merge 1 commit intomainfrom
pifu-dabai wants to merge 1 commit intomainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Description
database/clinical_multimodal_db.pyimplementingClinicalMultimodalDBandSearchResultwith schema, FTS5 semantic search, regex-based auto-fill, RAG-style answer synthesis, IQA scoring, change detection, knowledge-graph extraction, lesion evolution and research query helpers.ClinicalMultimodalDBandSearchResultfromdatabase/__init__.py.server/clinical_api.pywhich provides a Flask application viacreate_appwith endpoints for health, upsert patient, visits, medications, lesions, labs, assets, auto-fill (single/batch), IQA, semantic search, RAG, multimodal ingest, review commit, change detection, snapshot, graph extraction, evolution, audits and research queries.docs/data_management_research_engine_plan.mddescribing goals, data model, intelligent fill, RAG/graph/IQA features, architecture and phased rollout.tests/test_clinical_api.pythat exercise end-to-end flows and validation guardrails using a temporary SQLite database and the Flask test client.Testing
tests/test_clinical_api.pywithunittestusing a temporary DB and Flask test client.tests/test_clinical_api.pycompleted successfully.Codex Task