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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 59d1ffb8e44b7c08e003b0dd695f8e8c61df78c2
|
4
|
+
data.tar.gz: d33bfe91624e038f5beb0302d9726fe0dee3b218
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
@@ -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
|
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.
|
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-
|
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
|