Fonction SAP BAPI_CASEPROCEDURE_CHANGEMULT - IS-H BAPI CaseProcedure.ChangeMultiple - Change Case-Related Procedures

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CLIENT BAPINALL-CLIENT C 3 Client
INSTITUTION BAPI1303DATA-INSTITUTION C 4 Institution
PATCASEID BAPI1303DATA-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
CASEPROCEDURE_CASSDIA BAPI1303CASSDIA 34 X Assignments to Diagnoses to Be Created
CASEPROCEDURE_CASSSRV BAPI1303CASSSRV 43 X Assignments to Services to Be Created
CASEPROCEDURE_CDATA BAPI1303CDATA 228 Data for Procedures to Be Created
RETURN BAPIRET2 548 X Return Messages

Functionality
INCLUDE NBAPI_ISH
It changes procedures for a specific case. Service assignments anddiagnosis assignments can be created for the procedures. For this to bepossible, the services and diagnoses must exist in the database.
You can change

  • Movement-related procedures

  • Including assignments to services and/or diagnoses, if required
    • Case-related procedures

    • Procedures relevant to DRGs.

    • All error, warning and information messages that are generated arecollected in the table RETURN. The most severe error type isreturned in the parameter WORST_RETURNED_MSGTY.
      The consistency of the data passed to the method can be checked in testmode.
      Services or diagnoses cannot be assigned to case-related andDRG-relevant procedures. If assignments to case-related procedures arenevertheless passed in the table CASEPROCEDURE_CASSSRV orCASEPROCEDURE_CASSDIA, the entire procedure record is flagged as erroredand its processing is discontinued.
      The service assignments and/or diagnosis assignments to be created mustbe linked to the relevant procedure via the field CASEPROCEDURE_CASSSRV-
      PRC_ACTIONSEQNO or CASEPROCEDURE_CASSDIA-
      PRC_ACTIONSEQNO
      The fields RULETYPE, ACTIONSEQNO and DIA_ACTIONSEQNO are currently notactive, and, as such, can remain initial.
      Service assignments and diagnosis assignments for which a procedurerecord does not exist are flagged internally as containing errors, andare not taken into account. This also applies if, for example, onlyservice assignments and diagnosis assignments are to be deleted, but theprocedure itself is not to be modified. In such cases also you have topass a procedure record in the table CASEPROCEDURE_CDATA and allof the assignments to be deleted in the respective tables. FillSUPROC_SEQNO with the sequence number of the procedure, PRC_ACTIONSEQNOwith a consecutive number and specify ACTION ='U' for change.
      The procedure is linked to your assignments via the fieldPRC_ACTIONSEQNO. For example, for a diagnosis assignment to bedeleted, fill the table CASEPROCEDURE_CASSDIA. In this casen the fieldPRC_ACTIONSEQNO contains the same number as the associated procedurerecord in the table CASEPROCEDURE_CDATA. As ACTION, specify 'D' fordelete and in DIAG_SEQNO, specify the diagnosis number of theassignment.
      At present, the services and diagnoses to be assigned must alreadyexist in the database.
      If the service number or diagnosis number is not found in the internaltable or in the database, the procedure will not be changed, since theentire process is errored.
      If the procedure to be changed is a case-related procedure, in otherwords, the procedure is not assigned to a surgery movement, the surgicalprocedure code may be overwritten here also. Thus, when changingcase-related procedures, you can include a different procedure code inthe data passed to the method. If you want to overwrite the procedurecode, fill the fields SURPROC_SEQNO (sequence number for the procedureto be changed), PRC_ACTIONSEQNO with a consecutive number, ACTION with'U' for change and SG_PR_CODE with a new surgical procedure code in thetable CASEPROCEDURE_CDATA.
      You can store a comment (max. length 50-characters) pertaining to aprocedure via the field PROC_REMARK. Integration with theSAPscript editor is currently not supported.

      Notes
      INCLUDE NBAPI_PRECOND_AUTHORITIES
      RESET N1
      N_NICP_FAL
      Creation, modification and deletion of procedures with assignments
      INCLUDE BAPI_RET

      Further information
      The following activities are not implemented in the currentversion of this method:
      The automatic generation of services as carried out in surgical dataentry.
      The automatic assignment of movement-related procedures to asurgery-related service (surgical procedure).
      The automatic assignment of movement-related procedures to a diagnosis.
      The modification or creation of SAPscript long texts.
      INCLUDE NBAPI_WORST_RETURNED_MSGTY
      INCLUDE NBAPI_CLIENT
      INCLUDE NBAPI_INSTITUTION
      INCLUDE NBAPI_PATCASEID
      INCLUDE NBAPI_TESTRUN

      Description
      If you want to create or delete additional diagnosis assignments for aprocedure, you can specify these assignments in this table.
      Please note the following rules when filling the table:

      • The field RULETYPE is currently inactive and, as such, can be
      • left empty.
        • In the field PRC_ACTIONSEQNO, specify the number of the
        • procedure record for which the diagnosis assignment is to be created ordeleted. The diagnosis assignments are linked with their correspondingprocedure record in the tables CASEPROCEDURE_CDATA andCASEPROCEDURE_CASSDIA via this field.
          • The field DIA_ACTIONSEQNO is currently inactive, and, as such,
          • can be left empty.
            • You have to specify an "I" for "Create Diagnosis Assignment" or a "D"
            • for "Delete Diagnosis Assignment" in the field ACTION.
              • The sequence number of a diagnosis that exists for the case must be
              • specified in the field DIAG_SEQNO.
                Note that diagnosis assignments can only be created formovement-related procedures.

                Description
                If you want to create, change, or delete additional service assignmentsfor a procedure, you can specify these assignments in this table.
                Please note the following rules when filling the table:

                • The field RULETYPE is currently inactive, and, as such can be
                • left empty.
                  • In the field PRC_ACTIONSEQNO, specify the number of the
                  • procedure record for which the service assignment is to be created ordeleted. The service assignments are linked with the correspondingprocedure record in the tables CASEPROCEDURE_CDATA andCASEPROCEDURE_CASSSRV via this field.
                    • The field ACTIONSEQNO is currently inactive, and, as such, can
                    • be left empty.
                      • You have to specify an "I" for "Create Service Assignment" or a "D" for
                      • "Delete Service Assignment" in the field ACTION.
                        • The sequence number of a service that exists for the case must be
                        • specified in the field SERVICE_SEQNO.
                          Note that service assignments can only be created for movement-relatedprocedures.

                          Description
                          In this table you specify the procedure data to be changed.
                          Please note the following rules when filling the table:

                          • In the field SURPROC_SEQNO, specify the sequence number of the
                          • surgical procedure code to be changed.
                            • The field RULETYPE is currently not active, and, as such, can be
                            • left empty.
                              • In the field PRC_ACTIONSEQNOeach surgical procedure code to be changed. "1" for the first tableentry, "2" for the second table entry and so on.
                                • Specify "U" (for Update) in the field ACTION.

                                • The field MOVEMENT_PROPOSAL must not be filled in change mode,
                                • since it only used for determining the default values for the creationof a new procedure.
                                  • The field DRG_MODE must be flagged ("X") if the procedure is a
                                  • case-related procedure that was created in a DRG catalog and the DRGcatalog is different to the surgical procedure catalog defined inCustomizing for IS-H. In such cases, the procedures catalog or thesurgical procedure code can also be modified.
                                    • You must leave the field MOVEMENT_PROPOSAL empty. This field can
                                    • only be set when a new surgical procedure code is created.
                                      You can specify attributes of the procedures to be changed in thefields of the table CASEPROCEDURE_CDATA for which a field withthe same name and the suffix "X" exists in the structure. The relevantattribute is only evaluated if the corresponding "X field" contains an"X".
                                      You can make entries in the fields BEGINDATE, BEGINTIME,ENDDATE, DEPTOU and PERFOU only for case-relatedprocedures. A procedure is related to exactly one case if it is notassigned to a surgery movement, in other words the field NICP-LFDBEW isinitial in the database.
                                      Similarly, you can change the procedure code (ICPML) only forcase-related procedures.
                                      The method attempts to generate each record passed to it. Recordscontaining errors are flagged (by "!" in the fieldCASEPROCEDURE_CDATA-ACTION and skipped. Any errors that occurredare collected in the parameter RETURN.
                                      If you want to create additional service assignments for a procedure,you can specify these assignments in the tableCASEPROCEDURE_CASSSRV. To create diagnosis assignments, you mustfill the table CASEPROCEDURE_CASSDIA. In such cases, the relateddata records must be linked explicitly via the fields RULETYPEand PRC_ACTIONSEQNO. The field ACTIONSEQNO contains asequence number of your choosing. The entry of service assignments anddiagnosis assignments is only possible for movement-related procedures.
                                      If a procedure is assigned to a service and this service has beenbilled for, changes to the procedure or to its assignments are notallowed.

                                      Description
                                      Errors that occurred are returned in this table.

                                      Value range
                                      The following error messages can occur:

                                      • NC603:,,,,Current client is , but data is
                                      • determined for client
                                        • MC600:,,,,System error occurred during lock management

                                        • MC601:,,,,Object requested is currently locked by user

                                          • MC602:,,,,The requested object is locked by another
                                          • transaction
                                            • MC603:,,,,Lock table overflow

                                            • DA300:,,,,No active nametab exists for

                                            • NICP002:,,You are not authorized to create or change
                                            • procedures
                                              • NS016:,,,,Institution does not exist

                                              • N1117:,,,,Institution does not exist

                                              • N1034:,,,,Case does not exist

                                              • N1613:,,,,You are not authorized to process this case in
                                              • institution
                                                • N1601:,,,,Number of parameters in check object
                                                • is invalid
                                                  • N1602:,,,,Specified object is not
                                                  • maintained in user master
                                                    • N1603:,,,,No profile is entered in user master

                                                    • N1604:,,,,Authorization for
                                                    • to be checked not found in user master
                                                      • N1606:,,,,You are not authorized to carry out actions in
                                                      • the SAP System
                                                        • N1605:,,,,User master is set up incorrectly
                                                        • (SY-SUBRC = )
                                                          • N1026:,,,,Case is canceled

                                                          • N3298:,,,,Case is billed; you can only make certain
                                                          • changes to procedures
                                                            • BS005:,,,,Process & is not supported (&) (Med. Status)

                                                            • BS006:,,,,"&" is not allowed (&) (Med. Status)

                                                            • BS059:,,,,No authorization for activating user status &

                                                            • BS060:,,,,No authorization for deleting user status &

                                                            • N1002:,,,,Case has no other movements

                                                            • N1114:,,,,No entry for system parameter in inst. &
                                                            • (time-dep.) on &
                                                              • 00002:,,,,Enter a valid value

                                                              • NICP005:,,Invalid processing mode (only & allowed
                                                              • here)
                                                                • NICP006:,,Enter a valid procedure code

                                                                • NICP008:,,Movement with sequence number & does not
                                                                • exist
                                                                  • NICP009:,,Cannot find number range interval for
                                                                  • ISH_NICP
                                                                    • NICP010:,,Invalid processing mode &

                                                                    • NICP011:,,Invalid service assignment

                                                                    • NICP012:,,Invalid diagnosis assignment

                                                                    • NICP013:,,Procedure is assigned to movement. You
                                                                    • cannot enter date/OUs.
                                                                      • NICP014:,,You cannot specify the entry sequence

                                                                      • NICP015:,,Source specifications for procedure &1 are
                                                                      • incomplete
                                                                        • NICP016:,,Source specifications for procedure &1 are
                                                                        • illegal
                                                                          • NICP017:,,Source specifications for procedure &1 are
                                                                          • invalid
                                                                            • NICP018:,,Invalid procedure action in a service
                                                                            • assignment
                                                                              • NICP019:,,Invalid procedure action in a diagnosis
                                                                              • assignment
                                                                                • NICP020:,,You cannot assign procedure & to a movement

                                                                                • NICP021:,,Diagnosis &1/&2/&3 does not exist

                                                                                • NICP023:,,Catalog & does not match surgical procedure
                                                                                • catalog &
                                                                                  • NICP024:,,Procedure & is already assigned to movement

                                                                                    • NICP025:,,Illegal specification of procedure catalog &

                                                                                    • NICP026:,,Selecting DRG Relevant is not allowed

                                                                                    • NICP027:,,You have already made this service
                                                                                    • assignment
                                                                                      • NICP028:,,You have already made this diagnosis
                                                                                      • assignment
                                                                                        • NICP029:,,Procedure & is case-related. Service
                                                                                        • assignment is not possible.
                                                                                          • NICP030:,,Procedure & is case-related. Diagnosis
                                                                                          • assignment is not possible.
                                                                                            • NICP031:,,Service & is extended service. Assignment is
                                                                                            • not possible.
                                                                                              • NICP032:,,Service &1 is not assigned to movement &2

                                                                                              • NICP033:,,Diagnosis &1 is not assigned to movement &2

                                                                                              • NICP034:,,Indicator is not permitted for internal
                                                                                              • procedure &1
                                                                                                • NICP035:,,Missing entry in field LNRIC.

                                                                                                • NICP036:,,Illegal entry in field ICPML

                                                                                                • NICP037:,,Illegal entry in field LFDNR

                                                                                                • NICP038:,,Assignment to service & & already exists

                                                                                                • NICP039:,,Assignment to service & & does not exist

                                                                                                • NICP040:,,Assignment to diagnosis & & already exists

                                                                                                • NICP041:,,Assignment to diagnosis & & does not exist

                                                                                                • NICP042:,,Service assignment is not permitted for
                                                                                                • internal procedure &
                                                                                                  • NICP043:,,Diagnosis assignment is not permitted for
                                                                                                  • internal procedure &
                                                                                                    • NICP048:,,Procedure &1 has service assignments. Case
                                                                                                    • assignment is not possible.
                                                                                                      • NICP049:,,Procedure &1 has diagnosis assignments. Case
                                                                                                      • assignment is not possible.
                                                                                                        • NICP056:,,Specify localization for procedure &

                                                                                                        • NICP057:,,Localization &1 is invalid

                                                                                                        • NICP061:,,Procedure &1: Catalog changed from <(>
                                                                                                        • <<)>(>&2 to &3 - Check
                                                                                                          • NICP064:,,Quantities and units of measure cannot be
                                                                                                          • entered for procedure &
                                                                                                            • NICP065:,,Procedure & is quantity-based. Enter a
                                                                                                            • quantity.
                                                                                                              • NICP066:,,Procedure & is quantity-based. Enter a unit
                                                                                                              • of measure.
                                                                                                                • NICP067:,,You can only enter procedure & in unit of
                                                                                                                • measure &
                                                                                                                  • NICP068:,,Units & and & have different dimensions

                                                                                                                  • NICP069:,,Unit of measure changed from &1 to &2; Check
                                                                                                                  • quantity specified.
                                                                                                                    • NICP070:,,Assign procedure to case &1 or cancel it

                                                                                                                    • NICP072:,,Specifications for changing procedure &1 are
                                                                                                                    • not complete
                                                                                                                      • N3294:,,,,You can only enter number of surgeries for
                                                                                                                      • procedure flagged as main code
                                                                                                                        • N1563:,,,,Movement number & of case does not
                                                                                                                        • exist
                                                                                                                          • N1298:,,,,Visit type & is not a surgery (check your
                                                                                                                          • entry)
                                                                                                                            • N0466:,,,,Service catalog & is not defined in
                                                                                                                            • institution &
                                                                                                                              • N3891:,,,,Procedure code & does not exist in catalog &

                                                                                                                              • N1356:,,,,Surgery type &2 is not supported in
                                                                                                                              • institution &1 (check your entry)
                                                                                                                                • N3810:,,,,Specify a valid DRG category

                                                                                                                                • N3854:,,,,You have not set the main code ind. for a
                                                                                                                                • surg. procedure (check)
                                                                                                                                  • N2041:,,,,Organizational unit & does not exist

                                                                                                                                  • N2046:,,,,Organizational unit & does not exist in
                                                                                                                                  • institution &
                                                                                                                                    • N2047:,,,,Org. ID & is not valid in the given period

                                                                                                                                    • N1198:,,,,Organizational unit & is currently not
                                                                                                                                    • available
                                                                                                                                      • N1199:,,,,Organizational unit & has not been released

                                                                                                                                      • NE501:,,,,Service &1/&2/&3 is not defined

                                                                                                                                      • N3767:,,,,No valid procedures catalog (&) exists between
                                                                                                                                      • and
                                                                                                                                        The following warning messages can occur:
                                                                                                                                        • N3432:,,,,No services match the specified selection
                                                                                                                                        • criteria
                                                                                                                                          • N3851:,,,,Main code indicator set more than once (check)