athena_health 0.9.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d5ff758203a5e2e7bcfe4f04526b61d0328bcae9
4
- data.tar.gz: 23c4d285b1a580eeec6bf2e84ae3a83c8878a014
3
+ metadata.gz: 59d1ffb8e44b7c08e003b0dd695f8e8c61df78c2
4
+ data.tar.gz: d33bfe91624e038f5beb0302d9726fe0dee3b218
5
5
  SHA512:
6
- metadata.gz: 6032f2e10aa9fc4edb9c5b021bab3fa6f4c41520a5f49bb33dcf1ce62d3707673386204d9bff97629ee8b496f9a7f56aec0d2bd5eea057fcce3f9f4cfb0fec7b
7
- data.tar.gz: ea8c1e67a254fc02d9176507ee1f4a9cfca38f6e7b41c654f3a6d7b86cbe3f57c12fea8f8d2a0a174c778d79ecaf016c943f08813f45fa25e12b71486ffd62bf
6
+ metadata.gz: e9d5b6b96b89bf66e4eabcfc32c570e371495454d0bcf2d6c6b7d5383697f4ad48ecbb088586c2ef921ba32aaabc2ce502e5fbb45616241e3fb610ab67f8527a
7
+ data.tar.gz: e8ca901b037a062ef92e95035ec20ae6adddae3e44479c2028c885633ac0cf945edf792798febb01938108f81c3fde6e82fc9b5962a17d317ac58b1a6ac6a8ff
data/lib/athena_health.rb CHANGED
@@ -44,6 +44,8 @@ require 'athena_health/question'
44
44
  require 'athena_health/question_collection'
45
45
  require 'athena_health/prescription'
46
46
  require 'athena_health/prescription_collection'
47
+ require 'athena_health/analyte'
48
+ require 'athena_health/analyte_collection'
47
49
 
48
50
  module AthenaHealth
49
51
  end
@@ -0,0 +1,14 @@
1
+ module AthenaHealth
2
+ class Analyte < BaseModel
3
+ attribute :analyteid, Integer
4
+ attribute :analytename, String
5
+ attribute :loinc, String
6
+ attribute :value, Integer
7
+ attribute :units, String
8
+ attribute :analytedate, String
9
+ attribute :description, String
10
+ attribute :note, String
11
+ attribute :valuestatus, String
12
+ attribute :referencerange, String
13
+ end
14
+ end
@@ -0,0 +1,5 @@
1
+ module AthenaHealth
2
+ class AnalyteCollection < BaseCollection
3
+ attribute :analytes, Array[Analyte]
4
+ end
5
+ end
@@ -102,6 +102,16 @@ module AthenaHealth
102
102
 
103
103
  PrescriptionCollection.new(response)
104
104
  end
105
+
106
+ def patient_analytes(practice_id:, department_id:, patient_id:)
107
+ response = @api.call(
108
+ endpoint: "#{practice_id}/chart/#{patient_id}/analytes",
109
+ method: :get,
110
+ params: { departmentid: department_id }
111
+ )
112
+
113
+ AnalyteCollection.new(response)
114
+ end
105
115
  end
106
116
  end
107
117
  end
@@ -1,3 +1,3 @@
1
1
  module AthenaHealth
2
- VERSION = '0.9.0'.freeze
2
+ VERSION = '0.9.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: athena_health
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mateusz Urbański
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-03-31 00:00:00.000000000 Z
11
+ date: 2016-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -125,6 +125,8 @@ files:
125
125
  - Rakefile
126
126
  - athena_health.gemspec
127
127
  - lib/athena_health.rb
128
+ - lib/athena_health/analyte.rb
129
+ - lib/athena_health/analyte_collection.rb
128
130
  - lib/athena_health/appointment.rb
129
131
  - lib/athena_health/appointment_collection.rb
130
132
  - lib/athena_health/appointment_type.rb