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

Merge Develop to Staging v24.31.0 | Minor Fix #2326

Merged
merged 2 commits into from
Jul 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
14 changes: 12 additions & 2 deletions care/hcx/api/viewsets/gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,15 +322,25 @@ def send_communication(self, request):
def payors(self, request):
payors = Hcx().searchRegistry("roles", "payor")["participants"]

active_payors = list(filter(lambda payor: payor["status"] == "Active", payors))
result = filter(lambda payor: payor["status"] == "Active", payors)

if query := request.query_params.get("query"):
query = query.lower()
result = filter(
lambda payor: (
query in payor["participant_name"].lower()
or query in payor["participant_code"].lower()
),
result,
)

response = list(
map(
lambda payor: {
"name": payor["participant_name"],
"code": payor["participant_code"],
},
active_payors,
result,
)
)

Expand Down
4 changes: 3 additions & 1 deletion care/hcx/utils/fhir.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ class SYSTEM:
claim_bundle_identifier = "https://www.tmh.in/bundle"
coverage_eligibility_request_bundle_identifier = "https://www.tmh.in/bundle"
practitioner_speciality = "http://snomed.info/sct"
claim_supporting_info_category = "https://ig.hcxprotocol.io/v0.7.1/ValueSet-claim-supporting-info-categories.html"
claim_supporting_info_category = (
"http://hcxprotocol.io/codes/claim-supporting-info-categories"
)
related_claim_relationship = (
"http://terminology.hl7.org/CodeSystem/ex-relatedclaimrelationship"
)
Expand Down
2 changes: 1 addition & 1 deletion config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@
"audio/midi",
"audio/x-midi",
"audio/webm",
"audio/mp4"
"audio/mp4",
# Documents
"text/plain",
"text/csv",
Expand Down
Loading