openchs-models 1.31.18 → 1.31.19

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.
@@ -170,6 +170,22 @@ class AbstractEncounter extends _BaseEntity.default {
170
170
  this.that.lastModifiedByUUID = x;
171
171
  }
172
172
 
173
+ get filledBy() {
174
+ return this.that.filledBy;
175
+ }
176
+
177
+ set filledBy(x) {
178
+ this.that.filledBy = x;
179
+ }
180
+
181
+ get filledByUUID() {
182
+ return this.that.filledByUUID;
183
+ }
184
+
185
+ set filledByUUID(x) {
186
+ this.that.filledByUUID = x;
187
+ }
188
+
173
189
  validate() {
174
190
  return _lodash.default.isNil(this.encounterDateTime) ? [new _ValidationResult.default(false, AbstractEncounter.fieldKeys.ENCOUNTER_DATE_TIME, "emptyValidationMessage")] : [_ValidationResult.default.successful(AbstractEncounter.fieldKeys.ENCOUNTER_DATE_TIME)];
175
191
  }
@@ -241,6 +257,8 @@ class AbstractEncounter extends _BaseEntity.default {
241
257
  if (!_lodash.default.isNil(resource.encounterLocation)) encounter.encounterLocation = _Point.default.fromResource(resource.encounterLocation);
242
258
  if (!_lodash.default.isNil(resource.cancelLocation)) encounter.cancelLocation = _Point.default.fromResource(resource.cancelLocation);
243
259
  (0, _AuditUtil.mapAuditFields)(encounter, resource);
260
+ encounter.filledBy = _ResourceUtil.default.getFieldValue(resource, "filledBy");
261
+ encounter.filledByUUID = _ResourceUtil.default.getFieldValue(resource, "filledByUUID");
244
262
  return encounter;
245
263
  }
246
264
 
package/dist/Encounter.js CHANGED
@@ -176,7 +176,16 @@ _defineProperty(Encounter, "schema", {
176
176
  type: "EntityApprovalStatus",
177
177
  optional: true
178
178
  }
179
- }, _AuditUtil.AuditFields)
179
+ }, _AuditUtil.AuditFields, {
180
+ filledBy: {
181
+ type: "string",
182
+ optional: true
183
+ },
184
+ filledByUUID: {
185
+ type: "string",
186
+ optional: true
187
+ }
188
+ })
180
189
  });
181
190
 
182
191
  _defineProperty(Encounter, "validationKeys", {
@@ -226,7 +226,16 @@ _defineProperty(ProgramEncounter, "schema", {
226
226
  type: "EntityApprovalStatus",
227
227
  optional: true
228
228
  }
229
- }, _AuditUtil.AuditFields)
229
+ }, _AuditUtil.AuditFields, {
230
+ filledBy: {
231
+ type: "string",
232
+ optional: true
233
+ },
234
+ filledByUUID: {
235
+ type: "string",
236
+ optional: true
237
+ }
238
+ })
230
239
  });
231
240
 
232
241
  var _default = ProgramEncounter;
package/dist/UserInfo.js CHANGED
@@ -58,6 +58,14 @@ class UserInfo extends _BaseEntity.default {
58
58
  this.that.syncSettings = x;
59
59
  }
60
60
 
61
+ get userUUID() {
62
+ return this.that.userUUID;
63
+ }
64
+
65
+ set userUUID(x) {
66
+ this.that.userUUID = x;
67
+ }
68
+
61
69
  static fromResource(resource) {
62
70
  let userInfo = new UserInfo();
63
71
  userInfo.username = resource.username;
@@ -66,6 +74,7 @@ class UserInfo extends _BaseEntity.default {
66
74
  userInfo.settings = _lodash.default.isNil(resource.settings) ? UserInfo.DEFAULT_SETTINGS : JSON.stringify(resource.settings);
67
75
  userInfo.name = resource.name;
68
76
  userInfo.syncSettings = _lodash.default.isNil(resource.syncSettings) ? '{}' : JSON.stringify(resource.syncSettings);
77
+ userInfo.userUUID = resource.userUUID;
69
78
  return userInfo;
70
79
  }
71
80
 
@@ -131,6 +140,10 @@ _defineProperty(UserInfo, "schema", {
131
140
  syncSettings: {
132
141
  type: "string",
133
142
  optional: true
143
+ },
144
+ userUUID: {
145
+ type: "string",
146
+ optional: true
134
147
  }
135
148
  }
136
149
  });
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.31.18",
4
+ "version": "1.31.19",
5
5
  "private": false,
6
6
  "repository": {
7
7
  "type": "git",