master-control 0.4.5 → 0.4.6
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.
|
@@ -5413,8 +5413,8 @@ class MedialQuestionsComponent {
|
|
|
5413
5413
|
});
|
|
5414
5414
|
}
|
|
5415
5415
|
if (singleQuestion['isShowQuestionInUI'] &&
|
|
5416
|
-
singleQuestion['questionType'] === 'CHECKBOX'
|
|
5417
|
-
!this.checkIfValueIsEmpty(
|
|
5416
|
+
singleQuestion['questionType'] === 'CHECKBOX'
|
|
5417
|
+
&& !this.checkIfValueIsEmpty(this.personUwAnswers[singleQuestion['questionId']])) {
|
|
5418
5418
|
// for checkbox question
|
|
5419
5419
|
let questionIndexInMainRequest = mainRequestForBothPersons.findIndex((singleAnswerObj) => singleAnswerObj['questionId'] ===
|
|
5420
5420
|
singleQuestion['questionId'] &&
|
|
@@ -5429,11 +5429,11 @@ class MedialQuestionsComponent {
|
|
|
5429
5429
|
createdUser: this.getCookieValue('userId'),
|
|
5430
5430
|
clusterId: singleQuestion['clusterId'],
|
|
5431
5431
|
};
|
|
5432
|
-
obj['answer'] =
|
|
5432
|
+
obj['answer'] = this.personUwAnswers[singleQuestion['questionId']].toString();
|
|
5433
5433
|
mainRequestForBothPersons.push(obj);
|
|
5434
5434
|
}
|
|
5435
5435
|
else {
|
|
5436
|
-
mainRequestForBothPersons[questionIndexInMainRequest]['answer'] =
|
|
5436
|
+
mainRequestForBothPersons[questionIndexInMainRequest]['answer'] = this.personUwAnswers[singleQuestion['questionId']].toString();
|
|
5437
5437
|
}
|
|
5438
5438
|
}
|
|
5439
5439
|
else if (singleQuestion['isShowQuestionInUI'] &&
|
|
@@ -5767,9 +5767,9 @@ class MedialQuestionsComponent {
|
|
|
5767
5767
|
if (question['cammundaQuestionCode'] === 'LifeMediCndtn' || question['cammundaQuestionCode'] === 'MediCndtn') {
|
|
5768
5768
|
this.personUwAnswers[question['questionId']].length > 0;
|
|
5769
5769
|
// if none is selected then remove all and call API
|
|
5770
|
-
let isNoneSelected = this.personUwAnswers[question['questionId']].findIndex((singleObj) => singleObj
|
|
5770
|
+
let isNoneSelected = this.personUwAnswers[question['questionId']].findIndex((singleObj) => singleObj === 'NoMedHistry');
|
|
5771
5771
|
if (isNoneSelected !== -1) {
|
|
5772
|
-
this.personUwAnswers[question['questionId']] = this.personUwAnswers[question['questionId']] = this.personUwAnswers[question['questionId']].filter((singleObj) => singleObj
|
|
5772
|
+
this.personUwAnswers[question['questionId']] = this.personUwAnswers[question['questionId']] = this.personUwAnswers[question['questionId']].filter((singleObj) => singleObj === 'NoMedHistry');
|
|
5773
5773
|
}
|
|
5774
5774
|
this.medicalSubQuestionsResponse = [];
|
|
5775
5775
|
if (!this.checkIfValueIsEmpty(this.questionList)) {
|
|
@@ -5827,7 +5827,7 @@ class MedialQuestionsComponent {
|
|
|
5827
5827
|
// }
|
|
5828
5828
|
// });
|
|
5829
5829
|
// this.loader.display(true);
|
|
5830
|
-
let selectedDiseases = this.personUwAnswers[question['questionId']].
|
|
5830
|
+
let selectedDiseases = this.personUwAnswers[question['questionId']].toString();
|
|
5831
5831
|
// let request: any = JSON.parse(
|
|
5832
5832
|
// JSON.stringify(
|
|
5833
5833
|
// this.fetchSubQuestionsList[
|