JMartin0011's picture
Capturing medical or forensic patient history, autopsy findings, toxicology, and histology requires specialized IT tools - Initial Deployment
5bd02a6 verified
Raw History Blame Contribute Delete
47.7 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Forensic Pathology Documentation System</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
/* Custom styles not covered by Tailwind */
.section-collapse {
transition: all 0.3s ease;
max-height: 0;
overflow: hidden;
}
.section-collapse.expanded {
max-height: 5000px;
}
.tox-level:nth-child(odd) {
background-color: rgba(59, 130, 246, 0.05);
}
.tox-level:nth-child(even) {
background-color: rgba(59, 130, 246, 0.1);
}
.custom-scroll::-webkit-scrollbar {
width: 8px;
height: 8px;
}
.custom-scroll::-webkit-scrollbar-track {
background: #f1f1f1;
}
.custom-scroll::-webkit-scrollbar-thumb {
background: #888;
border-radius: 4px;
}
.custom-scroll::-webkit-scrollbar-thumb:hover {
background: #555;
}
.image-upload:hover .image-upload-overlay {
opacity: 1;
}
</style>
</head>
<body class="bg-gray-50 text-gray-800 font-sans">
<div class="container mx-auto p-4">
<!-- Header -->
<header class="bg-white shadow-md rounded-lg p-6 mb-6">
<div class="flex flex-col md:flex-row justify-between items-center">
<div class="flex items-center mb-4 md:mb-0">
<i class="fas fa-notes-medical text-3xl text-blue-600 mr-3"></i>
<div>
<h1 class="text-2xl font-bold text-gray-800">ForensicPath Documentation</h1>
<p class="text-sm text-gray-600">Integrated Medical & Forensic Documentation System</p>
</div>
</div>
<div class="flex flex-col md:flex-row space-y-2 md:space-y-0 md:space-x-4">
<div class="relative">
<div class="absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none">
<i class="fas fa-search text-gray-400"></i>
</div>
<input type="text" id="case-search" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full pl-10 p-2.5" placeholder="Search cases...">
</div>
<button id="new-case-btn" class="bg-blue-600 hover:bg-blue-700 text-white py-2 px-4 rounded-lg flex items-center space-x-2 transition-colors">
<i class="fas fa-plus"></i>
<span>New Case</span>
</button>
</div>
</div>
</header>
<div class="flex flex-col lg:flex-row gap-6">
<!-- Left sidebar - Case Navigation -->
<div class="w-full lg:w-1/4 bg-white shadow-md rounded-lg p-6 h-fit">
<h2 class="text-lg font-semibold mb-4 text-gray-800 flex items-center">
<i class="fas fa-clipboard-list mr-2 text-blue-600"></i>Active Cases
</h2>
<div class="space-y-2 custom-scroll" style="max-height: 60vh; overflow-y: auto;">
<div class="case-item p-3 hover:bg-blue-50 rounded-lg cursor-pointer border-l-4 border-blue-500">
<h3 class="font-medium text-gray-800">Case #2023-0456</h3>
<p class="text-sm text-gray-500 truncate">John Doe (42M), Pending toxicology</p>
<div class="flex justify-between items-center mt-1">
<span class="text-xs bg-blue-100 text-blue-800 px-2 py-1 rounded">Autopsy Completed</span>
<span class="text-xs text-gray-500">2 days ago</span>
</div>
</div>
<div class="case-item p-3 hover:bg-blue-50 rounded-lg cursor-pointer border-l-4 border-yellow-500">
<h3 class="font-medium text-gray-800">Case #2023-0455</h3>
<p class="text-sm text-gray-500 truncate">Jane Smith (28F), Trauma analysis</p>
<div class="flex justify-between items-center mt-1">
<span class="text-xs bg-yellow-100 text-yellow-800 px-2 py-1 rounded">In Progress</span>
<span class="text-xs text-gray-500">3 days ago</span>
</div>
</div>
<div class="case-item p-3 hover:bg-blue-50 rounded-lg cursor-pointer border-l-4 border-green-500">
<h3 class="font-medium text-gray-800">Case #2023-0454</h3>
<p class="text-sm text-gray-500 truncate">Robert Johnson (67M), Cardiac event</p>
<div class="flex justify-between items-center mt-1">
<span class="text-xs bg-green-100 text-green-800 px-2 py-1 rounded">Completed</span>
<span class="text-xs text-gray-500">1 week ago</span>
</div>
</div>
<div class="case-item p-3 hover:bg-blue-50 rounded-lg cursor-pointer border-l-4 border-red-500">
<h3 class="font-medium text-gray-800">Case #2023-0453</h3>
<p class="text-sm text-gray-500 truncate">Unknown Male (30-40), Pending ID</p>
<div class="flex justify-between items-center mt-1">
<span class="text-xs bg-red-100 text-red-800 px-2 py-1 rounded">Waiting Evidence</span>
<span class="text-xs text-gray-500">2 weeks ago</span>
</div>
</div>
</div>
<div class="mt-6 pt-6 border-t border-gray-200">
<h3 class="text-sm font-medium text-gray-500 mb-2">Filters</h3>
<div class="space-x-2">
<button class="text-xs bg-blue-600 text-white px-3 py-1 rounded-full">All Cases</button>
<button class="text-xs bg-white text-gray-600 border border-gray-300 px-3 py-1 rounded-full">Pending</button>
<button class="text-xs bg-white text-gray-600 border border-gray-300 px-3 py-1 rounded-full">Completed</button>
</div>
</div>
</div>
<!-- Main Content Area -->
<div class="flex-1">
<div class="bg-white shadow-md rounded-lg p-6 mb-6">
<!-- Case Header -->
<div class="flex flex-col md:flex-row justify-between items-start md:items-center mb-6">
<div>
<h2 class="text-xl font-bold text-gray-800 flex items-center">
<i class="fas fa-file-medical mr-2 text-blue-600"></i>Case #2023-0456: John Doe (42M)
</h2>
<div class="flex flex-wrap gap-2 mt-2">
<span class="text-xs bg-green-100 text-green-800 px-2 py-1 rounded flex items-center">
<i class="fas fa-circle mr-1 text-green-500" style="font-size: 8px;"></i> Active
</span>
<span class="text-xs bg-blue-100 text-blue-800 px-2 py-1 rounded flex items-center">
<i class="fas fa-user-md mr-1"></i> Dr. Sarah Johnson
</span>
<span class="text-xs bg-gray-100 text-gray-800 px-2 py-1 rounded flex items-center">
<i class="fas fa-calendar-alt mr-1"></i> 15 Oct 2023
</span>
</div>
</div>
<div class="flex space-x-2 mt-4 md:mt-0">
<button class="bg-white border border-blue-600 text-blue-600 hover:bg-blue-50 py-2 px-3 rounded-lg flex items-center space-x-2">
<i class="fas fa-print"></i>
<span class="hidden md:inline">Print</span>
</button>
<button class="bg-blue-600 hover:bg-blue-700 text-white py-2 px-3 rounded-lg flex items-center space-x-2">
<i class="fas fa-save"></i>
<span class="hidden md:inline">Save</span>
</button>
</div>
</div>
<!-- Case Navigation -->
<div class="mb-6">
<nav class="flex space-x-4 overflow-x-auto pb-2 scrollbar-hide">
<a href="#" class="px-3 py-2 font-medium text-sm rounded-md bg-blue-100 text-blue-700">Overview</a>
<a href="#" class="px-3 py-2 font-medium text-sm rounded-md text-gray-700 hover:bg-gray-100">Medical History</a>
<a href="#" class="px-3 py-2 font-medium text-sm rounded-md text-gray-700 hover:bg-gray-100">Autopsy</a>
<a href="#" class="px-3 py-2 font-medium text-sm rounded-md text-gray-700 hover:bg-gray-100">Toxicology</a>
<a href="#" class="px-3 py-2 font-medium text-sm rounded-md text-gray-700 hover:bg-gray-100">Histology</a>
<a href="#" class="px-3 py-2 font-medium text-sm rounded-md text-gray-700 hover:bg-gray-100">Images</a>
<a href="#" class="px-3 py-2 font-medium text-sm rounded-md text-gray-700 hover:bg-gray-100">Documents</a>
</nav>
</div>
<!-- Content Sections -->
<div class="space-y-6">
<!-- Patient Information Section -->
<div class="border rounded-lg overflow-hidden">
<button class="section-header w-full flex justify-between items-center p-4 bg-gray-50 hover:bg-gray-100">
<div class="flex items-center">
<i class="fas fa-user-circle text-xl text-blue-600 mr-3"></i>
<h3 class="text-lg font-medium">Patient Information</h3>
</div>
<i class="fas fa-chevron-down text-gray-500 transition-transform"></i>
</button>
<div class="section-collapse expanded p-4 border-t">
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
<div>
<label class="block mb-2 text-sm font-medium text-gray-600">Name</label>
<input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-lg" value="John Doe" readonly>
</div>
<div>
<label class="block mb-2 text-sm font-medium text-gray-600">Age</label>
<input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-lg" value="42" readonly>
</div>
<div>
<label class="block mb-2 text-sm font-medium text-gray-600">Sex</label>
<input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-lg" value="Male" readonly>
</div>
<div>
<label class="block mb-2 text-sm font-medium text-gray-600">Date of Birth</label>
<input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-lg" value="12/04/1981" readonly>
</div>
<div>
<label class="block mb-2 text-sm font-medium text-gray-600">Occupation</label>
<input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-lg" value="Construction Worker" readonly>
</div>
<div>
<label class="block mb-2 text-sm font-medium text-gray-600">Race/Ethnicity</label>
<input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-lg" value="Caucasian" readonly>
</div>
</div>
</div>
</div>
<!-- Medical History Section -->
<div class="border rounded-lg overflow-hidden">
<button class="section-header w-full flex justify-between items-center p-4 bg-gray-50 hover:bg-gray-100">
<div class="flex items-center">
<i class="fas fa-medkit text-xl text-blue-600 mr-3"></i>
<h3 class="text-lg font-medium">Medical History</h3>
</div>
<i class="fas fa-chevron-down text-gray-500 transition-transform"></i>
</button>
<div class="section-collapse p-4 border-t">
<div class="mb-4">
<label class="block mb-2 text-sm font-medium text-gray-600">Known Conditions</label>
<div class="flex flex-wrap gap-2 mb-3">
<span class="inline-flex items-center bg-blue-100 text-blue-800 text-xs px-3 py-1 rounded">Hypertension</span>
<span class="inline-flex items-center bg-blue-100 text-blue-800 text-xs px-3 py-1 rounded">Type 2 Diabetes</span>
<span class="inline-flex items-center bg-blue-100 text-blue-800 text-xs px-3 py-1 rounded">Hyperlipidemia</span>
<button class="inline-flex items-center bg-gray-100 text-gray-800 text-xs px-3 py-1 rounded hover:bg-gray-200">
<i class="fas fa-plus mr-1"></i> Add
</button>
</div>
</div>
<div class="mb-4">
<label class="block mb-2 text-sm font-medium text-gray-600">Medications</label>
<ul class="list-disc list-inside text-sm">
<li class="mb-1">Lisinopril 20mg daily (last refill: 9/10/2023)</li>
<li class="mb-1">Metformin 1000mg BID (last refill: 9/15/2023)</li>
<li class="mb-1">Atorvastatin 40mg nightly (last refill: 9/12/2023)</li>
</ul>
</div>
<div>
<label class="block mb-2 text-sm font-medium text-gray-600">Additional Notes</label>
<textarea class="w-full px-3 py-2 border border-gray-300 rounded-lg" rows="3" placeholder="Enter additional medical history...">Patient had a history of poor medication compliance. Last seen by PCP 3 weeks ago with complaints of fatigue but no chest pain or SOB.</textarea>
</div>
</div>
</div>
<!-- Autopsy Findings Section -->
<div class="border rounded-lg overflow-hidden">
<button class="section-header w-full flex justify-between items-center p-4 bg-gray-50 hover:bg-gray-100">
<div class="flex items-center">
<i class="fas fa-procedures text-xl text-blue-600 mr-3"></i>
<h3 class="text-lg font-medium">Autopsy Findings</h3>
</div>
<i class="fas fa-chevron-down text-gray-500 transition-transform"></i>
</button>
<div class="section-collapse p-4 border-t">
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<!-- External Exam -->
<div class="border rounded-lg p-4">
<h4 class="font-medium text-gray-800 mb-3 flex items-center">
<i class="fas fa-user md:mr-2"></i>
<span class="hidden md:inline">External Exam</span>
</h4>
<div class="space-y-3">
<div>
<label class="block text-xs font-medium text-gray-500 mb-1">Body Condition</label>
<select class="w-full border border-gray-300 rounded-lg px-3 py-2 text-sm">
<option>Well-nourished</option>
<option selected>Moderately nourished</option>
<option>Poorly nourished</option>
<option>Obese</option>
<option>Cachectic</option>
</select>
</div>
<div>
<label class="block text-xs font-medium text-gray-500 mb-1">Signs of Medical Intervention</label>
<textarea class="w-full px-3 py-2 border border-gray-300 rounded-lg text-sm" rows="2">Recent IV puncture (L forearm), ECG leads present on chest, ET tube in place (removed for photos)</textarea>
</div>
<div>
<label class="block text-xs font-medium text-gray-500 mb-1">Injuries</label>
<textarea class="w-full px-3 py-2 border border-gray-300 rounded-lg text-sm" rows="2">Multiple superficial abrasions on hands and knees consistent with fall. No defensive wounds observed.</textarea>
</div>
</div>
</div>
<!-- Internal Exam -->
<div class="border rounded-lg p-4">
<h4 class="font-medium text-gray-800 mb-3 flex items-center">
<i class="fas fa-lungs md:mr-2"></i>
<span class="hidden md:inline">Internal Exam</span>
</h4>
<div class="space-y-3">
<div>
<label class="block text-xs font-medium text-gray-500 mb-1">Cardiovascular</label>
<textarea class="w-full px-3 py-2 border border-gray-300 rounded-lg text-sm" rows="2">Coronary artery atherosclerosis (80% narrowing of LAD). No acute thrombus. Heart weight 450g (expected ~350g).</textarea>
</div>
<div>
<label class="block text-xs font-medium text-gray-500 mb-1">Respiratory</label>
<textarea class="w-full px-3 py-2 border border-gray-300 rounded-lg text-sm" rows="2">Mild pulmonary edema. No evidence of aspiration. No significant macroscopic pathology.</textarea>
</div>
<div>
<label class="block text-xs font-medium text-gray-500 mb-1">Other Findings</label>
<textarea class="w-full px-3 py-2 border border-gray-300 rounded-lg text-sm" rows="2">Moderate hepatomegaly (liver weight 1900g). No cirrhosis or visible tumors. Kidneys show signs of mild nephrosclerosis.</textarea>
</div>
</div>
</div>
</div>
<!-- Provisional Cause of Death -->
<div class="mt-6 p-4 bg-blue-50 rounded-lg border border-blue-100">
<h4 class="font-medium text-gray-800 mb-3 flex items-center">
<i class="fas fa-cross md:mr-2"></i>
<span>Provisional Cause of Death</span>
</h4>
<div class="space-y-3">
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
<div>
<label class="block text-xs font-medium text-gray-500 mb-1">Manner of Death</label>
<select class="w-full border border-gray-300 rounded-lg px-3 py-2 text-sm">
<option selected>Natural</option>
<option>Accident</option>
<option>Suicide</option>
<option>Homicide</option>
<option>Undetermined</option>
</select>
</div>
<div>
<label class="block text-xs font-medium text-gray-500 mb-1">Immediate Cause</label>
<input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-lg text-sm" value="Acute myocardial infarction">
</div>
</div>
<div>
<label class="block text-xs font-medium text-gray-500 mb-1">Underlying Causes (in order)</label>
<textarea class="w-full px-3 py-2 border border-gray-300 rounded-lg text-sm" rows="2">1. Coronary artery atherosclerosis
2. Hypertension
3. Type 2 diabetes</textarea>
</div>
</div>
</div>
</div>
</div>
<!-- Toxicology Section -->
<div class="border rounded-lg overflow-hidden">
<button class="section-header w-full flex justify-between items-center p-4 bg-gray-50 hover:bg-gray-100">
<div class="flex items-center">
<i class="fas fa-flask text-xl text-blue-600 mr-3"></i>
<h3 class="text-lg font-medium">Toxicology</h3>
</div>
<i class="fas fa-chevron-down text-gray-500 transition-transform"></i>
</button>
<div class="section-collapse p-4 border-t">
<div class="mb-4 border rounded-lg overflow-hidden">
<div class="bg-gray-50 px-4 py-2 border-b">
<h4 class="font-medium text-gray-800 text-sm flex items-center">
<i class="fas fa-vial mr-2"></i>Blood Analysis
</h4>
</div>
<div class="overflow-x-auto custom-scroll">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th scope="col" class="px-3 py-2 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Substance</th>
<th scope="col" class="px-3 py-2 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Result</th>
<th scope="col" class="px-3 py-2 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Detection Level</th>
<th scope="col" class="px-3 py-2 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Therapeutic Range</th>
<th scope="col" class="px-3 py-2 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Toxic Level</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr class="tox-level">
<td class="px-3 py-2 text-sm whitespace-nowrap">Lisinopril</td>
<td class="px-3 py-2 text-sm whitespace-nowrap">Positive</td>
<td class="px-3 py-2 text-sm whitespace-nowrap">0.02 mg/L</td>
<td class="px-3 py-2 text-sm whitespace-nowrap">0.01-0.05 mg/L</td>
<td class="px-3 py-2 text-sm whitespace-nowrap">>0.10 mg/L</td>
</tr>
<tr class="tox-level">
<td class="px-3 py-2 text-sm whitespace-nowrap">Metformin</td>
<td class="px-3 py-2 text-sm whitespace-nowrap">Positive</td>
<td class="px-3 py-2 text-sm whitespace-nowrap">1.8 mg/L</td>
<td class="px-3 py-2 text-sm whitespace-nowrap">0.5-2.0 mg/L</td>
<td class="px-3 py-2 text-sm whitespace-nowrap">>5 mg/L</td>
</tr>
<tr class="tox-level">
<td class="px-3 py-2 text-sm whitespace-nowrap">Atorvastatin</td>
<td class="px-3 py-2 text-sm whitespace-nowrap">Positive</td>
<td class="px-3 py-2 text-sm whitespace-nowrap">0.03 mg/L</td>
<td class="px-3 py-2 text-sm whitespace-nowrap">0.01-0.05 mg/L</td>
<td class="px-3 py-2 text-sm whitespace-nowrap">>0.10 mg/L</td>
</tr>
<tr class="tox-level">
<td class="px-3 py-2 text-sm whitespace-nowrap">Alcohol (Ethanol)</td>
<td class="px-3 py-2 text-sm whitespace-nowrap">Negative</td>
<td class="px-3 py-2 text-sm whitespace-nowrap"><0.01%</td>
<td class="px-3 py-2 text-sm whitespace-nowrap">N/A</td>
<td class="px-3 py-2 text-sm whitespace-nowrap">>0.08%</td>
</tr>
<tr class="tox-level">
<td class="px-3 py-2 text-sm whitespace-nowrap">Cocaine</td>
<td class="px-3 py-2 text-sm whitespace-nowrap">Negative</td>
<td class="px-3 py-2 text-sm whitespace-nowrap"><0.05 mg/L</td>
<td class="px-3 py-2 text-sm whitespace-nowrap">N/A</td>
<td class="px-3 py-2 text-sm whitespace-nowrap">>0.25 mg/L</td>
</tr>
</tbody>
</table>
</div>
</div>
<div>
<label class="block mb-2 text-sm font-medium text-gray-600">Toxicology Summary</label>
<textarea class="w-full px-3 py-2 border border-gray-300 rounded-lg" rows="3">No substances of abuse detected. Therapeutic levels of prescribed medications present. No evidence of intoxication or overdose contributing to death.</textarea>
</div>
</div>
</div>
<!-- Histology Section -->
<div class="border rounded-lg overflow-hidden">
<button class="section-header w-full flex justify-between items-center p-4 bg-gray-50 hover:bg-gray-100">
<div class="flex items-center">
<i class="fas fa-microscope text-xl text-blue-600 mr-3"></i>
<h3 class="text-lg font-medium">Histology</h3>
</div>
<i class="fas fa-chevron-down text-gray-500 transition-transform"></i>
</button>
<div class="section-collapse p-4 border-t">
<div class="mb-4">
<div class="flex justify-between items-center mb-3">
<h4 class="font-medium text-gray-800">Pending Slides</h4>
<button class="text-blue-600 hover:text-blue-800 text-sm flex items-center">
<i class="fas fa-plus mr-1"></i> Add Slide
</button>
</div>
<div class="overflow-x-auto custom-scroll">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th scope="col" class="px-3 py-2 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Slide #</th>
<th scope="col" class="px-3 py-2 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Tissue</th>
<th scope="col" class="px-3 py-2 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Stain</th>
<th scope="col" class="px-3 py-2 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
<th scope="col" class="px-3 py-2 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr>
<td class="px-3 py-2 text-sm whitespace-nowrap">A23-0456-01</td>
<td class="px-3 py-2 text-sm">Myocardium (LAD region)</td>
<td class="px-3 py-2 text-sm whitespace-nowrap">H&E</td>
<td class="px-3 py-2 text-sm whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">
Processing
</span>
</td>
<td class="px-3 py-2 text-sm whitespace-nowrap">
<button class="text-blue-600 hover:text-blue-900 mr-3">
<i class="fas fa-eye"></i>
</button>
</td>
</tr>
<tr>
<td class="px-3 py-2 text-sm whitespace-nowrap">A23-0456-02</td>
<td class="px-3 py-2 text-sm">Liver (left lobe)</td>
<td class="px-3 py-2 text-sm whitespace-nowrap">H&E</td>
<td class="px-3 py-2 text-sm whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">
Processing
</span>
</td>
<td class="px-3 py-2 text-sm whitespace-nowrap">
<button class="text-blue-600 hover:text-blue-900 mr-3">
<i class="fas fa-eye"></i>
</button>
</td>
</tr>
<tr>
<td class="px-3 py-2 text-sm whitespace-nowrap">A23-0456-03</td>
<td class="px-3 py-2 text-sm">Kidney (left)</td>
<td class="px-3 py-2 text-sm whitespace-nowrap">PAS</td>
<td class="px-3 py-2 text-sm whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-blue-100 text-blue-800">
Prepared
</span>
</td>
<td class="px-3 py-2 text-sm whitespace-nowrap">
<button class="text-blue-600 hover:text-blue-900 mr-3">
<i class="fas fa-eye"></i>
</button>
<button class="text-green-600 hover:text-green-900">
<i class="fas fa-edit"></i>
</button>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div>
<label class="block mb-2 text-sm font-medium text-gray-600">Microscopic Findings</label>
<textarea class="w-full px-3 py-2 border border-gray-300 rounded-lg" rows="4" placeholder="Enter microscopic findings...">Pending histological examination. Preliminary findings from heart show areas of fibrosis suggesting prior ischemic events. Liver shows mild fatty changes consistent with metabolic syndrome.</textarea>
</div>
</div>
</div>
</div>
</div>
<!-- Document Attachments -->
<div class="bg-white shadow-md rounded-lg p-6">
<div class="flex justify-between items-center mb-4">
<h2 class="text-lg font-semibold text-gray-800">
<i class="fas fa-paperclip mr-2 text-blue-600"></i>Attachments
</h2>
<button class="bg-blue-600 hover:bg-blue-700 text-white py-2 px-3 rounded-lg flex items-center space-x-1">
<i class="fas fa-plus"></i>
<span class="hidden sm:inline">Add Attachment</span>
</button>
</div>
<div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4">
<div class="border rounded-lg p-3 hover:bg-blue-50 transition-colors cursor-pointer">
<div class="flex items-start">
<i class="fas fa-file-pdf text-3xl text-red-500 mr-3"></i>
<div>
<h4 class="text-sm font-medium truncate">Autopsy_Report_2023-0456.pdf</h4>
<p class="text-xs text-gray-500">PDF • 2.4 MB</p>
<div class="flex items-center mt-1">
<span class="text-xs bg-green-100 text-green-800 px-2 py-0.5 rounded">Final</span>
<span class="text-xs text-gray-500 ml-2">Today, 10:45 AM</span>
</div>
</div>
</div>
</div>
<div class="border rounded-lg p-3 hover:bg-blue-50 transition-colors cursor-pointer">
<div class="flex items-start">
<i class="fas fa-file-image text-3xl text-blue-500 mr-3"></i>
<div>
<h4 class="text-sm font-medium truncate">External_Photos.zip</h4>
<p class="text-xs text-gray-500">ZIP • 18.7 MB</p>
<div class="flex items-center mt-1">
<span class="text-xs bg-blue-100 text-blue-800 px-2 py-0.5 rounded">Preliminary</span>
<span class="text-xs text-gray-500 ml-2">Yesterday, 4:22 PM</span>
</div>
</div>
</div>
</div>
<div class="border rounded-lg p-3 hover:bg-blue-50 transition-colors cursor-pointer">
<div class="flex items-start">
<i class="fas fa-file-word text-3xl text-blue-700 mr-3"></i>
<div>
<h4 class="text-sm font-medium truncate">Medical_Records.docx</h4>
<p class="text-xs text-gray-500">DOCX • 0.8 MB</p>
<div class="flex items-center mt-1">
<span class="text-xs bg-purple-100 text-purple-800 px-2 py-0.5 rounded">Scanned</span>
<span class="text-xs text-gray-500 ml-2">Oct 14, 10:15 AM</span>
</div>
</div>
</div>
</div>
<div class="border rounded-lg p-3 hover:bg-blue-50 transition-colors cursor-pointer">
<div class="flex items-start">
<i class="fas fa-file-excel text-3xl text-green-600 mr-3"></i>
<div>
<h4 class="text-sm font-medium truncate">Tox_Results.xlsx</h4>
<p class="text-xs text-gray-500">XLSX • 0.5 MB</p>
<div class="flex items-center mt-1">
<span class="text-xs bg-blue-100 text-blue-800 px-2 py-0.5 rounded">Preliminary</span>
<span class="text-xs text-gray-500 ml-2">Oct 14, 3:40 PM</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Footer -->
<footer class="bg-white border-t mt-8 py-4">
<div class="container mx-auto px-4">
<div class="flex flex-col md:flex-row justify-between items-center">
<div class="text-sm text-gray-500 mb-4 md:mb-0">
&copy; 2023 ForensicPath Documentation System. All rights reserved.
</div>
<div class="flex space-x-4">
<a href="#" class="text-gray-500 hover:text-gray-700 text-sm">Privacy Policy</a>
<a href="#" class="text-gray-500 hover:text-gray-700 text-sm">Terms of Service</a>
<a href="#" class="text-gray-500 hover:text-gray-700 text-sm">Contact Support</a>
</div>
</div>
</div>
</footer>
<script>
// Collapsible sections functionality
document.querySelectorAll('.section-header').forEach(header => {
header.addEventListener('click', () => {
const section = header.nextElementSibling;
const icon = header.querySelector('.fa-chevron-down');
section.classList.toggle('expanded');
icon.classList.toggle('rotate-180');
// Reset expanded state for other sections if needed
// Or implement accordion behavior if desired
});
});
// Case item click handler
document.querySelectorAll('.case-item').forEach(item => {
item.addEventListener('click', () => {
// Remove active class from all
document.querySelectorAll('.case-item').forEach(i => {
i.classList.remove('bg-blue-100');
});
// Add to clicked item
item.classList.add('bg-blue-100');
// In a real app, we'd load the case data here
console.log('Case selected: ' + item.querySelector('h3').textContent);
});
});
// New case button
document.getElementById('new-case-btn').addEventListener('click', () => {
alert('Creating a new case... This would open a form in a real application.');
});
// Search functionality
document.getElementById('case-search').addEventListener('input', (e) => {
const searchTerm = e.target.value.toLowerCase();
document.querySelectorAll('.case-item').forEach(item => {
const text = item.textContent.toLowerCase();
if (text.includes(searchTerm)) {
item.style.display = 'block';
} else {
item.style.display = 'none';
}
});
});
// Image upload hover effect for future implementation
document.querySelectorAll('.image-upload').forEach(upload => {
upload.addEventListener('mouseenter', () => {
upload.querySelector('.image-upload-overlay').style.opacity = '1';
});
upload.addEventListener('mouseleave', () => {
upload.querySelector('.image-upload-overlay').style.opacity = '0';
});
});
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=JMartin0011/forensicpath-documentation" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>