openchs-models 1.32.22 → 1.32.23
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/Program.js +10 -0
- package/dist/ProgramEnrolment.js +3 -3
- package/package.json +1 -1
package/dist/Program.js
CHANGED
|
@@ -68,6 +68,14 @@ class Program extends _ReferenceEntity.default {
|
|
|
68
68
|
this.that.manualEligibilityCheckRequired = x;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
+
get showGrowthChart() {
|
|
72
|
+
return this.that.showGrowthChart;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
set showGrowthChart(x) {
|
|
76
|
+
this.that.showGrowthChart = x;
|
|
77
|
+
}
|
|
78
|
+
|
|
71
79
|
get enrolmentSummaryRule() {
|
|
72
80
|
return this.that.enrolmentSummaryRule;
|
|
73
81
|
}
|
|
@@ -118,6 +126,7 @@ class Program extends _ReferenceEntity.default {
|
|
|
118
126
|
program.programSubjectLabel = operationalProgram.programSubjectLabel || operationalProgram.name || program.name;
|
|
119
127
|
program.enrolmentSummaryRule = operationalProgram.enrolmentSummaryRule;
|
|
120
128
|
program.manualEligibilityCheckRequired = operationalProgram.manualEligibilityCheckRequired;
|
|
129
|
+
program.showGrowthChart = operationalProgram.showGrowthChart;
|
|
121
130
|
program.manualEnrolmentEligibilityCheckRule = operationalProgram.manualEnrolmentEligibilityCheckRule;
|
|
122
131
|
program.enrolmentEligibilityCheckRule = operationalProgram.enrolmentEligibilityCheckRule;
|
|
123
132
|
program.allowMultipleEnrolments = operationalProgram.allowMultipleEnrolments;
|
|
@@ -162,6 +171,7 @@ _defineProperty(Program, "schema", {
|
|
|
162
171
|
optional: true
|
|
163
172
|
},
|
|
164
173
|
manualEligibilityCheckRequired: 'bool',
|
|
174
|
+
showGrowthChart: 'bool',
|
|
165
175
|
manualEnrolmentEligibilityCheckRule: {
|
|
166
176
|
type: 'string',
|
|
167
177
|
optional: true
|
package/dist/ProgramEnrolment.js
CHANGED
|
@@ -465,7 +465,7 @@ class ProgramEnrolment extends _BaseEntity.default {
|
|
|
465
465
|
|
|
466
466
|
for (let i = 0; i < encounters.length; i++) {
|
|
467
467
|
encounter = encounters[i];
|
|
468
|
-
observation = encounters[i].findObservation(conceptNameOrUuid, parentConceptNameOrUuid);
|
|
468
|
+
observation = encounters[i].findObservation(conceptNameOrUuid.toLowerCase(), parentConceptNameOrUuid);
|
|
469
469
|
if (!_lodash.default.isNil(observation)) return {
|
|
470
470
|
observation: observation,
|
|
471
471
|
date: encounter.encounterDateTime
|
|
@@ -473,7 +473,7 @@ class ProgramEnrolment extends _BaseEntity.default {
|
|
|
473
473
|
}
|
|
474
474
|
|
|
475
475
|
if (checkInEnrolment) return {
|
|
476
|
-
observation: this.findObservation(conceptNameOrUuid, parentConceptNameOrUuid),
|
|
476
|
+
observation: this.findObservation(conceptNameOrUuid.toLowerCase(), parentConceptNameOrUuid),
|
|
477
477
|
date: this.enrolmentDateTime
|
|
478
478
|
};
|
|
479
479
|
return {};
|
|
@@ -487,7 +487,7 @@ class ProgramEnrolment extends _BaseEntity.default {
|
|
|
487
487
|
findObservation(conceptNameOrUuid, parentConceptNameOrUuid) {
|
|
488
488
|
const observations = _lodash.default.isNil(parentConceptNameOrUuid) ? this.observations : this.findGroupedObservation(parentConceptNameOrUuid);
|
|
489
489
|
return _lodash.default.find(observations, observation => {
|
|
490
|
-
return observation.concept.name === conceptNameOrUuid || observation.concept.uuid === conceptNameOrUuid;
|
|
490
|
+
return observation.concept.name.toLowerCase() === conceptNameOrUuid || observation.concept.uuid === conceptNameOrUuid;
|
|
491
491
|
});
|
|
492
492
|
}
|
|
493
493
|
|