fhir.proto 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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. syntax = "proto3";
  15. package google.cloud.healthcare.logging;
  16. import "google/rpc/status.proto";
  17. option go_package = "google.golang.org/genproto/googleapis/cloud/healthcare/logging;logging";
  18. option java_package = "com.google.cloud.healthcare.logging";
  19. // A log entry for a FHIR import long-running operation.
  20. message ImportFhirLogEntry {
  21. // The source in Cloud Storage (for example,
  22. // `gs://{bucket_id}/{path/to/file}`) or BigQuery (for example,
  23. // `bq://{projectId}.{bqDatasetId}`).
  24. string source = 1;
  25. // The ID in the source file of the FHIR resource being imported.
  26. string resource_id = 2;
  27. // The error code and message.
  28. google.rpc.Status error = 3;
  29. }
  30. // A log entry for a FHIR export long-running operation.
  31. message ExportFhirLogEntry {
  32. // The destination in Cloud Storage (for example,
  33. // `gs://{bucket_id}/{path/to/file}`) or BigQuery (for example,
  34. // `bq://{projectId}.{bqDatasetId}`).
  35. string destination = 1;
  36. // The resource being exported (e.g.
  37. // `projects/{projectId}/locations/{locationId}/datasets/{datasetId}/fhirStores/{fhirStoreId}/fhir/Patient/{patientId}`).
  38. string resource_name = 3;
  39. // The error code and message.
  40. google.rpc.Status error = 4;
  41. }
  42. // A log entry for a FHIR configure search long-running operation
  43. message FhirConfigureSearchLogEntry {
  44. // The ID of the resource being reindexed.
  45. string resource_id = 1;
  46. // The error code and message.
  47. google.rpc.Status error = 2;
  48. }
  49. // A log entry for a FHIR store Pub/Sub notification.
  50. message FhirNotificationLogEntry {
  51. // The resource being changed (for example,
  52. // `projects/{projectId}/locations/{locationId}/datasets/{datasetId}/fhirStores/{fhirStoreId}/fhir/Patient/{patientId}`).
  53. string resource_name = 1;
  54. // The Pub/Sub topic that the notification is published on.
  55. string pubsub_topic = 2;
  56. // The error code and message.
  57. google.rpc.Status error = 3;
  58. }
  59. // A log entry for a FHIR streaming export notification.
  60. message FhirStreamLogEntry {
  61. // The resource being changed (for example,
  62. // `projects/{projectId}/locations/{locationId}/datasets/{datasetId}/fhirStores/{fhirStoreId}/fhir/Patient/{patientId}`).
  63. string resource_name = 1;
  64. // The destination in BigQuery (for example,
  65. // `bq://{projectId}.{bqDatasetId}.{bqTableId}`).
  66. string destination = 2;
  67. // The error code and message.
  68. google.rpc.Status error = 3;
  69. }
  70. // A log entry for a FHIR streaming deidentification notification.
  71. message FhirDeidentifyStreamToStoreLogEntry {
  72. // The resource that changed (for example,
  73. // `projects/{projectId}/locations/{locationId}/datasets/{datasetId}/fhirStores/{fhirStoreId}/fhir/Patient/{patientId}`).
  74. string resource_name = 1;
  75. // The destination FHIR store name. (for example,
  76. // `projects/{projectId}/locations/{locationId}/datasets/{datasetId}/fhirStores/{fhirStoreId}`).
  77. string destination = 2;
  78. // The error code and message.
  79. google.rpc.Status error = 3;
  80. }