Skip to content

Commit c9a6e30

Browse files
authored
Merge pull request #2326 from coronasafe/develop
Merge Develop to Staging v24.31.0 | Minor Fix
2 parents 50bf375 + eab3290 commit c9a6e30

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

care/hcx/api/viewsets/gateway.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,15 +322,25 @@ def send_communication(self, request):
322322
def payors(self, request):
323323
payors = Hcx().searchRegistry("roles", "payor")["participants"]
324324

325-
active_payors = list(filter(lambda payor: payor["status"] == "Active", payors))
325+
result = filter(lambda payor: payor["status"] == "Active", payors)
326+
327+
if query := request.query_params.get("query"):
328+
query = query.lower()
329+
result = filter(
330+
lambda payor: (
331+
query in payor["participant_name"].lower()
332+
or query in payor["participant_code"].lower()
333+
),
334+
result,
335+
)
326336

327337
response = list(
328338
map(
329339
lambda payor: {
330340
"name": payor["participant_name"],
331341
"code": payor["participant_code"],
332342
},
333-
active_payors,
343+
result,
334344
)
335345
)
336346

care/hcx/utils/fhir.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ class SYSTEM:
7171
claim_bundle_identifier = "https://www.tmh.in/bundle"
7272
coverage_eligibility_request_bundle_identifier = "https://www.tmh.in/bundle"
7373
practitioner_speciality = "http://snomed.info/sct"
74-
claim_supporting_info_category = "https://ig.hcxprotocol.io/v0.7.1/ValueSet-claim-supporting-info-categories.html"
74+
claim_supporting_info_category = (
75+
"http://hcxprotocol.io/codes/claim-supporting-info-categories"
76+
)
7577
related_claim_relationship = (
7678
"http://terminology.hl7.org/CodeSystem/ex-relatedclaimrelationship"
7779
)

config/settings/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@
555555
"audio/midi",
556556
"audio/x-midi",
557557
"audio/webm",
558-
"audio/mp4"
558+
"audio/mp4",
559559
# Documents
560560
"text/plain",
561561
"text/csv",

0 commit comments

Comments
 (0)