abstractor 4.0.0 → 4.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/app/assets/stylesheets/abstractor/abstractor_abstractions.css +1 -2
- data/app/views/abstractor/abstractor_abstractions/_list.html.haml +1 -1
- data/lib/abstractor/abstractable.rb +7 -2
- data/lib/abstractor/negation_detection.rb +1 -1
- data/lib/abstractor/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ODI2YTMwYzQzYWNkM2RkYmMwNDQyNTVlMzJhMWM5ZGVlYTRiN2NmNw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZjE0MDk4NzdkNzE2YjM2MjUyM2VjODgxMzAzZGE5Y2U4MzI3OGQwMw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Y2EzZDU0N2ZhNWRhMWQwYjk4NmM4MjI3MzE0M2Y3Mjc3MTc3ZWRkYTY4NDM5
|
10
|
+
MzgxZGU0YWIwMmEwZDQxM2FhMjE0Njc0NjE0N2Y3NjM1ODk5YmNjYjRkMzFl
|
11
|
+
MDEwNjYzYjBlYWZmMmZhYTVhZWM1YWI3MGI3MWI0MzQ3MDJlOWI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NzJmMjZiMjc5ZDkwMDg5ZDkxNmI5YzYwMGRlYjFlNDc2OTk3OTYyNGM5ZTg5
|
14
|
+
MzkzYzcyMzg2MDMwOTZhMzA1NzNhMzNmZDU5MGVhZmFjNDkwMDIzODhhZTEz
|
15
|
+
OGFlZGFmYmUxYTc5MTllMDkyZGQ2OGZhNjE4M2NiNmU5NDNiMGE=
|
@@ -19,7 +19,7 @@
|
|
19
19
|
%b Status
|
20
20
|
%hr
|
21
21
|
.abstractor_subject_groups
|
22
|
-
- abstractor_abstraction_groups = about.abstractor_abstraction_groups_by_namespace(namespace_type: namespace_type, namespace_id: namespace_id)
|
22
|
+
- abstractor_abstraction_groups = about.abstractor_abstraction_groups_by_namespace(namespace_type: namespace_type, namespace_id: namespace_id, abstractor_subject_group_id: abstractor_subject_group.id)
|
23
23
|
- abstractor_abstraction_groups.each_with_index do |abstractor_abstraction_group, index|
|
24
24
|
= render partial: 'abstractor/abstractor_abstraction_groups/form', locals: {abstractor_abstraction_group: abstractor_abstraction_group}
|
25
25
|
= link_to 'Add group', Abstractor::UserInterface.abstractor_relative_path(abstractor.abstractor_abstraction_groups_path(about_id: about.id, about_type: about.class.name, abstractor_subject_group_id: abstractor_subject_group.id)), data: { confirm: 'Are you sure?'}, method: :post, class: 'abstractor_group_add_link', remote: true
|
@@ -40,9 +40,14 @@ module Abstractor
|
|
40
40
|
def abstractor_abstraction_groups_by_namespace(options = {})
|
41
41
|
options = { namespace_type: nil, namespace_id: nil }.merge(options)
|
42
42
|
if options[:namespace_type] || options[:namespace_id]
|
43
|
-
abstractor_abstractions_by_namespace(options).map(&:abstractor_abstraction_group).compact.uniq
|
43
|
+
groups = abstractor_abstractions_by_namespace(options).map(&:abstractor_abstraction_group).compact.uniq
|
44
44
|
else
|
45
|
-
abstractor_abstraction_groups.not_deleted
|
45
|
+
groups = abstractor_abstraction_groups.not_deleted
|
46
|
+
end
|
47
|
+
if options[:abstractor_subject_group_id]
|
48
|
+
groups.select{|g| g.abstractor_subject_group_id == options[:abstractor_subject_group_id]}
|
49
|
+
else
|
50
|
+
groups
|
46
51
|
end
|
47
52
|
end
|
48
53
|
|
@@ -21,7 +21,7 @@ module Abstractor
|
|
21
21
|
|
22
22
|
def self.manual_negated_match_value?(sentence, match_value)
|
23
23
|
negated = false
|
24
|
-
['
|
24
|
+
['non-','\bthere is no evidence of a ', '\bthere is no evidence of a metastatic ', '\binsufficient to make the diagnosis of ', '\binsufficient to make the diagnosis of metastatic ', '\binsufficient for the diagnosis of ', '\binsufficient for the diagnosis of metastatic ', '\brule out ', '\brule out metastatic ', '\bnegative for ', '\bnegative for metastatic ', '\bno ', '\bno metastatic ', '\bnot ', '\bnot metastatic ', '\bno evidence of ', '\bno evidence of metastatic ', '\bno evidence of a ', '\bno evidence of a metastatic ', '\brules out the possibility of a ', '\brules out the possibility of a metastatic ', '\bto exclude the possibility of ', '\bto exclude the possibility of metastic '].each do |negation_cue|
|
25
25
|
if !(sentence.downcase.scan(Regexp.new(negation_cue + match_value.downcase)).empty?)
|
26
26
|
negated = true
|
27
27
|
end
|
data/lib/abstractor/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: abstractor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Gurley, Yulia Bushmanova
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-09-
|
11
|
+
date: 2014-09-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|