From 6b31934d2944b320deb6fb7408b5e23f92235a6a Mon Sep 17 00:00:00 2001 From: uzayisinalici Date: Fri, 13 Jun 2025 18:23:14 +0300 Subject: [PATCH 1/2] Added HIPAA-compliant privacy policy page --- .../users/templates/users/dashboard.html | 4 ++ .../users/templates/users/privacy_policy.html | 72 +++++++++++++++++++ code/mymedic/users/urls.py | 2 + code/mymedic/users/views.py | 5 +- 4 files changed, 82 insertions(+), 1 deletion(-) create mode 100644 code/mymedic/users/templates/users/privacy_policy.html diff --git a/code/mymedic/users/templates/users/dashboard.html b/code/mymedic/users/templates/users/dashboard.html index c4f3a20d..6d9ffaf5 100644 --- a/code/mymedic/users/templates/users/dashboard.html +++ b/code/mymedic/users/templates/users/dashboard.html @@ -170,5 +170,9 @@
Prescription Refilled
+ \ No newline at end of file diff --git a/code/mymedic/users/templates/users/privacy_policy.html b/code/mymedic/users/templates/users/privacy_policy.html new file mode 100644 index 00000000..fdeb1d49 --- /dev/null +++ b/code/mymedic/users/templates/users/privacy_policy.html @@ -0,0 +1,72 @@ +{% load static %} + + + + + Privacy Policy + + + + +
+

Privacy Policy

+ +

At MyMedic, we understand that your health information is personal. We are committed to protecting your privacy in accordance with applicable laws, including the Health Insurance Portability and Accountability Act (HIPAA).

+ +

Information We Collect

+

We collect your name, contact details, medical history, prescriptions, and appointment data to provide and improve our services.

+ +

How We Use Your Information

+

Your data is used solely to facilitate appointments, manage prescriptions, and support your healthcare journey. We do not sell or share your information without your explicit consent.

+ +

HIPAA Compliance

+

All health data is handled in compliance with HIPAA regulations. We implement strong administrative, physical, and technical safeguards to protect your information.

+ +

Data Sharing

+

We only share data with licensed medical professionals involved in your care. Any third-party service providers are bound by strict confidentiality agreements.

+ +

Your Rights

+

You have the right to access your data, request corrections, and withdraw consent. You may contact us at any time to exercise these rights.

+ +

Contact Us

+

If you have any questions or concerns about our privacy policy, please reach out at support@mymedic.com.

+

+ This Privacy Policy was last updated on June 13, 2025. +

+ +
+ + + diff --git a/code/mymedic/users/urls.py b/code/mymedic/users/urls.py index fe1acf0a..6e6d6de4 100644 --- a/code/mymedic/users/urls.py +++ b/code/mymedic/users/urls.py @@ -8,4 +8,6 @@ path('profile', views.profile, name='profile'), path('mlogout', views.mlogout, name='mlogout'), path('', views.mlogin, name=''), # Default route to login + path("privacy/", views.privacy_policy, name="privacy_policy"), + ] \ No newline at end of file diff --git a/code/mymedic/users/views.py b/code/mymedic/users/views.py index e2c9bd1f..16d9e0b4 100644 --- a/code/mymedic/users/views.py +++ b/code/mymedic/users/views.py @@ -113,4 +113,7 @@ def profile(request): user_data.save() return redirect("profile") else: - return render(request, 'users/profile.html', context={"form": form}) \ No newline at end of file + return render(request, 'users/profile.html', context={"form": form}) + +def privacy_policy(request): + return render(request, 'users/privacy_policy.html') \ No newline at end of file From ee28dd059f9f1344dd9f734665de3c03d347142e Mon Sep 17 00:00:00 2001 From: uzayisinalici Date: Sat, 14 Jun 2025 21:41:01 +0300 Subject: [PATCH 2/2] Add unit test for privacy policy page --- code/mymedic/tests/users/test_privacy_policy.py | 9 +++++++++ code/mymedic/users/templates/users/privacy_policy.html | 5 ++++- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 code/mymedic/tests/users/test_privacy_policy.py diff --git a/code/mymedic/tests/users/test_privacy_policy.py b/code/mymedic/tests/users/test_privacy_policy.py new file mode 100644 index 00000000..e861e878 --- /dev/null +++ b/code/mymedic/tests/users/test_privacy_policy.py @@ -0,0 +1,9 @@ +from django.test import TestCase +from django.urls import reverse + +class PrivacyPolicyViewTests(TestCase): + def test_privacy_policy_page(self): + url = reverse("privacy_policy") + response = self.client.get(url) + self.assertEqual(response.status_code, 200) + self.assertContains(response, "Privacy Policy") diff --git a/code/mymedic/users/templates/users/privacy_policy.html b/code/mymedic/users/templates/users/privacy_policy.html index fdeb1d49..dc703cce 100644 --- a/code/mymedic/users/templates/users/privacy_policy.html +++ b/code/mymedic/users/templates/users/privacy_policy.html @@ -27,10 +27,13 @@ .policy-box h2 { text-align: center; margin-bottom: 30px; + color: #20b2aa; + } .policy-box h4 { margin-top: 25px; + color: #20b2aa; } .policy-box p { @@ -62,7 +65,7 @@

Your Rights

Contact Us

If you have any questions or concerns about our privacy policy, please reach out at support@mymedic.com.

-

+

This Privacy Policy was last updated on June 13, 2025.