Class HL7v2IO.Read
- All Implemented Interfaces:
Serializable,HasDisplayData
- Enclosing class:
HL7v2IO
These could be sourced from any PCollection of Strings 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 classPTransformto fetch a message from an Google Cloud Healthcare HL7v2 store based on msgID.static classThe type Result includesPCollectionofHL7v2Messageobjects for successfully read results andPCollectionofHealthcareIOErrorobjects 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 thisPTransformshould 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:PTransformOverride this method to specify how thisPTransformshould be expanded on the givenInputT.NOTE: This method should not be called directly. Instead apply the
PTransformshould be applied to theInputTusing theapplymethod.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:
expandin classPTransform<PCollection<String>,HL7v2IO.Read.Result>
-