Skip to content

Commit 80307e3

Browse files
committed
changing check to empty string over None but will change back to None some day
1 parent 63e5245 commit 80307e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/fhir/bluebutton/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def generate_info_headers(request, version: int = Versions.NOT_AN_API_VERSION):
153153
if crosswalk:
154154
# TODO: Can the hicnHash case ever be reached? Should refactor this!
155155
# TODO: As we move to v2/v3, v3 does not use the hicnHash. We will want to refactor.
156-
if crosswalk.fhir_id(version) is not None:
156+
if crosswalk.fhir_id(version) != '':
157157
result['BlueButton-BeneficiaryId'] = 'patientId:' + crosswalk.fhir_id(version)
158158
else:
159159
result['BlueButton-BeneficiaryId'] = 'hicnHash:' + str(

0 commit comments

Comments
 (0)