{"id":51178444,"url":"https://github.com/parthha12/mediquery","last_synced_at":"2026-06-27T05:30:55.149Z","repository":{"id":365751809,"uuid":"1272923825","full_name":"parthha12/mediquery","owner":"parthha12","description":"Ingest, organize, and query discharge data","archived":false,"fork":false,"pushed_at":"2026-06-18T17:13:01.000Z","size":78,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-18T19:12:53.155Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/parthha12.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-18T03:53:58.000Z","updated_at":"2026-06-18T17:13:06.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/parthha12/mediquery","commit_stats":null,"previous_names":["parthha12/mediquery"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/parthha12/mediquery","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parthha12%2Fmediquery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parthha12%2Fmediquery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parthha12%2Fmediquery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parthha12%2Fmediquery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/parthha12","download_url":"https://codeload.github.com/parthha12/mediquery/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parthha12%2Fmediquery/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34843146,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-27T02:00:06.362Z","response_time":126,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-27T05:30:55.091Z","updated_at":"2026-06-27T05:30:55.140Z","avatar_url":"https://github.com/parthha12.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mediquery\n\n**Ingest · Organize · Query**\n\nMediquery turns hospital discharge packets into organized clinical records you can query with natural language. Every answer links back to source sections in the packet.\n\n\u003e **Prototype only** · No real PHI · Human review required\n\n## What it does\n\n1. **Intake** — upload a PDF for deterministic ETL, or use demo templates (mock parser)\n2. **Records** — browse parsed sections (medications, allergies, labs, wound care, etc.)\n3. **Ask** — query ingested data via OpenAI LLM with source citations (API key required)\n\n## Quick start\n\n```bash\nnpm install\nnpm run dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000).\n\n### LLM Ask (recommended)\n\n```bash\ncp .env.example .env.local\n# OPENAI_API_KEY=sk-...\nnpm run dev\n```\n\nWithout `OPENAI_API_KEY`, Ask uses keyword fallback. **Intake parsing does not use the LLM** — it is deterministic regex/heuristic ETL.\n\n### Try real PDF intake\n\nUpload `samples/Branson_Harold_Discharge_2026-06-17_MESSY.pdf` on `/intake` → **Extract \u0026 Ingest**.\n\n## Scripts\n\n| Command | Description |\n|---------|-------------|\n| `npm run dev` | Development server |\n| `npm run build` | Production build |\n| `npm run start` | Serve production build |\n| `npm test` | Unit/integration tests |\n| `npm run verify` | Tests + typecheck + build |\n| `npm run verify:live` | Above + smoke-test `/api/chat` (dev server required) |\n\n## Routes\n\n| Route | Purpose |\n|-------|---------|\n| `/intake` | Upload PDF (ETL) or ingest demo template |\n| `/dashboard` | Browse ingested records |\n| `/patients/[id]` | Organized record detail |\n| `/ask` | LLM queries across all records |\n\n## Demo data\n\nFive prepopulated patients ship with the app. Reset by clearing `jot-snf-workspaces` from browser localStorage and refreshing.\n\n| Patient | Scenario |\n|---------|----------|\n| Eleanor Whitfield | Complete packet |\n| Robert Martinez | Missing wound care |\n| Dorothy Nguyen | Med/allergy conflict |\n| James Cooper | Missing therapy orders |\n| Linda Park | Incomplete insurance auth |\n\nSee **[DEMO.md](./DEMO.md)** for walkthrough scripts. See **[STORIES.md](./STORIES.md)** for the latest development story.\n\n## Stack\n\n- Next.js 15 (App Router) · React 19 · TypeScript\n- PDF text extraction (`pdfjs-dist`) + deterministic ETL (`src/services/dischargeEtl.ts`)\n- Mock parser for demo templates (`src/services/dischargeParser.ts`)\n- localStorage store (`src/services/patientStore.ts`)\n- OpenAI chat API with RAG context (`src/services/llmAgent.ts`) — Ask only; requires API key\n\n## Out of scope\n\nNo real EHR, fax, or PHI. No staff notes UI. Prototype for demonstration only.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparthha12%2Fmediquery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparthha12%2Fmediquery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparthha12%2Fmediquery/lists"}