|
@@ -55,7 +55,13 @@ $medications = $points;
|
|
|
<div>
|
|
|
<b><?= !!@($medication->data->name) ? @($medication->data->name) : '-' ?></b>
|
|
|
@if(!$medication->is_removed && $medication->added_in_note_id === $note->id)
|
|
|
- <div class="mt-1 text-sm text-secondary">Added during this visit</div>
|
|
|
+ <div class="mt-1 text-sm text-secondary">Added during this visit
|
|
|
+ @if($medication->addition_reason_category === 'ON_INTAKE')
|
|
|
+ (existing)
|
|
|
+ @elseif($medication->addition_reason_category === 'DURING_VISIT')
|
|
|
+ (new)
|
|
|
+ @endif
|
|
|
+ </div>
|
|
|
@endif
|
|
|
@if($medication->is_removed && ($medication->added_in_note_id !== $note->id && $medication->removed_in_note_id === $note->id))
|
|
|
<div class="mt-1 text-sm text-secondary">Discontinued during this visit</div>
|
|
@@ -110,6 +116,20 @@ $medications = $points;
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
+ <div class="mb-2">
|
|
|
+ <label class="text-sm text-secondary mb-1">Existing / New</label>
|
|
|
+ <select class="form-control form-control-sm" name="additionReasonCategory" required>
|
|
|
+ <option value="">-- select --</option>
|
|
|
+ <option value="ON_INTAKE" {{$medication->addition_reason_category === 'ON_INTAKE' ? 'selected' : ''}}>Existing (Patient was already on this)</option>
|
|
|
+ <option value="DURING_VISIT" {{$medication->addition_reason_category === 'DURING_VISIT' ? 'selected' : ''}}>New (Prescribed during this visit)</option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="mb-2">
|
|
|
+ <label class="text-sm text-secondary mb-1">Description</label>
|
|
|
+ <textarea rows="1" data-name="description" class="form-control form-control-sm">{{@$medication->data->description}}</textarea>
|
|
|
+ </div>
|
|
|
+
|
|
|
<div>
|
|
|
<button type="submit" class="btn-save-medication btn btn-sm btn-primary mr-2">Save</button>
|
|
|
<button cancel class="btn btn-sm btn-default border">Cancel</button>
|