pediatric-ai-scribe-v2/public/sw.js
ifedan-ed 1c2098d1dd v2.0.0: Pediatric AI Scribe
Features:
- Live encounter recording → HPI (outpatient/inpatient)
- Voice dictation → HPI / SOAP note
- Hospital course generator (prose/day-by-day/organ system/psych)
- Chart review / precharting (outpatient/subspecialty/ED)
- SOAP note generator (full/subjective only)
- Developmental milestones (AAP/Nelson) with narrative + 3-sentence summary
- AI refine & shorten for all outputs
- Ask AI what's missing (clarification)
- Authentication (email/password, email verification, 2FA)
- Nextcloud integration with auto date folders
- PWA support (installable on phone)
- 18+ AI models via OpenRouter
- HIPAA compliance guidance
- Docker support
2026-03-21 16:55:50 -04:00

37 lines
878 B
JavaScript

var CACHE_NAME = 'pedscribe-v2';
var urlsToCache = [
'/',
'/css/styles.css',
'/js/app.js',
'/js/auth.js',
'/js/milestonesData.js',
'/js/milestones.js',
'/js/liveEncounter.js',
'/js/voiceDictation.js',
'/js/hospitalCourse.js',
'/js/chartReview.js',
'/js/soap.js',
'/js/nextcloud.js',
'/manifest.json'
];
self.addEventListener('install', function(event) {
event.waitUntil(
caches.open(CACHE_NAME).then(function(cache) {
return cache.addAll(urlsToCache);
})
);
});
self.addEventListener('fetch', function(event) {
// Network first for API calls, cache first for static assets
if (event.request.url.includes('/api/')) {
event.respondWith(fetch(event.request));
} else {
event.respondWith(
caches.match(event.request).then(function(response) {
return response || fetch(event.request);
})
);
}
});