Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion healthcare/fhir/searchFhirResourcesPost.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,12 @@ const main = (
// specify the following params:
// params = {'family:exact' : 'Smith'};
const client = await auth.getClient();
const response = await client.request({url, method: 'POST', params});
const response = await client.request({
url,
method: 'POST',
params,
responseType: 'json',
});
const resources = response.data.entry;
console.log(`Resources found: ${resources.length}`);
console.log(JSON.stringify(resources, null, 2));
Expand Down
Loading