Skip to content

Commit

Permalink
Fix issues with HCX (#1446)
Browse files Browse the repository at this point in the history
* remove x-hcx-status from headers

* Update deployment-branch.yaml

* debug

* debug

* remove debug statements

---------

Co-authored-by: Mathew <matthewzalex@gmail.com>
Co-authored-by: Gigin George <mail.gigin@gmail.com>
  • Loading branch information
3 people committed Aug 21, 2023
1 parent f7becb2 commit 914633c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deployment-branch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
- abdm
- abdm-m2
- hcx-communications
- fix-hcx
paths-ignore:
- "docs/**"

Expand Down
7 changes: 1 addition & 6 deletions care/hcx/utils/fhir.py
Original file line number Diff line number Diff line change
Expand Up @@ -1060,12 +1060,7 @@ def get_errors_from_coding(codings):
)

return {
"id": list(
filter(
lambda identifier: identifier.system == SYSTEM.claim_identifier,
claim_response.identifier,
)
)[0].value,
"id": claim_bundle.id,
"total_approved": reduce(
lambda price, acc: price + acc,
map(
Expand Down
2 changes: 1 addition & 1 deletion care/hcx/utils/hcx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def createHeaders(self, recipientCode=None, correlationId=None):
else str(uuid.uuid4()),
# "x-hcx-workflow_id": str(uuid.uuid4()),
"x-hcx-api_call_id": str(uuid.uuid4()),
"x-hcx-status": "response.complete",
# "x-hcx-status": "response.complete",
}
return hcx_headers

Expand Down

0 comments on commit 914633c

Please sign in to comment.