The Scripted Merge Processor can perform merging for multiple MRNs specified in a single MRG segment. To support this behavior, you must enable the Repeating Field setting on the Merge Medical Record # chart data field.
For example, suppose the MRG segment in a merge message contains an MPI and multiple MRNs (with assigning authorities). When the Scripted Merge Processor runs, the MPI is merged as expected. However, in order for the Scripted Merge Processor to process each MRN in the MRG segment, the Repeating Field must be enabled on the Merge Medical Record # chart data field. Otherwise, only the first MRN in the MRG segment will be merged; the remaining MRNs will not be merged.
No additional configuration is required to support merging with multiple MRNs in the PID segment.