|
@@ -142,10 +142,12 @@ $ccSegment = $note->getSegmentByInternalName('chief_complaint');
|
|
|
|
|
|
<div class="mb-2">
|
|
<div class="mb-2">
|
|
<label class="text-sm text-secondary mb-0">ICD</label>
|
|
<label class="text-sm text-secondary mb-0">ICD</label>
|
|
- <select data-name="icd"
|
|
|
|
- class="form-control form-control-sm"
|
|
|
|
- disabled>
|
|
|
|
- </select>
|
|
|
|
|
|
+ <input type="text"
|
|
|
|
+ data-name="icd"
|
|
|
|
+ data-option-list
|
|
|
|
+ class="form-control form-control-sm"
|
|
|
|
+ value="{{@$problem->data->icd}}">
|
|
|
|
+ <div class="data-option-list"></div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@else
|
|
@else
|
|
@@ -267,10 +269,12 @@ $ccSegment = $note->getSegmentByInternalName('chief_complaint');
|
|
</div>
|
|
</div>
|
|
<div class="col-4">
|
|
<div class="col-4">
|
|
<label class="text-sm text-secondary mb-0">ICD</label>
|
|
<label class="text-sm text-secondary mb-0">ICD</label>
|
|
- <select data-name="icd"
|
|
|
|
- class="form-control form-control-sm"
|
|
|
|
- disabled>
|
|
|
|
- </select>
|
|
|
|
|
|
+ <input type="text"
|
|
|
|
+ data-name="icd"
|
|
|
|
+ data-option-list
|
|
|
|
+ class="form-control form-control-sm"
|
|
|
|
+ disabled>
|
|
|
|
+ <div class="data-option-list"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -302,7 +306,8 @@ $ccSegment = $note->getSegmentByInternalName('chief_complaint');
|
|
.off('stag-suggest-selected')
|
|
.off('stag-suggest-selected')
|
|
.on('stag-suggest-selected', (_e, _input, _data) => {
|
|
.on('stag-suggest-selected', (_e, _input, _data) => {
|
|
$(_input).closest('form').find('input[data-name="dxid"]').val(_data.dxid);
|
|
$(_input).closest('form').find('input[data-name="dxid"]').val(_data.dxid);
|
|
- let icdSelect = $(_input).closest('form').find('[data-name="icd"]').empty().prop('disabled', true);
|
|
|
|
|
|
+ let icdSelect = $(_input).closest('form').find('[data-name="icd"]').val('').prop('disabled', true);
|
|
|
|
+ icdSelect.next('.data-option-list').empty();
|
|
|
|
|
|
$('.fdb-dx-vigilance').html('<span class="text-secondary font-italic">Please wait ...</span>');
|
|
$('.fdb-dx-vigilance').html('<span class="text-secondary font-italic">Please wait ...</span>');
|
|
$.post('/fdb-dx-vigilance/{{$patient->uid}}', {
|
|
$.post('/fdb-dx-vigilance/{{$patient->uid}}', {
|
|
@@ -316,22 +321,14 @@ $ccSegment = $note->getSegmentByInternalName('chief_complaint');
|
|
$.get('/fdb-dx-icds-for-dxid?dxid=' + _data.dxid, _data => {
|
|
$.get('/fdb-dx-icds-for-dxid?dxid=' + _data.dxid, _data => {
|
|
icdSelect.empty().append('<option value="">-- select --</option>');
|
|
icdSelect.empty().append('<option value="">-- select --</option>');
|
|
for (let i = 0; i < _data.length; i++) {
|
|
for (let i = 0; i < _data.length; i++) {
|
|
- icdSelect.append('<option value="' + _data[i].search_icd_cd + '" data-icd-type="' + _data[i].icd_cd_type + '">' + _data[i].search_icd_cd + ' (' + (_data[i].icd_cd_type === '01' ? 'ICD-9' : 'ICD-10') + ') - ' + _data[i].icd_desc + '</option>')
|
|
|
|
|
|
+ if(_data[i].icd_cd_type !== '01') {
|
|
|
|
+ icdSelect.next('.data-option-list').append($('<div/>').text(_data[i].search_icd_cd));
|
|
|
|
+ }
|
|
}
|
|
}
|
|
icdSelect.prop('disabled', false);
|
|
icdSelect.prop('disabled', false);
|
|
- if (_data.length === 1) {
|
|
|
|
- icdSelect.val(_data[0].search_icd_cd).trigger('change');
|
|
|
|
- }
|
|
|
|
}, 'json');
|
|
}, 'json');
|
|
});
|
|
});
|
|
|
|
|
|
- // on route selection
|
|
|
|
- parentSegment.find('input[data-name="icd"]')
|
|
|
|
- .off('change')
|
|
|
|
- .on('change', function () {
|
|
|
|
- $(this).closest('form').find('input[data-name="icd-type"]').val($(this).find('option:selected').attr('data-icd-type'));
|
|
|
|
- });
|
|
|
|
-
|
|
|
|
@include('app.patient.wizard-partials.common-script', ['label' => 'problem'])
|
|
@include('app.patient.wizard-partials.common-script', ['label' => 'problem'])
|
|
|
|
|
|
@if($patient->core_note_id !== $note->id)
|
|
@if($patient->core_note_id !== $note->id)
|