-
Notifications
You must be signed in to change notification settings - Fork 2k
Open
Labels
api: healthcareIssues related to the Cloud Healthcare API API.Issues related to the Cloud Healthcare API API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.samplesIssues that are directly related to samples.Issues that are directly related to samples.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
In which file did you encounter the issue?
healthcare/fhir/createFhirResource.js
Did you change the file? If so, how?
version: 'v1',
auth: new google.auth.GoogleAuth({
scopes: ['https://www.googleapis.com/auth/cloud-platform'],
}),
headers: {'Content-Type': 'application/fhir+json'},
+ responseType: 'json',
}
}
Describe the issue
Line 58 expects the return type to be json. If left unspecified, it returns an array buffer that needs to be converted. This applies to many of the FHIR examples. For others who may come across this, I believe there are other issues with the TS types in the client library.
jacob-bennettjacknewberry
Metadata
Metadata
Assignees
Labels
api: healthcareIssues related to the Cloud Healthcare API API.Issues related to the Cloud Healthcare API API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.samplesIssues that are directly related to samples.Issues that are directly related to samples.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.