openchs-models 1.33.58 → 1.33.59

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 (2) hide show
  1. package/dist/Session.js +2 -2
  2. package/package.json +1 -1
package/dist/Session.js CHANGED
@@ -106,7 +106,7 @@ class Session extends _BaseEntity.default {
106
106
  }
107
107
 
108
108
  // Caller iterates the returned records and persists them in the same realm.write.
109
- // rosterByStudentUUID: { [studentUUID]: { status: 'Present'|'Absent', reasonConceptUUID?: string } }
109
+ // rosterByStudentUUID: { [studentUUID]: { status: 'Present'|'Absent', reasonConceptUUIDs?: string[] } }
110
110
  // reasonConceptUUID: optional session-level reason. Required by the server for
111
111
  // Mark-Anyway-Held (Held on weekly_off/public_holiday); ignored on a working day.
112
112
  // Default null preserves prior semantics (e.g. re-mark-Held after DidntHappen
@@ -122,7 +122,7 @@ class Session extends _BaseEntity.default {
122
122
  record.sessionUUID = this.uuid;
123
123
  record.subjectUUID = studentUUID;
124
124
  record.status = entry.status;
125
- record.reasonConceptUUID = entry.reasonConceptUUID || null;
125
+ record.reasonConceptUUIDs = entry.reasonConceptUUIDs || [];
126
126
  record.followUpEncounterUUID = null;
127
127
  record.voided = false;
128
128
  records.push(record);
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.33.58",
4
+ "version": "1.33.59",
5
5
  "private": false,
6
6
  "repository": {
7
7
  "type": "git",