Advertisement
Guest User

Untitled

a guest
Apr 25th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var request = require("request");
  2.  
  3. var options = { method: 'GET',
  4.   url: 'http://touchstone.aegis.net:57457/fhir3-0-1/Patient',
  5.   qs: { _include: 'Patient:general-practitioner' },
  6.   headers:
  7.    { 'Postman-Token': 'bd9c1dff-e5fb-412a-8fdf-ba2de79300de',
  8.      'cache-control': 'no-cache',
  9.      Authorization: 'Bearer 93cde269-ce35-4077-a39d-19296670e949',
  10.      USER_KEY: 'US6FwRMXc3MYQwNX2W8i',
  11.      Accept: 'application/fhir+xml' } };
  12.  
  13. request(options, function (error, response, body) {
  14.   if (error) throw new Error(error);
  15.  
  16.   console.log(body);
  17. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement