It seems as though we can not process an xform where the patient identifier has a duplicate in AMRS: one identifier is of type AMRS Universal ID, and another is an identical sequence, but is a different identifier type, AMRS ID. Both are used as the primary identifier type for each respective patient, even though they are of different types.
This is admittedly a rare event, and this is also being processed via Sam Mbugua's Xforms Helper module... but I think the actual processing and error thrown is via Xforms. Every time we submit the form, xforms throws the error of duplicate patient id: "More than one patient was found with identifier xxxxxxxxx-x".
However, if the processor is picking up on the identifier_type_id, then I think it should process as usual, unless we are doing something else wrong?! For this particular form, we are trying to process the based on the following patient node (NB we do not have a patient_id here):
I heard you are working on other tickets related to AMRS, so thought I would submit this minor one too.