commit 7cf63b7821837ebb9af690bb18903fef3dde16b0 Author: Flatlogic Bot Date: Sat Feb 28 15:29:21 2026 +0000 Initial import diff --git a/backend/package.json b/backend/package.json new file mode 100644 index 0000000..768b076 --- /dev/null +++ b/backend/package.json @@ -0,0 +1,11 @@ + +{ + "name": "complete-hospital-his", + "version": "1.0.0", + "scripts": { "start": "node server.js" }, + "dependencies": { + "express": "^4.18.2", + "cors": "^2.8.5", + "dotenv": "^16.4.0" + } +} diff --git a/backend/server.js b/backend/server.js new file mode 100644 index 0000000..8ea6083 --- /dev/null +++ b/backend/server.js @@ -0,0 +1,27 @@ + +require('dotenv').config(); +const express = require('express'); +const cors = require('cors'); + +const app = express(); +app.use(express.json()); +app.use(cors()); + +app.get('/', (req, res) => { + res.send('Complete Hospital HIS Backend Running'); +}); + +app.get('/api/modules', (req, res) => { + res.json([ + "EMR", + "Billing + GST + TPA", + "Lab", + "Radiology + PACS", + "Pharmacy", + "Doctor Dashboard", + "Nurse Dashboard", + "Admin Dashboard" + ]); +}); + +app.listen(4000, () => console.log("HIS running on http://localhost:4000")); diff --git a/database/schema.sql b/database/schema.sql new file mode 100644 index 0000000..5e26ebf --- /dev/null +++ b/database/schema.sql @@ -0,0 +1,14 @@ + +CREATE TABLE patients ( + id SERIAL PRIMARY KEY, + name TEXT, + gender TEXT, + created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP +); + +CREATE TABLE visits ( + id SERIAL PRIMARY KEY, + patient_id INT, + visit_type TEXT, + created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP +); diff --git a/docs/README.txt b/docs/README.txt new file mode 100644 index 0000000..f0036dd --- /dev/null +++ b/docs/README.txt @@ -0,0 +1,9 @@ + +COMPLETE HOSPITAL HIS + +Run backend: +cd backend +npm install +npm start + +Open frontend/index.html in browser. diff --git a/frontend/index.html b/frontend/index.html new file mode 100644 index 0000000..623215e --- /dev/null +++ b/frontend/index.html @@ -0,0 +1,20 @@ + + + + + Complete Hospital HIS + + +

Complete Hospital HIS Dashboard

+ +

+
+  
+
+