瀏覽代碼

Visit UI - $endPoint param

Vijayakrishnan 3 年之前
父節點
當前提交
aa7cf69ee2

+ 1 - 1
resources/views/app/patient/note/segment.blade.php

@@ -11,7 +11,7 @@
 		</span>
 
 		<!-- refresh -->
-		<div moe class="ml-2">
+		<div moe class="ml-2 d-none if-edit">
 			<a start show class="font-weight-normal" title="Update with latest patient data">
 				<i class="fa fa-sync"></i>
 			</a>

+ 1 - 1
resources/views/app/patient/segment-templates/_simple_text_segment/edit.php

@@ -9,7 +9,7 @@ if (!!@$point->data) {
 }
 ?>
 <div visit-moe>
-    <form url="/api/visitPoint/upsertNoteSingleton" class="mcp-theme-1">
+    <form url="/api/visitPoint/<?= $endPoint ?>" class="mcp-theme-1">
         <input type="hidden" name="segmentUid" value="<?= $segment->uid ?>">
         <input type="hidden" name="category" value="<?= $category ?>">
         <input type="hidden" name="data">

+ 1 - 0
resources/views/app/patient/segment-templates/chief_complaint/edit.php

@@ -1,3 +1,4 @@
 <?php
 $category = 'CHIEF_COMPLAINT';
+$endPoint = 'upsertNoteSingleton';
 include resource_path('views/app/patient/segment-templates/_simple_text_segment/edit.php');