Class: Google::Apis::HealthcareV1::SearchResourcesRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/healthcare_v1/classes.rb,
lib/google/apis/healthcare_v1/representations.rb,
lib/google/apis/healthcare_v1/representations.rb

Overview

Request to search the resources in the specified FHIR store.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SearchResourcesRequest

Returns a new instance of SearchResourcesRequest.



3976
3977
3978
# File 'lib/google/apis/healthcare_v1/classes.rb', line 3976

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#request_bodyGoogle::Apis::HealthcareV1::HttpBody

Message that represents an arbitrary HTTP body. It should only be used for payload formats that can't be represented as JSON, such as raw binary or an HTML page. This message can be used both in streaming and non-streaming API methods in the request as well as the response. It can be used as a top-level request field, which is convenient if one wants to extract parameters from either the URL or HTTP template into the request fields and also want access to the raw HTTP body. Example: message GetResourceRequest // A unique request id. string request_id = 1; // The raw HTTP body is bound to this field. google.api.HttpBody http_body = 2; service ResourceService rpc GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); Example with streaming methods: service CaldavService rpc GetCalendar(stream google. api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); Use of this type only changes how the request and response bodies are handled, all other features will continue to work unchanged. Corresponds to the JSON property requestBody



3965
3966
3967
# File 'lib/google/apis/healthcare_v1/classes.rb', line 3965

def request_body
  @request_body
end

#resource_typeString

The FHIR resource type to search, such as Patient or Observation. For a complete list, see the FHIR Resource Index (DSTU2, STU3, R4). Corresponds to the JSON property resourceType

Returns:

  • (String)


3974
3975
3976
# File 'lib/google/apis/healthcare_v1/classes.rb', line 3974

def resource_type
  @resource_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3981
3982
3983
3984
# File 'lib/google/apis/healthcare_v1/classes.rb', line 3981

def update!(**args)
  @request_body = args[:request_body] if args.key?(:request_body)
  @resource_type = args[:resource_type] if args.key?(:resource_type)
end