Initial import

This commit is contained in:
Flatlogic Bot 2026-02-28 15:29:21 +00:00
commit 7cf63b7821
5 changed files with 81 additions and 0 deletions

11
backend/package.json Normal file
View File

@ -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"
}
}

27
backend/server.js Normal file
View File

@ -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"));

14
database/schema.sql Normal file
View File

@ -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
);

9
docs/README.txt Normal file
View File

@ -0,0 +1,9 @@
COMPLETE HOSPITAL HIS
Run backend:
cd backend
npm install
npm start
Open frontend/index.html in browser.

20
frontend/index.html Normal file
View File

@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<title>Complete Hospital HIS</title>
</head>
<body>
<h1>Complete Hospital HIS Dashboard</h1>
<button onclick="load()">Load Modules</button>
<pre id="out"></pre>
<script>
async function load() {
const r = await fetch('http://localhost:4000/api/modules');
const d = await r.json();
document.getElementById('out').textContent = JSON.stringify(d, null, 2);
}
</script>
</body>
</html>