Class FhirIO.Write

  • All Implemented Interfaces:
    java.io.Serializable, org.apache.beam.sdk.transforms.display.HasDisplayData
    Direct Known Subclasses:
    FhirIO.Import
    Enclosing class:
    FhirIO

    public abstract static class FhirIO.Write
    extends org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PCollection<java.lang.String>,​FhirIO.Write.AbstractResult>
    The type Write.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.apache.beam.sdk.values.TupleTag<HealthcareIOError<java.lang.String>> FAILED_BODY
      The tag for the failed writes to FHIR store.
      static org.apache.beam.sdk.values.TupleTag<HealthcareIOError<java.lang.String>> FAILED_FILES
      The tag for the files that failed to FHIR store.
      static org.apache.beam.sdk.values.TupleTag<java.lang.String> SUCCESSFUL_BODY
      The tag for successful writes to FHIR store.
      static org.apache.beam.sdk.values.TupleTag<org.apache.beam.sdk.io.fs.ResourceId> TEMP_FILES
      The tag for temp files for import to FHIR store.
      • Fields inherited from class org.apache.beam.sdk.transforms.PTransform

        name, resourceHints
    • Constructor Summary

      Constructors 
      Constructor Description
      Write()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static FhirIO.Write executeBundles​(java.lang.String fhirStore)
      Execute Bundle Method executes a batch of requests in batch or as a single transaction @see .
      static FhirIO.Write executeBundles​(org.apache.beam.sdk.options.ValueProvider<java.lang.String> fhirStore)
      Execute Bundle Method executes a batch of requests in batch or as a single transaction @see .
      FhirIO.Write.AbstractResult expand​(org.apache.beam.sdk.values.PCollection<java.lang.String> input)  
      static FhirIO.Write fhirStoresImport​(java.lang.String fhirStore, java.lang.String gcsDeadLetterPath, @Nullable FhirIO.Import.ContentStructure contentStructure)  
      static FhirIO.Write fhirStoresImport​(java.lang.String fhirStore, java.lang.String gcsTempPath, java.lang.String gcsDeadLetterPath, @Nullable FhirIO.Import.ContentStructure contentStructure)
      Import method for batch writing resources.
      static FhirIO.Write fhirStoresImport​(org.apache.beam.sdk.options.ValueProvider<java.lang.String> fhirStore, org.apache.beam.sdk.options.ValueProvider<java.lang.String> gcsTempPath, org.apache.beam.sdk.options.ValueProvider<java.lang.String> gcsDeadLetterPath, @Nullable FhirIO.Import.ContentStructure contentStructure)  
      • Methods inherited from class org.apache.beam.sdk.transforms.PTransform

        compose, compose, getAdditionalInputs, getDefaultOutputCoder, getDefaultOutputCoder, getDefaultOutputCoder, getKindString, getName, getResourceHints, populateDisplayData, setResourceHints, toString, validate, validate
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • SUCCESSFUL_BODY

        public static final org.apache.beam.sdk.values.TupleTag<java.lang.String> SUCCESSFUL_BODY
        The tag for successful writes to FHIR store.
      • FAILED_BODY

        public static final org.apache.beam.sdk.values.TupleTag<HealthcareIOError<java.lang.String>> FAILED_BODY
        The tag for the failed writes to FHIR store.
      • FAILED_FILES

        public static final org.apache.beam.sdk.values.TupleTag<HealthcareIOError<java.lang.String>> FAILED_FILES
        The tag for the files that failed to FHIR store.
      • TEMP_FILES

        public static final org.apache.beam.sdk.values.TupleTag<org.apache.beam.sdk.io.fs.ResourceId> TEMP_FILES
        The tag for temp files for import to FHIR store.
    • Constructor Detail

      • Write

        public Write()
    • Method Detail

      • fhirStoresImport

        public static FhirIO.Write fhirStoresImport​(java.lang.String fhirStore,
                                                    java.lang.String gcsTempPath,
                                                    java.lang.String gcsDeadLetterPath,
                                                    @Nullable FhirIO.Import.ContentStructure contentStructure)
        Import method for batch writing resources. @see
        Parameters:
        fhirStore - the FHIR store
        gcsTempPath - the gcs temp path
        gcsDeadLetterPath - the gcs dead letter path
        contentStructure - the content structure
        Returns:
        the write
      • fhirStoresImport

        public static FhirIO.Write fhirStoresImport​(org.apache.beam.sdk.options.ValueProvider<java.lang.String> fhirStore,
                                                    org.apache.beam.sdk.options.ValueProvider<java.lang.String> gcsTempPath,
                                                    org.apache.beam.sdk.options.ValueProvider<java.lang.String> gcsDeadLetterPath,
                                                    @Nullable FhirIO.Import.ContentStructure contentStructure)
      • executeBundles

        public static FhirIO.Write executeBundles​(java.lang.String fhirStore)
        Execute Bundle Method executes a batch of requests in batch or as a single transaction @see .
        Parameters:
        fhirStore - the fhir store
        Returns:
        the write
      • executeBundles

        public static FhirIO.Write executeBundles​(org.apache.beam.sdk.options.ValueProvider<java.lang.String> fhirStore)
        Execute Bundle Method executes a batch of requests in batch or as a single transaction @see .
        Parameters:
        fhirStore - the fhir store
        Returns:
        the write
      • expand

        public FhirIO.Write.AbstractResult expand​(org.apache.beam.sdk.values.PCollection<java.lang.String> input)
        Specified by:
        expand in class org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PCollection<java.lang.String>,​FhirIO.Write.AbstractResult>