GoogleApi.HealthCare.V1.Api.Projects.healthcare_projects_locations_datasets_fhir_stores_fhir_create
healthcare_projects_locations_datasets_fhir_stores_fhir_create
, go back to GoogleApi.HealthCare.V1.Api.Projects module for more information.
healthcare_projects_locations_datasets_fhir_stores_fhir_create(connection, projects_id, locations_id, datasets_id, fhir_stores_id, fhir_id, optional_params \\ [], opts \\ [])
View SourceSpecs
healthcare_projects_locations_datasets_fhir_stores_fhir_create( Tesla.Env.client(), String.t(), String.t(), String.t(), String.t(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.HealthCare.V1.Model.HttpBody.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()}
Creates a FHIR resource. Implements the FHIR standard create interaction (DSTU2, STU3, R4), which creates a new resource with a server-assigned resource ID. The request body must contain a JSON-encoded FHIR resource, and the request headers must contain Content-Type: application/fhir+json
. On success, the response body contains a JSON-encoded representation of the resource as it was created on the server, including the server-assigned resource ID and version ID. Errors generated by the FHIR store contain a JSON-encoded OperationOutcome
resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead. For samples that show how to call create
, see Creating a FHIR resource.
Parameters
-
connection
(type:GoogleApi.HealthCare.V1.Connection.t
) - Connection to server -
projects_id
(type:String.t
) - Part ofparent
. The name of the FHIR store this resource belongs to. -
locations_id
(type:String.t
) - Part ofparent
. See documentation ofprojectsId
. -
datasets_id
(type:String.t
) - Part ofparent
. See documentation ofprojectsId
. -
fhir_stores_id
(type:String.t
) - Part ofparent
. See documentation ofprojectsId
. -
fhir_id
(type:String.t
) - Part oftype
. The FHIR resource type to create, such as Patient or Observation. For a complete list, see the FHIR Resource Index (DSTU2, STU3, R4). Must match the resource type in the provided content. -
optional_params
(type:keyword()
) - Optional parameters-
:"$.xgafv"
(type:String.t
) - V1 error format. -
:access_token
(type:String.t
) - OAuth access token. -
:alt
(type:String.t
) - Data format for response. -
:callback
(type:String.t
) - JSONP -
:fields
(type:String.t
) - Selector specifying which fields to include in a partial response. -
:key
(type:String.t
) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. -
:oauth_token
(type:String.t
) - OAuth 2.0 token for the current user. -
:prettyPrint
(type:boolean()
) - Returns response with indentations and line breaks. -
:quotaUser
(type:String.t
) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. -
:uploadType
(type:String.t
) - Legacy upload protocol for media (e.g. "media", "multipart"). -
:upload_protocol
(type:String.t
) - Upload protocol for media (e.g. "raw", "multipart"). -
:body
(type:GoogleApi.HealthCare.V1.Model.HttpBody.t
) -
-
-
opts
(type:keyword()
) - Call options
Returns
-
{:ok, %GoogleApi.HealthCare.V1.Model.HttpBody{}}
on success -
{:error, info}
on failure