Эх сурвалжийг харах

Wizards - no fdb column in multi-add mode

Vijayakrishnan 3 жил өмнө
parent
commit
02aec602e8

+ 13 - 13
resources/views/app/patient/allergies-center.blade.php

@@ -274,16 +274,16 @@ if(!@$summaryView) {
         @if(!@$summaryView)
         @if(!@$summaryView)
         <div class="d-flex align-items-center">
         <div class="d-flex align-items-center">
             <div class="mt-1 w-100 border p-3 bg-aliceblue border-info rounded">
             <div class="mt-1 w-100 border p-3 bg-aliceblue border-info rounded">
-                <div class="row">
-                    <div class="col-8">
-                        <div class="d-flex align-items-baseline mb-3" tab-links="">
-                            <a class="tab-link-active" href="#" tab-link="add-multiple-pre-existing">Add Multiple Pre-existing</a>
-                            <a class="" href="#" tab-link="add-single">Add Single</a>
-                        </div>
-                        <div class="cm-tab" tab-key="add-multiple-pre-existing">
-                            @include('app.patient.wizard-partials.add-multiple-pre-existing', ['label' => 'allergy', 'adder' => 'Diagnosed By'])
-                        </div>
-                        <div class="cm-tab d-none" tab-key="add-single">
+                <div class="d-flex align-items-baseline mb-3" tab-links="">
+                    <a class="tab-link-active" href="#" tab-link="add-multiple-pre-existing">Add Multiple Pre-existing</a>
+                    <a class="" href="#" tab-link="add-single">Add Single</a>
+                </div>
+                <div class="cm-tab" tab-key="add-multiple-pre-existing">
+                    @include('app.patient.wizard-partials.add-multiple-pre-existing', ['label' => 'allergy', 'adder' => 'Diagnosed By'])
+                </div>
+                <div class="cm-tab d-none" tab-key="add-single">
+                    <div class="row">
+                        <div class="col-8">
                             <form action="/api/visitPoint/addTopLevel" class="mcp-theme-1 w-100" id="frm-add-allergy" novalidate>
                             <form action="/api/visitPoint/addTopLevel" class="mcp-theme-1 w-100" id="frm-add-allergy" novalidate>
                                 <input type="hidden" name="noteUid" value="<?= $note->uid ?>">
                                 <input type="hidden" name="noteUid" value="<?= $note->uid ?>">
                                 <input type="hidden" name="category" value="ALLERGY">
                                 <input type="hidden" name="category" value="ALLERGY">
@@ -332,10 +332,10 @@ if(!@$summaryView) {
                                 </div>
                                 </div>
                             </form>
                             </form>
                         </div>
                         </div>
-                    </div>
-                    <div class="col-4 border-left">
-                        <div class="fdb-allergy-vigilance max-height-400px overflow-auto">
+                        <div class="col-4 border-left">
+                            <div class="fdb-allergy-vigilance max-height-400px overflow-auto">
 
 
+                            </div>
                         </div>
                         </div>
                     </div>
                     </div>
                 </div>
                 </div>

+ 81 - 81
resources/views/app/patient/medications-center.blade.php

@@ -262,94 +262,94 @@ if(!@$summaryView) {
         @if(!@$summaryView)
         @if(!@$summaryView)
         <div class="d-flex align-items-center">
         <div class="d-flex align-items-center">
             <div class="mt-1 w-100 border p-3 bg-aliceblue border-info rounded">
             <div class="mt-1 w-100 border p-3 bg-aliceblue border-info rounded">
-                <div class="row">
-                    <div class="col-8">
-                        <div class="d-flex align-items-baseline mb-3" tab-links="">
-                            <a class="tab-link-active" href="#" tab-link="add-multiple-pre-existing">Add Multiple Pre-existing</a>
-                            <a class="" href="#" tab-link="add-single">Add Single</a>
-                        </div>
-                        <div class="cm-tab" tab-key="add-multiple-pre-existing">
-                            @include('app.patient.wizard-partials.add-multiple-pre-existing', ['label' => 'medication', 'adder' => 'Prescriber'])
-                        </div>
-                        <div class="cm-tab d-none" tab-key="add-single">
-                            <form action="/api/visitPoint/addTopLevel" class="mcp-theme-1 w-100" id="frm-add-medication" novalidate>
-                                <input type="hidden" name="noteUid" value="<?= $note->uid ?>">
-                                <input type="hidden" name="category" value="MEDICATION">
-                                <input type="hidden" name="data">
-
-                                <input type="hidden" data-name="medId">
-                                <input type="hidden" data-name="routedMedId">
-                                <input type="hidden" data-name="routedDosageFormMedId">
-                                <input type="hidden" data-name="gcnSeqno">
-
-                                <input type="hidden" name="isRemovedDueToEntryError" value="0">
-
-                                <div class="d-flex align-items-baseline mb-2">
-                                    <b>Add Medication</b>
-                                    @if(count($favorites))
-                                        <div class="d-inline position-relative on-click-menu ml-4">
-                                        <span class="text-primary c-pointer">
-                                            <i class="fa fa-bookmark text-info mr-1"></i> Common Medications <i class="ml-1 fa fa-caret-down"></i>
-                                        </span>
-                                            <div menu right class="bg-white border">
-                                                @foreach($favorites as $favorite)
-                                                    <a native target="_blank" href="#"
-                                                       data-name="{{@($favorite->data->name)}}"
-                                                       data-medId="{{@($favorite->data->medId)}}"
-                                                       data-routedMedId="{{@($favorite->data->routedMedId)}}"
-                                                       data-routedDosageFormMedId="{{@($favorite->data->routedDosageFormMedId)}}"
-                                                       data-gcnSeqno="{{@($favorite->data->gcnSeqno)}}"
-                                                       class="px-2 py-1 d-block text-nowrap text-sm favorite-item">
-                                                        {{$favorite->data->name}}
-                                                    </a>
-                                                @endforeach
-                                            </div>
+                <div class="d-flex align-items-baseline mb-3" tab-links="">
+                    <a class="tab-link-active" href="#" tab-link="add-multiple-pre-existing">Add Multiple Pre-existing</a>
+                    <a class="" href="#" tab-link="add-single">Add Single</a>
+                </div>
+                <div class="cm-tab" tab-key="add-multiple-pre-existing">
+                    @include('app.patient.wizard-partials.add-multiple-pre-existing', ['label' => 'medication', 'adder' => 'Prescriber'])
+                </div>
+                <div class="cm-tab d-none" tab-key="add-single">
+                            <div class="row">
+                                <div class="col-8">
+                                    <form action="/api/visitPoint/addTopLevel" class="mcp-theme-1 w-100" id="frm-add-medication" novalidate>
+                                        <input type="hidden" name="noteUid" value="<?= $note->uid ?>">
+                                        <input type="hidden" name="category" value="MEDICATION">
+                                        <input type="hidden" name="data">
+
+                                        <input type="hidden" data-name="medId">
+                                        <input type="hidden" data-name="routedMedId">
+                                        <input type="hidden" data-name="routedDosageFormMedId">
+                                        <input type="hidden" data-name="gcnSeqno">
+
+                                        <input type="hidden" name="isRemovedDueToEntryError" value="0">
+
+                                        <div class="d-flex align-items-baseline mb-2">
+                                            <b>Add Medication</b>
+                                            @if(count($favorites))
+                                                <div class="d-inline position-relative on-click-menu ml-4">
+                                                <span class="text-primary c-pointer">
+                                                    <i class="fa fa-bookmark text-info mr-1"></i> Common Medications <i class="ml-1 fa fa-caret-down"></i>
+                                                </span>
+                                                    <div menu right class="bg-white border">
+                                                        @foreach($favorites as $favorite)
+                                                            <a native target="_blank" href="#"
+                                                               data-name="{{@($favorite->data->name)}}"
+                                                               data-medId="{{@($favorite->data->medId)}}"
+                                                               data-routedMedId="{{@($favorite->data->routedMedId)}}"
+                                                               data-routedDosageFormMedId="{{@($favorite->data->routedDosageFormMedId)}}"
+                                                               data-gcnSeqno="{{@($favorite->data->gcnSeqno)}}"
+                                                               class="px-2 py-1 d-block text-nowrap text-sm favorite-item">
+                                                                {{$favorite->data->name}}
+                                                            </a>
+                                                        @endforeach
+                                                    </div>
+                                                </div>
+                                            @endif
+                                        </div>
+                                        <div class="mb-2">
+                                            <label class="mb-0 font-weight-bold">Name</label>
+                                            <input type="text"
+                                                   data-name="name"
+                                                   class="form-control form-control-sm"
+                                                   stag-suggest
+                                                   stag-suggest-bottom-left
+                                                   stag-suggest-ep="/fdb-med-suggest-v2/json"
+                                                   required>
                                         </div>
                                         </div>
-                                    @endif
-                                </div>
-                                <div class="mb-2">
-                                    <label class="mb-0 font-weight-bold">Name</label>
-                                    <input type="text"
-                                           data-name="name"
-                                           class="form-control form-control-sm"
-                                           stag-suggest
-                                           stag-suggest-bottom-left
-                                           stag-suggest-ep="/fdb-med-suggest-v2/json"
-                                           required>
-                                </div>
 
 
-                                <?php $point = null; ?>
-                                @include('app.patient.wizard-partials.common-fields-optimized', ['label' => 'medication', 'addVerbPT' => 'Prescribed'])
+                                        <?php $point = null; ?>
+                                        @include('app.patient.wizard-partials.common-fields-optimized', ['label' => 'medication', 'addVerbPT' => 'Prescribed'])
 
 
-                                <div class="d-flex align-items-center">
-                                    <button type="submit" class="btn btn-sm btn-primary mr-2">Save Medication</button>
-                                    <button type="button" class="btn btn-sm btn-default border-secondary bg-white border mr-2" onclick="return closeStagPopup()">Close</button>
+                                        <div class="d-flex align-items-center">
+                                            <button type="submit" class="btn btn-sm btn-primary mr-2">Save Medication</button>
+                                            <button type="button" class="btn btn-sm btn-default border-secondary bg-white border mr-2" onclick="return closeStagPopup()">Close</button>
+                                        </div>
+                                    </form>
                                 </div>
                                 </div>
-                            </form>
-                        </div>
-                    </div>
-                    <div class="col-4 border-left">
-
-                        <?php
-                        $problems = \App\Models\Point::getPointsOfCategory($patient, "PROBLEM");
-                        ?>
-                        @if(count($problems))
-                            <h6 class="my-0 font-weight-bold text-secondary mb-2">Active Problems</h6>
-                            <div class="bg-light border px-2 pt-2 pb-1 mb-0">
-                                @foreach($problems as $problem)
-                                    <div class="mb-1">
-                                        <b><?= !!@($problem->data->name) ? @($problem->data->name) : '-' ?></b>
-                                    </div>
-                                @endforeach
-                            </div>
-                            <hr class="my-3 m-neg-3">
-                        @endif
+                                <div class="col-4 border-left">
+
+                                    <?php
+                                    $problems = \App\Models\Point::getPointsOfCategory($patient, "PROBLEM");
+                                    ?>
+                                    @if(count($problems))
+                                        <h6 class="my-0 font-weight-bold text-secondary mb-2">Active Problems</h6>
+                                        <div class="bg-light border px-2 pt-2 pb-1 mb-0">
+                                            @foreach($problems as $problem)
+                                                <div class="mb-1">
+                                                    <b><?= !!@($problem->data->name) ? @($problem->data->name) : '-' ?></b>
+                                                </div>
+                                            @endforeach
+                                        </div>
+                                        <hr class="my-3 m-neg-3">
+                                    @endif
 
 
-                        <div class="fdb-rx-vigilance max-height-400px overflow-auto">
+                                    <div class="fdb-rx-vigilance max-height-400px overflow-auto">
 
 
+                                    </div>
+                                </div>
+                            </div>
                         </div>
                         </div>
-                    </div>
-                </div>
             </div>
             </div>
         </div>
         </div>
         @endif
         @endif

+ 85 - 83
resources/views/app/patient/problems-center.blade.php

@@ -325,98 +325,100 @@ if(!@$summaryView) {
         @if(!@$summaryView)
         @if(!@$summaryView)
         <div class="d-flex align-items-center">
         <div class="d-flex align-items-center">
             <div class="mt-1 w-100 border p-3 bg-aliceblue border-info rounded">
             <div class="mt-1 w-100 border p-3 bg-aliceblue border-info rounded">
-                <div class="row">
-                    <div class="col-8">
-                        <div class="d-flex align-items-baseline mb-3" tab-links="">
-                            <a class="tab-link-active" href="#" tab-link="add-multiple-pre-existing">Add Multiple Pre-existing</a>
-                            <a class="" href="#" tab-link="add-single">Add Single</a>
-                        </div>
-                        <div class="cm-tab" tab-key="add-multiple-pre-existing">
-                            @include('app.patient.wizard-partials.add-multiple-pre-existing', ['label' => 'problem', 'adder' => 'Diagnosed By'])
-                        </div>
-                        <div class="cm-tab d-none" tab-key="add-single">
-                            <form action="/api/visitPoint/addTopLevel" class="mcp-theme-1 w-100" id="frm-add-problem" novalidate>
-                                <input type="hidden" name="noteUid" value="<?= $note->uid ?>">
-                                <input type="hidden" name="category" value="PROBLEM">
-                                <input type="hidden" name="data">
-
-                                <input type="hidden" data-name="dxid">
-                                <input type="hidden" data-name="icd-type">
-
-                                <input type="hidden" name="isRemovedDueToEntryError" value="0">
-
-                                <div class="d-flex align-items-baseline mb-2">
-                                    <b>Add Problem</b>
-                                    @if(count($favorites))
-                                        <div class="d-inline position-relative on-click-menu ml-4">
-                                            <span class="text-primary c-pointer">
-                                                <i class="fa fa-bookmark text-info mr-1"></i> Common Problems <i class="ml-1 fa fa-caret-down"></i>
-                                            </span>
-                                            <div menu right class="bg-white border">
-                                                @foreach($favorites as $favorite)
-                                                    <a native target="_blank" href="#"
-                                                       data-name="{{@($favorite->data->name)}}"
-                                                       data-dxid="{{@($favorite->data->dxid)}}"
-                                                       data-icd="{{@($favorite->data->icd)}}"
-                                                       data-icd-type="{{@($favorite->data->{'icd-type'})}}"
-                                                       class="px-2 py-1 d-block text-nowrap text-sm favorite-item">
-                                                        {{$favorite->data->name}}
-                                                    </a>
-                                                @endforeach
+
+                    <div class="d-flex align-items-baseline mb-3" tab-links="">
+                        <a class="tab-link-active" href="#" tab-link="add-multiple-pre-existing">Add Multiple Pre-existing</a>
+                        <a class="" href="#" tab-link="add-single">Add Single</a>
+                    </div>
+                    <div class="cm-tab" tab-key="add-multiple-pre-existing">
+                        @include('app.patient.wizard-partials.add-multiple-pre-existing', ['label' => 'problem', 'adder' => 'Diagnosed By'])
+                    </div>
+                    <div class="cm-tab d-none" tab-key="add-single">
+                        <div class="row">
+                            <div class="col-8">
+                                <form action="/api/visitPoint/addTopLevel" class="mcp-theme-1 w-100" id="frm-add-problem" novalidate>
+                                    <input type="hidden" name="noteUid" value="<?= $note->uid ?>">
+                                    <input type="hidden" name="category" value="PROBLEM">
+                                    <input type="hidden" name="data">
+
+                                    <input type="hidden" data-name="dxid">
+                                    <input type="hidden" data-name="icd-type">
+
+                                    <input type="hidden" name="isRemovedDueToEntryError" value="0">
+
+                                    <div class="d-flex align-items-baseline mb-2">
+                                        <b>Add Problem</b>
+                                        @if(count($favorites))
+                                            <div class="d-inline position-relative on-click-menu ml-4">
+                                                    <span class="text-primary c-pointer">
+                                                        <i class="fa fa-bookmark text-info mr-1"></i> Common Problems <i class="ml-1 fa fa-caret-down"></i>
+                                                    </span>
+                                                <div menu right class="bg-white border">
+                                                    @foreach($favorites as $favorite)
+                                                        <a native target="_blank" href="#"
+                                                           data-name="{{@($favorite->data->name)}}"
+                                                           data-dxid="{{@($favorite->data->dxid)}}"
+                                                           data-icd="{{@($favorite->data->icd)}}"
+                                                           data-icd-type="{{@($favorite->data->{'icd-type'})}}"
+                                                           class="px-2 py-1 d-block text-nowrap text-sm favorite-item">
+                                                            {{$favorite->data->name}}
+                                                        </a>
+                                                    @endforeach
+                                                </div>
                                             </div>
                                             </div>
-                                        </div>
-                                    @endif
-                                </div>
-                                <div class="row mb-2">
-                                    <div class="col-8 pr-0">
-                                        <label class="text-sm mb-0 font-weight-bold">Name</label>
-                                        <input type="text"
-                                               data-name="name"
-                                               class="form-control form-control-sm"
-                                               stag-suggest
-                                               stag-suggest-bottom-left
-                                               stag-suggest-ep="/fdb-dx-suggest-v2/json"
-                                               stag-suggest-text-only
-                                               value="{{trim(request()->input('dx')) ? trim(request()->input('dx')) : ''}}"
-                                               required>
+                                        @endif
                                     </div>
                                     </div>
-                                    <div class="col-4">
-                                        <label class="text-sm mb-0 font-weight-bold">ICD</label>
-                                        <input type="text"
-                                               data-name="icd"
-                                               class="form-control form-control-sm min-width-unset">
+                                    <div class="row mb-2">
+                                        <div class="col-8 pr-0">
+                                            <label class="text-sm mb-0 font-weight-bold">Name</label>
+                                            <input type="text"
+                                                   data-name="name"
+                                                   class="form-control form-control-sm"
+                                                   stag-suggest
+                                                   stag-suggest-bottom-left
+                                                   stag-suggest-ep="/fdb-dx-suggest-v2/json"
+                                                   stag-suggest-text-only
+                                                   value="{{trim(request()->input('dx')) ? trim(request()->input('dx')) : ''}}"
+                                                   required>
+                                        </div>
+                                        <div class="col-4">
+                                            <label class="text-sm mb-0 font-weight-bold">ICD</label>
+                                            <input type="text"
+                                                   data-name="icd"
+                                                   class="form-control form-control-sm min-width-unset">
+                                        </div>
                                     </div>
                                     </div>
-                                </div>
 
 
-                                <?php $point = null; ?>
-                                @include('app.patient.wizard-partials.common-fields-optimized', ['label' => 'problem', 'addVerbPT' => 'Added', 'reviewLabel' => 'Subjective/HPI', 'apTerm' => 'assessment/plan'])
+                                    <?php $point = null; ?>
+                                    @include('app.patient.wizard-partials.common-fields-optimized', ['label' => 'problem', 'addVerbPT' => 'Added', 'reviewLabel' => 'Subjective/HPI', 'apTerm' => 'assessment/plan'])
 
 
-                                <div class="d-flex align-items-center">
-                                    <button type="submit" class="btn btn-sm btn-primary mr-2">Save Problem</button>
-                                    <button type="button" class="btn btn-sm btn-default border-secondary bg-white border mr-2" onclick="return closeStagPopup()">Close</button>
-                                </div>
-                            </form>
-                        </div>
-                    </div>
-                    <div class="col-4 border-left">
-
-                        <?php
-                        $medications = \App\Models\Point::getPointsOfCategory($patient, "MEDICATION");
-                        ?>
-                        @if(count($medications))
-                            <h6 class="my-0 font-weight-bold text-secondary mb-2">Active Medications</h6>
-                            <div class="bg-light border px-2 pt-2 pb-1 mb-0">
-                                @foreach($medications as $medication)
-                                    <div class="mb-1">
-                                        <b><?= !!@($medication->data->name) ? @($medication->data->name) : '-' ?></b>
+                                    <div class="d-flex align-items-center">
+                                        <button type="submit" class="btn btn-sm btn-primary mr-2">Save Problem</button>
+                                        <button type="button" class="btn btn-sm btn-default border-secondary bg-white border mr-2" onclick="return closeStagPopup()">Close</button>
                                     </div>
                                     </div>
-                                @endforeach
+                                </form>
                             </div>
                             </div>
-                            <hr class="my-3 m-neg-3">
-                        @endif
+                            <div class="col-4 border-left">
 
 
-                        <div class="fdb-dx-vigilance max-height-400px overflow-auto">
+                                <?php
+                                $medications = \App\Models\Point::getPointsOfCategory($patient, "MEDICATION");
+                                ?>
+                                @if(count($medications))
+                                    <h6 class="my-0 font-weight-bold text-secondary mb-2">Active Medications</h6>
+                                    <div class="bg-light border px-2 pt-2 pb-1 mb-0">
+                                        @foreach($medications as $medication)
+                                            <div class="mb-1">
+                                                <b><?= !!@($medication->data->name) ? @($medication->data->name) : '-' ?></b>
+                                            </div>
+                                        @endforeach
+                                    </div>
+                                    <hr class="my-3 m-neg-3">
+                                @endif
 
 
+                                <div class="fdb-dx-vigilance max-height-400px overflow-auto">
+
+                                </div>
+                            </div>
                         </div>
                         </div>
                     </div>
                     </div>
                 </div>
                 </div>