think_feel_do_engine 3.16.1 → 3.16.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/models/message_sms_notification.rb +11 -1
- data/app/views/think_feel_do_engine/coach/patient_dashboards/tables/_phq9_data.html.erb +20 -1
- data/app/views/think_feel_do_engine/phq_assessments/_phq_assessment.html.erb +2 -0
- data/lib/think_feel_do_engine/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 099d2b9246441035ead8b54604571f1195ff4e32
|
4
|
+
data.tar.gz: 77a684b0110078d7669fa9bb9a3451de11993dea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2843e95cdf48a0d09042e5c2f97e0b7d3ea0d82a5b8222b9cbc9cbc1d5ce1aa01df677b52ebfbabc6a49d109ac98792eca124e94fe7dcc52a753603015e958d2
|
7
|
+
data.tar.gz: ffc57f373f55c169858c6a70d62f675b3d4f86f2bcd8dacef0bbe3ebe647424d91e1d51467ea30b1a75974bd4bb9217726d23c986a1b1d251ea170af45b33ab6
|
@@ -25,16 +25,26 @@ class MessageSmsNotification
|
|
25
25
|
Rails.env
|
26
26
|
end
|
27
27
|
|
28
|
+
def status_callback_url
|
29
|
+
config.try(:status_callback_url)
|
30
|
+
end
|
31
|
+
|
28
32
|
def from_telephone_number
|
29
33
|
config.try(:twilio_account_telephone_number)
|
30
34
|
end
|
31
35
|
|
32
36
|
def message
|
33
|
-
{
|
37
|
+
params = {
|
34
38
|
to: "+1#{ phone_number }",
|
35
39
|
from: from_telephone_number,
|
36
40
|
body: body
|
37
41
|
}
|
42
|
+
|
43
|
+
if status_callback_url
|
44
|
+
params[:status_callback] = status_callback_url
|
45
|
+
end
|
46
|
+
|
47
|
+
params
|
38
48
|
end
|
39
49
|
|
40
50
|
def sms_client
|
@@ -14,6 +14,8 @@
|
|
14
14
|
<table class="table table-hover generic-data-table data-table" id="phq_assessments">
|
15
15
|
<thead>
|
16
16
|
<tr>
|
17
|
+
<th class="not-displayed"></th>
|
18
|
+
<th class="not-displayed"></th>
|
17
19
|
<th>Release Date</th>
|
18
20
|
<th>Created Date</th>
|
19
21
|
<th>Assessment Score</th>
|
@@ -42,6 +44,23 @@
|
|
42
44
|
|
43
45
|
<script type="text/javascript">
|
44
46
|
$(function() {
|
45
|
-
return $('
|
47
|
+
return $('#phq_assessments').dataTable({
|
48
|
+
order: [[0, 'desc']],
|
49
|
+
columnDefs: [
|
50
|
+
{
|
51
|
+
targets: [0],
|
52
|
+
visible: false
|
53
|
+
},{
|
54
|
+
targets: [1],
|
55
|
+
visible: false
|
56
|
+
},{
|
57
|
+
targets: [2],
|
58
|
+
orderData: [0]
|
59
|
+
},{
|
60
|
+
targets: [3],
|
61
|
+
orderData: [1]
|
62
|
+
}
|
63
|
+
]
|
64
|
+
});
|
46
65
|
});
|
47
66
|
</script>
|
@@ -1,4 +1,6 @@
|
|
1
1
|
<tr class="<%= 'danger' if phq_assessment.suicidal? %>">
|
2
|
+
<td class="not-displayed"><%= phq_assessment.release_date.to_i %></td>
|
3
|
+
<td class="not-displayed"><%= phq_assessment.created_at.to_i %></td>
|
2
4
|
<td>Released <%= phq_assessment.release_date.to_s(:user_date) %></td>
|
3
5
|
<td>Created <%= phq_assessment.created_at.to_s(:user_date) %></td>
|
4
6
|
<td><%= phq_assessment.score %></td>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: think_feel_do_engine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.16.
|
4
|
+
version: 3.16.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Carty-Fickes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|