Class DicomIO.ReadStudyMetadata
java.lang.Object
org.apache.beam.sdk.transforms.PTransform<PCollection<String>,DicomIO.ReadStudyMetadata.Result>
org.apache.beam.sdk.io.gcp.healthcare.DicomIO.ReadStudyMetadata
- All Implemented Interfaces:
Serializable
,HasDisplayData
- Enclosing class:
DicomIO
public static class DicomIO.ReadStudyMetadata
extends PTransform<PCollection<String>,DicomIO.ReadStudyMetadata.Result>
This class makes a call to the retrieve metadata endpoint
(https://cloud.google.com/healthcare/docs/how-tos/dicomweb#retrieving_metadata). It defines a
function that can be used to process a Pubsub message from a DICOM store, read the DICOM study
path and get the metadata of the specified study. You can learn how to configure PubSub
messages to be published when an instance is stored by following:
https://cloud.google.com/healthcare/docs/how-tos/pubsub. The connector will output a
DicomIO.ReadStudyMetadata.Result
which will contain metadata of the study encoded as a json array.- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionTupleTag for any error response.TupleTag for the main output.Fields inherited from class org.apache.beam.sdk.transforms.PTransform
annotations, displayData, name, resourceHints
-
Method Summary
Modifier and TypeMethodDescriptionexpand
(PCollection<String> input) Override this method to specify how thisPTransform
should be expanded on the givenInputT
.Methods inherited from class org.apache.beam.sdk.transforms.PTransform
addAnnotation, compose, compose, getAdditionalInputs, getAnnotations, getDefaultOutputCoder, getDefaultOutputCoder, getDefaultOutputCoder, getKindString, getName, getResourceHints, populateDisplayData, setDisplayData, setResourceHints, toString, validate, validate
-
Field Details
-
METADATA
TupleTag for the main output. -
ERROR_MESSAGE
TupleTag for any error response.
-
-
Method Details
-
expand
Description copied from class:PTransform
Override this method to specify how thisPTransform
should be expanded on the givenInputT
.NOTE: This method should not be called directly. Instead apply the
PTransform
should be applied to theInputT
using theapply
method.Composite transforms, which are defined in terms of other transforms, should return the output of one of the composed transforms. Non-composite transforms, which do not apply any transforms internally, should return a new unbound output and register evaluators (via backend-specific registration methods).
- Specified by:
expand
in classPTransform<PCollection<String>,
DicomIO.ReadStudyMetadata.Result>
-