Kernel Toolkit 7.3 APIs Banner
Office of Information and Technology (OIT) Banner
[skip navigation]

SAVEMERG^XDRMERGB(): Save Image of Existing and Merged Data

Reference Type: Controlled Subscription, Category: Toolkit—Duplicate Record Merge, ICR#: 2338

Description

During special processing related to the Patient Merge, the IBAXDR routine needs to call the SAVEMERG^XDRMERGB API. The SAVEMERG^XDRMERGB API saves the file image of an entry involved in the merge process when only one of the entries (the entry being merged or the entry being merged into) is present in the filenum input parameter. Normally, the merge process would handle when it can identify a FROM or a TO entry that is not present based on the DINUMed values. For filenum, however, the internal entry numbers are determined from the “B”-cross-reference, and missing entries need to be handled separately.

The SAVEMERG^XDRMERGB API acts to save an image of the currently existing data for the merge entry and merged into entry in the MERGE IMAGE (#15.4) file.

Format

  SAVEMERG^XDRMERGB(filenum,ienfrom[,iento])

Input Parameters

filenum:

(required) This is the file number for the file that is being merged and for which the images are to be saved.

ienfrom:

(required) The internal entry number of the FROM entry (the entry being merged into another entry).

iento:

(optional) The internal entry number of the TO entry (the entry into which the entry is being merged).

Output

results:

Stored image.