Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
khavinshankar committed Jul 10, 2023
1 parent 0524e19 commit 4e491d7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions care/hcx/api/viewsets/listener.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,14 @@ class PreAuthOnSubmitView(GenericAPIView):

@extend_schema(tags=["hcx"])
def post(self, request, *args, **kwargs):
print(request.data)
response = Hcx().processIncomingRequest(request.data["payload"])
print(response)
data = Fhir().process_claim_response(response["payload"])
print(data)

claim = Claim.objects.filter(external_id=data["id"]).first()
print(claim)
claim.outcome = data["outcome"]
claim.total_amount_approved = data["total_approved"]
claim.error_text = data["error"]
Expand Down

0 comments on commit 4e491d7

Please sign in to comment.