|
@@ -181,7 +181,7 @@ parentSegment.find('#frm-add-{{$label}}')
|
|
|
parsed = JSON.parse(dataField.val());
|
|
|
}
|
|
|
|
|
|
- @if($patient->core_note_id !== $note->id)
|
|
|
+ @if(1 || $patient->core_note_id !== $note->id)
|
|
|
// store plan content
|
|
|
let planContent = parsed && parsed.planValue ? parsed.planValue : '';
|
|
|
let reviewContent = parsed && parsed.reviewValue ? parsed.reviewValue : '';
|
|
@@ -222,7 +222,7 @@ parentSegment.find('#frm-add-{{$label}}')
|
|
|
|
|
|
let payload = {};
|
|
|
form.serializeArray().map(x => {payload[x.name] = x.value;});
|
|
|
- @if($patient->core_note_id !== $note->id)
|
|
|
+ @if(1 || $patient->core_note_id !== $note->id)
|
|
|
if(!!reviewContent && $.trim($('<div/>').html(reviewContent).text())) {
|
|
|
payload.childReviewData = JSON.stringify({
|
|
|
value: reviewContent
|
|
@@ -270,7 +270,7 @@ parentSegment.find('.frm-edit-{{$label}}')
|
|
|
parsed = JSON.parse(dataField.val());
|
|
|
}
|
|
|
|
|
|
- @if($patient->core_note_id !== $note->id)
|
|
|
+ @if(1 || $patient->core_note_id !== $note->id)
|
|
|
let reviewContent = parsed && parsed.reviewValue ? parsed.reviewValue : '';
|
|
|
|
|
|
let compareWith = false;
|
|
@@ -332,7 +332,7 @@ parentSegment.find('.frm-edit-{{$label}}')
|
|
|
|
|
|
let payload = {};
|
|
|
form.serializeArray().map(x => {payload[x.name] = x.value;});
|
|
|
- @if($patient->core_note_id !== $note->id)
|
|
|
+ @if(1 || $patient->core_note_id !== $note->id)
|
|
|
if(!!reviewContent && $.trim($('<div/>').html(reviewContent).text())) {
|
|
|
payload.childReviewData = JSON.stringify({
|
|
|
value: reviewContent
|