package
0.1.7
Repository: https://github.com/google/bulk_fhir_tools.git
Documentation: pkg.go.dev

# Functions

CheckErrorNDJSONFile is a helper to test that the contents of the error ndjson file written by fhirstore.Uploader are correct.
FHIRStoreServer creates a test FHIR store server that expects the provided expectedResources uploaded as single resources.
FHIRStoreServerBatch sets up a test FHIR Store Server for batch executeBundle requests.
GCPLogServer creates an in-memory fake server implementing the GCP logging service and starts it.
NewGCSServer creates a new GCS Server for use in tests.
NormalizeJSON normalizes the input json bytes to look like how it would look as if marshaled from a json.Marshal.
NormalizeJSONString normalizes the input json to look how it would look if marshaled from a json.Marshal.
ReadAllFHIRJSON reads all ndjsons in the output directory, extracts out the FHIR json for each resource, and adds it to the output [][]byte.
ReadAllGCSFHIRJSON reads ALL files in the gcsServer, attempets to extract the FHIR json for each resource, and adds it to the output [][]byte.

# Structs

ErrorNDJSONLine represents one line of an error NDJSON file produced by fhirstore.Uploader.
FHIRStoreTestResource represents a test FHIR resource to be uploaded to FHIR store.
GCSObjectEntry holds the contents and content type of stored objects.
GCSServer provides a minimal implementation of the GCS API for use in tests.
GRPCServer is an in-process gRPC server, listening on the local loopback interface.
LoggingHandler implements the log rpc server and holds an in memory map of logs.