Details
-
Bug
-
Status: Closed
-
TBD
-
Resolution: Won't Fix
-
None
-
None
-
Undetermined
-
Description
Daniel-
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):
<patient.patient_id openmrs_attribute="patient_id" openmrs_table="patient"/> <patient_identifier.identifier_type_id openmrs_attribute="identifier_type_id" openmrs_table="patient_identifier">8</patient_identifier.identifier_type_id> <patient.medical_record_number openmrs_attribute="identifier" openmrs_table="patient_identifier">xxxxxxxxx-x</patient.medical_record_number>
I heard you are working on other tickets related to AMRS, so thought I would submit this minor one too.
Thanks!
Louis