Class ProjectsResource.LocationsResource.DatasetsResource.FhirStoresResource.FhirResource.ResourceValidateRequest
Validates an input FHIR resource's conformance to its profiles and the profiles configured
on the FHIR store. Implements the FHIR extended operation $validate
(DSTU2,
STU3, or
R4). The
request body must contain a JSON-encoded FHIR resource, and the request headers must contain
Content-Type: application/fhir+json
. The Parameters
input syntax is not supported. The
profile
query parameter can be used to request that the resource only be validated against
a specific profile. If a profile with the given URL cannot be found in the FHIR store then
an error is returned. Errors generated by validation 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.
Inheritance
Inherited Members
Namespace: Google.Apis.CloudHealthcare.v1
Assembly: Google.Apis.CloudHealthcare.v1.dll
Syntax
public class ProjectsResource.LocationsResource.DatasetsResource.FhirStoresResource.FhirResource.ResourceValidateRequest : CloudHealthcareBaseServiceRequest<HttpBody>, IClientServiceRequest<HttpBody>, IClientServiceRequest
Constructors
ResourceValidateRequest(IClientService, HttpBody, string, string)
Constructs a new ResourceValidate request.
Declaration
public ResourceValidateRequest(IClientService service, HttpBody body, string parent, string type)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
HttpBody | body | |
string | parent | |
string | type |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Parent
Required. The name of the FHIR store that holds the profiles being used for validation.
Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { get; }
Property Value
Type | Description |
---|---|
string |
Profile
Required. The canonical URL of a profile that this resource should be validated against.
For example, to validate a Patient resource against the US Core Patient profile this
parameter would be http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient
. A
StructureDefinition with this canonical URL must exist in the FHIR store.
Declaration
[RequestParameter("profile", RequestParameterType.Query)]
public virtual string Profile { get; set; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Type
Required. The FHIR resource type of the resource being validated. For a complete list, see the FHIR Resource Index (DSTU2, STU3, or R4). Must match the resource type in the provided content.
Declaration
[RequestParameter("type", RequestParameterType.Path)]
public virtual string Type { get; }
Property Value
Type | Description |
---|---|
string |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes ResourceValidate parameter list.
Declaration
protected override void InitParameters()