Swami Rama Himalayan University Students: Ethics and Data Privacy in Health-Related Web Projects

Swami Rama Himalayan University Students: Ethics and Data Privacy in Health-Related Web Projects

Facebook
Twitter
LinkedIn
WhatsApp
Email

Yes, you can build health-related web projects as a student, but only if you treat every piece of personal health information as something you are not entitled to collect casually. In practice that means asking for explicit consent, using fake or properly anonymised data while developing, storing anything sensitive with encryption and access control, and writing down what you do. This article gives you an ethics checklist and a data-handling declaration template you can attach to a project report.

Why health-adjacent web projects need a higher standard

A to-do app that leaks its data is embarrassing. An appointment booking tool, symptom tracker, patient feedback form or diet logger that leaks its data can expose someone’s illness, medication, pregnancy, mental health or disability. That information can lead to discrimination, family conflict or loss of a job. The harm is hard to undo.

Students often underestimate this because a project feels like a demo. But the moment a real person types real details into a form, it stops being a demo. Many student projects go wrong at exactly this point: a classmate, a relative or a clinic volunteer is asked to “just try it” with their real information.

India’s Digital Personal Data Protection Act, 2023 sets rules on how personal data is handled, including consent and purpose limits. Its rules and commencement details have been evolving, so read the current text and notifications on the official government site rather than relying on summaries. Treat the principles below as good engineering practice that also lines up with that direction of law, not as legal advice.

What counts as health data in a web project

Do not limit this to hospital records. In a web app, the following all deserve careful handling:

  • Diagnoses, prescriptions, lab values, scan images and discharge summaries.
  • Appointment details that reveal a speciality (a booking with a psychiatrist reveals something).
  • Symptoms, mood entries, sleep, cycle tracking, weight and diet logs.
  • Insurance numbers, patient IDs and hospital registration numbers.
  • Identifiers attached to any of the above: name, phone, email, address, date of birth, photo, IP address.
  • Free-text notes, which often contain names and conditions you did not plan for.

A useful rule: if a combination of fields could let a stranger work out who a person is and what is wrong with them, treat the whole record as sensitive.

Free 2-Week CareerSwami Internship

Online, 14 days, with a free offer letter and a free completion certificate once you finish the work. Check with your college that it fits your requirement before you enrol.

Apply for the free internship

Consent: what a usable consent flow contains

Consent is not a checkbox hidden under terms and conditions. For a student project, aim for consent that is informed, specific, voluntary and withdrawable.

  1. Say who you are. Name the student team, the purpose (for example, “a course project”) and a contact email.
  2. State exactly what you collect. List fields in plain language, not “usage data”.
  3. State why. Each field should map to a feature. If you cannot justify a field, delete it.
  4. State how long you keep it. Give a date or an event, such as “deleted after project evaluation”.
  5. Say who can see it. Team members, a faculty reviewer, nobody else.
  6. Make refusal harmless. A person who declines should lose nothing beyond the feature that needs the data.
  7. Offer withdrawal and deletion. Provide an email or a button, and actually delete the records.
  8. Use separate consent for separate purposes. Do not bundle research use, marketing and service delivery into one tick.

Be careful with minors and with people in a vulnerable position, such as patients who may feel they cannot refuse a doctor’s or student’s request. If your project involves patients, clinical staff or hospital records, you need permission from the institution that holds that data, not just the individual’s tick. See the verification steps later in this article.

Consent screen wording (illustrative)

We are a student team building a course project. 
We will store: your age range, your daily water intake, and your email. 
We use these only to show you your own weekly chart. 
Your data is visible only to the two team members and our faculty reviewer. 
We will delete everything by the end of the evaluation period, or sooner if you email us. 
[ ] I agree to this use of my data (you can still browse without ticking).

Anonymised and synthetic test data

The safest approach for almost every student project is to never touch real patient data at all. Use synthetic data you generate yourself.

Approach What it means Risk level for a student project
Synthetic (fake) data Invented records made by a script or faker library, with no real person behind them Lowest. Recommended default
Public open datasets Datasets published for reuse with a clear licence Low, if you read the licence and do not try to re-identify anyone
Anonymised real data Real records with identifiers removed Medium to high. Removing names is often not enough, and you need permission from the data owner
Pseudonymised real data Names replaced by codes, but a key exists somewhere High. Still personal data
Live real user data Actual people entering actual details Highest. Avoid unless a proper approval exists

Why removing the name is not anonymisation

A record with age, pin code, rare condition and admission date can often identify one person in a small town. Real anonymisation needs you to generalise (age bands instead of exact age, district instead of pin code), suppress rare values, and drop free text. If you are unsure whether your dataset is truly anonymous, assume it is not and use synthetic data.

Rules for test data in your repository

  • Never commit real records, screenshots of real records or database dumps to GitHub, even in a private repository.
  • Label seed files clearly, for example seed_synthetic_patients.json.
  • Use obviously fake contact details, such as emails at example.com.
  • Keep a .gitignore that excludes .env, uploads and database files.
  • Do not paste real patient text into public AI tools or online formatters while debugging.

Secure storage and handling in a full stack app

You do not need enterprise tooling. You need a consistent baseline across the front end, back end and database.

Front end

  • Serve everything over HTTPS, including during any demo to outsiders.
  • Do not store health details in localStorage, URLs or query strings. URLs end up in logs and browser history.
  • Avoid third-party analytics and chat widgets on pages with sensitive input.
  • Mask sensitive fields where possible and disable autofill on them.

Back end

  • Hash passwords with a modern algorithm such as bcrypt or Argon2. Never store them in plain text.
  • Validate and sanitise all input to prevent SQL injection and cross-site scripting.
  • Apply role-based access: a user sees only their own records.
  • Keep secrets in environment variables, not in code.
  • Do not log request bodies that contain health fields. Logs are a common accidental leak.
  • Rate-limit login and use session expiry.

Database and files

  • Use a managed or properly configured database that is not open to the public internet.
  • Encrypt sensitive columns or the disk, and encrypt backups.
  • Store uploads such as scans outside the public web root, with access checks.
  • Separate identifying fields (name, phone) from health fields, linked by a random ID.
  • Plan deletion: know where each record lives, including backups and exports.

Ethics checklist for a health-related web project

Run this before you demo, submit or share a link. Every “No” in the first column needs a written reason or a fix.

# Check Yes / No / Not applicable
1 The project works fully with synthetic or openly licensed data
2 If real people’s data is used, the data owner or institution has given written permission
3 Each collected field is tied to a named feature (data minimisation)
4 A plain-language consent screen appears before any data is entered
5 Declining consent does not block unrelated features
6 Users can request deletion, and you have tested deleting a record end to end
7 Passwords are hashed and secrets are outside the codebase
8 The site uses HTTPS and the database is not publicly reachable
9 No health data appears in URLs, logs, analytics or error messages
10 Users only see their own records (access control tested with two accounts)
11 The interface states clearly that it gives no medical advice or diagnosis
12 Any algorithmic suggestion (risk score, tip) is labelled as an educational example
13 No real data is in the Git history, screenshots, slides or demo video
14 A retention and deletion date is written down and diarised
15 A faculty guide or project supervisor has seen the data-handling declaration

Data-handling declaration template

Copy this into your project report, README or submission. Fill every blank. If a line does not apply, write “Not applicable” and a reason. Do not leave it empty.

DATA-HANDLING DECLARATION

Project title: ______________________
Team members and roles: ______________________
Supervisor / guide: ______________________
Date: ______________________

1. Purpose
This project is built for: (course project / learning exercise / other) ______
It is not a medical device and gives no diagnosis or treatment advice.

2. Data used
[ ] Synthetic data generated by us (tool/script: ________)
[ ] Public dataset (name, source, licence: ________)
[ ] Data from real people (describe, and attach permission): ________

3. Fields collected or stored
Field | Why it is needed | Sensitive? (Y/N)
_____ | _____ | _____

4. Consent
How consent is obtained: ______________________
How a user withdraws consent or requests deletion: ______________________

5. Access
People who can view the data: ______________________
How access is controlled (roles, passwords, keys): ______________________

6. Storage and security
Where data is stored (service/location): ______________________
Encryption in transit (HTTPS) and at rest: ______________________
Password handling: ______________________
Backups and who holds them: ______________________

7. Sharing
Is data shared with any third party (hosting, analytics, AI tools)? ______
If yes, who and why: ______________________

8. Retention and deletion
Data will be deleted on: ______________________
Method of deletion (including backups): ______________________

9. Incident plan
If data is exposed, we will: stop the app, tell the supervisor and affected
people, and record what happened. Contact: ______________________

10. Confirmation
We confirm that no real personal health data has been placed in public
repositories, slides or demo videos.
Signed: ______________________

Worked example: a symptom diary app (illustrative)

Imagine a three-person team building a simple “headache diary” web app. This is an illustrative scenario, not a record of an actual project or tested code.

  1. First design: users sign up with name, phone, date of birth, city and free-text notes. The team plans to test with friends’ real entries.
  2. Minimisation: the diary only needs a login email, a date, a severity from 1 to 5 and an optional trigger tag. Name, phone, date of birth and city are removed. Free text is replaced by a fixed tag list, which avoids stray identifying details.
  3. Test data: a script creates 200 synthetic users with random severity patterns. Friends test only the interface with fake entries.
  4. Consent: a short screen explains what is stored, who sees it and the deletion date, with a “delete my data” button that removes the user row and all linked entries.
  5. Storage: passwords are hashed, the email sits in a separate table from the entries, and entries link to a random user ID. The database accepts connections only from the app server.
  6. Leak check: the team finds the server logs the full request body on errors, which would expose entries. They switch it off and log only an error code.
  7. Access test: logged in as user A, they try to open user B’s entry URL and confirm it returns “not allowed”.
  8. Wording: the chart page says “This is a personal log, not medical advice.” They remove a draft feature that said “You may have migraine”, because it implied a diagnosis.
  9. Paperwork: the team fills the declaration, and their supervisor reviews it before the demo.

The result is a smaller, safer app that still demonstrates login, CRUD, charts and access control, which are the skills a full stack portfolio needs.

SRHU students: health-project ethics and where the rules are unclear

SRHU’s address is listed on its official homepage as Swami Ram Nagar, Jolly Grant, Dehradun, and the same page describes programmes including B.Sc. Microbiology, MPT, Nursing, MHA, B.Tech and MCA. That mix matters for you: a computing student may easily find a health-science classmate or a clinical setting to collaborate with, and that is where ethics questions become real.

The B.Tech CSE (Data Science & Machine Learning) programme page describes a minor project in the middle years and a major project and industrial training in years 3-4. It gives no credits, duration or semester for that training. The School of Management Studies placement page says internships are embedded in the curriculum, again without duration, evaluation or document rules. The Policies & Guidelines index (modified September 2026) lists university policies, but no internship, training or project-ethics policy was seen on it. Pages differ in year, so check the current versions.

In practice, this means you should not assume that a rule on health data, project review or patient access either exists or is absent. Whether your project needs an ethics review, who may grant access to hospital or clinic data, and how an online internship is treated for your programme are things only your department can confirm. Free options such as the CareerSwami free two-week online internship are independent of your university, so an internship project there should use synthetic data and your declaration, and you should ask your department separately about any academic use.

Verification steps for SRHU students

  1. Email your project guide or head of department and ask in writing: “Does my project need ethics or data-protection approval if it handles health-related data?”
  2. Ask your department office for the current internship, industrial training or project-work regulation for your programme and batch, and check what it says about online internships and required documents.
  3. If you want real data from a hospital, clinic or lab, ask the responsible authority in writing who can approve access, and keep the reply.
  4. Ask whether your faculty guide wants the data-handling declaration submitted with your report, and in what format.
  5. Ask the placement or training office whether a free online internship certificate is accepted for your programme before relying on it.
  6. Check the official Policies & Guidelines page again before final submission for any newly listed policy.

Pre-demo routine for a 14-day internship project

A two-week internship is short, so build privacy in from day one rather than adding it at the end. This plan is a suggestion, not a requirement of any programme.

Days Focus Privacy task
1-2 Scope and data model List fields, delete any without a feature, decide on synthetic data
3-4 Authentication and database Hash passwords, separate identity from health fields, set env secrets
5-7 Core features Add access control, avoid sensitive data in URLs
8-9 Consent and deletion Build consent screen and delete function, test both
10-11 Security pass Check logs, error messages, HTTPS, repository history
12-13 Documentation Complete the declaration and checklist, add disclaimers
14 Demo and wrap-up Use synthetic data only, delete test databases

Handling a mistake: what to do if real data leaks

  • Take the app or repository offline or private immediately.
  • Rotate any exposed passwords, tokens and keys.
  • Tell your supervisor and the data owner promptly rather than hoping nobody noticed.
  • Write down what was exposed, for how long and to whom.
  • Remove the data from Git history with proper tools, not just a new commit, and check forks and caches.
  • Learn from it and update your checklist.

Frequently Asked Questions

Can I use real patient data in a college project?

Only with written permission from whoever holds the data and with your institution’s approval, and even then it should be a last resort. Synthetic or openly licensed datasets almost always meet a learning goal. Ask your guide in writing before touching real records.

Is removing names and phone numbers enough to anonymise a dataset?

No. Combinations such as age, location, date and rare conditions can still point to one person. Generalise values, suppress rare ones and remove free text, or use synthetic data instead.

Do I need a privacy policy for a demo health app?

Yes, a short plain-language notice is good practice for any app that asks for personal details. The consent screen and data-handling declaration in this article cover the essentials for a student project.

Where should I store sensitive fields like diagnoses?

In a database not exposed to the public internet, with encryption, role-based access and a separate table from identity fields. Never in browser storage, URLs or logs.

Can I show my health project on GitHub or LinkedIn?

Yes, if the repository contains only synthetic data and no secrets. Check Git history, screenshots and demo videos before publishing, since old commits can still hold sensitive data.

Does the data-handling declaration have legal force?

No. It is a transparency and accountability document for your project. For legal questions about data protection law, read the official text of the Digital Personal Data Protection Act, 2023 and its current rules, or ask a qualified professional.

Will the CareerSwami internship certificate count for credit at my university?

CareerSwami offers a free two-week online internship with a free offer letter and completion certificate after successful completion. Whether your department accepts it for any requirement is for your university to decide, so ask your department in writing.

Is my symptom-checker idea allowed if it only gives general tips?

Educational tips are different from diagnosis, but wording matters. Avoid claims such as “you have” or “you should take”, label content as general information, and ask your guide to review the feature before you demo it.

Related Full Stack Web Development guides

Ready to put this into practice?

Join the free two-week CareerSwami online internship in Full Stack Web Development. The internship, the offer letter and the completion certificate are free.

Start your free 2-week internship

Web Stories

Scroll to Top