-
Notifications
You must be signed in to change notification settings - Fork 323
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge Develop to Staging v24.21.0 (#2168)
* Update max_length for phone numbers to adhere to ITU-T E.164 standard (#2138) * Update max_length for phone numbers to adhere to ITU-T E.164 standard * Clean up an empty line * Adds missing migrations --------- Co-authored-by: rithviknishad <[email protected]> Co-authored-by: Vignesh Hari <[email protected]> * Adds support for doctors and nurses discussions threads in Discussion Notes (#2137) * Adds support for doctors and nurses discussions threads in Discussion Notes * switch to using small integer field * updated and fixes based on test cases * rebase migrations * Remake migrations --------- Co-authored-by: Vignesh Hari <[email protected]> * Allow `audio/mp4` by default (#2094) Co-authored-by: Vignesh Hari <[email protected]> * Bump Dependencies (#2143) * Vigneshhari/bump dependencies (#2145) * Bump Dependencies * Bump Dependencies * Bump Dependencies * Bump Dependencies * Skip creating event group if all fields are null (#2134) * ABDM M3 (#1829) Co-authored-by: Aakash Singh <[email protected]> Co-authored-by: Gigin George <[email protected]> * Increase area of specialisation in doctors (#2102) * update doctor types * Add Migration --------- Co-authored-by: Rithvik Nishad <[email protected]> Co-authored-by: Gigin George <[email protected]> * Added discharge patient filters (#2124) * added discharge patient filters * updated filters --------- Co-authored-by: Vignesh Hari <[email protected]> * converted investigation and investigation group data into JSON (#1912) * converted investigation and investigation group data into JSON * created json files for investigations and investigation_groups * updated investigations.json * fixed json data,command and migrations * fixing migrations * fixing lint issue * update migrations * update migrations --------- Co-authored-by: Aakash Singh <[email protected]> * Drops support for cloning previous log update (#2127) * Drop support for cloning previous log update * undo unrelated changes --------- Co-authored-by: Vignesh Hari <[email protected]> * Change devcontainer make up command to run after start (#2146) Co-authored-by: Vignesh Hari <[email protected]> * Removes unused `current_health` field from Daily Rounds (#2162) Removes unused `current_health` from Daily Rounds Co-authored-by: Vignesh Hari <[email protected]> * Display users list based on user access limitation (#1742) * Refactor get_queryset method in UserViewSet * Used get_accessible_facilities instead of subquery to fetch the facilities linked to the user * fixed failing tests * fix queryset --------- Co-authored-by: Aakash Singh <[email protected]> Co-authored-by: khavinshankar <[email protected]> Co-authored-by: Vignesh Hari <[email protected]> * adds missing merge migrations (#2169) merge migrations --------- Co-authored-by: Bodhish Thomas <[email protected]> Co-authored-by: rithviknishad <[email protected]> Co-authored-by: Vignesh Hari <[email protected]> Co-authored-by: Rithvik Nishad <[email protected]> Co-authored-by: Aakash Singh <[email protected]> Co-authored-by: Khavin Shankar <[email protected]> Co-authored-by: Gigin George <[email protected]> Co-authored-by: Rashmik <[email protected]> Co-authored-by: Shivank Kacker <[email protected]> Co-authored-by: Prafful Sharma <[email protected]> Co-authored-by: Gokulram A <[email protected]>
- Loading branch information
1 parent
0240be1
commit 5d0158d
Showing
55 changed files
with
4,393 additions
and
660 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -356,3 +356,7 @@ secrets.sh | |
/.idea/modules.xml | ||
/.idea/vcs.xml | ||
/.idea/ruff.xml | ||
|
||
|
||
# Redis | ||
*.rdb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
from rest_framework import serializers | ||
|
||
from care.abdm.api.serializers.abhanumber import AbhaNumberSerializer | ||
from care.abdm.models.consent import ConsentArtefact, ConsentRequest | ||
from care.users.api.serializers.user import UserBaseMinimumSerializer | ||
|
||
|
||
class ConsentArtefactSerializer(serializers.ModelSerializer): | ||
id = serializers.CharField(source="external_id", read_only=True) | ||
|
||
class Meta: | ||
model = ConsentArtefact | ||
exclude = ( | ||
"deleted", | ||
"external_id", | ||
"key_material_private_key", | ||
"key_material_public_key", | ||
"key_material_nonce", | ||
"key_material_algorithm", | ||
"key_material_curve", | ||
"signature", | ||
) | ||
|
||
|
||
class ConsentRequestSerializer(serializers.ModelSerializer): | ||
id = serializers.CharField(source="external_id", read_only=True) | ||
patient_abha_object = AbhaNumberSerializer(source="patient_abha", read_only=True) | ||
requester = UserBaseMinimumSerializer(read_only=True) | ||
consent_artefacts = ConsentArtefactSerializer(many=True, read_only=True) | ||
|
||
class Meta: | ||
model = ConsentRequest | ||
exclude = ("deleted", "external_id") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.