|
| 1 | +<img src="https://avatars2.githubusercontent.com/u/2810941?v=3&s=96" alt="Google Cloud Platform logo" title="Google Cloud Platform" align="right" height="96" width="96"/> |
| 2 | + |
| 3 | +# Cloud Healthcare API Node.js DICOM store and DICOMweb example |
| 4 | + |
| 5 | +This sample app demonstrates DICOM store management and the DICOMweb implementation for the Cloud Healthcare API. |
| 6 | + |
| 7 | +# Setup |
| 8 | + |
| 9 | +Run the following command to install the library dependencies for Node.js: |
| 10 | + |
| 11 | + npm install |
| 12 | + |
| 13 | +# Running the samples |
| 14 | + |
| 15 | +## DICOM stores |
| 16 | + |
| 17 | + dicom_stores.js <command> |
| 18 | + |
| 19 | + Commands: |
| 20 | + dicom_stores.js createDicomStore <datasetId> <dicomStoreId> Creates a new DICOM store within the parent dataset. |
| 21 | + dicom_stores.js deleteDicomStore <datasetId> <dicomStoreId> Deletes the DICOM store and removes all resources that |
| 22 | + are contained within it. |
| 23 | + dicom_stores.js getDicomStore <datasetId> <dicomStoreId> Gets the specified DICOM store or returns NOT_FOUND if |
| 24 | + it doesn't exist. |
| 25 | + dicom_stores.js listDicomStores <datasetId> Lists the DICOM stores in the given dataset. |
| 26 | + dicom_stores.js patchDicomStore <datasetId> <dicomStoreId> Updates the DICOM store. |
| 27 | + <pubsubTopic> |
| 28 | + dicom_stores.js importDicomObject <datasetId> <dicomStoreId> Imports data into the DICOM store by copying it from the |
| 29 | + <contentUri> specified source. |
| 30 | + dicom_stores.js exportDicomInstanceGcs <datasetId> Exports data to a Cloud Storage bucket by copying it |
| 31 | + <dicomStoreId> <uriPrefix> from the DICOM store. |
| 32 | + |
| 33 | + Options: |
| 34 | + --version Show version number [boolean] |
| 35 | + --apiKey, -a The API key used for discovering the API. |
| 36 | + [string] |
| 37 | + --cloudRegion, -c [string] [default: "us-central1"] |
| 38 | + --projectId, -p The Project ID to use. Defaults to the value of the GCLOUD_PROJECT or GOOGLE_CLOUD_PROJECT |
| 39 | + environment variables. [string] |
| 40 | + --serviceAccount, -s The path to your service credentials JSON. |
| 41 | + [string] |
| 42 | + --help Show help [boolean] |
| 43 | + |
| 44 | + |
| 45 | +## DICOMweb |
| 46 | + |
| 47 | + dicomweb.js <command> |
| 48 | + |
| 49 | + Commands: |
| 50 | + dicomweb.js dicomWebStoreInstance <datasetId> <dicomStoreId> Handles the POST requests specified in the DICOMweb |
| 51 | + <dcmFile> <boundary> standard. |
| 52 | + dicomweb.js dicomWebSearchInstances <datasetId> Handles the GET requests specified in the DICOMweb |
| 53 | + <dicomStoreId> standard. |
| 54 | + dicomweb.js dicomWebRetrieveStudy <datasetId> <dicomStoreId> Handles the GET requests specified in the DICOMweb |
| 55 | + <studyUid> standard. |
| 56 | + dicomweb.js dicomWebDeleteStudy <datasetId> <dicomStoreId> Handles DELETE requests. |
| 57 | + <studyUid> |
| 58 | + |
| 59 | + Options: |
| 60 | + --version Show version number [boolean] |
| 61 | + --cloudRegion, -c [string] [default: "us-central1"] |
| 62 | + --projectId, -p The Project ID to use. Defaults to the value of the GCLOUD_PROJECT or GOOGLE_CLOUD_PROJECT |
| 63 | + environment variables. [string] |
| 64 | + --serviceAccount, -s The path to your service credentials JSON. |
| 65 | + [string] |
| 66 | + --help Show help [boolean] |
| 67 | + |
| 68 | +For more information, see https://cloud.google.com/healthcare/docs |
0 commit comments