File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ const main = (
2626 auth : new google . auth . GoogleAuth ( {
2727 scopes : [ 'https://www.googleapis.com/auth/cloud-platform' ] ,
2828 } ) ,
29+ responseType : 'json' ,
2930 } ) ;
3031
3132 const listFhirStores = async ( ) => {
@@ -36,9 +37,13 @@ const main = (
3637 const parent = `projects/${ projectId } /locations/${ cloudRegion } /datasets/${ datasetId } ` ;
3738 const request = { parent} ;
3839
39- const fhirStores =
40- await healthcare . projects . locations . datasets . fhirStores . list ( request ) ;
41- console . log ( JSON . stringify ( fhirStores . data ) ) ;
40+ try {
41+ const fhirStores =
42+ await healthcare . projects . locations . datasets . fhirStores . list ( request ) ;
43+ console . log ( JSON . stringify ( fhirStores . data ) ) ;
44+ } catch ( error ) {
45+ console . error ( 'Error listing FHIR stores:' , error . message || error ) ;
46+ }
4247 } ;
4348
4449 listFhirStores ( ) ;
You can’t perform that action at this time.
0 commit comments