Class FhirIO.Write

All Implemented Interfaces:
Serializable, HasDisplayData
Direct Known Subclasses:
FhirIO.Import
Enclosing class:
FhirIO

public abstract static class FhirIO.Write extends PTransform<PCollection<String>,FhirIO.Write.AbstractResult>
The type Write.
See Also:
  • Field Details

    • SUCCESSFUL_BODY

      public static final TupleTag<String> SUCCESSFUL_BODY
      The tag for successful writes to FHIR store.
    • FAILED_BODY

      public static final TupleTag<HealthcareIOError<String>> FAILED_BODY
      The tag for the failed writes to FHIR store.
    • FAILED_FILES

      public static final TupleTag<HealthcareIOError<String>> FAILED_FILES
      The tag for the files that failed to FHIR store.
    • TEMP_FILES

      public static final TupleTag<ResourceId> TEMP_FILES
      The tag for temp files for import to FHIR store.
  • Constructor Details

    • Write

      public Write()
  • Method Details

    • fhirStoresImport

      public static FhirIO.Write fhirStoresImport(String fhirStore, String gcsTempPath, 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(String fhirStore, String gcsDeadLetterPath, @Nullable FhirIO.Import.ContentStructure contentStructure)
    • fhirStoresImport

      public static FhirIO.Write fhirStoresImport(ValueProvider<String> fhirStore, ValueProvider<String> gcsTempPath, ValueProvider<String> gcsDeadLetterPath, @Nullable FhirIO.Import.ContentStructure contentStructure)
    • executeBundles

      public static FhirIO.Write executeBundles(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(ValueProvider<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

      Description copied from class: PTransform
      Override this method to specify how this PTransform should be expanded on the given InputT.

      NOTE: This method should not be called directly. Instead apply the PTransform should be applied to the InputT using the apply 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 class PTransform<PCollection<String>,FhirIO.Write.AbstractResult>