def read(request, resource_type, id, via_oauth=False, *args, **kwargs):
"""
Read from Remote FHIR Server
# Example client use in curl:
# curl -X GET http://127.0.0.1:8000/fhir/Practitioner/1234
"""
if request.method != 'GET':
return HttpResponseNotAllowed(['GET'])
interaction_type = 'read'
read_fhir = generic_read(request,
interaction_type,
resource_type,
id,
via_oauth,
*args,
**kwargs)
return read_fhir
评论列表
文章目录