|
@@ -14,6 +14,7 @@ $vitalLabels = [
|
|
"respirationRatePerMinute" => "Resp.",
|
|
"respirationRatePerMinute" => "Resp.",
|
|
"pulseOx" => "Pulse Ox.",
|
|
"pulseOx" => "Pulse Ox.",
|
|
"smokingStatus" => "Smoking Status",
|
|
"smokingStatus" => "Smoking Status",
|
|
|
|
+ "pain" => "Pain",
|
|
];
|
|
];
|
|
$contentData = null;
|
|
$contentData = null;
|
|
if ($point->lastChildReview && $point->lastChildReview->note->id === $note->id && $point->lastChildReview->data) {
|
|
if ($point->lastChildReview && $point->lastChildReview->note->id === $note->id && $point->lastChildReview->data) {
|
|
@@ -34,6 +35,7 @@ if(!$contentData) {
|
|
"respirationRatePerMinute" => '',
|
|
"respirationRatePerMinute" => '',
|
|
"pulseOx" => '',
|
|
"pulseOx" => '',
|
|
"smokingStatus" => '',
|
|
"smokingStatus" => '',
|
|
|
|
+ "pain" => '',
|
|
];
|
|
];
|
|
}else {
|
|
}else {
|
|
if(!isset($contentData['date'])) $contentData['date'] = $note->effective_dateest;
|
|
if(!isset($contentData['date'])) $contentData['date'] = $note->effective_dateest;
|
|
@@ -48,7 +50,7 @@ $previousVitals = [];
|
|
|
|
|
|
$previousVitals = \App\Models\Point::where('parent_point_id', $point->id)
|
|
$previousVitals = \App\Models\Point::where('parent_point_id', $point->id)
|
|
->where('category', 'REVIEW')
|
|
->where('category', 'REVIEW')
|
|
- ->where('added_in_note_id', '!=', $note->id)
|
|
|
|
|
|
+ ->where('added_in_note_id', '<', $note->id)
|
|
->orderBy('id', 'DESC')
|
|
->orderBy('id', 'DESC')
|
|
->limit(4)
|
|
->limit(4)
|
|
->get();
|
|
->get();
|
|
@@ -179,6 +181,24 @@ if(!@$segment) {
|
|
<span class="pl-1 text-secondary bg-white">in.</span>
|
|
<span class="pl-1 text-secondary bg-white">in.</span>
|
|
<input type="hidden" data-name="heightInInches" value="{{$contentData['heightInInches']}}">
|
|
<input type="hidden" data-name="heightInInches" value="{{$contentData['heightInInches']}}">
|
|
</div>
|
|
</div>
|
|
|
|
+ @elseif($k === 'pain')
|
|
|
|
+ <input type="text"
|
|
|
|
+ class="form-control form-control-sm border-0"
|
|
|
|
+ data-name="pain"
|
|
|
|
+ placeholder="{{$v}}"
|
|
|
|
+ data-option-list="pain" multi-col-option-list tiny value="{{$contentData['pain']}}">
|
|
|
|
+ <div id="pain" class="data-option-list">
|
|
|
|
+ <div>1</div>
|
|
|
|
+ <div>6</div>
|
|
|
|
+ <div>2</div>
|
|
|
|
+ <div>7</div>
|
|
|
|
+ <div>3</div>
|
|
|
|
+ <div>8</div>
|
|
|
|
+ <div>4</div>
|
|
|
|
+ <div>9</div>
|
|
|
|
+ <div>5</div>
|
|
|
|
+ <div>10</div>
|
|
|
|
+ </div>
|
|
@else
|
|
@else
|
|
<input type="text"
|
|
<input type="text"
|
|
class="form-control form-control-sm border-0" data-name="{{$k}}" {{$k}}
|
|
class="form-control form-control-sm border-0" data-name="{{$k}}" {{$k}}
|
|
@@ -243,8 +263,8 @@ if(!@$segment) {
|
|
</form>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
<script>
|
|
- window.segmentInitializers.omega_vitals = function () {
|
|
|
|
- let parentSegment = $('[data-segment-template-name="omega_vitals"] ');
|
|
|
|
|
|
+ window.segmentInitializers.psych_vitals = function () {
|
|
|
|
+ let parentSegment = $('[data-segment-template-name="psych_vitals"] ');
|
|
|
|
|
|
function __refreshBMI() {
|
|
function __refreshBMI() {
|
|
var height = parseInt(parentSegment.find('[data-name="heightInInches"]').val());
|
|
var height = parseInt(parentSegment.find('[data-name="heightInInches"]').val());
|