|
@@ -103,6 +103,7 @@ list($goals, $counts) = Point::getPointsOfCategoryExtended($patient, 'GOAL', $no
|
|
|
<?php
|
|
|
$segment = $note->getSegmentByInternalName('intake_goals');
|
|
|
if(!$segment) $segment = $note->getSegmentByInternalName('goals');
|
|
|
+ if(!$segment) $segment = $note->coreSegment;
|
|
|
?>
|
|
|
<div if-read-mode>
|
|
|
<div class="d-flex align-items-start">
|
|
@@ -143,6 +144,7 @@ list($goals, $counts) = Point::getPointsOfCategoryExtended($patient, 'GOAL', $no
|
|
|
<?php
|
|
|
$segment = $note->getSegmentByInternalName('plan_goals');
|
|
|
if(!$segment) $segment = $note->getSegmentByInternalName('goals');
|
|
|
+ if(!$segment) $segment = $note->coreSegment;
|
|
|
?>
|
|
|
<div if-read-mode>
|
|
|
<div class="d-flex align-items-start position-relative">
|
|
@@ -301,6 +303,14 @@ list($goals, $counts) = Point::getPointsOfCategoryExtended($patient, 'GOAL', $no
|
|
|
});
|
|
|
|
|
|
buttonContainer.insertAfter(titleElem);
|
|
|
+
|
|
|
+ <?php
|
|
|
+ if(@$note && !$note->is_signed_by_hcp) { // auto-open edit mode
|
|
|
+ ?>
|
|
|
+ button.trigger('click');
|
|
|
+ <?php
|
|
|
+ }
|
|
|
+ ?>
|
|
|
}
|
|
|
addMCInitializer('goals-center-{{$note->id}}', init, '#goals-center-{{$note->id}}');
|
|
|
}).call(window);
|