Skip to content

/AWS1/IF_CNH=>GETPATIENTINSIGHTSJOB()

About GetPatientInsightsJob

Get details of a started patient insights job.

Method Signature

METHODS /AWS1/IF_CNH~GETPATIENTINSIGHTSJOB
  IMPORTING
    !IV_DOMAINID TYPE /AWS1/CNHDOMAINID OPTIONAL
    !IV_JOBID TYPE /AWS1/CNHJOBID OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_cnhgetpatinsgtjobrsp
  RAISING
    /AWS1/CX_CNHACCESSDENIEDEX
    /AWS1/CX_CNHINTERNALSERVEREX
    /AWS1/CX_CNHRESOURCENOTFOUNDEX
    /AWS1/CX_CNHTHROTTLINGEX
    /AWS1/CX_CNHVLDTNEXCEPTION
    /AWS1/CX_CNHCLIENTEXC
    /AWS1/CX_CNHSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_domainid TYPE /AWS1/CNHDOMAINID /AWS1/CNHDOMAINID

iv_jobid TYPE /AWS1/CNHJOBID /AWS1/CNHJOBID

RETURNING

oo_output TYPE REF TO /aws1/cl_cnhgetpatinsgtjobrsp /AWS1/CL_CNHGETPATINSGTJOBRSP

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->getpatientinsightsjob(
  iv_domainid = |string|
  iv_jobid = |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( ).
  lv_jobarn = lo_result->get_jobarn( ).
  lv_jobstatus = lo_result->get_jobstatus( ).
  lv_timestamp = lo_result->get_creationtime( ).
  lv_timestamp = lo_result->get_updatedtime( ).
  lo_insightsoutput = lo_result->get_insightsoutput( ).
  IF lo_insightsoutput IS NOT INITIAL.
    lv_s3uri = lo_insightsoutput->get_uri( ).
  ENDIF.
  lv_nonemptystring = lo_result->get_statusdetails( ).
  lo_patientinsightspatientc = lo_result->get_patientcontext( ).
  IF lo_patientinsightspatientc IS NOT INITIAL.
    lv_sensitivenonemptystring = lo_patientinsightspatientc->get_patientid( ).
    lv_sensitiveisodatestring = lo_patientinsightspatientc->get_dateofbirth( ).
    lv_pronouns = lo_patientinsightspatientc->get_pronouns( ).
  ENDIF.
  lo_insightscontext = lo_result->get_insightscontext( ).
  IF lo_insightscontext IS NOT INITIAL.
    lv_insightstype = lo_insightscontext->get_insightstype( ).
  ENDIF.
  lo_patientinsightsencounte = lo_result->get_encountercontext( ).
  IF lo_patientinsightsencounte IS NOT INITIAL.
    lv_sensitivenonemptystring = lo_patientinsightsencounte->get_encounterreason( ).
  ENDIF.
  lo_usercontext = lo_result->get_usercontext( ).
  IF lo_usercontext IS NOT INITIAL.
    lv_providerrole = lo_usercontext->get_role( ).
    lv_sensitivenonemptystring = lo_usercontext->get_userid( ).
    lv_specialty = lo_usercontext->get_specialty( ).
  ENDIF.
  lo_inputdataconfig = lo_result->get_inputdataconfig( ).
  IF lo_inputdataconfig IS NOT INITIAL.
    lo_fhirserver = lo_inputdataconfig->get_fhirserver( ).
    IF lo_fhirserver IS NOT INITIAL.
      lv_nonemptystring = lo_fhirserver->get_fhirendpoint( ).
      lv_sensitivenonemptystring = lo_fhirserver->get_oauthtoken( ).
    ENDIF.
    LOOP AT lo_inputdataconfig->get_s3sources( ) into lo_row.
      lo_row_1 = lo_row.
      IF lo_row_1 IS NOT INITIAL.
        lv_s3uri = lo_row_1->get_uri( ).
      ENDIF.
    ENDLOOP.
  ENDIF.
  lo_outputdataconfig = lo_result->get_outputdataconfig( ).
  IF lo_outputdataconfig IS NOT INITIAL.
    lv_s3uri = lo_outputdataconfig->get_s3outputpath( ).
  ENDIF.
ENDIF.