|
@@ -3,9 +3,9 @@
|
|
|
use App\Models\Point;
|
|
|
|
|
|
$category = 'COVID_INTAKE';
|
|
|
-$endPoint = 'upsertGlobalSingleton';
|
|
|
|
|
|
-$point = Point::getGlobalSingletonOfCategory($patient, 'COVID_INTAKE', true);
|
|
|
+$point = Point::getOrCreateOnlyTopLevelPointOfCategory($note, 'COVID_INTAKE', $sessionKey, true);
|
|
|
+
|
|
|
$contentData = [
|
|
|
|
|
|
"ans_cdc_guidelines_aarp_mental_health" => '',
|
|
@@ -133,16 +133,18 @@ $contentData = [
|
|
|
|
|
|
];
|
|
|
|
|
|
-if (!!@$point->data) {
|
|
|
- $contentData = $point->data;
|
|
|
+if ($point->lastChildReview && $point->lastChildReview->data) {
|
|
|
+ $point->lastChildReview->data = json_decode($point->lastChildReview->data, true);
|
|
|
+ $contentData = $point->lastChildReview->data;
|
|
|
}
|
|
|
|
|
|
?>
|
|
|
|
|
|
<div visit-moe close-on-save close-on-cancel class="d-block p-3">
|
|
|
- <form show url="/api/visitPoint/<?= $endPoint ?>" class="mcp-theme-1">
|
|
|
+ <form show url="/api/visitPoint/upsertChildReview" class="mcp-theme-1">
|
|
|
+ <input type="hidden" name="uid" value="<?= $point->uid ?>">
|
|
|
+ <input type="hidden" name="noteUid" value="<?= $note->uid ?>">
|
|
|
<input type="hidden" name="segmentUid" value="<?= $segment->uid ?>">
|
|
|
- <input type="hidden" name="category" value="<?= $category ?>">
|
|
|
<input type="hidden" name="data" value="{{json_encode($contentData)}}">
|
|
|
<p class="mb-2">Hi {{strtolower($patient->sex) === 'M' ? 'Mr.' : 'Mrs.'}} {{$patient->displayName()}}, My name is {{$pro->displayName()}}. I'm a board-certified nurse practitioner.</p>
|
|
|
|