- 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:
Ty Clifford
2026-06-30 15:29:57 -04:00
parent 17ebaf21a3
commit 96de47be43
10 changed files with 594 additions and 14 deletions
+1
View File
@@ -45,6 +45,7 @@ try {
'create_allergy_record' => 'create_allergy_record',
'create_appointment' => 'create_appointment',
'create_immunization_record' => 'create_immunization_record',
'refresh_medication_sources' => 'refresh_medication_sources',
];
if (!isset($routes[$action])) {