DOCS POC OHIF GOOGLE HEALTHCARE - DEV KD #6
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
== DOCS POC OHIF GOOGLE HEALTHCARE - DEV KD ==
Setup a Google Cloud Healthcare Project
Create a Google Cloud account
Create a project in Google Cloud
A project in Google Cloud can be created by clicking the projects drop down box. And then clicking the
NEW PROJECTbutton in the top-right corner of the dialogue that is displayed.Enable the Cloud Healthcare API for your project
Enable the Cloud Resource Manager API for your project.
Note: If you are having trouble finding the APIs, use the search box at the top of the Cloud console.
Go to APIs & Services > OAuth Consent Screen to create an OAuth Consent screen and fill in your application details.
Run through the three step process of adding an OAuth Consent Screen, clicking
SAVE AND CONTINUEat the end of each step.For the Scopes step, for Google APIs, click the
ADD OR REMOVE SCOPESbutton.In the
Update selected scopesdialogue that flies in from the right, add the following scopes to theManually add scopestext box.https://www.googleapis.com/auth/cloudplatformprojects.readonlyhttps://www.googleapis.com/auth/cloud-healthcareClick
ADD TO TABLEand then clickUPDATEGo to APIs & Services > Credentials to create a new set of credentials:
Click
+ CREATE CREDENTIALSand from the drop down selectOAuth Client ID. See OAuth 2.0 Client ID for more information.Choose the "Web Application" type
Add your domain (e.g.
http://devkedungdoro.aplikasi.web.id:3000) to the Authorized JavaScript origins.Add your domain, plus
callback(e.g.http://devkedungdoro.aplikasi.web.id:3000/callback) to the Authorized Redirect URIs.Save your Client ID for later.
Cloud Storage
Before exporting and importing DICOM data to and from Cloud Storage, you must grant extra permissions to the Cloud Healthcare Service Agent service account. For more information, see DICOM store Cloud Storage permissions.
Here are the snapshot of current IAM Config:

Uploading DICOM to Cloud Storage
After creating Cloud Storage Bucket, try to upload dicom file through Cloud Console directly just like this: Upload an object to a bucket

Import DICOM from Bucket to Datastore Healthcare API
To import DICOM objects from a Cloud Storage bucket, complete the following steps:
Go to Datasets
The Import to DICOM store page appears.
*- matches non-separator characters.**- matches characters, including separators. This can be used with a file name extension to match all files of the same type.?- matches 1 character.If you encounter any errors, click Actions, and then click View details in Cloud Logging.
Output:

Konfigurasi OHIF
Setelah melakukan konfigurasi OAuth, maka akan mendapatkan ClientSecret.json. Value pada JSON tersebut kemudian disesuaikan ke
platform/app/public/config/google.jsClientSecret.json :
platform/app/public/config/google.js:Untuk menjalankannya, anda perlua mengatur:
Jika lokasi server build dan berbeda seperti pada kasus ini, maka perlu build terlebih dahulu. tahapannya ialah: