Class RegistryClient

java.lang.Object
com.clinia.ApiClient
com.clinia.api.RegistryClient
All Implemented Interfaces:
Closeable, AutoCloseable

public class RegistryClient extends ApiClient
  • Constructor Details

  • Method Details

    • bulkRelationships

      public V1BulkResponse bulkRelationships(@Nonnull String sourceKey, @Nonnull BulkRelationshipsRequest bulkRelationshipsRequest, RequestOptions requestOptions) throws CliniaRuntimeException
      Bulk create, update, or delete relationships. The request body should contain a list of operations.
      Parameters:
      sourceKey - The source key. (required)
      bulkRelationshipsRequest - The request body should contain a list of relationships to create, update, or delete. (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • bulkRelationships

      public V1BulkResponse bulkRelationships(@Nonnull String sourceKey, @Nonnull BulkRelationshipsRequest bulkRelationshipsRequest) throws CliniaRuntimeException
      Bulk create, update, or delete relationships. The request body should contain a list of operations.
      Parameters:
      sourceKey - The source key. (required)
      bulkRelationshipsRequest - The request body should contain a list of relationships to create, update, or delete. (required)
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • bulkRelationshipsAsync

      public CompletableFuture<V1BulkResponse> bulkRelationshipsAsync(@Nonnull String sourceKey, @Nonnull BulkRelationshipsRequest bulkRelationshipsRequest, RequestOptions requestOptions) throws CliniaRuntimeException
      (asynchronously) Bulk create, update, or delete relationships. The request body should contain a list of operations.
      Parameters:
      sourceKey - The source key. (required)
      bulkRelationshipsRequest - The request body should contain a list of relationships to create, update, or delete. (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • bulkRelationshipsAsync

      public CompletableFuture<V1BulkResponse> bulkRelationshipsAsync(@Nonnull String sourceKey, @Nonnull BulkRelationshipsRequest bulkRelationshipsRequest) throws CliniaRuntimeException
      (asynchronously) Bulk create, update, or delete relationships. The request body should contain a list of operations.
      Parameters:
      sourceKey - The source key. (required)
      bulkRelationshipsRequest - The request body should contain a list of relationships to create, update, or delete. (required)
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • bulkResources

      public V1BulkResponse bulkResources(@Nonnull String sourceKey, @Nonnull BulkResourcesRequest bulkResourcesRequest, RequestOptions requestOptions) throws CliniaRuntimeException
      Bulk create, update, or delete resources. The request body should contain a list of operations.
      Parameters:
      sourceKey - The source key. (required)
      bulkResourcesRequest - The request body should contain a list of resources to create, update, or delete. (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • bulkResources

      public V1BulkResponse bulkResources(@Nonnull String sourceKey, @Nonnull BulkResourcesRequest bulkResourcesRequest) throws CliniaRuntimeException
      Bulk create, update, or delete resources. The request body should contain a list of operations.
      Parameters:
      sourceKey - The source key. (required)
      bulkResourcesRequest - The request body should contain a list of resources to create, update, or delete. (required)
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • bulkResourcesAsync

      public CompletableFuture<V1BulkResponse> bulkResourcesAsync(@Nonnull String sourceKey, @Nonnull BulkResourcesRequest bulkResourcesRequest, RequestOptions requestOptions) throws CliniaRuntimeException
      (asynchronously) Bulk create, update, or delete resources. The request body should contain a list of operations.
      Parameters:
      sourceKey - The source key. (required)
      bulkResourcesRequest - The request body should contain a list of resources to create, update, or delete. (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • bulkResourcesAsync

      public CompletableFuture<V1BulkResponse> bulkResourcesAsync(@Nonnull String sourceKey, @Nonnull BulkResourcesRequest bulkResourcesRequest) throws CliniaRuntimeException
      (asynchronously) Bulk create, update, or delete resources. The request body should contain a list of operations.
      Parameters:
      sourceKey - The source key. (required)
      bulkResourcesRequest - The request body should contain a list of resources to create, update, or delete. (required)
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • createContainedResource

      public <T> V1Resource<T> createContainedResource(@Nonnull String sourceKey, @Nonnull String type, @Nonnull String id, @Nonnull String nestedContainsPathEqualStar, @Nonnull CreateContainedResourceRequest createContainedResourceRequest, Class<T> innerType, RequestOptions requestOptions) throws CliniaRuntimeException
      Creates a contained resource in the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      type - Type of the resource. (required)
      id - Id of the resource. (required)
      nestedContainsPathEqualStar - Path segments of the nested contain resource, with the format {containKey}/{id}. These paths segments must end with a {containKey} (odd number) since no resource id is provided. (required)
      createContainedResourceRequest - (required)
      innerType - The class held by the collection, could be your custom class or Object.
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • createContainedResource

      public <T> V1Resource<T> createContainedResource(@Nonnull String sourceKey, @Nonnull String type, @Nonnull String id, @Nonnull String nestedContainsPathEqualStar, @Nonnull CreateContainedResourceRequest createContainedResourceRequest, Class<T> innerType) throws CliniaRuntimeException
      Creates a contained resource in the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      type - Type of the resource. (required)
      id - Id of the resource. (required)
      nestedContainsPathEqualStar - Path segments of the nested contain resource, with the format {containKey}/{id}. These paths segments must end with a {containKey} (odd number) since no resource id is provided. (required)
      createContainedResourceRequest - (required)
      innerType - The class held by the collection, could be your custom class or Object.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • createContainedResourceAsync

      public <T> CompletableFuture<V1Resource<T>> createContainedResourceAsync(@Nonnull String sourceKey, @Nonnull String type, @Nonnull String id, @Nonnull String nestedContainsPathEqualStar, @Nonnull CreateContainedResourceRequest createContainedResourceRequest, Class<T> innerType, RequestOptions requestOptions) throws CliniaRuntimeException
      (asynchronously) Creates a contained resource in the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      type - Type of the resource. (required)
      id - Id of the resource. (required)
      nestedContainsPathEqualStar - Path segments of the nested contain resource, with the format {containKey}/{id}. These paths segments must end with a {containKey} (odd number) since no resource id is provided. (required)
      createContainedResourceRequest - (required)
      innerType - The class held by the collection, could be your custom class or Object.
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • createContainedResourceAsync

      public <T> CompletableFuture<V1Resource<T>> createContainedResourceAsync(@Nonnull String sourceKey, @Nonnull String type, @Nonnull String id, @Nonnull String nestedContainsPathEqualStar, @Nonnull CreateContainedResourceRequest createContainedResourceRequest, Class<T> innerType) throws CliniaRuntimeException
      (asynchronously) Creates a contained resource in the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      type - Type of the resource. (required)
      id - Id of the resource. (required)
      nestedContainsPathEqualStar - Path segments of the nested contain resource, with the format {containKey}/{id}. These paths segments must end with a {containKey} (odd number) since no resource id is provided. (required)
      createContainedResourceRequest - (required)
      innerType - The class held by the collection, could be your custom class or Object.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • createRelationship

      public <T> V1Relationship<T> createRelationship(@Nonnull String sourceKey, @Nonnull String key, @Nonnull V1Relationship v1Relationship, Class<T> innerType, RequestOptions requestOptions) throws CliniaRuntimeException
      Create a relationship between two resources in the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      key - (required)
      v1Relationship - (required)
      innerType - The class held by the collection, could be your custom class or Object.
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • createRelationship

      public <T> V1Relationship<T> createRelationship(@Nonnull String sourceKey, @Nonnull String key, @Nonnull V1Relationship v1Relationship, Class<T> innerType) throws CliniaRuntimeException
      Create a relationship between two resources in the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      key - (required)
      v1Relationship - (required)
      innerType - The class held by the collection, could be your custom class or Object.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • createRelationshipAsync

      public <T> CompletableFuture<V1Relationship<T>> createRelationshipAsync(@Nonnull String sourceKey, @Nonnull String key, @Nonnull V1Relationship v1Relationship, Class<T> innerType, RequestOptions requestOptions) throws CliniaRuntimeException
      (asynchronously) Create a relationship between two resources in the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      key - (required)
      v1Relationship - (required)
      innerType - The class held by the collection, could be your custom class or Object.
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • createRelationshipAsync

      public <T> CompletableFuture<V1Relationship<T>> createRelationshipAsync(@Nonnull String sourceKey, @Nonnull String key, @Nonnull V1Relationship v1Relationship, Class<T> innerType) throws CliniaRuntimeException
      (asynchronously) Create a relationship between two resources in the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      key - (required)
      v1Relationship - (required)
      innerType - The class held by the collection, could be your custom class or Object.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • createResource

      public <T> V1DomainResource<T> createResource(@Nonnull String sourceKey, @Nonnull String type, CreateResourceRequest createResourceRequest, Class<T> innerType, RequestOptions requestOptions) throws CliniaRuntimeException
      Create a resource in the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      type - Type of the resource. (required)
      createResourceRequest - (optional)
      innerType - The class held by the collection, could be your custom class or Object.
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • createResource

      public <T> V1DomainResource<T> createResource(@Nonnull String sourceKey, @Nonnull String type, CreateResourceRequest createResourceRequest, Class<T> innerType) throws CliniaRuntimeException
      Create a resource in the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      type - Type of the resource. (required)
      createResourceRequest - (optional)
      innerType - The class held by the collection, could be your custom class or Object.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • createResource

      public <T> V1DomainResource<T> createResource(@Nonnull String sourceKey, @Nonnull String type, Class<T> innerType, RequestOptions requestOptions) throws CliniaRuntimeException
      Create a resource in the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      type - Type of the resource. (required)
      innerType - The class held by the collection, could be your custom class or Object.
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • createResource

      public <T> V1DomainResource<T> createResource(@Nonnull String sourceKey, @Nonnull String type, Class<T> innerType) throws CliniaRuntimeException
      Create a resource in the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      type - Type of the resource. (required)
      innerType - The class held by the collection, could be your custom class or Object.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • createResourceAsync

      public <T> CompletableFuture<V1DomainResource<T>> createResourceAsync(@Nonnull String sourceKey, @Nonnull String type, CreateResourceRequest createResourceRequest, Class<T> innerType, RequestOptions requestOptions) throws CliniaRuntimeException
      (asynchronously) Create a resource in the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      type - Type of the resource. (required)
      createResourceRequest - (optional)
      innerType - The class held by the collection, could be your custom class or Object.
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • createResourceAsync

      public <T> CompletableFuture<V1DomainResource<T>> createResourceAsync(@Nonnull String sourceKey, @Nonnull String type, CreateResourceRequest createResourceRequest, Class<T> innerType) throws CliniaRuntimeException
      (asynchronously) Create a resource in the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      type - Type of the resource. (required)
      createResourceRequest - (optional)
      innerType - The class held by the collection, could be your custom class or Object.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • createResourceAsync

      public <T> CompletableFuture<V1DomainResource<T>> createResourceAsync(@Nonnull String sourceKey, @Nonnull String type, Class<T> innerType, RequestOptions requestOptions) throws CliniaRuntimeException
      (asynchronously) Create a resource in the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      type - Type of the resource. (required)
      innerType - The class held by the collection, could be your custom class or Object.
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • createResourceAsync

      public <T> CompletableFuture<V1DomainResource<T>> createResourceAsync(@Nonnull String sourceKey, @Nonnull String type, Class<T> innerType) throws CliniaRuntimeException
      (asynchronously) Create a resource in the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      type - Type of the resource. (required)
      innerType - The class held by the collection, could be your custom class or Object.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • deleteCollectionPipeline

      public void deleteCollectionPipeline(@Nonnull String sourceKey, @Nonnull String collectionKey, RequestOptions requestOptions) throws CliniaRuntimeException
      Deletes the pipeline of a collection.
      Parameters:
      sourceKey - The key of the source. (required)
      collectionKey - The key of the collection. The collection key is shared with the profile key. A collection is a container for resources. It has a root profile that specify the schema of resources. It contain also contain an ingestion pipeline that specify how resources are ingested. (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • deleteCollectionPipeline

      public void deleteCollectionPipeline(@Nonnull String sourceKey, @Nonnull String collectionKey) throws CliniaRuntimeException
      Deletes the pipeline of a collection.
      Parameters:
      sourceKey - The key of the source. (required)
      collectionKey - The key of the collection. The collection key is shared with the profile key. A collection is a container for resources. It has a root profile that specify the schema of resources. It contain also contain an ingestion pipeline that specify how resources are ingested. (required)
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • deleteCollectionPipelineAsync

      public CompletableFuture<Void> deleteCollectionPipelineAsync(@Nonnull String sourceKey, @Nonnull String collectionKey, RequestOptions requestOptions) throws CliniaRuntimeException
      (asynchronously) Deletes the pipeline of a collection.
      Parameters:
      sourceKey - The key of the source. (required)
      collectionKey - The key of the collection. The collection key is shared with the profile key. A collection is a container for resources. It has a root profile that specify the schema of resources. It contain also contain an ingestion pipeline that specify how resources are ingested. (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • deleteCollectionPipelineAsync

      public CompletableFuture<Void> deleteCollectionPipelineAsync(@Nonnull String sourceKey, @Nonnull String collectionKey) throws CliniaRuntimeException
      (asynchronously) Deletes the pipeline of a collection.
      Parameters:
      sourceKey - The key of the source. (required)
      collectionKey - The key of the collection. The collection key is shared with the profile key. A collection is a container for resources. It has a root profile that specify the schema of resources. It contain also contain an ingestion pipeline that specify how resources are ingested. (required)
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • deleteContainedResource

      public void deleteContainedResource(@Nonnull String sourceKey, @Nonnull String type, @Nonnull String id, @Nonnull String nestedContainsPathEqualStar, RequestOptions requestOptions) throws CliniaRuntimeException
      Deletes a contained resource in the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      type - Type of the resource. (required)
      id - Id of the resource. (required)
      nestedContainsPathEqualStar - Path segments of the nested contain resource, with the format {type}/{id}. These paths segments must come in pairs (even number). (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • deleteContainedResource

      public void deleteContainedResource(@Nonnull String sourceKey, @Nonnull String type, @Nonnull String id, @Nonnull String nestedContainsPathEqualStar) throws CliniaRuntimeException
      Deletes a contained resource in the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      type - Type of the resource. (required)
      id - Id of the resource. (required)
      nestedContainsPathEqualStar - Path segments of the nested contain resource, with the format {type}/{id}. These paths segments must come in pairs (even number). (required)
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • deleteContainedResourceAsync

      public CompletableFuture<Void> deleteContainedResourceAsync(@Nonnull String sourceKey, @Nonnull String type, @Nonnull String id, @Nonnull String nestedContainsPathEqualStar, RequestOptions requestOptions) throws CliniaRuntimeException
      (asynchronously) Deletes a contained resource in the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      type - Type of the resource. (required)
      id - Id of the resource. (required)
      nestedContainsPathEqualStar - Path segments of the nested contain resource, with the format {type}/{id}. These paths segments must come in pairs (even number). (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • deleteContainedResourceAsync

      public CompletableFuture<Void> deleteContainedResourceAsync(@Nonnull String sourceKey, @Nonnull String type, @Nonnull String id, @Nonnull String nestedContainsPathEqualStar) throws CliniaRuntimeException
      (asynchronously) Deletes a contained resource in the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      type - Type of the resource. (required)
      id - Id of the resource. (required)
      nestedContainsPathEqualStar - Path segments of the nested contain resource, with the format {type}/{id}. These paths segments must come in pairs (even number). (required)
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • deleteProfile

      public void deleteProfile(@Nonnull String sourceKey, @Nonnull String key, RequestOptions requestOptions) throws CliniaRuntimeException
      Delete a Profile from the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      key - Key of the profile. (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • deleteProfile

      public void deleteProfile(@Nonnull String sourceKey, @Nonnull String key) throws CliniaRuntimeException
      Delete a Profile from the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      key - Key of the profile. (required)
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • deleteProfileAsync

      public CompletableFuture<Void> deleteProfileAsync(@Nonnull String sourceKey, @Nonnull String key, RequestOptions requestOptions) throws CliniaRuntimeException
      (asynchronously) Delete a Profile from the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      key - Key of the profile. (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • deleteProfileAsync

      public CompletableFuture<Void> deleteProfileAsync(@Nonnull String sourceKey, @Nonnull String key) throws CliniaRuntimeException
      (asynchronously) Delete a Profile from the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      key - Key of the profile. (required)
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • deleteRelationship

      public void deleteRelationship(@Nonnull String sourceKey, @Nonnull String key, @Nonnull String id, RequestOptions requestOptions) throws CliniaRuntimeException
      Delete a relationship between two resources in the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      key - Key of the relationship definition. (required)
      id - Id of the relationship. (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • deleteRelationship

      public void deleteRelationship(@Nonnull String sourceKey, @Nonnull String key, @Nonnull String id) throws CliniaRuntimeException
      Delete a relationship between two resources in the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      key - Key of the relationship definition. (required)
      id - Id of the relationship. (required)
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • deleteRelationshipAsync

      public CompletableFuture<Void> deleteRelationshipAsync(@Nonnull String sourceKey, @Nonnull String key, @Nonnull String id, RequestOptions requestOptions) throws CliniaRuntimeException
      (asynchronously) Delete a relationship between two resources in the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      key - Key of the relationship definition. (required)
      id - Id of the relationship. (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • deleteRelationshipAsync

      public CompletableFuture<Void> deleteRelationshipAsync(@Nonnull String sourceKey, @Nonnull String key, @Nonnull String id) throws CliniaRuntimeException
      (asynchronously) Delete a relationship between two resources in the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      key - Key of the relationship definition. (required)
      id - Id of the relationship. (required)
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • deleteRelationshipDefinition

      public void deleteRelationshipDefinition(@Nonnull String sourceKey, @Nonnull String key, RequestOptions requestOptions) throws CliniaRuntimeException
      Delete a relationship definition from the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      key - The key or id of the relationship definition. (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • deleteRelationshipDefinition

      public void deleteRelationshipDefinition(@Nonnull String sourceKey, @Nonnull String key) throws CliniaRuntimeException
      Delete a relationship definition from the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      key - The key or id of the relationship definition. (required)
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • deleteRelationshipDefinitionAsync

      public CompletableFuture<Void> deleteRelationshipDefinitionAsync(@Nonnull String sourceKey, @Nonnull String key, RequestOptions requestOptions) throws CliniaRuntimeException
      (asynchronously) Delete a relationship definition from the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      key - The key or id of the relationship definition. (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • deleteRelationshipDefinitionAsync

      public CompletableFuture<Void> deleteRelationshipDefinitionAsync(@Nonnull String sourceKey, @Nonnull String key) throws CliniaRuntimeException
      (asynchronously) Delete a relationship definition from the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      key - The key or id of the relationship definition. (required)
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • deleteResource

      public void deleteResource(@Nonnull String sourceKey, @Nonnull String type, @Nonnull String id, RequestOptions requestOptions) throws CliniaRuntimeException
      Delete a resource from the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      type - Type of the resource. (required)
      id - Id of the resource. (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • deleteResource

      public void deleteResource(@Nonnull String sourceKey, @Nonnull String type, @Nonnull String id) throws CliniaRuntimeException
      Delete a resource from the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      type - Type of the resource. (required)
      id - Id of the resource. (required)
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • deleteResourceAsync

      public CompletableFuture<Void> deleteResourceAsync(@Nonnull String sourceKey, @Nonnull String type, @Nonnull String id, RequestOptions requestOptions) throws CliniaRuntimeException
      (asynchronously) Delete a resource from the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      type - Type of the resource. (required)
      id - Id of the resource. (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • deleteResourceAsync

      public CompletableFuture<Void> deleteResourceAsync(@Nonnull String sourceKey, @Nonnull String type, @Nonnull String id) throws CliniaRuntimeException
      (asynchronously) Delete a resource from the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      type - Type of the resource. (required)
      id - Id of the resource. (required)
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • getBulkRelationshipsResult

      public V1BulkRelationshipResult getBulkRelationshipsResult(@Nonnull String sourceKey, @Nonnull String bulkId, Boolean withReceipts, RequestOptions requestOptions) throws CliniaRuntimeException
      Get the status of a bulk relationship request.
      Parameters:
      sourceKey - The source key. (required)
      bulkId - The bulk id. (required)
      withReceipts - If set to true, the receipts of the operations will be included in the response. Else only the status of the bulk request will be returned. (optional, default to true)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • getBulkRelationshipsResult

      public V1BulkRelationshipResult getBulkRelationshipsResult(@Nonnull String sourceKey, @Nonnull String bulkId, Boolean withReceipts) throws CliniaRuntimeException
      Get the status of a bulk relationship request.
      Parameters:
      sourceKey - The source key. (required)
      bulkId - The bulk id. (required)
      withReceipts - If set to true, the receipts of the operations will be included in the response. Else only the status of the bulk request will be returned. (optional, default to true)
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • getBulkRelationshipsResult

      public V1BulkRelationshipResult getBulkRelationshipsResult(@Nonnull String sourceKey, @Nonnull String bulkId, RequestOptions requestOptions) throws CliniaRuntimeException
      Get the status of a bulk relationship request.
      Parameters:
      sourceKey - The source key. (required)
      bulkId - The bulk id. (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • getBulkRelationshipsResult

      public V1BulkRelationshipResult getBulkRelationshipsResult(@Nonnull String sourceKey, @Nonnull String bulkId) throws CliniaRuntimeException
      Get the status of a bulk relationship request.
      Parameters:
      sourceKey - The source key. (required)
      bulkId - The bulk id. (required)
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • getBulkRelationshipsResultAsync

      public CompletableFuture<V1BulkRelationshipResult> getBulkRelationshipsResultAsync(@Nonnull String sourceKey, @Nonnull String bulkId, Boolean withReceipts, RequestOptions requestOptions) throws CliniaRuntimeException
      (asynchronously) Get the status of a bulk relationship request.
      Parameters:
      sourceKey - The source key. (required)
      bulkId - The bulk id. (required)
      withReceipts - If set to true, the receipts of the operations will be included in the response. Else only the status of the bulk request will be returned. (optional, default to true)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • getBulkRelationshipsResultAsync

      public CompletableFuture<V1BulkRelationshipResult> getBulkRelationshipsResultAsync(@Nonnull String sourceKey, @Nonnull String bulkId, Boolean withReceipts) throws CliniaRuntimeException
      (asynchronously) Get the status of a bulk relationship request.
      Parameters:
      sourceKey - The source key. (required)
      bulkId - The bulk id. (required)
      withReceipts - If set to true, the receipts of the operations will be included in the response. Else only the status of the bulk request will be returned. (optional, default to true)
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • getBulkRelationshipsResultAsync

      public CompletableFuture<V1BulkRelationshipResult> getBulkRelationshipsResultAsync(@Nonnull String sourceKey, @Nonnull String bulkId, RequestOptions requestOptions) throws CliniaRuntimeException
      (asynchronously) Get the status of a bulk relationship request.
      Parameters:
      sourceKey - The source key. (required)
      bulkId - The bulk id. (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • getBulkRelationshipsResultAsync

      public CompletableFuture<V1BulkRelationshipResult> getBulkRelationshipsResultAsync(@Nonnull String sourceKey, @Nonnull String bulkId) throws CliniaRuntimeException
      (asynchronously) Get the status of a bulk relationship request.
      Parameters:
      sourceKey - The source key. (required)
      bulkId - The bulk id. (required)
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • getBulkResourcesResult

      public V1BulkResourceResult getBulkResourcesResult(@Nonnull String sourceKey, @Nonnull String bulkId, Boolean withReceipts, RequestOptions requestOptions) throws CliniaRuntimeException
      Get the status of a bulk resource request.
      Parameters:
      sourceKey - The source key. (required)
      bulkId - The bulk id. (required)
      withReceipts - If set to true, the receipts of the operations will be included in the response. Else only the status of the bulk request will be returned. (optional, default to true)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • getBulkResourcesResult

      public V1BulkResourceResult getBulkResourcesResult(@Nonnull String sourceKey, @Nonnull String bulkId, Boolean withReceipts) throws CliniaRuntimeException
      Get the status of a bulk resource request.
      Parameters:
      sourceKey - The source key. (required)
      bulkId - The bulk id. (required)
      withReceipts - If set to true, the receipts of the operations will be included in the response. Else only the status of the bulk request will be returned. (optional, default to true)
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • getBulkResourcesResult

      public V1BulkResourceResult getBulkResourcesResult(@Nonnull String sourceKey, @Nonnull String bulkId, RequestOptions requestOptions) throws CliniaRuntimeException
      Get the status of a bulk resource request.
      Parameters:
      sourceKey - The source key. (required)
      bulkId - The bulk id. (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • getBulkResourcesResult

      public V1BulkResourceResult getBulkResourcesResult(@Nonnull String sourceKey, @Nonnull String bulkId) throws CliniaRuntimeException
      Get the status of a bulk resource request.
      Parameters:
      sourceKey - The source key. (required)
      bulkId - The bulk id. (required)
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • getBulkResourcesResultAsync

      public CompletableFuture<V1BulkResourceResult> getBulkResourcesResultAsync(@Nonnull String sourceKey, @Nonnull String bulkId, Boolean withReceipts, RequestOptions requestOptions) throws CliniaRuntimeException
      (asynchronously) Get the status of a bulk resource request.
      Parameters:
      sourceKey - The source key. (required)
      bulkId - The bulk id. (required)
      withReceipts - If set to true, the receipts of the operations will be included in the response. Else only the status of the bulk request will be returned. (optional, default to true)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • getBulkResourcesResultAsync

      public CompletableFuture<V1BulkResourceResult> getBulkResourcesResultAsync(@Nonnull String sourceKey, @Nonnull String bulkId, Boolean withReceipts) throws CliniaRuntimeException
      (asynchronously) Get the status of a bulk resource request.
      Parameters:
      sourceKey - The source key. (required)
      bulkId - The bulk id. (required)
      withReceipts - If set to true, the receipts of the operations will be included in the response. Else only the status of the bulk request will be returned. (optional, default to true)
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • getBulkResourcesResultAsync

      public CompletableFuture<V1BulkResourceResult> getBulkResourcesResultAsync(@Nonnull String sourceKey, @Nonnull String bulkId, RequestOptions requestOptions) throws CliniaRuntimeException
      (asynchronously) Get the status of a bulk resource request.
      Parameters:
      sourceKey - The source key. (required)
      bulkId - The bulk id. (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • getBulkResourcesResultAsync

      public CompletableFuture<V1BulkResourceResult> getBulkResourcesResultAsync(@Nonnull String sourceKey, @Nonnull String bulkId) throws CliniaRuntimeException
      (asynchronously) Get the status of a bulk resource request.
      Parameters:
      sourceKey - The source key. (required)
      bulkId - The bulk id. (required)
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • getCollection

      public V1Collection getCollection(@Nonnull String sourceKey, @Nonnull String collectionKey, RequestOptions requestOptions) throws CliniaRuntimeException
      Get a collection from the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      collectionKey - The key of the collection. The collection key is shared with the profile key. A collection is a container for resources. It has a root profile that specify the schema of resources. It contain also contain an ingestion pipeline that specify how resources are ingested. (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • getCollection

      public V1Collection getCollection(@Nonnull String sourceKey, @Nonnull String collectionKey) throws CliniaRuntimeException
      Get a collection from the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      collectionKey - The key of the collection. The collection key is shared with the profile key. A collection is a container for resources. It has a root profile that specify the schema of resources. It contain also contain an ingestion pipeline that specify how resources are ingested. (required)
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • getCollectionAsync

      public CompletableFuture<V1Collection> getCollectionAsync(@Nonnull String sourceKey, @Nonnull String collectionKey, RequestOptions requestOptions) throws CliniaRuntimeException
      (asynchronously) Get a collection from the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      collectionKey - The key of the collection. The collection key is shared with the profile key. A collection is a container for resources. It has a root profile that specify the schema of resources. It contain also contain an ingestion pipeline that specify how resources are ingested. (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • getCollectionAsync

      public CompletableFuture<V1Collection> getCollectionAsync(@Nonnull String sourceKey, @Nonnull String collectionKey) throws CliniaRuntimeException
      (asynchronously) Get a collection from the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      collectionKey - The key of the collection. The collection key is shared with the profile key. A collection is a container for resources. It has a root profile that specify the schema of resources. It contain also contain an ingestion pipeline that specify how resources are ingested. (required)
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • getContainedResource

      public <T> V1DomainResource<T> getContainedResource(@Nonnull String sourceKey, @Nonnull String type, @Nonnull String id, @Nonnull String nestedContainsPathEqualStar, Class<T> innerType, RequestOptions requestOptions) throws CliniaRuntimeException
      Get a contained resource from the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      type - Type of the resource. (required)
      id - Id of the resource. (required)
      nestedContainsPathEqualStar - Path segments of the nested contain resource, with the format {containKey}/{id}. These paths segments must come in pairs (even number). (required)
      innerType - The class held by the collection, could be your custom class or Object.
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • getContainedResource

      public <T> V1DomainResource<T> getContainedResource(@Nonnull String sourceKey, @Nonnull String type, @Nonnull String id, @Nonnull String nestedContainsPathEqualStar, Class<T> innerType) throws CliniaRuntimeException
      Get a contained resource from the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      type - Type of the resource. (required)
      id - Id of the resource. (required)
      nestedContainsPathEqualStar - Path segments of the nested contain resource, with the format {containKey}/{id}. These paths segments must come in pairs (even number). (required)
      innerType - The class held by the collection, could be your custom class or Object.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • getContainedResourceAsync

      public <T> CompletableFuture<V1DomainResource<T>> getContainedResourceAsync(@Nonnull String sourceKey, @Nonnull String type, @Nonnull String id, @Nonnull String nestedContainsPathEqualStar, Class<T> innerType, RequestOptions requestOptions) throws CliniaRuntimeException
      (asynchronously) Get a contained resource from the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      type - Type of the resource. (required)
      id - Id of the resource. (required)
      nestedContainsPathEqualStar - Path segments of the nested contain resource, with the format {containKey}/{id}. These paths segments must come in pairs (even number). (required)
      innerType - The class held by the collection, could be your custom class or Object.
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • getContainedResourceAsync

      public <T> CompletableFuture<V1DomainResource<T>> getContainedResourceAsync(@Nonnull String sourceKey, @Nonnull String type, @Nonnull String id, @Nonnull String nestedContainsPathEqualStar, Class<T> innerType) throws CliniaRuntimeException
      (asynchronously) Get a contained resource from the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      type - Type of the resource. (required)
      id - Id of the resource. (required)
      nestedContainsPathEqualStar - Path segments of the nested contain resource, with the format {containKey}/{id}. These paths segments must come in pairs (even number). (required)
      innerType - The class held by the collection, could be your custom class or Object.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • getProfile

      public V1Profile getProfile(@Nonnull String sourceKey, @Nonnull String key, RequestOptions requestOptions) throws CliniaRuntimeException
      Get a profile from the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      key - The key or id of the profile. (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • getProfile

      public V1Profile getProfile(@Nonnull String sourceKey, @Nonnull String key) throws CliniaRuntimeException
      Get a profile from the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      key - The key or id of the profile. (required)
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • getProfileAsync

      public CompletableFuture<V1Profile> getProfileAsync(@Nonnull String sourceKey, @Nonnull String key, RequestOptions requestOptions) throws CliniaRuntimeException
      (asynchronously) Get a profile from the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      key - The key or id of the profile. (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • getProfileAsync

      public CompletableFuture<V1Profile> getProfileAsync(@Nonnull String sourceKey, @Nonnull String key) throws CliniaRuntimeException
      (asynchronously) Get a profile from the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      key - The key or id of the profile. (required)
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • getRelationship

      public <T> V1RelationshipWithIncludes<T> getRelationship(@Nonnull String sourceKey, @Nonnull String key, @Nonnull String id, List<String> includes, Class<T> innerType, RequestOptions requestOptions) throws CliniaRuntimeException
      Get a relationship from the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      key - Key of the relationship definition. (required)
      id - The unique identifier of the relationship with one of the following formats: - v1RelationshipID format: `{fromType}.{fromID},{toType}.{toID}` (e.g. `patient.123,provider.456`). You can optionally pass in the simpler `{fromID},{toID}` form. - Identifier format: `{system}:{value}:{use}` (e.g. `clinia:123:use`). (required)
      includes - List of resource types to includes with the response. Includes must be valid resource types for the given relationship definition. (optional)
      innerType - The class held by the collection, could be your custom class or Object.
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • getRelationship

      public <T> V1RelationshipWithIncludes<T> getRelationship(@Nonnull String sourceKey, @Nonnull String key, @Nonnull String id, List<String> includes, Class<T> innerType) throws CliniaRuntimeException
      Get a relationship from the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      key - Key of the relationship definition. (required)
      id - The unique identifier of the relationship with one of the following formats: - v1RelationshipID format: `{fromType}.{fromID},{toType}.{toID}` (e.g. `patient.123,provider.456`). You can optionally pass in the simpler `{fromID},{toID}` form. - Identifier format: `{system}:{value}:{use}` (e.g. `clinia:123:use`). (required)
      includes - List of resource types to includes with the response. Includes must be valid resource types for the given relationship definition. (optional)
      innerType - The class held by the collection, could be your custom class or Object.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • getRelationship

      public <T> V1RelationshipWithIncludes<T> getRelationship(@Nonnull String sourceKey, @Nonnull String key, @Nonnull String id, Class<T> innerType, RequestOptions requestOptions) throws CliniaRuntimeException
      Get a relationship from the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      key - Key of the relationship definition. (required)
      id - The unique identifier of the relationship with one of the following formats: - v1RelationshipID format: `{fromType}.{fromID},{toType}.{toID}` (e.g. `patient.123,provider.456`). You can optionally pass in the simpler `{fromID},{toID}` form. - Identifier format: `{system}:{value}:{use}` (e.g. `clinia:123:use`). (required)
      innerType - The class held by the collection, could be your custom class or Object.
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • getRelationship

      public <T> V1RelationshipWithIncludes<T> getRelationship(@Nonnull String sourceKey, @Nonnull String key, @Nonnull String id, Class<T> innerType) throws CliniaRuntimeException
      Get a relationship from the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      key - Key of the relationship definition. (required)
      id - The unique identifier of the relationship with one of the following formats: - v1RelationshipID format: `{fromType}.{fromID},{toType}.{toID}` (e.g. `patient.123,provider.456`). You can optionally pass in the simpler `{fromID},{toID}` form. - Identifier format: `{system}:{value}:{use}` (e.g. `clinia:123:use`). (required)
      innerType - The class held by the collection, could be your custom class or Object.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • getRelationshipAsync

      public <T> CompletableFuture<V1RelationshipWithIncludes<T>> getRelationshipAsync(@Nonnull String sourceKey, @Nonnull String key, @Nonnull String id, List<String> includes, Class<T> innerType, RequestOptions requestOptions) throws CliniaRuntimeException
      (asynchronously) Get a relationship from the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      key - Key of the relationship definition. (required)
      id - The unique identifier of the relationship with one of the following formats: - v1RelationshipID format: `{fromType}.{fromID},{toType}.{toID}` (e.g. `patient.123,provider.456`). You can optionally pass in the simpler `{fromID},{toID}` form. - Identifier format: `{system}:{value}:{use}` (e.g. `clinia:123:use`). (required)
      includes - List of resource types to includes with the response. Includes must be valid resource types for the given relationship definition. (optional)
      innerType - The class held by the collection, could be your custom class or Object.
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • getRelationshipAsync

      public <T> CompletableFuture<V1RelationshipWithIncludes<T>> getRelationshipAsync(@Nonnull String sourceKey, @Nonnull String key, @Nonnull String id, List<String> includes, Class<T> innerType) throws CliniaRuntimeException
      (asynchronously) Get a relationship from the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      key - Key of the relationship definition. (required)
      id - The unique identifier of the relationship with one of the following formats: - v1RelationshipID format: `{fromType}.{fromID},{toType}.{toID}` (e.g. `patient.123,provider.456`). You can optionally pass in the simpler `{fromID},{toID}` form. - Identifier format: `{system}:{value}:{use}` (e.g. `clinia:123:use`). (required)
      includes - List of resource types to includes with the response. Includes must be valid resource types for the given relationship definition. (optional)
      innerType - The class held by the collection, could be your custom class or Object.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • getRelationshipAsync

      public <T> CompletableFuture<V1RelationshipWithIncludes<T>> getRelationshipAsync(@Nonnull String sourceKey, @Nonnull String key, @Nonnull String id, Class<T> innerType, RequestOptions requestOptions) throws CliniaRuntimeException
      (asynchronously) Get a relationship from the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      key - Key of the relationship definition. (required)
      id - The unique identifier of the relationship with one of the following formats: - v1RelationshipID format: `{fromType}.{fromID},{toType}.{toID}` (e.g. `patient.123,provider.456`). You can optionally pass in the simpler `{fromID},{toID}` form. - Identifier format: `{system}:{value}:{use}` (e.g. `clinia:123:use`). (required)
      innerType - The class held by the collection, could be your custom class or Object.
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • getRelationshipAsync

      public <T> CompletableFuture<V1RelationshipWithIncludes<T>> getRelationshipAsync(@Nonnull String sourceKey, @Nonnull String key, @Nonnull String id, Class<T> innerType) throws CliniaRuntimeException
      (asynchronously) Get a relationship from the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      key - Key of the relationship definition. (required)
      id - The unique identifier of the relationship with one of the following formats: - v1RelationshipID format: `{fromType}.{fromID},{toType}.{toID}` (e.g. `patient.123,provider.456`). You can optionally pass in the simpler `{fromID},{toID}` form. - Identifier format: `{system}:{value}:{use}` (e.g. `clinia:123:use`). (required)
      innerType - The class held by the collection, could be your custom class or Object.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • getRelationshipDefinition

      public V1RelationshipDefinition getRelationshipDefinition(@Nonnull String sourceKey, @Nonnull String key, RequestOptions requestOptions) throws CliniaRuntimeException
      Get a relationship definition from the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      key - The key or the id of the relationship definition. (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • getRelationshipDefinition

      public V1RelationshipDefinition getRelationshipDefinition(@Nonnull String sourceKey, @Nonnull String key) throws CliniaRuntimeException
      Get a relationship definition from the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      key - The key or the id of the relationship definition. (required)
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • getRelationshipDefinitionAsync

      public CompletableFuture<V1RelationshipDefinition> getRelationshipDefinitionAsync(@Nonnull String sourceKey, @Nonnull String key, RequestOptions requestOptions) throws CliniaRuntimeException
      (asynchronously) Get a relationship definition from the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      key - The key or the id of the relationship definition. (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • getRelationshipDefinitionAsync

      public CompletableFuture<V1RelationshipDefinition> getRelationshipDefinitionAsync(@Nonnull String sourceKey, @Nonnull String key) throws CliniaRuntimeException
      (asynchronously) Get a relationship definition from the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      key - The key or the id of the relationship definition. (required)
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • getResource

      public <T> V1DomainResourceWithIncludes<T> getResource(@Nonnull String sourceKey, @Nonnull String type, @Nonnull String id, List<String> includes, Class<T> innerType, RequestOptions requestOptions) throws CliniaRuntimeException
      Get a resource from the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      type - Type of the resource. (required)
      id - The resource ID. It can also be an identifier with the following formats `{system}:{value}:{use}` (e.g. `clinia:123:use`). (required)
      includes - List of relationship property key (included resources) to includes with the response. Keys must be valid relationship property key for the given resource type. (optional)
      innerType - The class held by the collection, could be your custom class or Object.
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • getResource

      public <T> V1DomainResourceWithIncludes<T> getResource(@Nonnull String sourceKey, @Nonnull String type, @Nonnull String id, List<String> includes, Class<T> innerType) throws CliniaRuntimeException
      Get a resource from the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      type - Type of the resource. (required)
      id - The resource ID. It can also be an identifier with the following formats `{system}:{value}:{use}` (e.g. `clinia:123:use`). (required)
      includes - List of relationship property key (included resources) to includes with the response. Keys must be valid relationship property key for the given resource type. (optional)
      innerType - The class held by the collection, could be your custom class or Object.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • getResource

      public <T> V1DomainResourceWithIncludes<T> getResource(@Nonnull String sourceKey, @Nonnull String type, @Nonnull String id, Class<T> innerType, RequestOptions requestOptions) throws CliniaRuntimeException
      Get a resource from the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      type - Type of the resource. (required)
      id - The resource ID. It can also be an identifier with the following formats `{system}:{value}:{use}` (e.g. `clinia:123:use`). (required)
      innerType - The class held by the collection, could be your custom class or Object.
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • getResource

      public <T> V1DomainResourceWithIncludes<T> getResource(@Nonnull String sourceKey, @Nonnull String type, @Nonnull String id, Class<T> innerType) throws CliniaRuntimeException
      Get a resource from the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      type - Type of the resource. (required)
      id - The resource ID. It can also be an identifier with the following formats `{system}:{value}:{use}` (e.g. `clinia:123:use`). (required)
      innerType - The class held by the collection, could be your custom class or Object.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • getResourceAsync

      public <T> CompletableFuture<V1DomainResourceWithIncludes<T>> getResourceAsync(@Nonnull String sourceKey, @Nonnull String type, @Nonnull String id, List<String> includes, Class<T> innerType, RequestOptions requestOptions) throws CliniaRuntimeException
      (asynchronously) Get a resource from the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      type - Type of the resource. (required)
      id - The resource ID. It can also be an identifier with the following formats `{system}:{value}:{use}` (e.g. `clinia:123:use`). (required)
      includes - List of relationship property key (included resources) to includes with the response. Keys must be valid relationship property key for the given resource type. (optional)
      innerType - The class held by the collection, could be your custom class or Object.
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • getResourceAsync

      public <T> CompletableFuture<V1DomainResourceWithIncludes<T>> getResourceAsync(@Nonnull String sourceKey, @Nonnull String type, @Nonnull String id, List<String> includes, Class<T> innerType) throws CliniaRuntimeException
      (asynchronously) Get a resource from the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      type - Type of the resource. (required)
      id - The resource ID. It can also be an identifier with the following formats `{system}:{value}:{use}` (e.g. `clinia:123:use`). (required)
      includes - List of relationship property key (included resources) to includes with the response. Keys must be valid relationship property key for the given resource type. (optional)
      innerType - The class held by the collection, could be your custom class or Object.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • getResourceAsync

      public <T> CompletableFuture<V1DomainResourceWithIncludes<T>> getResourceAsync(@Nonnull String sourceKey, @Nonnull String type, @Nonnull String id, Class<T> innerType, RequestOptions requestOptions) throws CliniaRuntimeException
      (asynchronously) Get a resource from the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      type - Type of the resource. (required)
      id - The resource ID. It can also be an identifier with the following formats `{system}:{value}:{use}` (e.g. `clinia:123:use`). (required)
      innerType - The class held by the collection, could be your custom class or Object.
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • getResourceAsync

      public <T> CompletableFuture<V1DomainResourceWithIncludes<T>> getResourceAsync(@Nonnull String sourceKey, @Nonnull String type, @Nonnull String id, Class<T> innerType) throws CliniaRuntimeException
      (asynchronously) Get a resource from the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      type - Type of the resource. (required)
      id - The resource ID. It can also be an identifier with the following formats `{system}:{value}:{use}` (e.g. `clinia:123:use`). (required)
      innerType - The class held by the collection, could be your custom class or Object.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • listProfiles

      public ListProfiles200Response listProfiles(@Nonnull String sourceKey, Integer page, Integer perPage, RequestOptions requestOptions) throws CliniaRuntimeException
      List all available Profiles in the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      page - (optional)
      perPage - (optional)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • listProfiles

      public ListProfiles200Response listProfiles(@Nonnull String sourceKey, Integer page, Integer perPage) throws CliniaRuntimeException
      List all available Profiles in the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      page - (optional)
      perPage - (optional)
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • listProfiles

      public ListProfiles200Response listProfiles(@Nonnull String sourceKey, RequestOptions requestOptions) throws CliniaRuntimeException
      List all available Profiles in the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • listProfiles

      public ListProfiles200Response listProfiles(@Nonnull String sourceKey) throws CliniaRuntimeException
      List all available Profiles in the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • listProfilesAsync

      public CompletableFuture<ListProfiles200Response> listProfilesAsync(@Nonnull String sourceKey, Integer page, Integer perPage, RequestOptions requestOptions) throws CliniaRuntimeException
      (asynchronously) List all available Profiles in the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      page - (optional)
      perPage - (optional)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • listProfilesAsync

      public CompletableFuture<ListProfiles200Response> listProfilesAsync(@Nonnull String sourceKey, Integer page, Integer perPage) throws CliniaRuntimeException
      (asynchronously) List all available Profiles in the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      page - (optional)
      perPage - (optional)
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • listProfilesAsync

      public CompletableFuture<ListProfiles200Response> listProfilesAsync(@Nonnull String sourceKey, RequestOptions requestOptions) throws CliniaRuntimeException
      (asynchronously) List all available Profiles in the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • listProfilesAsync

      public CompletableFuture<ListProfiles200Response> listProfilesAsync(@Nonnull String sourceKey) throws CliniaRuntimeException
      (asynchronously) List all available Profiles in the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • listRelationshipDefinitions

      public ListRelationshipDefinitions200Response listRelationshipDefinitions(@Nonnull String sourceKey, Integer page, Integer perPage, RequestOptions requestOptions) throws CliniaRuntimeException
      List relationship definitions in the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      page - (optional)
      perPage - (optional)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • listRelationshipDefinitions

      public ListRelationshipDefinitions200Response listRelationshipDefinitions(@Nonnull String sourceKey, Integer page, Integer perPage) throws CliniaRuntimeException
      List relationship definitions in the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      page - (optional)
      perPage - (optional)
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • listRelationshipDefinitions

      public ListRelationshipDefinitions200Response listRelationshipDefinitions(@Nonnull String sourceKey, RequestOptions requestOptions) throws CliniaRuntimeException
      List relationship definitions in the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • listRelationshipDefinitions

      public ListRelationshipDefinitions200Response listRelationshipDefinitions(@Nonnull String sourceKey) throws CliniaRuntimeException
      List relationship definitions in the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • listRelationshipDefinitionsAsync

      public CompletableFuture<ListRelationshipDefinitions200Response> listRelationshipDefinitionsAsync(@Nonnull String sourceKey, Integer page, Integer perPage, RequestOptions requestOptions) throws CliniaRuntimeException
      (asynchronously) List relationship definitions in the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      page - (optional)
      perPage - (optional)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • listRelationshipDefinitionsAsync

      public CompletableFuture<ListRelationshipDefinitions200Response> listRelationshipDefinitionsAsync(@Nonnull String sourceKey, Integer page, Integer perPage) throws CliniaRuntimeException
      (asynchronously) List relationship definitions in the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      page - (optional)
      perPage - (optional)
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • listRelationshipDefinitionsAsync

      public CompletableFuture<ListRelationshipDefinitions200Response> listRelationshipDefinitionsAsync(@Nonnull String sourceKey, RequestOptions requestOptions) throws CliniaRuntimeException
      (asynchronously) List relationship definitions in the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • listRelationshipDefinitionsAsync

      public CompletableFuture<ListRelationshipDefinitions200Response> listRelationshipDefinitionsAsync(@Nonnull String sourceKey) throws CliniaRuntimeException
      (asynchronously) List relationship definitions in the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • updateRelationship

      public <T> V1Relationship<T> updateRelationship(@Nonnull String sourceKey, @Nonnull String key, @Nonnull String id, @Nonnull List<V1PatchOperation> v1PatchOperation, Class<T> innerType, RequestOptions requestOptions) throws CliniaRuntimeException
      Update a relationship between two resources in the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      key - Key of the relationship definition. (required)
      id - Id of the relationship. (required)
      v1PatchOperation - (required)
      innerType - The class held by the collection, could be your custom class or Object.
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • updateRelationship

      public <T> V1Relationship<T> updateRelationship(@Nonnull String sourceKey, @Nonnull String key, @Nonnull String id, @Nonnull List<V1PatchOperation> v1PatchOperation, Class<T> innerType) throws CliniaRuntimeException
      Update a relationship between two resources in the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      key - Key of the relationship definition. (required)
      id - Id of the relationship. (required)
      v1PatchOperation - (required)
      innerType - The class held by the collection, could be your custom class or Object.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • updateRelationshipAsync

      public <T> CompletableFuture<V1Relationship<T>> updateRelationshipAsync(@Nonnull String sourceKey, @Nonnull String key, @Nonnull String id, @Nonnull List<V1PatchOperation> v1PatchOperation, Class<T> innerType, RequestOptions requestOptions) throws CliniaRuntimeException
      (asynchronously) Update a relationship between two resources in the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      key - Key of the relationship definition. (required)
      id - Id of the relationship. (required)
      v1PatchOperation - (required)
      innerType - The class held by the collection, could be your custom class or Object.
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • updateRelationshipAsync

      public <T> CompletableFuture<V1Relationship<T>> updateRelationshipAsync(@Nonnull String sourceKey, @Nonnull String key, @Nonnull String id, @Nonnull List<V1PatchOperation> v1PatchOperation, Class<T> innerType) throws CliniaRuntimeException
      (asynchronously) Update a relationship between two resources in the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      key - Key of the relationship definition. (required)
      id - Id of the relationship. (required)
      v1PatchOperation - (required)
      innerType - The class held by the collection, could be your custom class or Object.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • upsertCollectionPipeline

      public V1Pipeline upsertCollectionPipeline(@Nonnull String sourceKey, @Nonnull String collectionKey, @Nonnull V1Pipeline v1Pipeline, RequestOptions requestOptions) throws CliniaRuntimeException
      Upserts a pipeline for a collection. If the pipeline already exists, it will be updated.
      Parameters:
      sourceKey - The key of the source. (required)
      collectionKey - The key of the collection. The collection key is shared with the profile key. A collection is a container for resources. It has a root profile that specify the schema of resources. It contain also contain an ingestion pipeline that specify how resources are ingested. (required)
      v1Pipeline - (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • upsertCollectionPipeline

      public V1Pipeline upsertCollectionPipeline(@Nonnull String sourceKey, @Nonnull String collectionKey, @Nonnull V1Pipeline v1Pipeline) throws CliniaRuntimeException
      Upserts a pipeline for a collection. If the pipeline already exists, it will be updated.
      Parameters:
      sourceKey - The key of the source. (required)
      collectionKey - The key of the collection. The collection key is shared with the profile key. A collection is a container for resources. It has a root profile that specify the schema of resources. It contain also contain an ingestion pipeline that specify how resources are ingested. (required)
      v1Pipeline - (required)
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • upsertCollectionPipelineAsync

      public CompletableFuture<V1Pipeline> upsertCollectionPipelineAsync(@Nonnull String sourceKey, @Nonnull String collectionKey, @Nonnull V1Pipeline v1Pipeline, RequestOptions requestOptions) throws CliniaRuntimeException
      (asynchronously) Upserts a pipeline for a collection. If the pipeline already exists, it will be updated.
      Parameters:
      sourceKey - The key of the source. (required)
      collectionKey - The key of the collection. The collection key is shared with the profile key. A collection is a container for resources. It has a root profile that specify the schema of resources. It contain also contain an ingestion pipeline that specify how resources are ingested. (required)
      v1Pipeline - (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • upsertCollectionPipelineAsync

      public CompletableFuture<V1Pipeline> upsertCollectionPipelineAsync(@Nonnull String sourceKey, @Nonnull String collectionKey, @Nonnull V1Pipeline v1Pipeline) throws CliniaRuntimeException
      (asynchronously) Upserts a pipeline for a collection. If the pipeline already exists, it will be updated.
      Parameters:
      sourceKey - The key of the source. (required)
      collectionKey - The key of the collection. The collection key is shared with the profile key. A collection is a container for resources. It has a root profile that specify the schema of resources. It contain also contain an ingestion pipeline that specify how resources are ingested. (required)
      v1Pipeline - (required)
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • upsertContainedResource

      public <T> V1DomainResource<T> upsertContainedResource(@Nonnull String sourceKey, @Nonnull String type, @Nonnull String id, @Nonnull String nestedContainsPathEqualStar, @Nonnull UpsertContainedResourceRequest upsertContainedResourceRequest, Class<T> innerType, RequestOptions requestOptions) throws CliniaRuntimeException
      Upserts a contained resource in the registry. If the resource already exists, it will be updated.
      Parameters:
      sourceKey - The key of the source. (required)
      type - Type of the resource. (required)
      id - Id of the resource. (required)
      nestedContainsPathEqualStar - Path segments of the nested contain resource, with the format {containKey}/{id}. These paths segments must come in pairs (even number). (required)
      upsertContainedResourceRequest - (required)
      innerType - The class held by the collection, could be your custom class or Object.
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • upsertContainedResource

      public <T> V1DomainResource<T> upsertContainedResource(@Nonnull String sourceKey, @Nonnull String type, @Nonnull String id, @Nonnull String nestedContainsPathEqualStar, @Nonnull UpsertContainedResourceRequest upsertContainedResourceRequest, Class<T> innerType) throws CliniaRuntimeException
      Upserts a contained resource in the registry. If the resource already exists, it will be updated.
      Parameters:
      sourceKey - The key of the source. (required)
      type - Type of the resource. (required)
      id - Id of the resource. (required)
      nestedContainsPathEqualStar - Path segments of the nested contain resource, with the format {containKey}/{id}. These paths segments must come in pairs (even number). (required)
      upsertContainedResourceRequest - (required)
      innerType - The class held by the collection, could be your custom class or Object.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • upsertContainedResourceAsync

      public <T> CompletableFuture<V1DomainResource<T>> upsertContainedResourceAsync(@Nonnull String sourceKey, @Nonnull String type, @Nonnull String id, @Nonnull String nestedContainsPathEqualStar, @Nonnull UpsertContainedResourceRequest upsertContainedResourceRequest, Class<T> innerType, RequestOptions requestOptions) throws CliniaRuntimeException
      (asynchronously) Upserts a contained resource in the registry. If the resource already exists, it will be updated.
      Parameters:
      sourceKey - The key of the source. (required)
      type - Type of the resource. (required)
      id - Id of the resource. (required)
      nestedContainsPathEqualStar - Path segments of the nested contain resource, with the format {containKey}/{id}. These paths segments must come in pairs (even number). (required)
      upsertContainedResourceRequest - (required)
      innerType - The class held by the collection, could be your custom class or Object.
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • upsertContainedResourceAsync

      public <T> CompletableFuture<V1DomainResource<T>> upsertContainedResourceAsync(@Nonnull String sourceKey, @Nonnull String type, @Nonnull String id, @Nonnull String nestedContainsPathEqualStar, @Nonnull UpsertContainedResourceRequest upsertContainedResourceRequest, Class<T> innerType) throws CliniaRuntimeException
      (asynchronously) Upserts a contained resource in the registry. If the resource already exists, it will be updated.
      Parameters:
      sourceKey - The key of the source. (required)
      type - Type of the resource. (required)
      id - Id of the resource. (required)
      nestedContainsPathEqualStar - Path segments of the nested contain resource, with the format {containKey}/{id}. These paths segments must come in pairs (even number). (required)
      upsertContainedResourceRequest - (required)
      innerType - The class held by the collection, could be your custom class or Object.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • upsertProfile

      public V1Profile upsertProfile(@Nonnull String sourceKey, @Nonnull String key, @Nonnull UpsertProfileRequest upsertProfileRequest, RequestOptions requestOptions) throws CliniaRuntimeException
      Updating a profile is currently not supported and will return a 501.
      Parameters:
      sourceKey - The key of the source. (required)
      key - The key of the profile. It must follow pattern: `^[a-zA-Z0-9-][\\w-]{0,61}$`. (required)
      upsertProfileRequest - (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • upsertProfile

      public V1Profile upsertProfile(@Nonnull String sourceKey, @Nonnull String key, @Nonnull UpsertProfileRequest upsertProfileRequest) throws CliniaRuntimeException
      Updating a profile is currently not supported and will return a 501.
      Parameters:
      sourceKey - The key of the source. (required)
      key - The key of the profile. It must follow pattern: `^[a-zA-Z0-9-][\\w-]{0,61}$`. (required)
      upsertProfileRequest - (required)
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • upsertProfileAsync

      public CompletableFuture<V1Profile> upsertProfileAsync(@Nonnull String sourceKey, @Nonnull String key, @Nonnull UpsertProfileRequest upsertProfileRequest, RequestOptions requestOptions) throws CliniaRuntimeException
      (asynchronously) Updating a profile is currently not supported and will return a 501.
      Parameters:
      sourceKey - The key of the source. (required)
      key - The key of the profile. It must follow pattern: `^[a-zA-Z0-9-][\\w-]{0,61}$`. (required)
      upsertProfileRequest - (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • upsertProfileAsync

      public CompletableFuture<V1Profile> upsertProfileAsync(@Nonnull String sourceKey, @Nonnull String key, @Nonnull UpsertProfileRequest upsertProfileRequest) throws CliniaRuntimeException
      (asynchronously) Updating a profile is currently not supported and will return a 501.
      Parameters:
      sourceKey - The key of the source. (required)
      key - The key of the profile. It must follow pattern: `^[a-zA-Z0-9-][\\w-]{0,61}$`. (required)
      upsertProfileRequest - (required)
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • upsertRelationshipDefinition

      public V1RelationshipDefinition upsertRelationshipDefinition(@Nonnull String sourceKey, @Nonnull String key, @Nonnull UpsertRelationshipDefinitionRequest upsertRelationshipDefinitionRequest, RequestOptions requestOptions) throws CliniaRuntimeException
      Updating a relationship definition is currently not supported and will return a 501.
      Parameters:
      sourceKey - The key of the source. (required)
      key - The key of the relationship definition. It must follow pattern: `^[a-zA-Z0-9-][\\w-]{0,61}$`. (required)
      upsertRelationshipDefinitionRequest - (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • upsertRelationshipDefinition

      public V1RelationshipDefinition upsertRelationshipDefinition(@Nonnull String sourceKey, @Nonnull String key, @Nonnull UpsertRelationshipDefinitionRequest upsertRelationshipDefinitionRequest) throws CliniaRuntimeException
      Updating a relationship definition is currently not supported and will return a 501.
      Parameters:
      sourceKey - The key of the source. (required)
      key - The key of the relationship definition. It must follow pattern: `^[a-zA-Z0-9-][\\w-]{0,61}$`. (required)
      upsertRelationshipDefinitionRequest - (required)
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • upsertRelationshipDefinitionAsync

      public CompletableFuture<V1RelationshipDefinition> upsertRelationshipDefinitionAsync(@Nonnull String sourceKey, @Nonnull String key, @Nonnull UpsertRelationshipDefinitionRequest upsertRelationshipDefinitionRequest, RequestOptions requestOptions) throws CliniaRuntimeException
      (asynchronously) Updating a relationship definition is currently not supported and will return a 501.
      Parameters:
      sourceKey - The key of the source. (required)
      key - The key of the relationship definition. It must follow pattern: `^[a-zA-Z0-9-][\\w-]{0,61}$`. (required)
      upsertRelationshipDefinitionRequest - (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • upsertRelationshipDefinitionAsync

      public CompletableFuture<V1RelationshipDefinition> upsertRelationshipDefinitionAsync(@Nonnull String sourceKey, @Nonnull String key, @Nonnull UpsertRelationshipDefinitionRequest upsertRelationshipDefinitionRequest) throws CliniaRuntimeException
      (asynchronously) Updating a relationship definition is currently not supported and will return a 501.
      Parameters:
      sourceKey - The key of the source. (required)
      key - The key of the relationship definition. It must follow pattern: `^[a-zA-Z0-9-][\\w-]{0,61}$`. (required)
      upsertRelationshipDefinitionRequest - (required)
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • upsertResource

      public <T> V1DomainResource<T> upsertResource(@Nonnull String sourceKey, @Nonnull String type, @Nonnull String id, @Nonnull V1DomainResource v1DomainResource, Class<T> innerType, RequestOptions requestOptions) throws CliniaRuntimeException
      Upsert a resource in the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      type - Type of the resource. (required)
      id - Id of the resource. (required)
      v1DomainResource - (required)
      innerType - The class held by the collection, could be your custom class or Object.
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • upsertResource

      public <T> V1DomainResource<T> upsertResource(@Nonnull String sourceKey, @Nonnull String type, @Nonnull String id, @Nonnull V1DomainResource v1DomainResource, Class<T> innerType) throws CliniaRuntimeException
      Upsert a resource in the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      type - Type of the resource. (required)
      id - Id of the resource. (required)
      v1DomainResource - (required)
      innerType - The class held by the collection, could be your custom class or Object.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • upsertResourceAsync

      public <T> CompletableFuture<V1DomainResource<T>> upsertResourceAsync(@Nonnull String sourceKey, @Nonnull String type, @Nonnull String id, @Nonnull V1DomainResource v1DomainResource, Class<T> innerType, RequestOptions requestOptions) throws CliniaRuntimeException
      (asynchronously) Upsert a resource in the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      type - Type of the resource. (required)
      id - Id of the resource. (required)
      v1DomainResource - (required)
      innerType - The class held by the collection, could be your custom class or Object.
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Throws:
      CliniaRuntimeException - If it fails to process the API call
    • upsertResourceAsync

      public <T> CompletableFuture<V1DomainResource<T>> upsertResourceAsync(@Nonnull String sourceKey, @Nonnull String type, @Nonnull String id, @Nonnull V1DomainResource v1DomainResource, Class<T> innerType) throws CliniaRuntimeException
      (asynchronously) Upsert a resource in the registry.
      Parameters:
      sourceKey - The key of the source. (required)
      type - Type of the resource. (required)
      id - Id of the resource. (required)
      v1DomainResource - (required)
      innerType - The class held by the collection, could be your custom class or Object.
      Throws:
      CliniaRuntimeException - If it fails to process the API call