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,
@@ -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, name => entityService.findByKey("name", name, _Concept.default.schema.name)).filter(concept => !(0, _lodash.isNil)(concept));
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
 
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.23.5",
4
+ "version": "1.23.8",
5
5
  "private": false,
6
6
  "repository": {
7
7
  "type": "git",