Skip to content

Commit 1added9

Browse files
committed
Have search flag function only if flag is truthy
1 parent 1d75437 commit 1added9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/fhir_client/sections/search.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def search(klass, options = {}, format = @default_format)
1212
options[:resource] = klass
1313
options[:format] = format
1414

15-
reply = if options.dig(:search, :flag).nil? && options.dig(:search, :body).nil?
15+
reply = if options.dig(:search, :flag) != true && options.dig(:search, :body).nil?
1616
get resource_url(options), fhir_headers
1717
else
1818
options[:search][:flag] = true

0 commit comments

Comments
 (0)