Skip to content
Merged
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
11 changes: 8 additions & 3 deletions healthcare/fhir/listFhirStores.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const main = (
auth: new google.auth.GoogleAuth({
scopes: ['https://www.googleapis.com/auth/cloud-platform'],
}),
responseType: 'json',
Comment thread
angelcaamal marked this conversation as resolved.
});

const listFhirStores = async () => {
Expand All @@ -36,9 +37,13 @@ const main = (
const parent = `projects/${projectId}/locations/${cloudRegion}/datasets/${datasetId}`;
const request = {parent};

const fhirStores =
await healthcare.projects.locations.datasets.fhirStores.list(request);
console.log(JSON.stringify(fhirStores.data));
try {
const fhirStores =
await healthcare.projects.locations.datasets.fhirStores.list(request);
console.log(JSON.stringify(fhirStores.data));
} catch (error) {
console.error('Error listing FHIR stores:', error.message || error);
}
Comment thread
angelcaamal marked this conversation as resolved.
};

listFhirStores();
Expand Down
Loading