openchs-models 1.29.8 → 1.29.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Individual.js +1 -3
- package/package.json +1 -1
package/dist/Individual.js
CHANGED
|
@@ -53,8 +53,6 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
53
53
|
|
|
54
54
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
55
55
|
|
|
56
|
-
const mergeMap = new Map([[_ProgramEnrolment.default, "enrolments"], [_Encounter.default, "encounters"], [_IndividualRelationship.default, "relationships"], [_EntityApprovalStatus.default, "approvalStatuses"], [_Comment.default, "comments"]]);
|
|
57
|
-
|
|
58
56
|
class Individual extends _BaseEntity.default {
|
|
59
57
|
constructor(that = null) {
|
|
60
58
|
super(that);
|
|
@@ -1106,7 +1104,7 @@ _defineProperty(Individual, "directCopyFields", ["uuid", "firstName", "middleNam
|
|
|
1106
1104
|
|
|
1107
1105
|
_defineProperty(Individual, "dateFields", ["dateOfBirth", "registrationDate"]);
|
|
1108
1106
|
|
|
1109
|
-
_defineProperty(Individual, "merge", childEntityClass => _BaseEntity.default.mergeOn(
|
|
1107
|
+
_defineProperty(Individual, "merge", childEntityClass => _BaseEntity.default.mergeOn(new Map([[_ProgramEnrolment.default, "enrolments"], [_Encounter.default, "encounters"], [_IndividualRelationship.default, "relationships"], [_Comment.default, "comments"]]).get(childEntityClass)));
|
|
1110
1108
|
|
|
1111
1109
|
_defineProperty(Individual, "mergeMultipleParents", (childEntityClass, entities) => {
|
|
1112
1110
|
if (childEntityClass === _GroupSubject.default) {
|