Class: Google::Apis::HealthcareV1beta1::SearchResourcesRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/healthcare_v1beta1/classes.rb,
lib/google/apis/healthcare_v1beta1/representations.rb,
lib/google/apis/healthcare_v1beta1/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.



4849
4850
4851
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 4849

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

Instance Attribute Details

#request_bodyGoogle::Apis::HealthcareV1beta1::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



4838
4839
4840
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 4838

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)


4847
4848
4849
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 4847

def resource_type
  @resource_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4854
4855
4856
4857
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 4854

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