/AWS1/IF_TNB=>UPDATEMEDICALVOCABULARY()¶
About UpdateMedicalVocabulary¶
Updates an existing custom medical vocabulary with new values. This operation overwrites all existing information with your new values; you cannot append new terms onto an existing custom vocabulary.
Method Signature¶
METHODS /AWS1/IF_TNB~UPDATEMEDICALVOCABULARY
IMPORTING
!IV_VOCABULARYNAME TYPE /AWS1/TNBVOCABULARYNAME OPTIONAL
!IV_LANGUAGECODE TYPE /AWS1/TNBLANGUAGECODE OPTIONAL
!IV_VOCABULARYFILEURI TYPE /AWS1/TNBURI OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_tnbupmedicalvocabul01
RAISING
/AWS1/CX_TNBBADREQUESTEX
/AWS1/CX_TNBCONFLICTEXCEPTION
/AWS1/CX_TNBINTERNALFAILUREEX
/AWS1/CX_TNBLIMITEXCEEDEDEX
/AWS1/CX_TNBNOTFOUNDEXCEPTION
/AWS1/CX_TNBCLIENTEXC
/AWS1/CX_TNBSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_vocabularyname TYPE /AWS1/TNBVOCABULARYNAME /AWS1/TNBVOCABULARYNAME¶
The name of the custom medical vocabulary you want to update. Custom medical vocabulary names are case sensitive.
iv_languagecode TYPE /AWS1/TNBLANGUAGECODE /AWS1/TNBLANGUAGECODE¶
The language code that represents the language of the entries in the custom vocabulary you want to update. US English (
en-US) is the only language supported with Amazon Transcribe Medical.
iv_vocabularyfileuri TYPE /AWS1/TNBURI /AWS1/TNBURI¶
The Amazon S3 location of the text file that contains your custom medical vocabulary. The URI must be located in the same Amazon Web Services Region as the resource you're calling.
Here's an example URI path:
s3://DOC-EXAMPLE-BUCKET/my-vocab-file.txt
RETURNING¶
oo_output TYPE REF TO /aws1/cl_tnbupmedicalvocabul01 /AWS1/CL_TNBUPMEDICALVOCABUL01¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->updatemedicalvocabulary(
iv_languagecode = |string|
iv_vocabularyfileuri = |string|
iv_vocabularyname = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_vocabularyname = lo_result->get_vocabularyname( ).
lv_languagecode = lo_result->get_languagecode( ).
lv_datetime = lo_result->get_lastmodifiedtime( ).
lv_vocabularystate = lo_result->get_vocabularystate( ).
ENDIF.