Skip to content

Commit 553cffd

Browse files
authored
fix(healthcare): set responseType to JSON instead of Buffer (#4233)
1 parent 44d2bf0 commit 553cffd

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

healthcare/fhir/searchFhirResourcesGet.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,12 @@ const main = (
4343
// specify the following params:
4444
// params = {'family:exact' : 'Smith'};
4545
const client = await auth.getClient();
46-
const response = await client.request({url, method: 'GET', params});
46+
const response = await client.request({
47+
url,
48+
method: 'GET',
49+
params,
50+
responseType: 'json',
51+
});
4752
const resources = response.data.entry;
4853
console.log(`Resources found: ${resources.length}`);
4954
console.log(JSON.stringify(resources, null, 2));

0 commit comments

Comments
 (0)