Skip to content

Commit c971ec4

Browse files
authored
Merge pull request #38381 from bambadiouf1/fix-fhir-search-sig
Fix FHIR search method signature mismatch after google.golang.org/api
2 parents 991a8d5 + e59af80 commit c971ec4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

sdks/go/pkg/beam/io/fhirio/common.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,12 @@ func (c *fhirStoreClientImpl) search(storePath, resourceType string, queries map
127127
queryParams = append(queryParams, googleapi.QueryParameter(pageTokenParameterKey, pageToken))
128128
}
129129

130-
// Pass nil as the body because search parameters are passed via queryParams,
130+
// Pass an empty reader as the body because search parameters are passed via queryParams,
131131
// and the new API expects an io.Reader instead of a specific struct.
132132
if resourceType == "" {
133-
return c.fhirService().Search(storePath, nil).Do(queryParams...)
133+
return c.fhirService().Search(storePath, strings.NewReader("")).Do(queryParams...)
134134
}
135-
return c.fhirService().SearchType(storePath, resourceType, nil).Do(queryParams...)
135+
return c.fhirService().SearchType(storePath, resourceType, strings.NewReader("")).Do(queryParams...)
136136
}
137137

138138
func (c *fhirStoreClientImpl) deidentify(srcStorePath, dstStorePath string, deidConfig *healthcare.DeidentifyConfig) (operationResults, error) {

0 commit comments

Comments
 (0)