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.
- package/dist/Session.js +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',
|
|
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.
|
|
125
|
+
record.reasonConceptUUIDs = entry.reasonConceptUUIDs || [];
|
|
126
126
|
record.followUpEncounterUUID = null;
|
|
127
127
|
record.voided = false;
|
|
128
128
|
records.push(record);
|