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.
- package/dist/ConceptAnswer.js +0 -8
- package/dist/Observation.js +1 -1
- package/package.json +1 -1
package/dist/ConceptAnswer.js
CHANGED
|
@@ -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);
|
package/dist/Observation.js
CHANGED
|
@@ -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 => {
|