Backend March 2023

Kaohsiung Chang Gung Hospital Warmy Tracker App

Backend system developed for Kaohsiung Chang Gung Hospital medical staff, providing comprehensive API services for iOS and Android applications

Kaohsiung Chang Gung Hospital Warmy Tracker App

Project Overview

Developed backend system for Kaohsiung Chang Gung Hospital medical staff, providing APIs for iOS and Android. This project focuses on implementing hospital-specific logic with complex permission management and data security mechanisms.

Project Type: Medical Backend System

Development Time: March 2023

Main Technologies: Laravel, Firebase, JWT

Platform Support: iOS, Android API

Links: App Store | Design Introduction

Core Features

Complete Backend Management System

Providing medical staff with complete backend management features including medical case data management, health education article publishing, and survey management. Through an intuitive user interface, medical staff can easily manage patient information and track treatment progress.

The system integrates Livewire for real-time data updates, allowing medical staff to immediately see the latest patient status, improving the timeliness and accuracy of medical services.

Backend Management System Interface

Backend management system interface with comprehensive data management features

Health Education Article Management

Providing a complete health education article management system with rich text editing, image upload, and category tagging features. Medical staff can easily create and edit health education content, ensuring patients receive accurate medical information.

Integrated CKEditor provides rich editing capabilities, and the categorization system allows patients to quickly find the health education information they need.

Health Education Article Management

Health education article management system with category and tag support

Data Analysis Charts

Real-time data analysis and chart visualization features

API Documentation

Complete API documentation and testing interface

📊

Data Analysis & Charts

Using Laravel-charts to provide real-time data analysis and visualization, helping medical staff understand overall treatment effectiveness

🔔

Push Notification System

Integrated Firebase Cloud Messaging to send real-time push notifications, reminding patients about medication, follow-ups, and other important matters

📝

Survey System

Combined with Google Forms to quickly create surveys, collecting patient feedback and treatment effectiveness tracking data

🔐

JWT Authentication

Using JWT Token to ensure API security, protecting sensitive patient data from unauthorized access

Backend Technical Details

Hospital Logic & Permission Management

This project focuses on implementing hospital-specific logic. On the technical side, key implementations include using Firebase for sending Push Notifications and integrating with Google Forms for survey systems.

Complex Permission Control

The hospital logic is quite complex. Each doctor can only view their own patients (distinguished through doctor-primary disease-case relationships), and permission control is required based on medical cases, with each permission having corresponding status conditions to evaluate.

Due to confidentiality agreements, doctors can only view specific fields of patient data, such as case IDs, but not patients' real names.

Permission Control Logic

Medical case function permissions and status control diagram

Database Optimization Design

To enable faster queries, the database implements some denormalization designs. As shown in the diagram above, patient cases additionally store certain fields in the patient data table, such as whether the message board, scales, medical team contact, and treatment plans can be used.

Although this denormalization design increases data redundancy, it significantly improves query performance and reduces complex JOIN operations, which is a necessary optimization for medical systems that frequently query permission status.

Database Denormalization Design

Database design example for improved query performance

System Architecture Design

The overall system adopts a layered architecture, with the backend providing RESTful APIs and the frontend using native iOS and Android development. Through clear architectural design, the system's maintainability and scalability are ensured.

System Architecture Diagram

System architecture design and database relationship diagram

Technologies Used

Server

  • Linode Cloud Hosting

Backend

Integration Services

  • Firebase - Push Notification
  • Google Form - Survey System
  • CKEditor - Rich Text Editor

Related Technical Articles