
                         J    S r SSKJr  SSKJr  SSKJr  SSKJr  S rS rS r	g	)
z/General utilties for Cloud Healthcare commands.    )absolute_import)division)unicode_literals)apisc                    ^  U 4S jnU$ )Nc                 b   > U (       d  g [         R                  " ST5      nUR                  5       $ )N
healthcare)r   GetMessagesModule
FhirConfig)flagmessagesapi_versions     1lib/googlecloudsdk/command_lib/healthcare/util.pyVersionedInsertEmptyFhirConfig=InsertEmptyFhirConfig.<locals>.VersionedInsertEmptyFhirConfig   s*    %%lK@H       )r   r   s   ` r   InsertEmptyFhirConfigr      s    !
 
('r   c                    ^  U 4S jnU$ )Nc                 b   > U (       d  g [         R                  " ST5      nUR                  U SS9$ )Nr	   T)annotationStoreName
storeQuote)r   r
   AnnotationConfig)annotation_storer   r   s     r   VersionedInsertAnnotationConfig?InsertAnnotationConfig.<locals>.VersionedInsertAnnotationConfig'   s8    %%lK@H$$, % ? ?r   r   )r   r   s   ` r   InsertAnnotationConfigr   &   s    ? 
)(r   c                    ^  U 4S jnU$ )zReturns a function that inserts a DicomStreamingConfig of a Dicom Store.

Args:
  api_version: the version of the API that is currently being used.

Returns:
  A DicomStreamConfig object with provided BigQueryDestinations.
c           	        > U (       d  g U R                  S5      n[        R                  " ST5      n/ nTS:X  a6  U H.  nUR                  UR	                  UR                  US9S95        M0     U$ TS:X  a6  U H.  nUR                  UR                  UR                  US9S95        M0     U$ U H.  nUR                  UR                  UR                  US9S95        M0     U$ )N,r	   v1alpha2)tableUri)bigqueryDestinationv1beta1)
splitr   r
   append.GoogleCloudHealthcareV1alpha2DicomStreamConfig5GoogleCloudHealthcareV1alpha2DicomBigQueryDestination-GoogleCloudHealthcareV1beta1DicomStreamConfig4GoogleCloudHealthcareV1beta1DicomBigQueryDestination(GoogleCloudHealthcareV1DicomStreamConfig/GoogleCloudHealthcareV1DicomBigQueryDestination)argbq_destinationsr   stream_configsdestr   s        r    VersionedInsertDicomStreamConfigAInsertDicomStreamConfig.<locals>.VersionedInsertDicomStreamConfig9   s   iinO%%lK@HNj !$hUUJJ K  V   	! ""  
		!!$hTTII J  U   	! "  "$hOODD E  P   	! "
 r   r   )r   r1   s   ` r   InsertDicomStreamConfigr3   0   s    2 
*)r   N)
__doc__
__future__r   r   r   googlecloudsdk.api_lib.utilr   r   r   r3   r   r   r   <module>r7      s%     6 &  ' ,
()"*r   