Self-mapping occurs when the <patient_id> source is HIVE and the <patient_id> value already exists in the hive. All hive patient and encounter numbers are mapped to themselves and inserted into their respective tables (either PATIENT_MAPPING or ENCOUNTER_MAPPING). The default mapping status is 'A' for ACTIVE and the source value is 'HIVE'.
Example:
<pid_set>
<pid>
<patient_id source="HIVE">1</patient_id>
</pid>
</pid_set>
The row in the PATIENT_MAPPING table will appear as follows:
PATIENT_IDE |
PATIENT_IDE_SOURCE |
PATIENT_NUM |
PATIENT_IDE_STATUS |
1 |
HIVE |
1 |
A |