openchs-models 1.27.13 → 1.27.14

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.
@@ -52,14 +52,6 @@ class ConceptAnswer extends _BaseEntity.default {
52
52
  this.that.concept = this.fromObject(x);
53
53
  }
54
54
 
55
- get name() {
56
- return this.that.name;
57
- }
58
-
59
- set name(x) {
60
- this.that.name = x;
61
- }
62
-
63
55
  static fromResource(resource, entityService) {
64
56
  const conceptAnswer = new ConceptAnswer();
65
57
  conceptAnswer.concept = entityService.findByKey("uuid", _ResourceUtil.default.getUUIDFor(resource, "conceptAnswerUUID"), _Concept.default.schema.name);
@@ -212,7 +212,7 @@ class Observation extends _PersistedObject.default {
212
212
  if (this.concept.isCodedConcept()) {
213
213
  switch (typeof value) {
214
214
  case "string":
215
- return this.concept.answers.find(conceptAnswer => conceptAnswer.concept.uuid === value).name;
215
+ return this.concept.answers.find(conceptAnswer => conceptAnswer.concept.uuid === value).concept.name;
216
216
 
217
217
  case "object":
218
218
  return value.map(answerUUID => {
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.27.13",
4
+ "version": "1.27.14",
5
5
  "private": false,
6
6
  "repository": {
7
7
  "type": "git",