openchs-models 1.32.54 → 1.33.1

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.
Files changed (45) hide show
  1. package/dist/AddressLevel.js +8 -2
  2. package/dist/Checklist.js +8 -2
  3. package/dist/ChecklistItem.js +10 -3
  4. package/dist/ChecklistItemDetail.js +13 -5
  5. package/dist/ChecklistItemStatus.js +8 -2
  6. package/dist/Comment.js +8 -2
  7. package/dist/Concept.js +1 -1
  8. package/dist/ConceptAnswer.js +4 -1
  9. package/dist/CustomDashboardCache.js +4 -1
  10. package/dist/DashboardSection.js +4 -1
  11. package/dist/DashboardSectionCardMapping.js +8 -2
  12. package/dist/DocumentationItem.js +2 -1
  13. package/dist/Encounter.js +14 -5
  14. package/dist/EntityApprovalStatus.js +4 -1
  15. package/dist/Family.js +8 -2
  16. package/dist/GroupDashboard.js +6 -2
  17. package/dist/GroupPrivileges.js +8 -2
  18. package/dist/GroupRole.js +8 -2
  19. package/dist/GroupSubject.js +12 -3
  20. package/dist/IdentifierAssignment.js +8 -3
  21. package/dist/Individual.js +14 -5
  22. package/dist/Observation.js +4 -1
  23. package/dist/ProgramEncounter.js +12 -5
  24. package/dist/ProgramEnrolment.js +14 -5
  25. package/dist/ReportCard.js +2 -1
  26. package/dist/Schema.js +1 -1
  27. package/dist/Settings.js +2 -1
  28. package/dist/SubjectType.js +6 -3
  29. package/dist/application/FormElement.js +13 -5
  30. package/dist/application/FormElementGroup.js +4 -1
  31. package/dist/application/FormMapping.js +8 -3
  32. package/dist/assignment/UserSubjectAssignment.js +1 -3
  33. package/dist/draft/DraftEncounter.js +12 -4
  34. package/dist/draft/DraftSubject.js +12 -4
  35. package/dist/program/SubjectProgramEligibility.js +8 -2
  36. package/dist/relationship/IndividualRelationGenderMapping.js +8 -2
  37. package/dist/relationship/IndividualRelationship.js +12 -3
  38. package/dist/relationship/IndividualRelationshipType.js +8 -2
  39. package/dist/reports/DashboardFilter.js +4 -1
  40. package/dist/task/Task.js +11 -6
  41. package/dist/task/TaskStatus.js +5 -4
  42. package/dist/task/TaskType.js +1 -3
  43. package/dist/task/TaskUnAssignment.js +1 -3
  44. package/dist/videos/VideoTelemetric.js +4 -1
  45. package/package.json +1 -1
@@ -84,8 +84,14 @@ _defineProperty(LocationMapping, "schema", {
84
84
  primaryKey: "uuid",
85
85
  properties: {
86
86
  uuid: "string",
87
- parent: "AddressLevel",
88
- child: "AddressLevel",
87
+ parent: {
88
+ type: 'object',
89
+ objectType: 'AddressLevel'
90
+ },
91
+ child: {
92
+ type: 'object',
93
+ objectType: 'AddressLevel'
94
+ },
89
95
  voided: {
90
96
  type: "bool",
91
97
  default: false
package/dist/Checklist.js CHANGED
@@ -178,13 +178,19 @@ _defineProperty(Checklist, "schema", {
178
178
  primaryKey: "uuid",
179
179
  properties: _objectSpread({
180
180
  uuid: "string",
181
- detail: "ChecklistDetail",
181
+ detail: {
182
+ type: 'object',
183
+ objectType: 'ChecklistDetail'
184
+ },
182
185
  baseDate: "date",
183
186
  items: {
184
187
  type: "list",
185
188
  objectType: "ChecklistItem"
186
189
  },
187
- programEnrolment: "ProgramEnrolment"
190
+ programEnrolment: {
191
+ type: 'object',
192
+ objectType: 'ProgramEnrolment'
193
+ }
188
194
  }, _AuditUtil.AuditFields)
189
195
  });
190
196
 
@@ -355,7 +355,10 @@ _defineProperty(ChecklistItem, "schema", {
355
355
  primaryKey: "uuid",
356
356
  properties: _objectSpread({
357
357
  uuid: "string",
358
- detail: "ChecklistItemDetail",
358
+ detail: {
359
+ type: 'object',
360
+ objectType: 'ChecklistItemDetail'
361
+ },
359
362
  completionDate: {
360
363
  type: "date",
361
364
  optional: true
@@ -364,13 +367,17 @@ _defineProperty(ChecklistItem, "schema", {
364
367
  type: "list",
365
368
  objectType: "Observation"
366
369
  },
367
- checklist: "Checklist",
370
+ checklist: {
371
+ type: 'object',
372
+ objectType: 'Checklist'
373
+ },
368
374
  approvalStatuses: {
369
375
  type: "list",
370
376
  objectType: "EntityApprovalStatus"
371
377
  },
372
378
  latestEntityApprovalStatus: {
373
- type: "EntityApprovalStatus",
379
+ type: 'object',
380
+ objectType: 'EntityApprovalStatus',
374
381
  optional: true
375
382
  }
376
383
  }, _AuditUtil.AuditFields)
@@ -145,22 +145,30 @@ _defineProperty(ChecklistItemDetail, "schema", {
145
145
  primaryKey: "uuid",
146
146
  properties: {
147
147
  uuid: "string",
148
- concept: "Concept",
148
+ concept: {
149
+ type: 'object',
150
+ objectType: 'Concept'
151
+ },
149
152
  stateConfig: {
150
153
  type: "list",
151
- objectType: _SchemaNames.default.ChecklistItemStatus
154
+ objectType: "EmbeddedChecklistItemStatus"
152
155
  },
153
156
  form: {
154
- type: "Form",
157
+ type: 'object',
158
+ objectType: 'Form',
155
159
  optional: true
156
160
  },
157
- checklistDetail: "ChecklistDetail",
161
+ checklistDetail: {
162
+ type: 'object',
163
+ objectType: 'ChecklistDetail'
164
+ },
158
165
  voided: {
159
166
  type: "bool",
160
167
  default: false
161
168
  },
162
169
  dependentOn: {
163
- type: "ChecklistItemDetail",
170
+ type: 'object',
171
+ objectType: 'ChecklistItemDetail',
164
172
  optional: true
165
173
  },
166
174
  scheduleOnExpiryOfDependency: {
@@ -129,8 +129,14 @@ _defineProperty(ChecklistItemStatus, "schema", {
129
129
  embedded: true,
130
130
  properties: {
131
131
  state: "string",
132
- from: _SchemaNames.default.StringKeyNumericValue,
133
- to: _SchemaNames.default.StringKeyNumericValue,
132
+ from: {
133
+ type: 'object',
134
+ objectType: 'StringKeyNumericValue'
135
+ },
136
+ to: {
137
+ type: 'object',
138
+ objectType: 'StringKeyNumericValue'
139
+ },
134
140
  color: {
135
141
  type: "string",
136
142
  default: "yellow"
package/dist/Comment.js CHANGED
@@ -196,12 +196,18 @@ _defineProperty(Comment, "schema", {
196
196
  properties: _objectSpread({
197
197
  uuid: "string",
198
198
  text: "string",
199
- subject: "Individual",
199
+ subject: {
200
+ type: 'object',
201
+ objectType: 'Individual'
202
+ },
200
203
  displayUsername: "string",
201
204
  createdByUsername: "string",
202
205
  createdDateTime: "date",
203
206
  lastModifiedDateTime: "date",
204
- commentThread: "CommentThread",
207
+ commentThread: {
208
+ type: 'object',
209
+ objectType: 'CommentThread'
210
+ },
205
211
  voided: {
206
212
  type: "bool",
207
213
  default: false
package/dist/Concept.js CHANGED
@@ -413,7 +413,7 @@ _defineProperty(Concept, "schema", {
413
413
  },
414
414
  keyValues: {
415
415
  type: "list",
416
- objectType: _SchemaNames.default.KeyValue
416
+ objectType: "EmbeddedKeyValue"
417
417
  },
418
418
  voided: {
419
419
  type: "bool",
@@ -73,7 +73,10 @@ _defineProperty(ConceptAnswer, "schema", {
73
73
  primaryKey: "uuid",
74
74
  properties: {
75
75
  uuid: "string",
76
- concept: "Concept",
76
+ concept: {
77
+ type: 'object',
78
+ objectType: 'Concept'
79
+ },
77
80
  answerOrder: "double",
78
81
  abnormal: "bool",
79
82
  unique: "bool",
@@ -155,7 +155,10 @@ _defineProperty(CustomDashboardCache, "schema", {
155
155
  primaryKey: "uuid",
156
156
  properties: {
157
157
  uuid: "string",
158
- dashboard: "Dashboard",
158
+ dashboard: {
159
+ type: 'object',
160
+ objectType: 'Dashboard'
161
+ },
159
162
  updatedAt: {
160
163
  type: "date",
161
164
  optional: true
@@ -74,7 +74,10 @@ _defineProperty(DashboardSection, "schema", {
74
74
  primaryKey: "uuid",
75
75
  properties: {
76
76
  uuid: "string",
77
- dashboard: "Dashboard",
77
+ dashboard: {
78
+ type: 'object',
79
+ objectType: 'Dashboard'
80
+ },
78
81
  name: {
79
82
  type: "string",
80
83
  optional: true
@@ -63,8 +63,14 @@ _defineProperty(DashboardSectionCardMapping, "schema", {
63
63
  primaryKey: "uuid",
64
64
  properties: {
65
65
  uuid: "string",
66
- dashboardSection: "DashboardSection",
67
- card: "ReportCard",
66
+ dashboardSection: {
67
+ type: 'object',
68
+ objectType: 'DashboardSection'
69
+ },
70
+ card: {
71
+ type: 'object',
72
+ objectType: 'ReportCard'
73
+ },
68
74
  displayOrder: "double",
69
75
  voided: {
70
76
  type: "bool",
@@ -83,7 +83,8 @@ _defineProperty(DocumentationItem, "schema", {
83
83
  optional: true
84
84
  },
85
85
  documentation: {
86
- type: 'Documentation'
86
+ type: 'object',
87
+ objectType: 'Documentation'
87
88
  },
88
89
  voided: {
89
90
  type: "bool",
package/dist/Encounter.js CHANGED
@@ -124,18 +124,25 @@ _defineProperty(Encounter, "schema", {
124
124
  primaryKey: "uuid",
125
125
  properties: _objectSpread({
126
126
  uuid: "string",
127
- encounterType: "EncounterType",
127
+ encounterType: {
128
+ type: 'object',
129
+ objectType: 'EncounterType'
130
+ },
128
131
  encounterDateTime: {
129
132
  type: "date",
130
133
  optional: true
131
134
  },
132
- individual: _SchemaNames.default.Individual,
135
+ individual: {
136
+ type: 'object',
137
+ objectType: 'Individual'
138
+ },
133
139
  observations: {
134
140
  type: "list",
135
141
  objectType: "Observation"
136
142
  },
137
143
  encounterLocation: {
138
- type: _SchemaNames.default.Point,
144
+ type: 'object',
145
+ objectType: 'Point',
139
146
  optional: true
140
147
  },
141
148
  name: {
@@ -159,7 +166,8 @@ _defineProperty(Encounter, "schema", {
159
166
  objectType: "Observation"
160
167
  },
161
168
  cancelLocation: {
162
- type: _SchemaNames.default.Point,
169
+ type: 'object',
170
+ objectType: 'Point',
163
171
  optional: true
164
172
  },
165
173
  voided: {
@@ -171,7 +179,8 @@ _defineProperty(Encounter, "schema", {
171
179
  objectType: "EntityApprovalStatus"
172
180
  },
173
181
  latestEntityApprovalStatus: {
174
- type: "EntityApprovalStatus",
182
+ type: 'object',
183
+ objectType: 'EntityApprovalStatus',
175
184
  optional: true
176
185
  }
177
186
  }, _AuditUtil.AuditFields, {
@@ -215,7 +215,10 @@ _defineProperty(EntityApprovalStatus, "schema", {
215
215
  properties: _objectSpread({
216
216
  uuid: "string",
217
217
  entityUUID: "string",
218
- approvalStatus: "ApprovalStatus",
218
+ approvalStatus: {
219
+ type: 'object',
220
+ objectType: 'ApprovalStatus'
221
+ },
219
222
  entityType: "string",
220
223
  entityTypeUuid: {
221
224
  type: "string",
package/dist/Family.js CHANGED
@@ -216,8 +216,14 @@ _defineProperty(Family, "schema", {
216
216
  properties: {
217
217
  uuid: "string",
218
218
  registrationDate: "date",
219
- lowestAddressLevel: "AddressLevel",
220
- headOfFamily: "Individual",
219
+ lowestAddressLevel: {
220
+ type: 'object',
221
+ objectType: 'AddressLevel'
222
+ },
223
+ headOfFamily: {
224
+ type: 'object',
225
+ objectType: 'Individual'
226
+ },
221
227
  typeOfFamily: "string",
222
228
  householdNumber: "string",
223
229
  members: {
@@ -80,10 +80,14 @@ _defineProperty(GroupDashboard, "schema", {
80
80
  default: false
81
81
  },
82
82
  group: {
83
- type: "Groups",
83
+ type: 'object',
84
+ objectType: 'Groups',
84
85
  optional: true
85
86
  },
86
- dashboard: "Dashboard",
87
+ dashboard: {
88
+ type: 'object',
89
+ objectType: 'Dashboard'
90
+ },
87
91
  voided: {
88
92
  type: "bool",
89
93
  default: false
@@ -105,8 +105,14 @@ _defineProperty(GroupPrivileges, "schema", {
105
105
  primaryKey: "uuid",
106
106
  properties: {
107
107
  uuid: "string",
108
- group: "Groups",
109
- privilege: "Privilege",
108
+ group: {
109
+ type: 'object',
110
+ objectType: 'Groups'
111
+ },
112
+ privilege: {
113
+ type: 'object',
114
+ objectType: 'Privilege'
115
+ },
110
116
  subjectTypeUuid: "string",
111
117
  programUuid: "string?",
112
118
  programEncounterTypeUuid: "string?",
package/dist/GroupRole.js CHANGED
@@ -114,8 +114,14 @@ _defineProperty(GroupRole, "schema", {
114
114
  primaryKey: "uuid",
115
115
  properties: {
116
116
  uuid: "string",
117
- groupSubjectType: "SubjectType",
118
- memberSubjectType: "SubjectType",
117
+ groupSubjectType: {
118
+ type: 'object',
119
+ objectType: 'SubjectType'
120
+ },
121
+ memberSubjectType: {
122
+ type: 'object',
123
+ objectType: 'SubjectType'
124
+ },
119
125
  role: "string",
120
126
  primary: {
121
127
  type: "bool",
@@ -231,9 +231,18 @@ _defineProperty(GroupSubject, "schema", {
231
231
  primaryKey: "uuid",
232
232
  properties: _objectSpread({
233
233
  uuid: "string",
234
- groupSubject: "Individual",
235
- memberSubject: "Individual",
236
- groupRole: "GroupRole",
234
+ groupSubject: {
235
+ type: 'object',
236
+ objectType: 'Individual'
237
+ },
238
+ memberSubject: {
239
+ type: 'object',
240
+ objectType: 'Individual'
241
+ },
242
+ groupRole: {
243
+ type: 'object',
244
+ objectType: 'GroupRole'
245
+ },
237
246
  membershipStartDate: "date",
238
247
  membershipEndDate: {
239
248
  type: "date",
@@ -153,11 +153,15 @@ _defineProperty(IdentifierAssignment, "schema", {
153
153
  primaryKey: "uuid",
154
154
  properties: _objectSpread({
155
155
  uuid: "string",
156
- identifierSource: "IdentifierSource",
156
+ identifierSource: {
157
+ type: 'object',
158
+ objectType: 'IdentifierSource'
159
+ },
157
160
  identifier: "string",
158
161
  assignmentOrder: "double",
159
162
  individual: {
160
- type: "Individual",
163
+ type: 'object',
164
+ objectType: 'Individual',
161
165
  optional: true
162
166
  },
163
167
  voided: {
@@ -165,7 +169,8 @@ _defineProperty(IdentifierAssignment, "schema", {
165
169
  default: false
166
170
  },
167
171
  programEnrolment: {
168
- type: "ProgramEnrolment",
172
+ type: 'object',
173
+ objectType: 'ProgramEnrolment',
169
174
  optional: true
170
175
  },
171
176
  used: {
@@ -1098,7 +1098,10 @@ _defineProperty(Individual, "schema", {
1098
1098
  primaryKey: "uuid",
1099
1099
  properties: _objectSpread({
1100
1100
  uuid: "string",
1101
- subjectType: "SubjectType",
1101
+ subjectType: {
1102
+ type: 'object',
1103
+ objectType: 'SubjectType'
1104
+ },
1102
1105
  name: "string",
1103
1106
  firstName: "string",
1104
1107
  middleName: {
@@ -1122,11 +1125,15 @@ _defineProperty(Individual, "schema", {
1122
1125
  optional: true
1123
1126
  },
1124
1127
  gender: {
1125
- type: "Gender",
1128
+ type: 'object',
1129
+ objectType: 'Gender',
1126
1130
  optional: true
1127
1131
  },
1128
1132
  registrationDate: "date",
1129
- lowestAddressLevel: "AddressLevel",
1133
+ lowestAddressLevel: {
1134
+ type: 'object',
1135
+ objectType: 'AddressLevel'
1136
+ },
1130
1137
  voided: {
1131
1138
  type: "bool",
1132
1139
  default: false
@@ -1152,7 +1159,8 @@ _defineProperty(Individual, "schema", {
1152
1159
  objectType: "GroupSubject"
1153
1160
  },
1154
1161
  registrationLocation: {
1155
- type: _SchemaNames.default.Point,
1162
+ type: 'object',
1163
+ objectType: 'Point',
1156
1164
  optional: true
1157
1165
  },
1158
1166
  comments: {
@@ -1168,7 +1176,8 @@ _defineProperty(Individual, "schema", {
1168
1176
  objectType: "EntityApprovalStatus"
1169
1177
  },
1170
1178
  latestEntityApprovalStatus: {
1171
- type: "EntityApprovalStatus",
1179
+ type: 'object',
1180
+ objectType: 'EntityApprovalStatus',
1172
1181
  optional: true
1173
1182
  }
1174
1183
  }, _AuditUtil.AuditFields)
@@ -271,7 +271,10 @@ class Observation extends _PersistedObject.default {
271
271
  _defineProperty(Observation, "schema", {
272
272
  name: "Observation",
273
273
  properties: {
274
- concept: "Concept",
274
+ concept: {
275
+ type: 'object',
276
+ objectType: 'Concept'
277
+ },
275
278
  valueJSON: "string"
276
279
  }
277
280
  });
@@ -177,7 +177,8 @@ _defineProperty(ProgramEncounter, "schema", {
177
177
  optional: true
178
178
  },
179
179
  encounterType: {
180
- type: "EncounterType"
180
+ type: 'object',
181
+ objectType: 'EncounterType'
181
182
  },
182
183
  earliestVisitDateTime: {
183
184
  type: "date",
@@ -191,7 +192,10 @@ _defineProperty(ProgramEncounter, "schema", {
191
192
  type: "date",
192
193
  optional: true
193
194
  },
194
- programEnrolment: _SchemaNames.default.ProgramEnrolment,
195
+ programEnrolment: {
196
+ type: 'object',
197
+ objectType: 'ProgramEnrolment'
198
+ },
195
199
  observations: {
196
200
  type: "list",
197
201
  objectType: "Observation"
@@ -205,11 +209,13 @@ _defineProperty(ProgramEncounter, "schema", {
205
209
  objectType: "Observation"
206
210
  },
207
211
  encounterLocation: {
208
- type: _SchemaNames.default.Point,
212
+ type: 'object',
213
+ objectType: 'Point',
209
214
  optional: true
210
215
  },
211
216
  cancelLocation: {
212
- type: _SchemaNames.default.Point,
217
+ type: 'object',
218
+ objectType: 'Point',
213
219
  optional: true
214
220
  },
215
221
  voided: {
@@ -221,7 +227,8 @@ _defineProperty(ProgramEncounter, "schema", {
221
227
  objectType: "EntityApprovalStatus"
222
228
  },
223
229
  latestEntityApprovalStatus: {
224
- type: "EntityApprovalStatus",
230
+ type: 'object',
231
+ objectType: 'EntityApprovalStatus',
225
232
  optional: true
226
233
  }
227
234
  }, _AuditUtil.AuditFields, {
@@ -657,7 +657,10 @@ _defineProperty(ProgramEnrolment, "schema", {
657
657
  primaryKey: "uuid",
658
658
  properties: _objectSpread({
659
659
  uuid: "string",
660
- program: "Program",
660
+ program: {
661
+ type: 'object',
662
+ objectType: 'Program'
663
+ },
661
664
  enrolmentDateTime: "date",
662
665
  observations: {
663
666
  type: "list",
@@ -679,13 +682,18 @@ _defineProperty(ProgramEnrolment, "schema", {
679
682
  type: "list",
680
683
  objectType: "Checklist"
681
684
  },
682
- individual: "Individual",
685
+ individual: {
686
+ type: 'object',
687
+ objectType: 'Individual'
688
+ },
683
689
  enrolmentLocation: {
684
- type: _SchemaNames.default.Point,
690
+ type: 'object',
691
+ objectType: 'Point',
685
692
  optional: true
686
693
  },
687
694
  exitLocation: {
688
- type: _SchemaNames.default.Point,
695
+ type: 'object',
696
+ objectType: 'Point',
689
697
  optional: true
690
698
  },
691
699
  voided: {
@@ -697,7 +705,8 @@ _defineProperty(ProgramEnrolment, "schema", {
697
705
  objectType: "EntityApprovalStatus"
698
706
  },
699
707
  latestEntityApprovalStatus: {
700
- type: "EntityApprovalStatus",
708
+ type: 'object',
709
+ objectType: 'EntityApprovalStatus',
701
710
  optional: true
702
711
  }
703
712
  }, _AuditUtil.AuditFields)
@@ -242,7 +242,8 @@ _defineProperty(ReportCard, "schema", {
242
242
  optional: true
243
243
  },
244
244
  standardReportCardType: {
245
- type: "StandardReportCardType",
245
+ type: 'object',
246
+ objectType: 'StandardReportCardType',
246
247
  optional: true
247
248
  },
248
249
  colour: "string",
package/dist/Schema.js CHANGED
@@ -283,7 +283,7 @@ function createRealmConfig() {
283
283
  return doCompact;
284
284
  },
285
285
  //order is important, should be arranged according to the dependency
286
- schemaVersion: 203,
286
+ schemaVersion: 204,
287
287
  onMigration: function (oldDB, newDB) {
288
288
  console.log("[AvniModels.Schema]", `Running migration with old schema version: ${oldDB.schemaVersion} and new schema version: ${newDB.schemaVersion}`);
289
289
  if (oldDB.schemaVersion === VersionWithEmbeddedMigrationProblem) throw new Error(`Update from schema version ${VersionWithEmbeddedMigrationProblem} is not allowed. Please uninstall and install app.`);
package/dist/Settings.js CHANGED
@@ -211,7 +211,8 @@ _defineProperty(Settings, "schema", {
211
211
  uuid: "string",
212
212
  serverURL: "string",
213
213
  locale: {
214
- type: "LocaleMapping",
214
+ type: 'object',
215
+ objectType: 'LocaleMapping',
215
216
  optional: true
216
217
  },
217
218
  logLevel: "int",
@@ -340,15 +340,18 @@ _defineProperty(SubjectType, "schema", {
340
340
  default: false
341
341
  },
342
342
  validFirstNameFormat: {
343
- type: _SchemaNames.default.Format,
343
+ type: 'object',
344
+ objectType: 'EmbeddedFormat',
344
345
  optional: true
345
346
  },
346
347
  validMiddleNameFormat: {
347
- type: _SchemaNames.default.Format,
348
+ type: 'object',
349
+ objectType: 'EmbeddedFormat',
348
350
  optional: true
349
351
  },
350
352
  validLastNameFormat: {
351
- type: _SchemaNames.default.Format,
353
+ type: 'object',
354
+ objectType: 'EmbeddedFormat',
352
355
  optional: true
353
356
  },
354
357
  iconFileS3Key: {
@@ -437,16 +437,23 @@ _defineProperty(FormElement, "schema", {
437
437
  mandatory: "bool",
438
438
  keyValues: {
439
439
  type: "list",
440
- objectType: _SchemaNames.default.KeyValue
440
+ objectType: "EmbeddedKeyValue"
441
+ },
442
+ concept: {
443
+ type: 'object',
444
+ objectType: 'Concept'
441
445
  },
442
- concept: "Concept",
443
446
  type: {
444
447
  type: "string",
445
448
  optional: true
446
449
  },
447
- formElementGroup: "FormElementGroup",
450
+ formElementGroup: {
451
+ type: 'object',
452
+ objectType: 'FormElementGroup'
453
+ },
448
454
  validFormat: {
449
- type: _SchemaNames.default.Format,
455
+ type: 'object',
456
+ objectType: 'EmbeddedFormat',
450
457
  optional: true
451
458
  },
452
459
  voided: {
@@ -462,7 +469,8 @@ _defineProperty(FormElement, "schema", {
462
469
  optional: true
463
470
  },
464
471
  documentation: {
465
- type: "Documentation",
472
+ type: 'object',
473
+ objectType: 'Documentation',
466
474
  optional: true
467
475
  }
468
476
  }
@@ -308,7 +308,10 @@ _defineProperty(FormElementGroup, "schema", {
308
308
  type: "list",
309
309
  objectType: "FormElement"
310
310
  },
311
- form: "Form",
311
+ form: {
312
+ type: 'object',
313
+ objectType: 'Form'
314
+ },
312
315
  voided: {
313
316
  type: "bool",
314
317
  default: false
@@ -171,9 +171,13 @@ _defineProperty(FormMapping, "schema", {
171
171
  primaryKey: "uuid",
172
172
  properties: {
173
173
  uuid: "string",
174
- form: "Form",
174
+ form: {
175
+ type: 'object',
176
+ objectType: 'Form'
177
+ },
175
178
  subjectType: {
176
- type: "SubjectType",
179
+ type: 'object',
180
+ objectType: 'SubjectType',
177
181
  optional: true
178
182
  },
179
183
  entityUUID: {
@@ -193,7 +197,8 @@ _defineProperty(FormMapping, "schema", {
193
197
  default: false
194
198
  },
195
199
  taskType: {
196
- type: "TaskType",
200
+ type: 'object',
201
+ objectType: 'TaskType',
197
202
  optional: true
198
203
  }
199
204
  }
@@ -9,8 +9,6 @@ var _BaseEntity = _interopRequireDefault(require("../BaseEntity"));
9
9
 
10
10
  var _ResourceUtil = _interopRequireDefault(require("../utility/ResourceUtil"));
11
11
 
12
- var _SchemaNames = _interopRequireDefault(require("../SchemaNames"));
13
-
14
12
  var _AuditUtil = require("../utility/AuditUtil");
15
13
 
16
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -77,7 +75,7 @@ class UserSubjectAssignment extends _BaseEntity.default {
77
75
  }
78
76
 
79
77
  _defineProperty(UserSubjectAssignment, "schema", {
80
- name: _SchemaNames.default.UserSubjectAssignment,
78
+ name: "UserSubjectAssignment",
81
79
  primaryKey: 'uuid',
82
80
  properties: _objectSpread({
83
81
  uuid: 'string',
@@ -162,18 +162,25 @@ _defineProperty(DraftEncounter, "schema", {
162
162
  primaryKey: "uuid",
163
163
  properties: {
164
164
  uuid: "string",
165
- encounterType: "EncounterType",
165
+ encounterType: {
166
+ type: 'object',
167
+ objectType: 'EncounterType'
168
+ },
166
169
  encounterDateTime: {
167
170
  type: "date",
168
171
  optional: true
169
172
  },
170
- individual: "Individual",
173
+ individual: {
174
+ type: 'object',
175
+ objectType: 'Individual'
176
+ },
171
177
  observations: {
172
178
  type: "list",
173
179
  objectType: "Observation"
174
180
  },
175
181
  encounterLocation: {
176
- type: _SchemaNames.default.Point,
182
+ type: 'object',
183
+ objectType: 'Point',
177
184
  optional: true
178
185
  },
179
186
  name: {
@@ -197,7 +204,8 @@ _defineProperty(DraftEncounter, "schema", {
197
204
  objectType: "Observation"
198
205
  },
199
206
  cancelLocation: {
200
- type: _SchemaNames.default.Point,
207
+ type: 'object',
208
+ objectType: 'Point',
201
209
  optional: true
202
210
  },
203
211
  voided: {
@@ -187,7 +187,10 @@ _defineProperty(DraftSubject, "schema", {
187
187
  primaryKey: "uuid",
188
188
  properties: {
189
189
  uuid: "string",
190
- subjectType: "SubjectType",
190
+ subjectType: {
191
+ type: 'object',
192
+ objectType: 'SubjectType'
193
+ },
191
194
  firstName: "string",
192
195
  lastName: {
193
196
  type: "string",
@@ -206,17 +209,22 @@ _defineProperty(DraftSubject, "schema", {
206
209
  optional: true
207
210
  },
208
211
  gender: {
209
- type: "Gender",
212
+ type: 'object',
213
+ objectType: 'Gender',
210
214
  optional: true
211
215
  },
212
216
  registrationDate: "date",
213
- lowestAddressLevel: "AddressLevel",
217
+ lowestAddressLevel: {
218
+ type: 'object',
219
+ objectType: 'AddressLevel'
220
+ },
214
221
  observations: {
215
222
  type: "list",
216
223
  objectType: "Observation"
217
224
  },
218
225
  registrationLocation: {
219
- type: _SchemaNames.default.Point,
226
+ type: 'object',
227
+ objectType: 'Point',
220
228
  optional: true
221
229
  },
222
230
  updatedOn: "date",
@@ -212,8 +212,14 @@ _defineProperty(SubjectProgramEligibility, "schema", {
212
212
  primaryKey: "uuid",
213
213
  properties: _objectSpread({
214
214
  uuid: "string",
215
- subject: "Individual",
216
- program: "Program",
215
+ subject: {
216
+ type: 'object',
217
+ objectType: 'Individual'
218
+ },
219
+ program: {
220
+ type: 'object',
221
+ objectType: 'Program'
222
+ },
217
223
  checkDate: "date",
218
224
  eligible: {
219
225
  type: "bool",
@@ -65,8 +65,14 @@ _defineProperty(IndividualRelationGenderMapping, "schema", {
65
65
  primaryKey: "uuid",
66
66
  properties: {
67
67
  uuid: "string",
68
- relation: "IndividualRelation",
69
- gender: "Gender",
68
+ relation: {
69
+ type: 'object',
70
+ objectType: 'IndividualRelation'
71
+ },
72
+ gender: {
73
+ type: 'object',
74
+ objectType: 'Gender'
75
+ },
70
76
  voided: {
71
77
  type: "bool",
72
78
  default: false
@@ -194,9 +194,18 @@ _defineProperty(IndividualRelationship, "schema", {
194
194
  primaryKey: "uuid",
195
195
  properties: _objectSpread({
196
196
  uuid: "string",
197
- relationship: "IndividualRelationshipType",
198
- individualA: "Individual",
199
- individualB: "Individual",
197
+ relationship: {
198
+ type: 'object',
199
+ objectType: 'IndividualRelationshipType'
200
+ },
201
+ individualA: {
202
+ type: 'object',
203
+ objectType: 'Individual'
204
+ },
205
+ individualB: {
206
+ type: 'object',
207
+ objectType: 'Individual'
208
+ },
200
209
  enterDateTime: {
201
210
  type: "date",
202
211
  optional: true
@@ -83,8 +83,14 @@ _defineProperty(IndividualRelationshipType, "schema", {
83
83
  properties: {
84
84
  uuid: "string",
85
85
  name: "string",
86
- individualAIsToBRelation: "IndividualRelation",
87
- individualBIsToARelation: "IndividualRelation",
86
+ individualAIsToBRelation: {
87
+ type: 'object',
88
+ objectType: 'IndividualRelation'
89
+ },
90
+ individualBIsToARelation: {
91
+ type: 'object',
92
+ objectType: 'IndividualRelation'
93
+ },
88
94
  voided: {
89
95
  type: "bool",
90
96
  default: false
@@ -61,7 +61,10 @@ _defineProperty(DashboardFilter, "schema", {
61
61
  primaryKey: "uuid",
62
62
  properties: {
63
63
  uuid: "string",
64
- dashboard: "Dashboard",
64
+ dashboard: {
65
+ type: 'object',
66
+ objectType: 'Dashboard'
67
+ },
65
68
  name: "string",
66
69
  filterConfig: "string",
67
70
  voided: {
package/dist/task/Task.js CHANGED
@@ -25,8 +25,6 @@ var _lodash = _interopRequireDefault(require("lodash"));
25
25
 
26
26
  var _BaseEntity = _interopRequireDefault(require("../BaseEntity"));
27
27
 
28
- var _SchemaNames = _interopRequireDefault(require("../SchemaNames"));
29
-
30
28
  var _AuditUtil = require("../utility/AuditUtil");
31
29
 
32
30
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -214,13 +212,19 @@ class Task extends _BaseEntity.default {
214
212
  }
215
213
 
216
214
  _defineProperty(Task, "schema", {
217
- name: _SchemaNames.default.Task,
215
+ name: "Task",
218
216
  primaryKey: "uuid",
219
217
  properties: _objectSpread({
220
218
  uuid: "string",
221
219
  name: "string",
222
- taskType: "TaskType",
223
- taskStatus: "TaskStatus",
220
+ taskType: {
221
+ type: 'object',
222
+ objectType: 'TaskType'
223
+ },
224
+ taskStatus: {
225
+ type: 'object',
226
+ objectType: 'TaskStatus'
227
+ },
224
228
  scheduledOn: {
225
229
  type: "date"
226
230
  },
@@ -233,7 +237,8 @@ _defineProperty(Task, "schema", {
233
237
  objectType: "Observation"
234
238
  },
235
239
  subject: {
236
- type: 'Individual',
240
+ type: 'object',
241
+ objectType: 'Individual',
237
242
  optional: true
238
243
  },
239
244
  observations: {
@@ -13,8 +13,6 @@ var _ResourceUtil = _interopRequireDefault(require("../utility/ResourceUtil"));
13
13
 
14
14
  var _BaseEntity = _interopRequireDefault(require("../BaseEntity"));
15
15
 
16
- var _SchemaNames = _interopRequireDefault(require("../SchemaNames"));
17
-
18
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
17
 
20
18
  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; }
@@ -69,7 +67,7 @@ class TaskStatus extends _BaseEntity.default {
69
67
  }
70
68
 
71
69
  _defineProperty(TaskStatus, "schema", {
72
- name: _SchemaNames.default.TaskStatus,
70
+ name: "TaskStatus",
73
71
  primaryKey: "uuid",
74
72
  properties: {
75
73
  uuid: "string",
@@ -78,7 +76,10 @@ _defineProperty(TaskStatus, "schema", {
78
76
  type: 'bool',
79
77
  default: false
80
78
  },
81
- taskType: "TaskType",
79
+ taskType: {
80
+ type: 'object',
81
+ objectType: 'TaskType'
82
+ },
82
83
  voided: {
83
84
  type: 'bool',
84
85
  default: false
@@ -13,8 +13,6 @@ var _lodash = require("lodash");
13
13
 
14
14
  var _BaseEntity = _interopRequireDefault(require("../BaseEntity"));
15
15
 
16
- var _SchemaNames = _interopRequireDefault(require("../SchemaNames"));
17
-
18
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
17
 
20
18
  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; }
@@ -72,7 +70,7 @@ class TaskType extends _BaseEntity.default {
72
70
  }
73
71
 
74
72
  _defineProperty(TaskType, "schema", {
75
- name: _SchemaNames.default.TaskType,
73
+ name: "TaskType",
76
74
  primaryKey: "uuid",
77
75
  properties: {
78
76
  uuid: "string",
@@ -9,8 +9,6 @@ var _BaseEntity = _interopRequireDefault(require("../BaseEntity"));
9
9
 
10
10
  var _ResourceUtil = _interopRequireDefault(require("../utility/ResourceUtil"));
11
11
 
12
- var _SchemaNames = _interopRequireDefault(require("../SchemaNames"));
13
-
14
12
  var _AuditUtil = require("../utility/AuditUtil");
15
13
 
16
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -99,7 +97,7 @@ class TaskUnAssignment extends _BaseEntity.default {
99
97
  }
100
98
 
101
99
  _defineProperty(TaskUnAssignment, "schema", {
102
- name: _SchemaNames.default.TaskUnAssignment,
100
+ name: "TaskUnAssignment",
103
101
  primaryKey: 'uuid',
104
102
  properties: _objectSpread({
105
103
  uuid: 'string',
@@ -124,7 +124,10 @@ _defineProperty(VideoTelemetric, "schema", {
124
124
  primaryKey: "uuid",
125
125
  properties: {
126
126
  uuid: "string",
127
- video: "Video",
127
+ video: {
128
+ type: 'object',
129
+ objectType: 'Video'
130
+ },
128
131
  playerOpenTime: "date",
129
132
  playerCloseTime: "date",
130
133
  videoStartTime: "double",
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.32.54",
4
+ "version": "1.33.1",
5
5
  "private": false,
6
6
  "repository": {
7
7
  "type": "git",