/AWS1/IF_CPM=>STARTRXNORMINFERENCEJOB()¶
About StartRxNormInferenceJob¶
Starts an asynchronous job to detect medication entities and link them to the RxNorm
ontology. Use the DescribeRxNormInferenceJob operation to track the status of a
job.
Method Signature¶
METHODS /AWS1/IF_CPM~STARTRXNORMINFERENCEJOB
IMPORTING
!IO_INPUTDATACONFIG TYPE REF TO /AWS1/CL_CPMINPUTDATACONFIG OPTIONAL
!IO_OUTPUTDATACONFIG TYPE REF TO /AWS1/CL_CPMOUTPUTDATACONFIG OPTIONAL
!IV_DATAACCESSROLEARN TYPE /AWS1/CPMIAMROLEARN OPTIONAL
!IV_JOBNAME TYPE /AWS1/CPMJOBNAME OPTIONAL
!IV_CLIENTREQUESTTOKEN TYPE /AWS1/CPMCLIENTREQTOKENSTRING OPTIONAL
!IV_KMSKEY TYPE /AWS1/CPMKMSKEY OPTIONAL
!IV_LANGUAGECODE TYPE /AWS1/CPMLANGUAGECODE OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_cpmstrtrxnorminfere01
RAISING
/AWS1/CX_CPMINTERNALSERVEREX
/AWS1/CX_CPMINVALIDREQUESTEX
/AWS1/CX_CPMRESOURCENOTFOUNDEX
/AWS1/CX_CPMTOOMANYREQUESTSEX
/AWS1/CX_CPMCLIENTEXC
/AWS1/CX_CPMSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
io_inputdataconfig TYPE REF TO /AWS1/CL_CPMINPUTDATACONFIG /AWS1/CL_CPMINPUTDATACONFIG¶
Specifies the format and location of the input data for the job.
io_outputdataconfig TYPE REF TO /AWS1/CL_CPMOUTPUTDATACONFIG /AWS1/CL_CPMOUTPUTDATACONFIG¶
Specifies where to send the output files.
iv_dataaccessrolearn TYPE /AWS1/CPMIAMROLEARN /AWS1/CPMIAMROLEARN¶
The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants Amazon Comprehend Medical read access to your input data. For more information, see Role-Based Permissions Required for Asynchronous Operations.
iv_languagecode TYPE /AWS1/CPMLANGUAGECODE /AWS1/CPMLANGUAGECODE¶
The language of the input documents. All documents must be in the same language.
Optional arguments:¶
iv_jobname TYPE /AWS1/CPMJOBNAME /AWS1/CPMJOBNAME¶
The identifier of the job.
iv_clientrequesttoken TYPE /AWS1/CPMCLIENTREQTOKENSTRING /AWS1/CPMCLIENTREQTOKENSTRING¶
A unique identifier for the request. If you don't set the client request token, Amazon Comprehend Medical generates one.
iv_kmskey TYPE /AWS1/CPMKMSKEY /AWS1/CPMKMSKEY¶
An AWS Key Management Service key to encrypt your output files. If you do not specify a key, the files are written in plain text.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_cpmstrtrxnorminfere01 /AWS1/CL_CPMSTRTRXNORMINFERE01¶
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->startrxnorminferencejob(
io_inputdataconfig = new /aws1/cl_cpminputdataconfig(
iv_s3bucket = |string|
iv_s3key = |string|
)
io_outputdataconfig = new /aws1/cl_cpmoutputdataconfig(
iv_s3bucket = |string|
iv_s3key = |string|
)
iv_clientrequesttoken = |string|
iv_dataaccessrolearn = |string|
iv_jobname = |string|
iv_kmskey = |string|
iv_languagecode = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_jobid = lo_result->get_jobid( ).
ENDIF.