|
@@ -255,7 +255,7 @@
|
|
|
|
|
|
<div v-if="addDrugToErxMode === 'new'" class="border border-info p-2 bg-aliceblue mb-2 rounded">
|
|
|
<form action="/api/visitPoint/addTopLevel" class="mcp-theme-1 w-100" id="frm-add-medication-and-add-to-erx">
|
|
|
- <input type="hidden" name="noteUid" value="{{$note->uid}}">
|
|
|
+ <input type="hidden" name="noteUid" value="{{@$note ? $note->uid : $patient->coreNote->uid}}">
|
|
|
<input type="hidden" name="category" value="MEDICATION">
|
|
|
<input type="hidden" name="data">
|
|
|
|
|
@@ -660,7 +660,7 @@ GROUP BY erx_category");
|
|
|
hcp_pro_id: {{$pro->id}},
|
|
|
hcp_pro_signed_at: null,
|
|
|
hcp_pro_signed_by_session_id: null,
|
|
|
- note_id: {{$note->id}},
|
|
|
+ note_id: {{@$note ? $note->id : $patient->coreNote->id}},
|
|
|
uid: _data.data,
|
|
|
version_number: 1,
|
|
|
});
|