We're updating the issue view to help you get more done. 

When importing a new patient, a new owner object is created even if the owner already exists

Description

Steps to reproduce:

  • Import a xar with some patient records with owners, one owner per patient record (e.g.,

  • )

Result:

  • After import, two owner objects are attached to each record: one is the original owner from the document that was imported, and the other (added automatically after import) is the creator of the document.

Two ways to check the owner objects:
1/ go to the patient record page in xml mode (localhost:8080/P0000001?xpage=xml) and look for "<owner>"; OR
2/ Import

and view the page localhost:8080/Misc/2Owners, which lists all the patient records with more than one owner.

Environment

None

Status

Assignee

Sergiu Dumitriu

Reporter

Marta Girdea

Labels

None

External issue ID

None

External issue ID

None

Fix versions

Affects versions

1.3

Priority

Medium