Fonction SAP BAPI_CASEDIAGNOSIS_MODIFYMULT - IS-H BAPI CaseDiagnosis.ChangeMultiple - Change Diagnoses for Case

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CLIENT BAPINALL-CLIENT C 3 Client
INSTITUTION BAPI2098DATA-INSTITUTION C 4 Institution
PATCASEID BAPI2098DATA-PATCASEID C 10 Case Number
TESTRUN BAPINALL-TESTRUN C 1 SPACE X Test Mode (No Changes in Database)

Paramètre Reférence Type Long. Description
WORST_RETURNED_MSGTY BAPINALL-WORSTRETMSG C 1 Most Severe Message Type

Paramètre Reférence Long. Facultatif Description
INPUT_CHANGE_DIAGNOSIS BAPI2098DATAX 705 Table Containing Diagnosis Data to Be Changed
INPUT_CREATE_DIAGNOSIS BAPI2098DATA 884 Table Containing Diagnosis Data to be Created
INPUT_DELETE_DIAGNOSIS BAPI2098DELETE 3 Table Containing Diagnosis Data to Be Deleted
OUTPUT_DIAGNOSIS BAPI2098DATA 884 X Table Containing Generated Diagnosis Data
RETURN BAPIRET2 548 X Return Messages

Functionality
INCLUDE NBAPI_ISH
It is used to create, change and cancel diagnoses of a specific case.The input data must be passed in the following parameters:

  • INPUT_CREATE_DIAGNOSIS - diagnosis records to be created

  • INPUT_CHANGE_DIAGNOSIS - diagnosis records to be changed

  • INPUT_DELETE_DIAGNOSIS - diagnosis records to be canceled.
  • Notes
    INCLUDE NBAPI_DIAPARAMS
    Concerning the diagnoses to be changed, the same checks are run as whendiagnoses are created. The following is checked:
    INCLUDE NBAPI_DIACHECKS
    The following additional checks are performed:

    • Is there a relationship between diagnosis and procedure

    • Is the case final billed.

    • INCLUDE NBAPI_DIASET

      Further information
      To be able to make the changes, you require the authorizationN_NDIA_ORG.
      INCLUDE NBAPI_WORST_RETURNED_MSGTY
      INCLUDE NBAPI_CLIENT
      INCLUDE NBAPI_INSTITUTION
      INCLUDE NBAPI_PATCASEID
      INCLUDE NBAPI_TESTRUN

      Description
      In this table, you specify the data of the case-related diagnoses to becreated.
      This is a structure with checkboxes; i.e. you have to flag thediagnosis data to be modified with an "X". The input parametersINSTITUTION and PATCASEID together with the sequencenumber DIAG_SEQNO of the respective diagnosis record are used tochange a diagnosis.
      All of the fields that belong to the transfer structure are checked forconsistency and validity.

      Description
      In this table, you specify the data of the case-related diagnoses to becreated.
      When diagnoses are created, the fields CLIENT, INSTITUTION
      and PATCASEID of the entries in this table are transferredfrom the input parameters of the same name and are not checked. If adiagnosis sequence number (field LFDNR) is also passed to the method,it is ignored too.
      For each diagnosis, an existing movement number of the case (fieldMOVEMNT_SEQNO) must be specified to which the diagnosis can beassigned. If necessary, the movement number can be changed when thediagnosis is created, since the BAPI determines the movement denotingentry into the department and assigns the diagnosis to this movement.
      All of the fields of the respective diagnosis record are transferredfor creating the diagnosis. The consistency and validity of all IS-Hfields is checked, but no checks are performed on the transferredIS-H*MED fields.

      Description
      In this table you specify the data for the case-related diagnoses to bedeleted.
      For each diagnosis to be deleted, the sequence number of the diagnosismust be specified in the field DIAG_SEQNO.

      Description
      This table contains the diagnosis records as they were changed in thedatabase.
      It does not contain the diagnoses of the input table that could not bechanged on account of incorrect data. The changed data can differ fromthe entered data if field contents were empty or inconsistent.

      Description
      INCLUDE BAPI_RET

      Value range
      The following error messages can occur:
      INCLUDE DIA_ERRORS

      • N6 570: Diagnosis & does not exist for case &

      • N6 514: Movement of case & & is not assigned to an org. unit

      • N6 519: Enter a diagnosis

      • N6 523: A hospital main diagnosis has already been entered for case & &

      • N6 569: Diagnosis will be flagged as a treatment diagnosis

      • N6 543: Discharge diagnosis may have been output on the final billing
      • form
        • N6 546: Diagnosis & is assigned to a surgery

        • N6 525: You have not specified the number of surgeries