Fonction SAP BAPI_PATIENT_CANCEL - IS-H BAPI Patient.Cancel - Cancel Patient

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CANCEL_USER_DATE BAPINCANCEL u 22 X Data Relative to Cancellation (User, Date)
CLIENT BAPINALL-CLIENT C 3 Client
INSTITUTION BAPINALL-INSTITUTION C 4 '*' X Institution
PATIENTID BAPINALL-PATIENTID C 10 Patient 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
RETURN BAPIRET2 548 X Return Messages

Functionality
INCLUDE NBAPI_ISH
It is used to cancel the master record of a patient.
If you wish to cancel the patient in all institutions, either make noentry for the institution, or enter "*" in the parameterINSTITUTION.

Notes
INCLUDE NBAPI_PRECOND_AUTHORITIES
N_PATI_AKT.
INCLUDE BAPI_RET
INCLUDE NBAPI_WORST_RETURNED_MSGTY

Description
In this structure, you can specify the user ID and/or the cancellationdate to be saved. The system only evaluates those fields whosecorresponding "X field" contains an "X". The corresponding "X field" isa field with the same name and the suffix "X" in the structure.
These specifications are optional. If you do not make any specificationhere, the date of the method execution and the executing user areentered.
INCLUDE NBAPI_CLIENT
INCLUDE NBAPI_INSTITUTION
INCLUDE NBAPI_PATIENTID
INCLUDE NBAPI_TESTRUN

Description
Errors that occurred are returned in this table.

Value range

The following error messages can occur:

  • N1036:,,Enter a valid institution

  • N1016:,,Patient is locked by

    • N1017:,,Cannot lock patient

    • N1014:,,Patient does not exist

    • N1040:,,Patient does not exist
    • in institution
      • N1027:,,Patient is canceled

      • N1084:,,Patient is canceled in
      • institution
        • N1600:,,Authorization error

        • N1023:,,You cannot cancel

        • 00064:,,Invalid date

        • 00002:,,Enter a valid value