|
@@ -26,8 +26,13 @@
|
|
|
$doesVisitTemplateUiConfigExist = $uiConfigsPath && file_exists($uiConfigsPath);
|
|
|
$visitTemplateUiConfig = $doesVisitTemplateUiConfigExist ? json_decode(file_get_contents($uiConfigsPath), true) : null;
|
|
|
|
|
|
- $visitLayoutPath = "app.patient.note.visit-template-ui-layouts.{$note->visitTemplate->internal_name}";
|
|
|
- $doesVisitTemplateLayoutExist = $isVisitTemplateBased && \Illuminate\Support\Facades\View::exists($visitLayoutPath);
|
|
|
+ $visitLayoutPath = '';
|
|
|
+ $doesVisitTemplateLayoutExist = false;
|
|
|
+
|
|
|
+ if($isVisitTemplateBased) {
|
|
|
+ $visitLayoutPath = "app.patient.note.visit-template-ui-layouts.{$note->visitTemplate->internal_name}";
|
|
|
+ $doesVisitTemplateLayoutExist = $isVisitTemplateBased && \Illuminate\Support\Facades\View::exists($visitLayoutPath);
|
|
|
+ }
|
|
|
|
|
|
$segmentMap = [];
|
|
|
foreach($note->segments as $segment):
|