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.
@@ -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(mergeMap.get(childEntityClass)));
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) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "openchs-models",
3
3
  "description": "OpenCHS data model to be used by front end clients",
4
- "version": "1.29.8",
4
+ "version": "1.29.9",
5
5
  "private": false,
6
6
  "repository": {
7
7
  "type": "git",