- The medicine database is now much bigger and has a real update path.
Added: Live source updater for RxNorm, DailyMed, and openFDA. Admin dashboard panel to refresh medicine sources. CLI updater for periodic jobs: [scripts/update_medicine_catalog.php](/Users/tyemeclifford/Documents/GH/workout/scripts/update_medicine_catalog.php) Update history table: medication_source_updates. Curl fallback for external fetches when PHP stream DNS fails. README instructions for periodic updates. I also ran the imports: Current medication catalog count: 6,002. Latest source imports:RxNorm: 3,875 inserted, 1,125 updated. openFDA: 912 inserted, 88 updated. DailyMed: 95 inserted. Periodic update command: /Users/tyemeclifford/frankenphp php-cli scripts/update_medicine_catalog.php 5000 all
This commit is contained in:
@@ -35,12 +35,13 @@ SQLite is created automatically at:
|
||||
data/health_tracker.sqlite
|
||||
```
|
||||
|
||||
The app seeds sample profiles, medical terminology, condition summaries, a medication catalog, NIH/NLM study-link categories, medication logs, vitals, labs, symptoms, allergies, appointments, immunizations, and the older optional wellness/fitness data.
|
||||
The app seeds sample profiles, medical terminology, condition summaries, an expanded medication catalog, NIH/NLM study-link categories, medication logs, vitals, labs, symptoms, allergies, appointments, immunizations, and the older optional wellness/fitness data.
|
||||
|
||||
## Included
|
||||
|
||||
- Multi-user profiles with separate records and theme preferences.
|
||||
- Admin dashboard for creating, editing, activating/deactivating, and deleting user profiles.
|
||||
- Admin medicine-source updater for refreshing the catalog from RxNorm, DailyMed, and openFDA.
|
||||
- First user created in a database is automatically promoted to `admin`; later users default to `member`.
|
||||
- Daily, weekly, and monthly views for medical logs.
|
||||
- Medication logging by date, dose, route, frequency, status, prescriber, and notes.
|
||||
@@ -48,14 +49,31 @@ The app seeds sample profiles, medical terminology, condition summaries, a medic
|
||||
- Lab result records with units, reference ranges, clinician/source notes, and collection dates.
|
||||
- Symptom journal, allergy list, appointments, and immunization records.
|
||||
- Medical terminology and condition database with source links.
|
||||
- Medicine catalog with RxNorm, MedlinePlus, PubMed, and ClinicalTrials.gov links.
|
||||
- Searchable medicine catalog by generic name, active ingredient, chemical name, common brand names, and generic/alternate names.
|
||||
- Medicine links to RxNorm, DailyMed, PubChem, MedlinePlus, PubMed, and ClinicalTrials.gov.
|
||||
- NIH/NLM research-link categories related to the listed medicines.
|
||||
- Neon dark theme by default, light mode option, and green, blue, red, pink, and orange accents.
|
||||
- Optional legacy fitness, nutrition, and supplement tracking remains available as wellness context.
|
||||
|
||||
## Medicine Catalog Updates
|
||||
|
||||
The catalog ships with a curated starter set, the current SQLite file includes thousands of imported medicine concepts, and it can be refreshed from public medicine sources.
|
||||
|
||||
From the admin dashboard, use the medicine source updater and choose `All sources`, `RxNorm`, `DailyMed`, or `openFDA`.
|
||||
|
||||
From the command line:
|
||||
|
||||
```sh
|
||||
/Users/tyemeclifford/frankenphp php-cli scripts/update_medicine_catalog.php 1000 all
|
||||
```
|
||||
|
||||
For a periodic cron-style update, run the same command nightly or weekly. The first argument is the max rows per source, from `25` to `5000`; the second argument is `all`, `RxNorm`, `DailyMed`, or `openFDA`.
|
||||
|
||||
## Reference Sources
|
||||
|
||||
- RxNorm and RxNav from the U.S. National Library of Medicine: `https://www.nlm.nih.gov/research/umls/rxnorm/index.html`
|
||||
- DailyMed label search from the U.S. National Library of Medicine: `https://dailymed.nlm.nih.gov/dailymed/`
|
||||
- PubChem chemical/compound search from NCBI: `https://pubchem.ncbi.nlm.nih.gov/`
|
||||
- MedlinePlus condition and medication pages: `https://medlineplus.gov/`
|
||||
- PubMed search links for medicine and condition research: `https://pubmed.ncbi.nlm.nih.gov/`
|
||||
- ClinicalTrials.gov search links for study discovery: `https://clinicaltrials.gov/`
|
||||
|
||||
Reference in New Issue
Block a user