- Fixed. Medicines now show “what it is used for” from official label data when available, with curated/common-use text as the fallback.
Changed: Added official_use, source name, and source URL fields to the medicine schema in [app/bootstrap.php (line 200)](/Users/tyemeclifford/Documents/GH/workout/app/bootstrap.php:200). Added shared display helpers and API used_for output in [app/bootstrap.php (line 1848)](/Users/tyemeclifford/Documents/GH/workout/app/bootstrap.php:1848). Updated openFDA imports to pull indications_and_usage first, then purpose, and store source links in [app/bootstrap.php (line 3060)](/Users/tyemeclifford/Documents/GH/workout/app/bootstrap.php:3060). Updated the medicine detail page to show “What It Is Used For” plus the openFDA label link in [public/medicine.php (line 72)](/Users/tyemeclifford/Documents/GH/workout/public/medicine.php:72). Updated catalog/list contexts to use the same helper, including [public/nutrition.php (line 66)](/Users/tyemeclifford/Documents/GH/workout/public/nutrition.php:66). Updated docs/counts in [README.md (line 45)](/Users/tyemeclifford/Documents/GH/workout/README.md:45) and [CHANGELOG.md (line 15)](/Users/tyemeclifford/Documents/GH/workout/CHANGELOG.md:15). Database is updated to 7,646 medicines, with 200 openFDA label-derived use summaries, 8,077 medicine-condition links, and 10,590 medicine-symptom links. Verified: Refreshed openFDA label-use data with scripts/update_medicine_catalog.php 200 openFDA. /medicine.php?id=7644, /medicine.php?id=6, /nutrition.php?q=serdexmethylphenidate, /api.php?action=library_search&q=ADHD&limit=5, and / all returned 200. Confirmed the page shows “What It Is Used For”, “Used for: ...”, and an openFDA label source link. Stock php -l was not available in this workspace, but the FrankenPHP bootstrap and route/API smoke tests executed successfully. Sources used: openFDA drug label fields and openFDA query parameters.
This commit is contained in:
+41
-1
@@ -2,6 +2,46 @@
|
||||
|
||||
All notable changes to Neon Medical Tracker are documented here.
|
||||
|
||||
## [Unreleased] - 2026-07-03
|
||||
|
||||
### Added
|
||||
|
||||
- Added generated medicine-to-condition and medicine-to-symptom relationship tables.
|
||||
- Added dynamic medicine detail sections for linked conditions and linked symptom contexts.
|
||||
- Added dynamic condition and symptom sections for commonly linked medicines.
|
||||
- Added therapeutic-use enrichment rules so imported medicine rows can show practical common-use context when a clear category match exists.
|
||||
- Added expanded condition and symptom seed coverage across cardiovascular, respiratory, endocrine, GI, kidney, neurologic, mental health, dermatology, infectious disease, immune, ENT, reproductive, and general medical topics.
|
||||
- Added openFDA brand-name and substance-name buckets to the medicine source updater.
|
||||
- Added official medicine-use fields and source links populated from openFDA drug label `indications_and_usage` or `purpose` text.
|
||||
- Added computed `used_for` values to medicine API payloads so clients can display official label use text when available.
|
||||
|
||||
### Changed
|
||||
|
||||
- Increased the current SQLite snapshot to 7,646 medicines, 283 conditions, and 308 symptoms, including 200 openFDA label-derived use summaries.
|
||||
- Rebuilt generated relationship data to 8,077 medicine-to-condition links and 10,590 medicine-to-symptom links.
|
||||
- Updated medical library search so medicine searches can match linked conditions/symptoms, and condition/symptom searches can match linked medicines.
|
||||
- Updated medicine catalog, medicine detail, condition, symptom, terminology, and combined-library pages to show "what it is used for" text through one shared helper.
|
||||
- Updated relationship generation so official medicine-use label text participates in condition and symptom linking.
|
||||
- Updated openFDA refreshes to fetch label documents first, then fall back to generic, brand, and substance buckets for broader coverage.
|
||||
- Batched imported medicine upserts inside a SQLite transaction for faster source refreshes.
|
||||
- Increased SQLite busy timeout for safer first-run migrations and source refreshes.
|
||||
- Updated `README.md` with current counts, relationship data, and source-refresh behavior.
|
||||
|
||||
### Fixed
|
||||
|
||||
- Cleaned generated search terms when therapeutic relationship rules change so removed links do not linger in search.
|
||||
- Tightened relationship rules to avoid broad steroid and chemistry keyword false positives.
|
||||
- Fixed medicine pages that previously depended on `common_use` only, so medicines now show official "used for" text whenever it exists.
|
||||
|
||||
### Verified
|
||||
|
||||
- Refreshed public medicine sources with a 500-row-per-source run across RxNorm, DailyMed, and openFDA.
|
||||
- Refreshed openFDA label-use data with a 200-row run and verified 200 medicine rows have official use summaries.
|
||||
- Verified `/medicine.php?name=albuterol`, `/condition.php?name=Asthma`, `/symptom.php?name=Wheezing`, and `api.php?action=library_search&q=asthma&limit=10` return `200`.
|
||||
- Verified official-use medicine pages expose "What It Is Used For", `Used for:` label text, and an openFDA drug label source link.
|
||||
- Verified albuterol medicine pages show linked Asthma/Wheezing records and Asthma/Wheezing pages show linked albuterol medicines.
|
||||
- Verified stale adalimumab-to-asthma and celecoxib-to-UTI false positives are removed.
|
||||
|
||||
## [Unreleased] - 2026-06-30
|
||||
|
||||
### Added
|
||||
@@ -58,7 +98,7 @@ All notable changes to Neon Medical Tracker are documented here.
|
||||
- Verified dynamic medicine, symptom, condition, and terminology routes return `200` for representative records.
|
||||
- Verified legacy `/signup.php` returns `302` to `/tracker.php`.
|
||||
- Verified `api.php?action=public_signup` returns `404`.
|
||||
- Verified current SQLite snapshot counts: 6,002 medicines, 242 symptoms, 203 conditions, 23 terms, and 9 research-link categories.
|
||||
- Verified then-current SQLite snapshot counts: 6,002 medicines, 242 symptoms, 203 conditions, 23 terms, and 9 research-link categories.
|
||||
- Verified browser layout checks for medicine, symptom, and terminology pages at desktop and mobile widths with no horizontal overflow.
|
||||
|
||||
## Earlier Scope
|
||||
|
||||
Reference in New Issue
Block a user