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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MjcxMTgwOGI0Y2QwNDNjMjc4NDE2Y2I0YmIwYWQ2ZTg5YzU0NjI2Zg==
4
+ ODI2YTMwYzQzYWNkM2RkYmMwNDQyNTVlMzJhMWM5ZGVlYTRiN2NmNw==
5
5
  data.tar.gz: !binary |-
6
- ZTJmNWM0ZTcwMzZmMzk5YTRjYjBiMWU5Y2JkZWI1NTFkZjc5NGU1NA==
6
+ ZjE0MDk4NzdkNzE2YjM2MjUyM2VjODgxMzAzZGE5Y2U4MzI3OGQwMw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZjE5NjUwNDVjNDcwMGVlZWEwNjM3MDQ2ODI5NzdiOTExNjZjZjY0Y2RmNzc5
10
- NjcwMjljNDg4YmU2MDkwMmUxNjk2MTg0MWQ4NTM0OTlkZWUxMjc3YTI2Mzk1
11
- YjE4NmIyODlkMjRhMDYwZGQ1NTgwMDg0NGYwMWM4OTExMmNlODg=
9
+ Y2EzZDU0N2ZhNWRhMWQwYjk4NmM4MjI3MzE0M2Y3Mjc3MTc3ZWRkYTY4NDM5
10
+ MzgxZGU0YWIwMmEwZDQxM2FhMjE0Njc0NjE0N2Y3NjM1ODk5YmNjYjRkMzFl
11
+ MDEwNjYzYjBlYWZmMmZhYTVhZWM1YWI3MGI3MWI0MzQ3MDJlOWI=
12
12
  data.tar.gz: !binary |-
13
- MTNmMjNjZDQ1OGNmM2U5MGFhODFlNWZjNDZkOWVlODE5OWZiYjMwNDAwYjU0
14
- OTFjZTI5MjQ5OGZmYWZlNzczZDVhMThmMzEwN2QxMWYxZWJjMGI4YWY2ZTEx
15
- OTJiMDdiMzM2YTVhZTdkMzNkNmNkMGRjYTM4ZTA5MWJmZWI4MmI=
13
+ NzJmMjZiMjc5ZDkwMDg5ZDkxNmI5YzYwMGRlYjFlNDc2OTk3OTYyNGM5ZTg5
14
+ MzkzYzcyMzg2MDMwOTZhMzA1NzNhMzNmZDU5MGVhZmFjNDkwMDIzODhhZTEz
15
+ OGFlZGFmYmUxYTc5MTllMDkyZGQ2OGZhNjE4M2NiNmU5NDNiMGE=
@@ -340,8 +340,7 @@ span.tooltip_img {
340
340
  }
341
341
 
342
342
  .indirect_source_list {
343
- width: 50%;
344
- height: auto;
343
+ width: 35%;
345
344
  }
346
345
 
347
346
  .indirect_source_text {
@@ -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
- ['no\b', '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|
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
@@ -1,3 +1,3 @@
1
1
  module Abstractor
2
- VERSION = '4.0.0'
2
+ VERSION = '4.0.1'
3
3
  end
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.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-10 00:00:00.000000000 Z
11
+ date: 2014-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails