Fonction SAP BAPI_PATIENT_CHANGE - IS-H BAPI Patient.Change - Change Patient

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CLIENT BAPINALL-CLIENT C 3 Client
INSTITUTION BAPINALL-INSTITUTION C 4 '*' X Institution
PATIENTID BAPINALL-PATIENTID C 10 Patient Number
PATIENT_DATA BAPI1084INX u 838 Patient Data to Be Changed
TESTRUN BAPINALL-TESTRUN C 1 SPACE X Test Mode (No Changes in Database)

Paramètre Reférence Type Long. Description
NEW_PATIENT_DATA BAPI1084OUT u 1193 All (Changed) Patient Data
WORST_RETURNED_MSGTY BAPINALL-WORSTRETMSG C 1 Most Severe Message Type

Paramètre Reférence Long. Facultatif Description
E_ADDRESSES BAPINADDR 994 X All (Changed) Addresses
E_ADD_PHONES BAPINADDR2 53 X All (Changed) Additional Telephone Numbers
I_ADDRESSES BAPINADDRX 674 X Address Data to Be Changed
I_PHONES BAPINADDR2X 53 X Telephone Numbers to Be Changed
RETURN BAPIRET2 548 X Return Messages

Functionality
INCLUDE NBAPI_ISH
It is used to change the master record of a patient. To cancel apatient's master record, please use the method BAPI_PATIENT_CANCEL
.
If you only want to change the patient master data that is valid for allinstitutions, you need not specify an institution in the INSTITUTION
parameter if you either leave the parameter in the interface blankor enter a wildcard ('*'). In this case, note that noinstitution-specific data is stored, even if it is specified. The publiclist block PUBLISTBLOCK and the parish PARISH fall intothis category.
You can only change patient master records with self-payer insurancerelationships in relation to a particular institution. You then have toexecute program RNUVVDEBI to make the changes to thecorresponding customers in FI.

Notes
INCLUDE NBAPI_PRECOND_AUTHORITY
N_PATI_AKT.
INCLUDE NBAPI_TESTMODE
INCLUDE BAPI_RET

Description
The patient data as it would be saved (if TESTRUN = 'X') or wassaved is returned in this parameter. This is all data and not simplychanged data.
Adresses are passed in a separate table E_ADDRESSES. Onlyreferences to the corresponding address data records in theE_ADDRESSES table are specified in this structure.
INCLUDE NBAPI_WORST_RETURNED_MSGTY
INCLUDE NBAPI_CLIENT
INCLUDE NBAPI_INSTITUTION
INCLUDE NBAPI_PATIENTID

Description
You specify the patient data you wish to change in this structure. Youonly pass the data, which is to be changed, in the corresponding fieldsof this structure. The system only evaluates those fields whosecorresponding "X field" contains an "X". The corresponding "X field" isthe field with the same name and the suffix "X" in the structure.
You pass the address data you wish to change in a separate tableI_ADDRESSES. In this structure, you only have to specifyreferences to the related address data records in table I_ADDRESSES
if you pass (or want to modify) address data. You again have toplace an "X" in the "X field" corresponding to the address number ifaddress data of this special address is to be changed.
Note: You can also specify an unknown birthdate. The system supports thefollowing date formats for this purpose:
00.12.1911 => internal date 01.12.1911 day unknown
00.00.1911 => internal date 01.01.1911 month unknown
05.12.0000 => internal date 01.01.1880 year unknown *)
If you specify the date 00.00.0000, this date is not converted, since itis an invalid value (birthdate initial).
*) The year is preset with the system parameter MIN_DATE.
INCLUDE NBAPI_TESTRUN
INCLUDE NBAPI_ADDRESSES
INCLUDE NBAPI_ADD_PHONES
The address data you want to change is passed in this table.
You only pass the data, which should be changed, in the correspondingfields of this structure. The system only evaluates those fields whosecorresponding "X field" contains an "X". The corresponding "X field" isthe field with the same name and the suffix "X" in the structure.
The field ADDR_NO contains a unique reference to the relatedobject. This reference is only used for the unique assignment ofaddresses.
A separate table I_PHONES is used for passing telephone numbersyou wish to change. When you wish to modify telephone numbers for anaddress record, you have to place an "X" in the "X field" PHONESX
here (in the structure I_ADDRESSES). You then need to storeall of the telephone numbers for this address (under the sameADDR_NO) in the table I_PHONES. It is not possible tochange individual telephone numbers for an address. If there is an "X"in the field PHONESX, all telephone numbers for this address arealways deleted in the database. The telephone numbers passed in thetable I_PHONES are then saved.

Description
You pass the new telephone numbers to the method in this table.
The field ADDR_NO contains a unique reference to the relatedaddress. This reference is only used for the unique assignment oftelephone numbers.
If you wish to modify telephone numbers for an address record, you haveto store all of the new telephone numbers for this address (under thesame ADDR_NO, but with different SEQ_NO) in the tableI_PHONES. It is not possible to change individual telephonenumbers for an address. If there is an "X" in the field PHONESXfor the related addresss record, all of the telephone numbers thatexist for this address are always deleted in the database. Thetelephone numbers passed in the table I_PHONES are then saved.

Description
Errors that occur are returned in this table.

Value range
INCLUDE NBAPI_RETS_PATIENT_CHANGE OBJECT DOKU ID TX