|
@@ -17,6 +17,45 @@
|
|
|
</form>
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
+ <div>
|
|
|
+ <h1>Sample measurement moe</h1>
|
|
|
+ <div moe>
|
|
|
+ <form show url="/api/measurement/create">
|
|
|
+ <input type="hidden" name="clientUid" value="{{$patient->uid}}">
|
|
|
+ <input type="text" name="label" value="" value="" placeholder="label"><br>
|
|
|
+ <input type="text" name="value" placeholder="value"><br>
|
|
|
+ <input type="date" name="effectiveDate" placeholder="value"><br>
|
|
|
+ <input type="text" name="memo" placeholder="memo"><br>
|
|
|
+ <button submit>Submit</button>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <h1>Measurments</h1>
|
|
|
+ <?php $measurements = json_decode($patient->latest_measurements);?>
|
|
|
+ <table class="table table-striped table-sm">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th>Label</th>
|
|
|
+ <th>Value</th>
|
|
|
+ <th>Effective date</th>
|
|
|
+ <th>Memo</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ @foreach ($measurements as $label => $data)
|
|
|
+ <tr>
|
|
|
+ <td>{{$label}}</td>
|
|
|
+ <td>{{$data->value}}</td>
|
|
|
+ <td>{{$data->effectiveDate}}</td>
|
|
|
+ <td>{{$data->memo}}</td>
|
|
|
+ </tr>
|
|
|
+ @endforeach
|
|
|
+
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<pre>
|
|
|
CARE PLAN: [edit]
|
|
|
|