Class HL7v2IO.Read
- All Implemented Interfaces:
Serializable
,HasDisplayData
- Enclosing class:
HL7v2IO
These could be sourced from any PCollection
of String
s but the most popular
patterns would be PubsubIO.readStrings()
reading a subscription on an HL7v2 Store's
notification channel topic or using HL7v2IO.ListHL7v2Messages
to list HL7v2 message IDs with an
optional filter using Ingest write method. @see .
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
PTransform
to fetch a message from an Google Cloud Healthcare HL7v2 store based on msgID.static class
The type Result includesPCollection
ofHL7v2Message
objects for successfully read results andPCollection
ofHealthcareIOError
objects for failed reads. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TupleTag
<HealthcareIOError<String>> The tag for the deadletter output of HL7v2 Messages.static final TupleTag
<HL7v2Message> The tag for the main output of HL7v2 Messages.Fields inherited from class org.apache.beam.sdk.transforms.PTransform
annotations, displayData, name, resourceHints
-
Constructor Summary
Constructors -
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
-
OUT
The tag for the main output of HL7v2 Messages. -
DEAD_LETTER
The tag for the deadletter output of HL7v2 Messages.
-
-
Constructor Details
-
Read
public Read()
-
-
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>,
HL7v2IO.Read.Result>
-