1// Copyright 2022 Google LLC 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15syntax = "proto3"; 16 17package google.cloud.healthcare.logging; 18 19import "google/rpc/status.proto"; 20 21option go_package = "cloud.google.com/go/healthcare/logging/loggingpb;loggingpb"; 22option java_package = "com.google.cloud.healthcare.logging"; 23 24// A log entry for a FHIR import long-running operation. 25message ImportFhirLogEntry { 26 // The source in Cloud Storage (for example, 27 // `gs://{bucket_id}/{path/to/file}`) or BigQuery (for example, 28 // `bq://{projectId}.{bqDatasetId}`). 29 string source = 1; 30 31 // The ID in the source file of the FHIR resource being imported. 32 string resource_id = 2; 33 34 // The error code and message. 35 google.rpc.Status error = 3; 36} 37 38// A log entry for a FHIR export long-running operation. 39message ExportFhirLogEntry { 40 // The destination in Cloud Storage (for example, 41 // `gs://{bucket_id}/{path/to/file}`) or BigQuery (for example, 42 // `bq://{projectId}.{bqDatasetId}`). 43 string destination = 1; 44 45 // The resource being exported (e.g. 46 // `projects/{projectId}/locations/{locationId}/datasets/{datasetId}/fhirStores/{fhirStoreId}/fhir/Patient/{patientId}`). 47 string resource_name = 3; 48 49 // The error code and message. 50 google.rpc.Status error = 4; 51} 52 53// A log entry for a FHIR configure search long-running operation 54message FhirConfigureSearchLogEntry { 55 // The ID of the resource being reindexed. 56 string resource_id = 1; 57 58 // The error code and message. 59 google.rpc.Status error = 2; 60} 61 62// A log entry for a FHIR store Pub/Sub notification. 63message FhirNotificationLogEntry { 64 // The resource being changed (for example, 65 // `projects/{projectId}/locations/{locationId}/datasets/{datasetId}/fhirStores/{fhirStoreId}/fhir/Patient/{patientId}`). 66 string resource_name = 1; 67 68 // The Pub/Sub topic that the notification is published on. 69 string pubsub_topic = 2; 70 71 // The error code and message. 72 google.rpc.Status error = 3; 73} 74 75// A log entry for a FHIR streaming export notification. 76message FhirStreamLogEntry { 77 // The resource being changed (for example, 78 // `projects/{projectId}/locations/{locationId}/datasets/{datasetId}/fhirStores/{fhirStoreId}/fhir/Patient/{patientId}`). 79 string resource_name = 1; 80 81 // The destination in BigQuery (for example, 82 // `bq://{projectId}.{bqDatasetId}.{bqTableId}`). 83 string destination = 2; 84 85 // The error code and message. 86 google.rpc.Status error = 3; 87} 88 89// A log entry for a FHIR streaming deidentification notification. 90message FhirDeidentifyStreamToStoreLogEntry { 91 // The resource that changed (for example, 92 // `projects/{projectId}/locations/{locationId}/datasets/{datasetId}/fhirStores/{fhirStoreId}/fhir/Patient/{patientId}`). 93 string resource_name = 1; 94 95 // The destination FHIR store name. (for example, 96 // `projects/{projectId}/locations/{locationId}/datasets/{datasetId}/fhirStores/{fhirStoreId}`). 97 string destination = 2; 98 99 // The error code and message. 100 google.rpc.Status error = 3; 101} 102