SAP Function BAPI_PATIENT_GETCASELIST - IS-H BAPI PatientCase.GetList - Cases for Patient

Parameter Reference Type Length Default Optional Text
CANCELLED_INCL BAPINALL-CANCELLED_INCL C 1 ' ' X Read Canceled Cases Also
CLIENT BAPINALL-CLIENT C 3 Client
INSTITUTION BAPINALL-INSTITUTION C 4 Institution
PATIENTID BAPINALL-PATIENTID C 10 Patient Number

Parameter Reference Type Length Text
WORST_RETURNED_MSGTY BAPINALL-WORSTRETMSG C 1 Most Severe Message Type

Parameter Reference Length Optional Text
PATCASELIST BAPI2097EXCASE 420 Table of Enhanced Case Data
RETURN BAPIRET2 548 Message Table


INCLUDE NBAPI_ISH
It returns all cases for the given patient number with additional datathat simplifies the further selection in the list PATCASELIST.
INCLUDE NBAPI_PRECOND_AUTHORITIES
RESET N1
At case list: N_FALL_FNR;
At patient list: N_PATI_AKT;
INCLUDE BAPI_RET OBJECT DOKU ID TX LANGUAGE EN
INCLUDE NBAPI_WORST_RETURNED_MSGTY OBJECT DOKU ID TX

Description
In addition to the non-canceled cases, the canceled cases should alsobe displayed.

Value range
'X' - canceled cases are also read
' ' - canceled cases are not output

Default
' '
INCLUDE NBAPI_CLIENT
INCLUDE NBAPI_INSTITUTION OBJECT DOKU ID TX
INCLUDE NBAPI_PATIENTID
INCLUDE NBAPI_EXPORTPARAM_OPTIONAL OBJECT DOKU ID TX LANGUAGE EN

Description
All cases for a patient are returned in this table.

Value range
Besides the case data, the data returned includes the following movementdata that can be used as criteria for selecting a case:
Admission date
Discharge date
Admission time
Discharge time
Admitting departmental organizational unit
Discharging departmental organizational unit
Admitting treatment organizational unit (careunit)
Discharging treatment organizational unit (careunit)
Referral type

Description
Errors that occur are returned in this table.

Value range
The following messages can occur:
* Enter a valid institution
* Authorization error
* No data matches the specified selection
* DB inconsistency for patient && case &&