Skip to content

Commit 91c3a37

Browse files
use self.version instead
1 parent 6021985 commit 91c3a37

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

apps/fhir/bluebutton/views/generic.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import voluptuous
44
import logging
55

6-
from apps.dot_ext.utils import get_api_version_number_from_url
76
from apps.versions import VersionNotMatched, Versions
87
import apps.logging.request_logger as bb2logging
98

@@ -167,10 +166,7 @@ def fetch_data(self, request, resource_type, *args, **kwargs):
167166

168167
# Handle the case where it is a patient search call, but neither _id or identifier were passed
169168
if '_id' not in get_parameters.keys() and 'identifier' not in get_parameters.keys():
170-
path_info = request.path
171-
version = get_api_version_number_from_url(path_info)
172-
# depending on if 4166 is merged first, this will need to be updated
173-
get_parameters['_id'] = request.crosswalk.fhir_id(version)
169+
get_parameters['_id'] = request.crosswalk.fhir_id(self.version)
174170
# Reset the request parameters and the prepped request after adding the missing, but required, _id param
175171
req.params = get_parameters
176172
prepped = s.prepare_request(req)

0 commit comments

Comments
 (0)