Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GSoC - Doctor Notes Enhancement #2295

Closed
Closed
Changes from 1 commit
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
62baf51
doctor notes reply
UdaySagar-Git May 13, 2024
c0311bf
bug fix
UdaySagar-Git May 13, 2024
73b233e
checks to validated same thread and consultation
UdaySagar-Git May 14, 2024
49b60e1
Merge branch 'develop' into doctor-notes-replies
UdaySagar-Git May 14, 2024
b19e9f5
fix conflict
UdaySagar-Git May 14, 2024
3aaca5f
lint fix
UdaySagar-Git May 14, 2024
3e56057
code review
UdaySagar-Git May 15, 2024
c3a48fa
Merge branch 'develop' into doctor-notes-replies
UdaySagar-Git May 15, 2024
17b4ba3
added ReplyToPatientNoteSerializer
UdaySagar-Git May 15, 2024
2035260
code review
UdaySagar-Git May 16, 2024
07b66b7
adds tests
UdaySagar-Git May 17, 2024
344e5c0
Merge branch 'develop' into doctor-notes-replies
rithviknishad May 18, 2024
1ad7e51
resolve migration conflicts
May 20, 2024
75187a6
code review
UdaySagar-Git May 21, 2024
ac0d5ee
Merge branch 'doctor-notes-replies' of https://github.com/UdaySagar-G…
UdaySagar-Git May 21, 2024
ee953cd
Merge branch 'develop' into doctor-notes-replies
UdaySagar-Git May 21, 2024
106e355
Merge branch 'develop' into doctor-notes-replies
rithviknishad May 23, 2024
08fd2df
rebase migrations
rithviknishad May 23, 2024
255a520
Update care/facility/api/viewsets/patient.py
sainak May 28, 2024
ef6f66a
lint
sainak May 28, 2024
ad49411
Merge remote-tracking branch 'origin/develop' into doctor-notes-replies
sainak May 28, 2024
e72e072
rebase migrations
sainak May 28, 2024
927f288
new profile pic feature
UdaySagar-Git Jun 7, 2024
e038343
Merge branch 'develop' into profile-pic
UdaySagar-Git Jun 7, 2024
c30735b
bug fix
UdaySagar-Git Jun 7, 2024
348351c
Merge branch 'profile-pic' of https://github.com/UdaySagar-Git/care i…
UdaySagar-Git Jun 7, 2024
02567b1
Adds validation for "consultation" field
UdaySagar-Git Jul 3, 2024
15bf7aa
Merge branch 'develop' into doctor-notes-replies
UdaySagar-Git Jul 3, 2024
70ac2b0
fix lint
UdaySagar-Git Jul 3, 2024
1453191
Merge branch 'doctor-notes-replies' of https://github.com/UdaySagar-G…
UdaySagar-Git Jul 3, 2024
4fc9416
rebase migration
UdaySagar-Git Jul 3, 2024
6d732eb
file uploads
UdaySagar-Git Jul 5, 2024
386102f
fix lint
rithviknishad Jul 8, 2024
fc4c573
removes new bucket
UdaySagar-Git Jul 9, 2024
4fb9910
fix bug
UdaySagar-Git Jul 9, 2024
ae62ff2
Merge branch 'profile-pic' into GSoC-Merged-DoctorNotes
UdaySagar-Git Jul 9, 2024
5ddfa31
Merge branch 'file-upload-doctor-notes' into GSoC-Merged-DoctorNotes
UdaySagar-Git Jul 9, 2024
3f27cad
adds suppport for tracking replies for thread view
UdaySagar-Git Jul 9, 2024
f92bf4e
fix test
UdaySagar-Git Jul 9, 2024
5ea08a9
lint fix
UdaySagar-Git Jul 9, 2024
4ec1d0e
Merge branch 'develop' into GSoC-Merged-DoctorNotes
UdaySagar-Git Jul 9, 2024
e096a13
fixes test
UdaySagar-Git Jul 9, 2024
5d15b55
fix tests
UdaySagar-Git Jul 11, 2024
3136d31
bug fix
UdaySagar-Git Jul 12, 2024
f0baa2b
code review
UdaySagar-Git Jul 12, 2024
fc29e75
code review
UdaySagar-Git Jul 12, 2024
21c1350
adds permission checks
UdaySagar-Git Aug 18, 2024
5506ea8
Merge branch 'develop' into GSoC-Merged-DoctorNotes
UdaySagar-Git Aug 18, 2024
5b443d5
track of actual parent note for a thread
UdaySagar-Git Aug 20, 2024
6454641
get mentioed users from backend
UdaySagar-Git Aug 21, 2024
0752c8a
notification support on mention
UdaySagar-Git Aug 21, 2024
0a983b6
small fix
UdaySagar-Git Aug 21, 2024
7c56ddc
switch to username
UdaySagar-Git Aug 24, 2024
a7dd755
route to retrive all notes for specific consultation
UdaySagar-Git Aug 24, 2024
abf0351
Merge branch 'develop' into GSoC-Merged-DoctorNotes
UdaySagar-Git Oct 1, 2024
f526d94
remove duplicate files and merge migrations
UdaySagar-Git Oct 2, 2024
9b86a45
Merge branch 'develop' into GSoC-Merged-DoctorNotes
nihal467 Oct 3, 2024
c79c7f9
fix lint
UdaySagar-Git Oct 5, 2024
41e7adb
fix test run
UdaySagar-Git Oct 5, 2024
9582da0
suggestions
UdaySagar-Git Oct 23, 2024
e4be0b2
adds parent_note field to PatientNotes model
UdaySagar-Git Oct 24, 2024
83d571b
rename 'parent_note' to 'root_note'
UdaySagar-Git Oct 25, 2024
975aba2
merge migrations
UdaySagar-Git Oct 25, 2024
16fcb42
Merge branch 'develop' into GSoC-Merged-DoctorNotes
UdaySagar-Git Oct 25, 2024
2693704
rebase migrations
UdaySagar-Git Oct 25, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove duplicate files and merge migrations
UdaySagar-Git committed Oct 2, 2024
commit f526d94f701b9e8eb91d3012cada787a4a3f36c6
2 changes: 1 addition & 1 deletion care/facility/api/serializers/patient.py
Original file line number Diff line number Diff line change
@@ -508,7 +508,7 @@ class PatientNotesSerializer(serializers.ModelSerializer):
def get_mentioned_users(self, obj):
mentioned_users = set(re.findall(r"@(\w+)", obj.note))
users = User.objects.filter(username__in=mentioned_users)
return [UserBaseMinimumSerializer(user).data for user in users]
return UserBaseMinimumSerializer(users, many=True).data

def get_parent_note_object(self, obj):
parent_note = obj
25 changes: 0 additions & 25 deletions care/facility/migrations/0444_patientnotes_reply_to.py

This file was deleted.

32 changes: 0 additions & 32 deletions care/facility/migrations/0445_alter_fileupload_file_type.py

This file was deleted.

13 changes: 0 additions & 13 deletions care/facility/migrations/0446_merge_20240709_1859.py

This file was deleted.

13 changes: 0 additions & 13 deletions care/facility/migrations/0448_merge_20240821_0345.py

This file was deleted.

42 changes: 0 additions & 42 deletions care/facility/migrations/0449_alter_notification_event.py

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Generated by Django 5.1.1 on 2024-10-01 21:58

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('facility', '0465_merge_20240923_1045'),
]

operations = [
migrations.AlterField(
model_name='fileupload',
name='file_type',
field=models.IntegerField(choices=[(0, 'OTHER'), (1, 'PATIENT'), (2, 'CONSULTATION'), (3, 'SAMPLE_MANAGEMENT'), (4, 'CLAIM'), (5, 'DISCHARGE_SUMMARY'), (6, 'COMMUNICATION'), (7, 'CONSENT_RECORD'), (8, 'ABDM_HEALTH_INFORMATION'), (9, 'NOTES')], default=1),
),
migrations.AlterField(
model_name='notification',
name='event',
field=models.IntegerField(choices=[(0, 'MESSAGE'), (20, 'PATIENT_CREATED'), (30, 'PATIENT_UPDATED'), (40, 'PATIENT_DELETED'), (50, 'PATIENT_CONSULTATION_CREATED'), (60, 'PATIENT_CONSULTATION_UPDATED'), (70, 'PATIENT_CONSULTATION_DELETED'), (80, 'INVESTIGATION_SESSION_CREATED'), (90, 'INVESTIGATION_UPDATED'), (100, 'PATIENT_FILE_UPLOAD_CREATED'), (110, 'CONSULTATION_FILE_UPLOAD_CREATED'), (120, 'PATIENT_CONSULTATION_UPDATE_CREATED'), (130, 'PATIENT_CONSULTATION_UPDATE_UPDATED'), (140, 'PATIENT_CONSULTATION_ASSIGNMENT'), (200, 'SHIFTING_UPDATED'), (210, 'PATIENT_NOTE_ADDED'), (220, 'PUSH_MESSAGE'), (230, 'PATIENT_PRESCRIPTION_CREATED'), (240, 'PATIENT_PRESCRIPTION_UPDATED'), (250, 'PATIENT_NOTE_MENTIONED')], default=0),
),
]
2 changes: 0 additions & 2 deletions care/users/api/serializers/user.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import boto3
from django.contrib.auth.hashers import make_password
from django.db import transaction
from django.utils.timezone import now
@@ -13,7 +12,6 @@
)
from care.users.api.serializers.skill import UserSkillSerializer
from care.users.models import GENDER_CHOICES, User
from care.utils.csp.config import BucketType, get_client_config
from care.utils.file_uploads.cover_image import upload_cover_image
from care.utils.models.validators import (
cover_image_validator,
1 change: 0 additions & 1 deletion care/users/api/viewsets/users.py
Original file line number Diff line number Diff line change
@@ -374,7 +374,6 @@ def check_availability(self, request, username):
return Response(status=status.HTTP_409_CONFLICT)
return Response(status=status.HTTP_200_OK)


def has_profile_image_write_permission(self, request, user):
return request.user.is_superuser or (user.id == request.user.id)

18 changes: 0 additions & 18 deletions care/users/migrations/0017_user_profile_picture_url.py

This file was deleted.

1 change: 0 additions & 1 deletion care/users/tests/test_api.py
Original file line number Diff line number Diff line change
@@ -49,7 +49,6 @@ def get_detail_representation(self, obj=None) -> dict:
"qualification": obj.qualification,
"weekly_working_hours": obj.weekly_working_hours,
"video_connect_link": obj.video_connect_link,
"profile_picture_url": obj.profile_picture_url,
"read_profile_picture_url": obj.profile_picture_url,
"user_flags": [],
**self.get_local_body_district_state_representation(obj),