dpickett-clinical 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
data/clinical.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{clinical}
5
- s.version = "0.1.0"
5
+ s.version = "0.1.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Dan Pickett"]
@@ -24,9 +24,12 @@ Gem::Specification.new do |s|
24
24
  "features/step_definitions/clinical_steps.rb",
25
25
  "features/support/env.rb",
26
26
  "lib/clinical.rb",
27
+ "lib/clinical/address.rb",
27
28
  "lib/clinical/collection.rb",
29
+ "lib/clinical/contact.rb",
28
30
  "lib/clinical/extensions.rb",
29
31
  "lib/clinical/intervention.rb",
32
+ "lib/clinical/location.rb",
30
33
  "lib/clinical/outcome.rb",
31
34
  "lib/clinical/primary_outcome.rb",
32
35
  "lib/clinical/secondary_outcome.rb",
@@ -0,0 +1,10 @@
1
+ module Clinical
2
+ class Address
3
+ include HappyMapper
4
+
5
+ element :city, String
6
+ element :state, String
7
+ element :zip, String
8
+ element :country, String
9
+ end
10
+ end
@@ -0,0 +1,13 @@
1
+ module Clinical
2
+ class Contact
3
+ include HappyMapper
4
+
5
+ element :first_name, String
6
+ element :middle_name, String
7
+ element :last_name, String
8
+ element :degrees, String
9
+ element :phone, String
10
+ element :phone_ext, String
11
+ element :email, String
12
+ end
13
+ end
@@ -0,0 +1,10 @@
1
+ module Clinical
2
+ class Location
3
+ include HappyMapper
4
+
5
+ element :facility, String
6
+ has_one :status, Clinical::Status, :parser => :parse
7
+ has_one :contact, Clinical::Contact
8
+ has_one :address, Clinical::Address
9
+ end
10
+ end
@@ -30,7 +30,7 @@ module Clinical
30
30
  end
31
31
 
32
32
  def to_s
33
- sym.to_s
33
+ @name.to_s
34
34
  end
35
35
 
36
36
  class << self
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dpickett-clinical
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Pickett
@@ -63,9 +63,12 @@ files:
63
63
  - features/step_definitions/clinical_steps.rb
64
64
  - features/support/env.rb
65
65
  - lib/clinical.rb
66
+ - lib/clinical/address.rb
66
67
  - lib/clinical/collection.rb
68
+ - lib/clinical/contact.rb
67
69
  - lib/clinical/extensions.rb
68
70
  - lib/clinical/intervention.rb
71
+ - lib/clinical/location.rb
69
72
  - lib/clinical/outcome.rb
70
73
  - lib/clinical/primary_outcome.rb
71
74
  - lib/clinical/secondary_outcome.rb