How caramelpopcornkhu/child119 works
아이119 is a child-emergency discovery app: caregivers use the web or Android client to find pediatric-capable emergency rooms, inspect availability, and navigate there; profiles, first-aid guidance, and AI recommendations support that journey. The Vue client also provides hospital browsing and administrative content, user, and automation screens. The Spring service handles chatbot conversations and nearby-hospital filtering; Firebase stores user and child information, while the documented Python automation refreshes hospital data and status messages. README-described integrations are shown where source excerpts do not expose their wiring.
Main entry points: index.js Page routing · EmergencyRepository.java Nearby hospital queries · ChatService.java Chat recommendations · App.vue Vue application shell
Components 29
Caregiver app
- Vue application shell
vue_child/src/App.vue - Page routing
vue_child/src/router/index.js - Emergency map and list
vue_child/src/views/HomeView.vue - Hospital directory
vue_child/src/views/hospitalinformation.vue - Child profiles
vue_child/src/views/AddKid.vue - First-aid guidance
vue_child/src/views - AI chat interface
vue_child/src/views/aichat.vue - Web Firebase access
vue_child/src/firebase/index.js
Recommendation backend
- Chat WebSocket handler
springboot_child/src/main/java/lx/edu/springboot/handler/ChatHandler.java - Chat recommendations
springboot_child/src/main/java/lx/edu/springboot/service/ChatService.java - Symptom hospital search
springboot_child/src/main/java/lx/edu/springboot/service/EmergencySearchService.java - Child information API
springboot_child/src/main/java/lx/edu/springboot/controller/KidController.java - Child data service
springboot_child/src/main/java/lx/edu/springboot/service/FirebaseService.java
Hospital data
- Nearby hospital queries
springboot_child/src/main/java/lx/edu/springboot/repository/EmergencyRepository.java - Emergency records
springboot_child/src/main/java/lx/edu/springboot/entity/Emergency.java - PostGIS hospital store
- GeoServer hospital API
Content operations
- Automation controls
vue_child/src/views/AdminAutomation.vue - Automation service
emergency_python/automation/automation_service/app/main.py - Status message generation
emergency_python/automation/automation_service/app/update_message.py - Bed status refresh
emergency_python/automation/update_bed.py - Emergency content admin
vue_child/src/views/AdminEmergency.vue
Mobile navigation
- Android WebView client
kakao_navi/app/src/main/java/com/lx/child/MainActivity.kt - Turn-by-turn navigation
kakao_navi/app/src/main/java/com/lx/child/NaviActivity.kt - Hospital detail API client
kakao_navi/app/src/main/java/com/lx/child/ApiService.kt
Other components
- Caregiver
- Gemini AI
- Firebase Firestore
- TMAP routing
Connections 34
- Caregiver → Vue application shell: uses
- Vue application shell → Page routing: renders routes
vue_child/src/App.vue - Page routing → Emergency map and list: routes to
vue_child/src/router/index.js - Page routing → Hospital directory: routes to
vue_child/src/router/index.js - Page routing → Child profiles: routes to
vue_child/src/router/index.js - Page routing → AI chat interface: routes to
vue_child/src/router/index.js - Vue application shell → Web Firebase access: checks auth
vue_child/src/App.vue - Emergency map and list → TMAP routing: gets routes
- Caregiver → Chat WebSocket handler: sends chat
- Chat WebSocket handler → Chat recommendations: dispatches
springboot_child/src/main/java/lx/edu/springboot/handler/ChatHandler.java - Chat recommendations → Nearby hospital queries: queries nearby
springboot_child/src/main/java/lx/edu/springboot/service/ChatService.java - Symptom hospital search → Nearby hospital queries: queries nearby
springboot_child/src/main/java/lx/edu/springboot/service/EmergencySearchService.java - Child information API → Child data service: gets child data
springboot_child/src/main/java/lx/edu/springboot/controller/KidController.java - Child information API → Nearby hospital queries: queries hospitals
springboot_child/src/main/java/lx/edu/springboot/controller/KidController.java - Chat recommendations → Gemini AI: generates reply
- Chat recommendations → Emergency records: formats hospital details
springboot_child/src/main/java/lx/edu/springboot/service/ChatService.java - Nearby hospital queries → Emergency records: returns records
springboot_child/src/main/java/lx/edu/springboot/repository/EmergencyRepository.java - Nearby hospital queries → PostGIS hospital store: queries
- Child data service → Firebase Firestore: reads child data
springboot_child/src/main/java/lx/edu/springboot/service/FirebaseService.java - Web Firebase access → Firebase Firestore: stores user data
- GeoServer hospital API → PostGIS hospital store: publishes spatial data
- Emergency map and list → GeoServer hospital API: loads hospital data
- Hospital directory → GeoServer hospital API: loads facilities
- Automation controls → Automation service: requests jobs
- Automation service → Status message generation: runs analysis
- Automation service → Bed status refresh: refreshes beds
- Status message generation → PostGIS hospital store: updates messages
- Bed status refresh → PostGIS hospital store: updates beds
- Emergency content admin → Firebase Firestore: manages content
- Caregiver → Android WebView client: uses mobile app
- Android WebView client → Turn-by-turn navigation: opens navigation
kakao_navi/app/src/main/java/com/lx/child/MainActivity.kt - Turn-by-turn navigation → Hospital detail API client: loads hospital details
kakao_navi/app/src/main/java/com/lx/child/NaviActivity.kt - Turn-by-turn navigation → TMAP routing: requests guidance
- Hospital detail API client → GeoServer hospital API: fetches feature
kakao_navi/app/src/main/java/com/lx/child/ApiService.kt