Logo Lanfrica
  • Home
  • Atlas
  • Insights
  • Docs
  • Sign in

© 2026 Lanfrica. All rights reserved. All copyrights of the resources shown on the Lanfrica website belong to the original copyright holders, unless explicitly stated otherwise.

bubulizer/bubulizer-kidney-triage

Domain:

healthcare

Record type:

software
Creator:
bub
Host:
Africa-appropriate, non-prescriptive clinical decision-support PWA for kidney and infection triage. # Kidney Triage – FastAPI GPT Proxy (secure, production-ish) This backend matches the `gpt-bridge.js` contract: - **POST** `/gpt` with JSON: `{ "text": "..." }` - Returns JSON: `{ "reply": "..." }` It is designed to keep **OpenAI API keys off the browser**. ## 1) Install ```bash python -m venv .venv source .venv/bin/activate # Windows: .venv\Scripts\activate pip install -r requirements.txt ``` ## 2) Configure Create a `.env` (or set environment variables): - `OPENAI_API_KEY` (required) - `OPENAI_MODEL` (default: `gpt-4o-mini`) - `OPENAI_BASE_URL` (default: `api.openai.com`) - `OPENAI_USE_RESPONSES` (default: `true`) - `true` -> uses **Responses API** (`/v1/responses`) - `false` -> uses **Chat Completions** (`/v1/chat/completions`) - `CORS_ORIGINS` (default `*` for dev; set to your domain in production) - `RATE_LIMIT_RPM` (default `30` per IP) - `PROXY_AUTH_TOKEN` (optional) If set, clients must send header: `X-Proxy-Token: ` Example: ```bash export OPENAI_API_KEY="sk-..." export CORS_ORIGINS="your-frontend.example" export PROXY_AUTH_TOKEN="change-me" ``` ## 3) Run ```bash uvicorn main:app --host 0.0.0.0 --port 8000 ``` Test: ```bash curl -X POST localhost \ -H "Content-Type: application/json" \ -H "X-Proxy-Token: change-me" \ -d '{"text":"Hello. Summarize: eGFR 84, WBC 7.6, culture staph spp."}' ``` ## 4) Front-end wiring In your PWA, set the proxy URL to something like: - `api.yourdomain.com` Then `gpt-bridge.js` will call it with `{text}`. ## Security notes (tell-it-like-it-is) - This is “production-ish”, not hospital-grade. - For stronger security: add real authentication, persistent rate limiting, audit logging, and a backend allowlist of origins. - Never log patient-identifying data. "# bubulizer-kidney-triage" "# bubulizer-kidney-triage"

Visit

github.com

Languages

Phuie

Similar

Kidney Plus Infection First-Aid Triage AssistantAMR TriageAusamapta/Imci-triagesaaga23/afrivoice-triageSmart Triage Model.Emergency Triage Systems

Kidney Plus Infection First-Aid Triage Assistant

First public release of a mobile-first, non-prescriptive clinical decision-support PWA for triaging

AMR Triage

Background With high burden of antimicrobial resistance and steep increase in watch antibiotics in l

Ausamapta/Imci-triage

Swahili-first pediatric triage assistant applying the WHO IMCI protocol for community health work

saaga23/afrivoice-triage

AfriVoice Triage agentic voice assistant for African healthcare (MLC Africa × Intron Challenge # Af

Smart Triage Model.

Infectious diseases in neonates account for half of the under-five mortality in low- and mid

Emergency Triage Systems

⚠️ Synthetic dataset — Parameterized from published SSA literature, not real observations. Not suita