Google Cloud Healthcare · Schema
Consent
Represents a user's consent.
HealthcareFHIRHL7v2DICOMMedical ImagingDe-IdentificationInteroperabilityCloud
Properties
| Name | Type | Description |
|---|---|---|
| metadata | object | Optional. User-supplied key-value pairs used to organize Consent resources. Metadata keys must: - be between 1 and 63 characters long - have a UTF-8 encoding of maximum 128 bytes - begin with a letter |
| state | string | Required. Indicates the current state of this Consent. |
| name | string | Identifier. Resource name of the Consent, of the form `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/consents/{consent_id}`. Cannot be changed af |
| expireTime | string | Timestamp in UTC of when this Consent is considered expired. |
| policies | array | Optional. Represents a user's consent in terms of the resources that can be accessed and under what conditions. |
| userId | string | Required. User's UUID provided by the client. |
| consentArtifact | string | Required. The resource name of the Consent artifact that contains proof of the end user's consent, of the form `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{conse |
| revisionCreateTime | string | Output only. The timestamp that the revision was created. |
| ttl | string | Input only. The time to live for this Consent from when it is created. |
| revisionId | string | Output only. The revision ID of the Consent. The format is an 8-character hexadecimal string. Refer to a specific revision of a Consent by appending `@{revision_id}` to the Consent's resource name. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/google-cloud-healthcare/json-schema/google-cloud-healthcare-consent-schema.json",
"title": "Consent",
"description": "Represents a user's consent.",
"x-generated": "2026-11-11",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/google-cloud-healthcare-projects-api-openapi.yml#/components/schemas/Consent",
"properties": {
"metadata": {
"description": "Optional. User-supplied key-value pairs used to organize Consent resources. Metadata keys must: - be between 1 and 63 characters long - have a UTF-8 encoding of maximum 128 bytes - begin with a letter - consist of up to 63 characters including lowercase letters, numeric characters, underscores, and dashes Metadata values must be: - be between 1 and 63 characters long - have a UTF-8 encoding of maximum 128 bytes - consist of up to 63 characters including lowercase letters, numeric characters, underscores, and dashes No more than 64 metadata entries can be associated with a given consent.",
"additionalProperties": {
"type": "string"
},
"type": "object"
},
"state": {
"description": "Required. Indicates the current state of this Consent.",
"type": "string",
"enum": [
"STATE_UNSPECIFIED",
"ACTIVE",
"ARCHIVED",
"REVOKED",
"DRAFT",
"REJECTED"
]
},
"name": {
"type": "string",
"description": "Identifier. Resource name of the Consent, of the form `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/consents/{consent_id}`. Cannot be changed after creation."
},
"expireTime": {
"type": "string",
"description": "Timestamp in UTC of when this Consent is considered expired.",
"format": "google-datetime"
},
"policies": {
"items": {
"$ref": "#/$defs/GoogleCloudHealthcareV1ConsentPolicy"
},
"description": "Optional. Represents a user's consent in terms of the resources that can be accessed and under what conditions.",
"type": "array"
},
"userId": {
"description": "Required. User's UUID provided by the client.",
"type": "string"
},
"consentArtifact": {
"description": "Required. The resource name of the Consent artifact that contains proof of the end user's consent, of the form `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/consentArtifacts/{consent_artifact_id}`.",
"type": "string"
},
"revisionCreateTime": {
"description": "Output only. The timestamp that the revision was created.",
"type": "string",
"format": "google-datetime",
"readOnly": true
},
"ttl": {
"type": "string",
"description": "Input only. The time to live for this Consent from when it is created.",
"format": "google-duration"
},
"revisionId": {
"description": "Output only. The revision ID of the Consent. The format is an 8-character hexadecimal string. Refer to a specific revision of a Consent by appending `@{revision_id}` to the Consent's resource name.",
"readOnly": true,
"type": "string"
}
},
"type": "object",
"$defs": {
"Attribute": {
"type": "object",
"description": "An attribute value for a Consent or User data mapping. Each Attribute must have a corresponding AttributeDefinition in the consent store that defines the default and allowed values.",
"properties": {
"attributeDefinitionId": {
"type": "string",
"description": "Indicates the name of an attribute defined in the consent store."
},
"values": {
"type": "array",
"items": {
"type": "string"
},
"description": "Required. The value of the attribute. Must be an acceptable value as defined in the consent store. For example, if the consent store defines \"data type\" with acceptable values \"questionnaire\" and \"step-count\", when the attribute name is data type, this field must contain one of those values."
}
}
},
"Expr": {
"type": "object",
"description": "Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: \"Summary size limit\" description: \"Determines if a summary is less than 100 chars\" expression: \"document.summary.size() < 100\" Example (Equality): title: \"Requestor is owner\" description: \"Determines if requestor is the document owner\" expression: \"document.owner == request.auth.claims.email\" Example (Logic): title: \"Public documents\" description: \"Determine whether the document should be publicly visible\" expression: \"document.type != 'private' && document.type != 'internal'\" Example (Data Manipulation): title: \"Notification string\" description: \"Create a notification string with a timestamp.\" expression: \"'New message received at ' + string(document.create_time)\" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.",
"properties": {
"location": {
"type": "string",
"description": "Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file."
},
"title": {
"description": "Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.",
"type": "string"
},
"description": {
"description": "Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.",
"type": "string"
},
"expression": {
"description": "Textual representation of an expression in Common Expression Language syntax.",
"type": "string"
}
}
},
"GoogleCloudHealthcareV1ConsentPolicy": {
"description": "Represents a user's consent in terms of the resources that can be accessed and under what conditions.",
"properties": {
"resourceAttributes": {
"description": "The resources that this policy applies to. A resource is a match if it matches all the attributes listed here. If empty, this policy applies to all User data mappings for the given user.",
"items": {
"$ref": "#/$defs/Attribute"
},
"type": "array"
},
"authorizationRule": {
"$ref": "#/$defs/Expr",
"description": "Required. The request conditions to meet to grant access. In addition to any supported comparison operators, authorization rules may have `IN` operator as well as at most 10 logical operators that are limited to `AND` (`&&`), `OR` (`||`)."
}
},
"type": "object"
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/google-cloud-healthcare-consent"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.