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

HCX Communications #1346

Merged
merged 12 commits into from
Jun 15, 2023
Merged

HCX Communications #1346

merged 12 commits into from
Jun 15, 2023

Conversation

khavinshankar
Copy link
Member

Proposed Changes

  • Added communication APIs
  • made recipeintCode dynamic

@coronasafe/code-reviewers

Merge Checklist

  • Tests added/fixed
  • Update docs in /docs
  • Linting Complete

@khavinshankar khavinshankar requested a review from a team as a code owner June 5, 2023 08:22
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jun 5, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot E 3 Security Hotspots
Code Smell A 18 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@@ -89,3 +92,33 @@ def post(self, request, *args, **kwargs):
)

return Response({}, status=status.HTTP_202_ACCEPTED)


class CommunicationRequestView(GenericAPIView):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How are these authorised ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we have all related changes in a single PR?

@vigneshhari
Copy link
Member

Fix Conflicts, add tests and fix linting.

@codecov-commenter
Copy link

Codecov Report

Patch coverage: 51.87% and project coverage change: -0.09 ⚠️

Comparison is base (831c216) 56.66% compared to head (ec1df6c) 56.58%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1346      +/-   ##
==========================================
- Coverage   56.66%   56.58%   -0.09%     
==========================================
  Files         195      199       +4     
  Lines        9861    10017     +156     
  Branches     1655     1682      +27     
==========================================
+ Hits         5588     5668      +80     
- Misses       4219     4295      +76     
  Partials       54       54              
Impacted Files Coverage Δ
care/facility/api/serializers/file_upload.py 40.62% <0.00%> (-0.65%) ⬇️
config/urls.py 77.77% <ø> (ø)
care/hcx/utils/fhir.py 47.77% <14.00%> (-13.00%) ⬇️
care/hcx/api/viewsets/gateway.py 42.71% <33.33%> (-1.60%) ⬇️
care/hcx/api/viewsets/listener.py 47.05% <46.15%> (-0.22%) ⬇️
care/hcx/api/serializers/gateway.py 55.55% <50.00%> (-2.34%) ⬇️
care/hcx/api/serializers/communication.py 69.69% <69.69%> (ø)
care/hcx/utils/hcx/__init__.py 24.61% <75.00%> (ø)
care/facility/models/file_upload.py 67.74% <100.00%> (+0.52%) ⬆️
care/hcx/api/viewsets/communication.py 100.00% <100.00%> (ø)
... and 3 more

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

queryset = queryset.filter(claim__policy__patient__facility__state=user.state)
elif user.user_type >= User.TYPE_VALUE_MAP["DistrictLabAdmin"]:
queryset = queryset.filter(
claim__policy__patient__facility__district=user.district
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vigneshhari As I'm doing these many joins, does this have any performance implications?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be fine, since we cant really do anything else here. until we build a better permission system, let this stay .

Update deployment-branch.yaml
Update deployment-branch.yaml
Update deployment-branch.yaml
@vigneshhari vigneshhari merged commit d1d29cd into master Jun 15, 2023
@vigneshhari vigneshhari deleted the hcx-communications branch June 15, 2023 20:30
@gigincg gigincg changed the title Hcx communications HCX Communications Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants