This commit is contained in:
Ty Clifford
2026-06-30 12:39:17 -04:00
parent 0fe5a92f90
commit 17ebaf21a3
18 changed files with 1789 additions and 143 deletions
+103
View File
@@ -0,0 +1,103 @@
<?php
declare(strict_types=1);
require __DIR__ . '/../app/bootstrap.php';
$pdo = app_db();
$pageTitle = 'Medical Terminology Database | Neon Medical Tracker';
$activePage = 'terminology';
$terms = db_all($pdo, 'SELECT * FROM medical_terms ORDER BY category, term');
$conditions = db_all($pdo, 'SELECT * FROM medical_conditions ORDER BY category, name');
$medicines = db_all($pdo, 'SELECT * FROM medication_catalog ORDER BY generic_name');
$studies = db_all($pdo, 'SELECT * FROM research_studies ORDER BY category, related_medicine, title');
require __DIR__ . '/partials/site-header.php';
?>
<main>
<section class="admin-public-shell">
<div class="site-section-heading">
<p class="site-eyebrow">Medical terminology database</p>
<h1>Terms, conditions, medicines, and NIH/NLM study links.</h1>
<p>Entries are concise app-authored summaries with links to NIH/NLM systems such as MedlinePlus, RxNorm, PubMed, and ClinicalTrials.gov. This is a tracking/reference aid, not medical advice.</p>
</div>
<div class="detail-grid">
<?php foreach ($conditions as $condition): ?>
<article>
<h2><?= htmlspecialchars($condition['name'], ENT_QUOTES) ?></h2>
<p><strong><?= htmlspecialchars($condition['category'], ENT_QUOTES) ?></strong></p>
<p><?= htmlspecialchars($condition['overview'], ENT_QUOTES) ?></p>
<p><?= htmlspecialchars($condition['common_tracking'], ENT_QUOTES) ?></p>
<a class="site-secondary" href="<?= htmlspecialchars($condition['source_url'], ENT_QUOTES) ?>">Source</a>
</article>
<?php endforeach; ?>
</div>
</section>
<section class="admin-public-shell">
<div class="site-section-heading">
<p class="site-eyebrow">Terminology</p>
<h2>Plain-language medical terms</h2>
</div>
<div class="term-table">
<?php foreach ($terms as $term): ?>
<article>
<div>
<h3><?= htmlspecialchars($term['term'], ENT_QUOTES) ?></h3>
<span><?= htmlspecialchars($term['category'], ENT_QUOTES) ?></span>
</div>
<p><?= htmlspecialchars($term['plain_language_definition'], ENT_QUOTES) ?></p>
<p><?= htmlspecialchars($term['clinical_context'], ENT_QUOTES) ?></p>
<a href="<?= htmlspecialchars($term['source_url'], ENT_QUOTES) ?>"><?= htmlspecialchars($term['source_name'], ENT_QUOTES) ?></a>
</article>
<?php endforeach; ?>
</div>
</section>
<section class="admin-public-shell">
<div class="site-section-heading">
<p class="site-eyebrow">Medication catalog</p>
<h2>Medicines with RxNorm, PubMed, and ClinicalTrials.gov links</h2>
</div>
<div class="detail-grid">
<?php foreach ($medicines as $medicine): ?>
<article>
<h2><?= htmlspecialchars(ucfirst($medicine['generic_name']), ENT_QUOTES) ?></h2>
<p><strong><?= htmlspecialchars($medicine['class_name'], ENT_QUOTES) ?></strong></p>
<p><?= htmlspecialchars($medicine['common_use'], ENT_QUOTES) ?></p>
<p><?= htmlspecialchars($medicine['tracking_note'], ENT_QUOTES) ?></p>
<div class="source-links">
<a href="<?= htmlspecialchars($medicine['rxnorm_url'], ENT_QUOTES) ?>">RxNorm</a>
<a href="<?= htmlspecialchars($medicine['medlineplus_url'], ENT_QUOTES) ?>">MedlinePlus</a>
<a href="<?= htmlspecialchars($medicine['pubmed_url'], ENT_QUOTES) ?>">PubMed</a>
<a href="<?= htmlspecialchars($medicine['clinicaltrials_url'], ENT_QUOTES) ?>">Studies</a>
</div>
</article>
<?php endforeach; ?>
</div>
</section>
<section class="admin-public-shell">
<div class="site-section-heading">
<p class="site-eyebrow">NIH/NLM study links</p>
<h2>Research categories connected to the listed medicines</h2>
</div>
<div class="term-table">
<?php foreach ($studies as $study): ?>
<article>
<div>
<h3><?= htmlspecialchars($study['title'], ENT_QUOTES) ?></h3>
<span><?= htmlspecialchars($study['category'] . ' / ' . $study['related_medicine'], ENT_QUOTES) ?></span>
</div>
<p><?= htmlspecialchars($study['summary'], ENT_QUOTES) ?></p>
<div class="source-links">
<a href="<?= htmlspecialchars($study['source_url'], ENT_QUOTES) ?>"><?= htmlspecialchars($study['nih_source'], ENT_QUOTES) ?></a>
<a href="<?= htmlspecialchars($study['pubmed_url'], ENT_QUOTES) ?>">PubMed</a>
<a href="<?= htmlspecialchars($study['clinicaltrials_url'], ENT_QUOTES) ?>">ClinicalTrials.gov</a>
</div>
</article>
<?php endforeach; ?>
</div>
</section>
</main>
<?php require __DIR__ . '/partials/site-footer.php'; ?>