Skip to content

Commit

Permalink
Update go module to github.com/google/bulk_fhir_tools.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 579014490
  • Loading branch information
suyashkumar authored and copybara-github committed Nov 2, 2023
1 parent 4738082 commit ff3969b
Show file tree
Hide file tree
Showing 39 changed files with 97 additions and 97 deletions.
4 changes: 2 additions & 2 deletions bulkfhir/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ import (
"strings"
"time"

"github.com/google/medical_claims_tools/fhir"
log "github.com/google/medical_claims_tools/internal/logger"
"github.com/google/bulk_fhir_tools/fhir"
log "github.com/google/bulk_fhir_tools/internal/logger"

cpb "github.com/google/fhir/go/proto/google/fhir/proto/r4/core/codes_go_proto"
)
Expand Down
6 changes: 3 additions & 3 deletions bulkfhir/transactiontime.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ import (
"os"
"time"

log "github.com/google/medical_claims_tools/internal/logger"
log "github.com/google/bulk_fhir_tools/internal/logger"
"cloud.google.com/go/storage"
"github.com/google/medical_claims_tools/fhir"
"github.com/google/medical_claims_tools/gcs"
"github.com/google/bulk_fhir_tools/fhir"
"github.com/google/bulk_fhir_tools/gcs"
)

// ErrUnsetTransactionTime is returned from TransactionTime.Get if it is
Expand Down
2 changes: 1 addition & 1 deletion bulkfhir/transactiontime_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"time"

"github.com/google/go-cmp/cmp"
"github.com/google/medical_claims_tools/internal/testhelpers"
"github.com/google/bulk_fhir_tools/internal/testhelpers"
)

func TestInMemoryTransactionTimeStore(t *testing.T) {
Expand Down
14 changes: 7 additions & 7 deletions cmd/bulk_fhir_fetch/bulk_fhir_fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ import (
"time"

"flag"
"github.com/google/medical_claims_tools/bulkfhir"
"github.com/google/medical_claims_tools/fetcher"
"github.com/google/medical_claims_tools/fhir/processing"
"github.com/google/medical_claims_tools/fhirstore"
"github.com/google/medical_claims_tools/gcs"
log "github.com/google/medical_claims_tools/internal/logger"
"github.com/google/medical_claims_tools/internal/metrics"
"github.com/google/bulk_fhir_tools/bulkfhir"
"github.com/google/bulk_fhir_tools/fetcher"
"github.com/google/bulk_fhir_tools/fhir/processing"
"github.com/google/bulk_fhir_tools/fhirstore"
"github.com/google/bulk_fhir_tools/gcs"
log "github.com/google/bulk_fhir_tools/internal/logger"
"github.com/google/bulk_fhir_tools/internal/metrics"

cpb "github.com/google/fhir/go/proto/google/fhir/proto/r4/core/codes_go_proto"
)
Expand Down
14 changes: 7 additions & 7 deletions cmd/bulk_fhir_fetch/bulk_fhir_fetch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,18 @@ import (
"testing"

cpb "github.com/google/fhir/go/proto/google/fhir/proto/r4/core/codes_go_proto"
"github.com/google/medical_claims_tools/gcs"
"github.com/google/medical_claims_tools/internal/metrics"
"github.com/google/medical_claims_tools/internal/testhelpers"
"github.com/google/bulk_fhir_tools/gcs"
"github.com/google/bulk_fhir_tools/internal/metrics"
"github.com/google/bulk_fhir_tools/internal/testhelpers"

"flag"

"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/google/medical_claims_tools/bulkfhir"
"github.com/google/medical_claims_tools/fetcher"
"github.com/google/medical_claims_tools/fhir/processing"
"github.com/google/medical_claims_tools/fhirstore"
"github.com/google/bulk_fhir_tools/bulkfhir"
"github.com/google/bulk_fhir_tools/fetcher"
"github.com/google/bulk_fhir_tools/fhir/processing"
"github.com/google/bulk_fhir_tools/fhirstore"
)

func TestBulkFHIRFetchWrapper(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion cmd/test_server/test_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import (
"flag"
"github.com/google/uuid"
"github.com/julienschmidt/httprouter"
"github.com/google/medical_claims_tools/fhir"
"github.com/google/bulk_fhir_tools/fhir"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion cmd/test_server/test_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (

cpb "github.com/google/fhir/go/proto/google/fhir/proto/r4/core/codes_go_proto"
"github.com/google/go-cmp/cmp"
"github.com/google/medical_claims_tools/bulkfhir"
"github.com/google/bulk_fhir_tools/bulkfhir"
)

// This includes some basic __sanity__ tests of the test_server.
Expand Down
10 changes: 5 additions & 5 deletions fetcher/fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ import (
"io"
"time"

"github.com/google/medical_claims_tools/bulkfhir"
"github.com/google/medical_claims_tools/fhir"
"github.com/google/medical_claims_tools/fhir/processing"
log "github.com/google/medical_claims_tools/internal/logger"
"github.com/google/medical_claims_tools/internal/metrics"
"github.com/google/bulk_fhir_tools/bulkfhir"
"github.com/google/bulk_fhir_tools/fhir"
"github.com/google/bulk_fhir_tools/fhir/processing"
log "github.com/google/bulk_fhir_tools/internal/logger"
"github.com/google/bulk_fhir_tools/internal/metrics"

cpb "github.com/google/fhir/go/proto/google/fhir/proto/r4/core/codes_go_proto"
)
Expand Down
4 changes: 2 additions & 2 deletions fhir/processing/bcdarectify.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (

cpb "github.com/google/fhir/go/proto/google/fhir/proto/r4/core/codes_go_proto"
dpb "github.com/google/fhir/go/proto/google/fhir/proto/r4/core/datatypes_go_proto"
"github.com/google/medical_claims_tools/internal/metrics/aggregation"
"github.com/google/medical_claims_tools/internal/metrics"
"github.com/google/bulk_fhir_tools/internal/metrics/aggregation"
"github.com/google/bulk_fhir_tools/internal/metrics"
)

var fhirRectifyCounter *metrics.Counter = metrics.NewCounter("fhir-rectify-counter", "Count of FHIR Resources that do not meet the base R4 FHIR expectations and need to be rectified. The counter is tagged by the FHIR Resource type ex) OBSERVATION and type of rectification ex) MISSING_PROVIDER_REFERENCE.", "1", aggregation.Count, "FHIRResourceType", "RectificationType")
Expand Down
6 changes: 3 additions & 3 deletions fhir/processing/bcdarectify_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ import (
"testing"

"github.com/google/go-cmp/cmp"
"github.com/google/medical_claims_tools/fhir/processing"
"github.com/google/medical_claims_tools/internal/metrics"
"github.com/google/medical_claims_tools/internal/testhelpers"
"github.com/google/bulk_fhir_tools/fhir/processing"
"github.com/google/bulk_fhir_tools/internal/metrics"
"github.com/google/bulk_fhir_tools/internal/testhelpers"

cpb "github.com/google/fhir/go/proto/google/fhir/proto/r4/core/codes_go_proto"
)
Expand Down
10 changes: 5 additions & 5 deletions fhir/processing/documents.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ import (
"path/filepath"

"cloud.google.com/go/storage"
"github.com/google/medical_claims_tools/bulkfhir"
"github.com/google/medical_claims_tools/gcs"
log "github.com/google/medical_claims_tools/internal/logger"
"github.com/google/medical_claims_tools/internal/metrics/aggregation"
"github.com/google/medical_claims_tools/internal/metrics"
"github.com/google/bulk_fhir_tools/bulkfhir"
"github.com/google/bulk_fhir_tools/gcs"
log "github.com/google/bulk_fhir_tools/internal/logger"
"github.com/google/bulk_fhir_tools/internal/metrics/aggregation"
"github.com/google/bulk_fhir_tools/internal/metrics"

cpb "github.com/google/fhir/go/proto/google/fhir/proto/r4/core/codes_go_proto"
dpb "github.com/google/fhir/go/proto/google/fhir/proto/r4/core/datatypes_go_proto"
Expand Down
8 changes: 4 additions & 4 deletions fhir/processing/documents_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ import (
"testing"

"github.com/google/go-cmp/cmp"
"github.com/google/medical_claims_tools/bulkfhir"
"github.com/google/medical_claims_tools/fhir/processing"
"github.com/google/medical_claims_tools/internal/metrics"
"github.com/google/medical_claims_tools/internal/testhelpers"
"github.com/google/bulk_fhir_tools/bulkfhir"
"github.com/google/bulk_fhir_tools/fhir/processing"
"github.com/google/bulk_fhir_tools/internal/metrics"
"github.com/google/bulk_fhir_tools/internal/testhelpers"

cpb "github.com/google/fhir/go/proto/google/fhir/proto/r4/core/codes_go_proto"
)
Expand Down
12 changes: 6 additions & 6 deletions fhir/processing/fhirstoresink.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ import (
"sync/atomic"
"time"

"github.com/google/medical_claims_tools/bulkfhir"
"github.com/google/medical_claims_tools/fhir"
"github.com/google/medical_claims_tools/fhirstore"
log "github.com/google/medical_claims_tools/internal/logger"
"github.com/google/medical_claims_tools/internal/metrics/aggregation"
"github.com/google/medical_claims_tools/internal/metrics"
"github.com/google/bulk_fhir_tools/bulkfhir"
"github.com/google/bulk_fhir_tools/fhir"
"github.com/google/bulk_fhir_tools/fhirstore"
log "github.com/google/bulk_fhir_tools/internal/logger"
"github.com/google/bulk_fhir_tools/internal/metrics/aggregation"
"github.com/google/bulk_fhir_tools/internal/metrics"
)

// ErrUploadFailures is returned (wrapped) when uploads to FHIR Store have
Expand Down
8 changes: 4 additions & 4 deletions fhir/processing/fhirstoresink_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ import (

"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/google/medical_claims_tools/bulkfhir"
"github.com/google/medical_claims_tools/fhir/processing"
"github.com/google/medical_claims_tools/fhirstore"
"github.com/google/medical_claims_tools/internal/testhelpers"
"github.com/google/bulk_fhir_tools/bulkfhir"
"github.com/google/bulk_fhir_tools/fhir/processing"
"github.com/google/bulk_fhir_tools/fhirstore"
"github.com/google/bulk_fhir_tools/internal/testhelpers"

cpb "github.com/google/fhir/go/proto/google/fhir/proto/r4/core/codes_go_proto"
)
Expand Down
8 changes: 4 additions & 4 deletions fhir/processing/ndjsonsink.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ import (
"os"
"path/filepath"

"github.com/google/medical_claims_tools/gcs"
log "github.com/google/medical_claims_tools/internal/logger"
"github.com/google/medical_claims_tools/internal/metrics/aggregation"
"github.com/google/medical_claims_tools/internal/metrics"
"github.com/google/bulk_fhir_tools/gcs"
log "github.com/google/bulk_fhir_tools/internal/logger"
"github.com/google/bulk_fhir_tools/internal/metrics/aggregation"
"github.com/google/bulk_fhir_tools/internal/metrics"

cpb "github.com/google/fhir/go/proto/google/fhir/proto/r4/core/codes_go_proto"
)
Expand Down
4 changes: 2 additions & 2 deletions fhir/processing/ndjsonsink_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import (

"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/google/medical_claims_tools/fhir/processing"
"github.com/google/medical_claims_tools/internal/testhelpers"
"github.com/google/bulk_fhir_tools/fhir/processing"
"github.com/google/bulk_fhir_tools/internal/testhelpers"

cpb "github.com/google/fhir/go/proto/google/fhir/proto/r4/core/codes_go_proto"
rpb "github.com/google/fhir/go/proto/google/fhir/proto/r4/core/resources/bundle_and_contained_resource_go_proto"
Expand Down
4 changes: 2 additions & 2 deletions fhir/processing/processing.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import (

"github.com/google/fhir/go/fhirversion"
"github.com/google/fhir/go/jsonformat"
"github.com/google/medical_claims_tools/internal/metrics/aggregation"
"github.com/google/medical_claims_tools/internal/metrics"
"github.com/google/bulk_fhir_tools/internal/metrics/aggregation"
"github.com/google/bulk_fhir_tools/internal/metrics"

cpb "github.com/google/fhir/go/proto/google/fhir/proto/r4/core/codes_go_proto"
rpb "github.com/google/fhir/go/proto/google/fhir/proto/r4/core/resources/bundle_and_contained_resource_go_proto"
Expand Down
4 changes: 2 additions & 2 deletions fhir/processing/processing_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import (
"testing"

"github.com/google/go-cmp/cmp"
"github.com/google/medical_claims_tools/fhir/processing"
"github.com/google/medical_claims_tools/internal/metrics"
"github.com/google/bulk_fhir_tools/fhir/processing"
"github.com/google/bulk_fhir_tools/internal/metrics"

cpb "github.com/google/fhir/go/proto/google/fhir/proto/r4/core/codes_go_proto"
)
Expand Down
4 changes: 2 additions & 2 deletions fhir/rectify_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"testing"

"github.com/google/go-cmp/cmp"
"github.com/google/medical_claims_tools/fhir"
"github.com/google/medical_claims_tools/internal/testhelpers"
"github.com/google/bulk_fhir_tools/fhir"
"github.com/google/bulk_fhir_tools/internal/testhelpers"
)

func TestRectifyBCDA(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion fhir/time_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"testing"
"time"

"github.com/google/medical_claims_tools/fhir"
"github.com/google/bulk_fhir_tools/fhir"
)

func TestParseFHIRInstant(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions fhirstore/fhirstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ import (

healthcare "google.golang.org/api/healthcare/v1"
"google.golang.org/api/option"
log "github.com/google/medical_claims_tools/internal/logger"
"github.com/google/medical_claims_tools/internal/metrics/aggregation"
"github.com/google/medical_claims_tools/internal/metrics"
log "github.com/google/bulk_fhir_tools/internal/logger"
"github.com/google/bulk_fhir_tools/internal/metrics/aggregation"
"github.com/google/bulk_fhir_tools/internal/metrics"
)

var fhirStoreUploadCounter *metrics.Counter = metrics.NewCounter("fhir-store-upload-counter", "Count of uploads to FHIR Store by FHIR Resource Type and HTTP Status.", "1", aggregation.Count, "FHIRResourceType", "HTTPStatus")
Expand Down
6 changes: 3 additions & 3 deletions fhirstore/fhirstore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ import (
"testing"

"github.com/google/go-cmp/cmp"
"github.com/google/medical_claims_tools/fhirstore"
"github.com/google/medical_claims_tools/internal/metrics"
"github.com/google/medical_claims_tools/internal/testhelpers"
"github.com/google/bulk_fhir_tools/fhirstore"
"github.com/google/bulk_fhir_tools/internal/metrics"
"github.com/google/bulk_fhir_tools/internal/testhelpers"

cpb "github.com/google/fhir/go/proto/google/fhir/proto/r4/core/codes_go_proto"
)
Expand Down
2 changes: 1 addition & 1 deletion gcs/gcs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"io"
"testing"

"github.com/google/medical_claims_tools/internal/testhelpers"
"github.com/google/bulk_fhir_tools/internal/testhelpers"
)

func TestGCSIsBucketInProjectId(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/google/medical_claims_tools
module github.com/google/bulk_fhir_tools

go 1.19

Expand Down
4 changes: 2 additions & 2 deletions internal/logger/logger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import (
"github.com/google/go-cmp/cmp/cmpopts"
"google.golang.org/api/option"
"google.golang.org/grpc"
"github.com/google/medical_claims_tools/internal/logger"
"github.com/google/medical_claims_tools/internal/testhelpers"
"github.com/google/bulk_fhir_tools/internal/logger"
"github.com/google/bulk_fhir_tools/internal/testhelpers"
)

func TestGCPLogger(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions internal/logger/loggerredirect_test/logger_redirect_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ import (
gcpLog "cloud.google.com/go/logging"
"google.golang.org/api/option"
"google.golang.org/grpc"
"github.com/google/medical_claims_tools/internal/logger"
"github.com/google/medical_claims_tools/internal/testhelpers"
"github.com/google/bulk_fhir_tools/internal/logger"
"github.com/google/bulk_fhir_tools/internal/testhelpers"
)

// TestFallbackGCPLoggerAfterClose tests a fallback behavior if the user mistakenly makes logging
Expand Down
10 changes: 5 additions & 5 deletions internal/metrics/counter.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ import (
"errors"
"sync"

log "github.com/google/medical_claims_tools/internal/logger"
"github.com/google/medical_claims_tools/internal/metrics/aggregation"
"github.com/google/medical_claims_tools/internal/metrics/fake"
"github.com/google/medical_claims_tools/internal/metrics/local"
"github.com/google/medical_claims_tools/internal/metrics/opencensus"
log "github.com/google/bulk_fhir_tools/internal/logger"
"github.com/google/bulk_fhir_tools/internal/metrics/aggregation"
"github.com/google/bulk_fhir_tools/internal/metrics/fake"
"github.com/google/bulk_fhir_tools/internal/metrics/local"
"github.com/google/bulk_fhir_tools/internal/metrics/opencensus"
)

// Counter holds an implementation of the counterInterface. Call NewCounter() to get a Counter.
Expand Down
2 changes: 1 addition & 1 deletion internal/metrics/counter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"testing"

"github.com/google/go-cmp/cmp"
"github.com/google/medical_claims_tools/internal/metrics/aggregation"
"github.com/google/bulk_fhir_tools/internal/metrics/aggregation"
)

func TestCounterLocal(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/metrics/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package metrics
import (
"context"

"github.com/google/medical_claims_tools/internal/metrics/aggregation"
"github.com/google/bulk_fhir_tools/internal/metrics/aggregation"
)

func ExampleNewCounter() {
Expand Down
2 changes: 1 addition & 1 deletion internal/metrics/fake/fake.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package fake
import (
"context"

"github.com/google/medical_claims_tools/internal/metrics/aggregation"
"github.com/google/bulk_fhir_tools/internal/metrics/aggregation"
)

// Counter is a no-op implementation of a counter for tests.
Expand Down
8 changes: 4 additions & 4 deletions internal/metrics/latency.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ import (
"errors"
"sync"

log "github.com/google/medical_claims_tools/internal/logger"
"github.com/google/medical_claims_tools/internal/metrics/fake"
"github.com/google/medical_claims_tools/internal/metrics/local"
"github.com/google/medical_claims_tools/internal/metrics/opencensus"
log "github.com/google/bulk_fhir_tools/internal/logger"
"github.com/google/bulk_fhir_tools/internal/metrics/fake"
"github.com/google/bulk_fhir_tools/internal/metrics/local"
"github.com/google/bulk_fhir_tools/internal/metrics/opencensus"
)

// Latency holds an implementation of the latencyInterface. Call NewLatency() to get a Latency.
Expand Down
Loading

0 comments on commit ff3969b

Please sign in to comment.