openchs-models 1.23.5 → 1.23.8
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.
|
@@ -237,6 +237,7 @@ class AbstractEncounter extends _BaseEntity.default {
|
|
|
237
237
|
encounterService
|
|
238
238
|
}) {
|
|
239
239
|
const observation = this.findObservation(conceptName);
|
|
240
|
+
if (_lodash.default.isNil(observation)) return "";
|
|
240
241
|
|
|
241
242
|
const displayValue = _Observation.default.valueForDisplay({
|
|
242
243
|
observation,
|
package/dist/task/TaskType.js
CHANGED
|
@@ -35,7 +35,7 @@ class TaskType extends _BaseEntity.default {
|
|
|
35
35
|
static fromResource(resource, entityService) {
|
|
36
36
|
const taskType = _General.default.assignFields(resource, new TaskType(), ['uuid', 'name', 'type', 'voided']);
|
|
37
37
|
|
|
38
|
-
taskType.metadataSearchFields = (0, _lodash.map)(resource.metadataSearchFields,
|
|
38
|
+
taskType.metadataSearchFields = (0, _lodash.map)(resource.metadataSearchFields, uuid => entityService.findByKey("uuid", uuid, _Concept.default.schema.name)).filter(concept => !(0, _lodash.isNil)(concept));
|
|
39
39
|
return taskType;
|
|
40
40
|
}
|
|
41
41
|
|