def test_patient(request):
oas = OAuth2Session(
request.session['client_id'], token=request.session['token'])
patient_uri = "%s/protected/bluebutton/fhir/v1/Patient/%s?_format=json" % (
request.session['resource_uri'], request.session['patient'])
patient = oas.get(patient_uri).json()
return JsonResponse(patient)
评论列表
文章目录