|
@@ -49,8 +49,12 @@ foreach ($medications as $medication) {
|
|
</div>
|
|
</div>
|
|
<div class="ml-auto d-inline-flex align-items-baseline pr-2">
|
|
<div class="ml-auto d-inline-flex align-items-baseline pr-2">
|
|
<?php if ($medication->is_removed): ?>
|
|
<?php if ($medication->is_removed): ?>
|
|
- <span class="font-weight-bold text-secondary">Removed on intake</span>
|
|
|
|
- <div visit-moe class="ml-2">
|
|
|
|
|
|
+ <?php if ($medication->is_removed_due_to_entry_error): ?>
|
|
|
|
+ <span class="font-weight-bold text-secondary" class="mr-2">Entry error</span>
|
|
|
|
+ <?php else: ?>
|
|
|
|
+ <span class="font-weight-bold text-secondary" class="mr-2">Removed on intake</span>
|
|
|
|
+ <?php endif; ?>
|
|
|
|
+ <div visit-moe>
|
|
<form show url="/api/visitPoint/undoMarkRemoved" class="mcp-theme-1">
|
|
<form show url="/api/visitPoint/undoMarkRemoved" class="mcp-theme-1">
|
|
<input type="hidden" name="uid" value="<?= $medication->uid ?>">
|
|
<input type="hidden" name="uid" value="<?= $medication->uid ?>">
|
|
<input type="hidden" name="segmentUid" value="<?= $segment->uid ?>">
|
|
<input type="hidden" name="segmentUid" value="<?= $segment->uid ?>">
|
|
@@ -58,8 +62,11 @@ foreach ($medications as $medication) {
|
|
</form>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<?php else: ?>
|
|
<?php else: ?>
|
|
|
|
+ <?php if($medication->added_in_note_id === $note->id): ?>
|
|
|
|
+ <span class="font-weight-bold text-success mr-2">* Added on intake</span>
|
|
|
|
+ <?php endif; ?>
|
|
<div visit-moe>
|
|
<div visit-moe>
|
|
- <a start show href>Remove</a>
|
|
|
|
|
|
+ <a start show href="#">Remove</a>
|
|
<form url="/api/visitPoint/markRemovedOnIntake" class="mcp-theme-1">
|
|
<form url="/api/visitPoint/markRemovedOnIntake" class="mcp-theme-1">
|
|
<input type="hidden" name="uid" value="<?= $medication->uid ?>">
|
|
<input type="hidden" name="uid" value="<?= $medication->uid ?>">
|
|
<input type="hidden" name="segmentUid" value="<?= $segment->uid ?>">
|
|
<input type="hidden" name="segmentUid" value="<?= $segment->uid ?>">
|
|
@@ -70,14 +77,18 @@ foreach ($medications as $medication) {
|
|
<label class="text-sm text-secondary mb-1">Removal Reason</label>
|
|
<label class="text-sm text-secondary mb-1">Removal Reason</label>
|
|
<textarea name="removalReasonMemo" class="form-control form-control-sm" rows="2"></textarea>
|
|
<textarea name="removalReasonMemo" class="form-control form-control-sm" rows="2"></textarea>
|
|
</div>
|
|
</div>
|
|
- <div class="mb-2">
|
|
|
|
- <label class="text-sm text-secondary mb-1">Is Entry Error? *</label>
|
|
|
|
- <select name="isRemovedDueToEntryError" class="form-control form-control-sm" required>
|
|
|
|
- <option value="">-- select --</option>
|
|
|
|
- <option value="1">Yes</option>
|
|
|
|
- <option value="0">No</option>
|
|
|
|
- </select>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <?php if($medication->added_in_note_id === $note->id): ?>
|
|
|
|
+ <div class="mb-2">
|
|
|
|
+ <label class="text-sm text-secondary mb-1">Is Entry Error? *</label>
|
|
|
|
+ <select name="isRemovedDueToEntryError" class="form-control form-control-sm" required>
|
|
|
|
+ <option value="">-- select --</option>
|
|
|
|
+ <option value="1" selected>Yes</option>
|
|
|
|
+ <option value="0">No</option>
|
|
|
|
+ </select>
|
|
|
|
+ </div>
|
|
|
|
+ <?php else: ?>
|
|
|
|
+ <input type="hidden" name="isRemovedDueToEntryError" value="0">
|
|
|
|
+ <?php endif; ?>
|
|
<div class="mb-2">
|
|
<div class="mb-2">
|
|
<label class="text-sm text-secondary mb-1">Removal Effective Date</label>
|
|
<label class="text-sm text-secondary mb-1">Removal Effective Date</label>
|
|
<input type="date" name="removalEffectiveDate"
|
|
<input type="date" name="removalEffectiveDate"
|