@@ -182,7 +182,7 @@ def test_search_request(self):
182182 expected_request = {
183183 'method' : 'GET' ,
184184 'url' : ("https://fhir.backend.bluebutton.hhsdevcloud.us/"
185- "baseDstu3 /Patient/?_format=application%2Fjson%2Bfhir&_id=20140000008325" ),
185+ "v1/fhir /Patient/?_format=application%2Fjson%2Bfhir&_id=20140000008325" ),
186186 'headers' : {
187187 'User-Agent' : 'python-requests/2.18.4' ,
188188 'Accept-Encoding' : 'gzip, deflate' ,
@@ -194,7 +194,7 @@ def test_search_request(self):
194194 'BlueButton-OriginatingIpAddress' : '127.0.0.1' ,
195195 'keep-alive' : 'timeout=120, max=10' ,
196196 'BlueButton-OriginalUrl' : '/v1/fhir/Patient' ,
197- 'BlueButton-BackendCall' : 'https://fhir.backend.bluebutton.hhsdevcloud.us/baseDstu3 /Patient/' ,
197+ 'BlueButton-BackendCall' : 'https://fhir.backend.bluebutton.hhsdevcloud.us/v1/fhir /Patient/' ,
198198 }
199199 }
200200
@@ -252,7 +252,7 @@ def test_search_request(self):
252252
253253 @all_requests
254254 def catchall (url , req ):
255- self .assertIn ("https://fhir.backend.bluebutton.hhsdevcloud.us/baseDstu3 /Patient/" , req .url )
255+ self .assertIn ("https://fhir.backend.bluebutton.hhsdevcloud.us/v1/fhir /Patient/" , req .url )
256256 self .assertIn ("_format=application%2Fjson%2Bfhir" , req .url )
257257 self .assertIn ("_id=20140000008325" , req .url )
258258 self .assertEqual (expected_request ['method' ], req .method )
@@ -291,7 +291,7 @@ def test_search_request_not_found(self):
291291 expected_request = {
292292 'method' : 'GET' ,
293293 'url' : ("https://fhir.backend.bluebutton.hhsdevcloud.us/"
294- "baseDstu3 /Patient/?_format=application%2Fjson%2Bfhir&_id=20140000008325" ),
294+ "v1/fhir /Patient/?_format=application%2Fjson%2Bfhir&_id=20140000008325" ),
295295 'headers' : {
296296 'User-Agent' : 'python-requests/2.18.4' ,
297297 'Accept-Encoding' : 'gzip, deflate' ,
@@ -303,13 +303,13 @@ def test_search_request_not_found(self):
303303 'BlueButton-OriginatingIpAddress' : '127.0.0.1' ,
304304 'keep-alive' : 'timeout=120, max=10' ,
305305 'BlueButton-OriginalUrl' : '/v1/fhir/Patient' ,
306- 'BlueButton-BackendCall' : 'https://fhir.backend.bluebutton.hhsdevcloud.us/baseDstu3 /Patient/' ,
306+ 'BlueButton-BackendCall' : 'https://fhir.backend.bluebutton.hhsdevcloud.us/v1/fhir /Patient/' ,
307307 }
308308 }
309309
310310 @all_requests
311311 def catchall (url , req ):
312- self .assertIn ("https://fhir.backend.bluebutton.hhsdevcloud.us/baseDstu3 /Patient/" , req .url )
312+ self .assertIn ("https://fhir.backend.bluebutton.hhsdevcloud.us/v1/fhir /Patient/" , req .url )
313313 self .assertIn ("_format=application%2Fjson%2Bfhir" , req .url )
314314 self .assertIn ("_id=20140000008325" , req .url )
315315 self .assertEqual (expected_request ['method' ], req .method )
@@ -348,7 +348,7 @@ def catchall(url, req):
348348 "link" : [
349349 {
350350 "relation" : "self" ,
351- "url" : "http://hapi.fhir.org/baseDstu3 /ExplanationOfBenefit?_pretty=true&patient=1234"
351+ "url" : "http://hapi.fhir.org/v1/fhir /ExplanationOfBenefit?_pretty=true&patient=1234"
352352 },
353353 ],
354354 },
@@ -370,7 +370,7 @@ def test_search_request_failed(self):
370370 expected_request = {
371371 'method' : 'GET' ,
372372 'url' : ("https://fhir.backend.bluebutton.hhsdevcloud.us/"
373- "baseDstu3 /Patient/?_format=application%2Fjson%2Bfhir&_id=20140000008325" ),
373+ "v1/fhir /Patient/?_format=application%2Fjson%2Bfhir&_id=20140000008325" ),
374374 'headers' : {
375375 'User-Agent' : 'python-requests/2.18.4' ,
376376 'Accept-Encoding' : 'gzip, deflate' ,
@@ -382,13 +382,13 @@ def test_search_request_failed(self):
382382 'BlueButton-OriginatingIpAddress' : '127.0.0.1' ,
383383 'keep-alive' : 'timeout=120, max=10' ,
384384 'BlueButton-OriginalUrl' : '/v1/fhir/Patient' ,
385- 'BlueButton-BackendCall' : 'https://fhir.backend.bluebutton.hhsdevcloud.us/baseDstu3 /Patient/' ,
385+ 'BlueButton-BackendCall' : 'https://fhir.backend.bluebutton.hhsdevcloud.us/v1/fhir /Patient/' ,
386386 }
387387 }
388388
389389 @all_requests
390390 def catchall (url , req ):
391- self .assertIn ("https://fhir.backend.bluebutton.hhsdevcloud.us/baseDstu3 /Patient/" , req .url )
391+ self .assertIn ("https://fhir.backend.bluebutton.hhsdevcloud.us/v1/fhir /Patient/" , req .url )
392392 self .assertIn ("_format=application%2Fjson%2Bfhir" , req .url )
393393 self .assertIn ("_id=20140000008325" , req .url )
394394 self .assertEqual (expected_request ['method' ], req .method )
@@ -415,7 +415,7 @@ def test_search_request_failed_no_fhir_id(self):
415415 expected_request = {
416416 'method' : 'GET' ,
417417 'url' : ("https://fhir.backend.bluebutton.hhsdevcloud.us/"
418- "baseDstu3 /Patient/?_format=application%2Fjson%2Bfhir&_id=20140000008325" ),
418+ "v1/fhir /Patient/?_format=application%2Fjson%2Bfhir&_id=20140000008325" ),
419419 'headers' : {
420420 'User-Agent' : 'python-requests/2.18.4' ,
421421 'Accept-Encoding' : 'gzip, deflate' ,
@@ -427,7 +427,7 @@ def test_search_request_failed_no_fhir_id(self):
427427 'BlueButton-OriginatingIpAddress' : '127.0.0.1' ,
428428 'keep-alive' : 'timeout=120, max=10' ,
429429 'BlueButton-OriginalUrl' : '/v1/fhir/Patient' ,
430- 'BlueButton-BackendCall' : 'https://fhir.backend.bluebutton.hhsdevcloud.us/baseDstu3 /Patient/' ,
430+ 'BlueButton-BackendCall' : 'https://fhir.backend.bluebutton.hhsdevcloud.us/v1/fhir /Patient/' ,
431431 }
432432 }
433433
@@ -447,7 +447,7 @@ def fhir_request(url, req):
447447
448448 @all_requests
449449 def catchall (url , req ):
450- self .assertIn ("https://fhir.backend.bluebutton.hhsdevcloud.us/baseDstu3 /Patient/" , req .url )
450+ self .assertIn ("https://fhir.backend.bluebutton.hhsdevcloud.us/v1/fhir /Patient/" , req .url )
451451 self .assertIn ("_format=application%2Fjson%2Bfhir" , req .url )
452452 self .assertIn ("_id=20140000008325" , req .url )
453453 self .assertEqual (expected_request ['method' ], req .method )
@@ -507,7 +507,7 @@ def test_read_request(self):
507507
508508 expected_request = {
509509 'method' : 'GET' ,
510- 'url' : 'https://fhir.backend.bluebutton.hhsdevcloud.us/baseDstu3 /Patient/20140000008325/?_format=json' ,
510+ 'url' : 'https://fhir.backend.bluebutton.hhsdevcloud.us/v1/fhir /Patient/20140000008325/?_format=json' ,
511511 'headers' : {
512512 'User-Agent' : 'python-requests/2.18.4' ,
513513 'Accept-Encoding' : 'gzip, deflate' ,
@@ -519,7 +519,7 @@ def test_read_request(self):
519519 'BlueButton-OriginatingIpAddress' : '127.0.0.1' ,
520520 'keep-alive' : 'timeout=120, max=10' ,
521521 'BlueButton-OriginalUrl' : '/v1/fhir/Patient/20140000008325' ,
522- 'BlueButton-BackendCall' : 'https://fhir.backend.bluebutton.hhsdevcloud.us/baseDstu3 /Patient/20140000008325/' ,
522+ 'BlueButton-BackendCall' : 'https://fhir.backend.bluebutton.hhsdevcloud.us/v1/fhir /Patient/20140000008325/' ,
523523 }
524524 }
525525
0 commit comments