athena_health 1.0.12 → 1.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/lib/athena_health.rb +2 -0
- data/lib/athena_health/appointment.rb +14 -10
- data/lib/athena_health/endpoints/appointments.rb +18 -0
- data/lib/athena_health/note.rb +8 -0
- data/lib/athena_health/note_collection.rb +5 -0
- data/lib/athena_health/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab7b04de7b904154825fe88ed61d2fd61bde66c1
|
4
|
+
data.tar.gz: f764c8ccfcf065152421d1a3148e3b38d6493e2a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 580d313b0933e2d9def9fc9999cf053bbeeb1c45bad5e9a77bfab5187fc05bc1b05c58f9d85f7451f37915e22cb3fc78eb37ea936a6448ee90b9f7b9c1d18401
|
7
|
+
data.tar.gz: 6b24b66242b4e0da8a7ce4f0218b63717a31f30cd5a79368d79430822f0d3b9a9b2ff0c8b88fb45fa3efe13b342f96275bc3589717b157af44e8606b235d8e25
|
data/.travis.yml
CHANGED
data/lib/athena_health.rb
CHANGED
@@ -55,6 +55,8 @@ require 'athena_health/pharmacy_collection'
|
|
55
55
|
require 'athena_health/medication'
|
56
56
|
require 'athena_health/allergy'
|
57
57
|
require 'athena_health/laboratory'
|
58
|
+
require 'athena_health/note'
|
59
|
+
require 'athena_health/note_collection'
|
58
60
|
|
59
61
|
module AthenaHealth
|
60
62
|
end
|
@@ -1,21 +1,25 @@
|
|
1
1
|
module AthenaHealth
|
2
2
|
class Appointment < BaseModel
|
3
|
-
attribute :date, String
|
4
3
|
attribute :appointmentid, Integer
|
5
|
-
attribute :departmentid, Integer
|
6
|
-
attribute :appointmenttype, String
|
7
4
|
attribute :appointmentstatus, String
|
8
|
-
attribute :
|
9
|
-
attribute :providerid, Integer
|
10
|
-
attribute :starttime, String
|
11
|
-
attribute :duration, Integer
|
5
|
+
attribute :appointmenttype, String
|
12
6
|
attribute :appointmenttypeid, Integer
|
13
|
-
attribute :
|
7
|
+
attribute :coordinatorenterprise, Boolean
|
8
|
+
attribute :date, String
|
9
|
+
attribute :departmentid, Integer
|
10
|
+
attribute :duration, Integer
|
11
|
+
attribute :encounterstatus, String
|
12
|
+
attribute :frozen, Boolean
|
14
13
|
attribute :lastmodified, String
|
15
|
-
attribute :
|
14
|
+
attribute :patient, Patient
|
15
|
+
attribute :patientappointmenttypename, String
|
16
|
+
attribute :patientid, Integer
|
17
|
+
attribute :providerid, Integer
|
18
|
+
attribute :rescheduledappointmentid, Integer
|
16
19
|
attribute :scheduledby, String
|
20
|
+
attribute :scheduleddatetime, String
|
21
|
+
attribute :starttime, String
|
17
22
|
attribute :templateappointmentid, Integer
|
18
|
-
attribute :encounterstatus, String
|
19
23
|
|
20
24
|
def appointment_status
|
21
25
|
{
|
@@ -67,6 +67,24 @@ module AthenaHealth
|
|
67
67
|
|
68
68
|
AppointmentCollection.new(response)
|
69
69
|
end
|
70
|
+
|
71
|
+
def appointment_notes(practice_id:, appointment_id:, params: {})
|
72
|
+
response = @api.call(
|
73
|
+
endpoint: "#{practice_id}/appointments/#{appointment_id}/notes",
|
74
|
+
method: :get,
|
75
|
+
params: params
|
76
|
+
)
|
77
|
+
|
78
|
+
NoteCollection.new(response)
|
79
|
+
end
|
80
|
+
|
81
|
+
def create_appointment_note(practice_id:, appointment_id:, note_text:)
|
82
|
+
@api.call(
|
83
|
+
endpoint: "#{practice_id}/appointments/#{appointment_id}/notes",
|
84
|
+
method: :post,
|
85
|
+
body: { notetext: note_text }
|
86
|
+
)
|
87
|
+
end
|
70
88
|
end
|
71
89
|
end
|
72
90
|
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: 1.0.
|
4
|
+
version: 1.0.13
|
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-05-
|
11
|
+
date: 2016-05-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -146,6 +146,8 @@ files:
|
|
146
146
|
- lib/athena_health/lab_result_collection.rb
|
147
147
|
- lib/athena_health/laboratory.rb
|
148
148
|
- lib/athena_health/medication.rb
|
149
|
+
- lib/athena_health/note.rb
|
150
|
+
- lib/athena_health/note_collection.rb
|
149
151
|
- lib/athena_health/order.rb
|
150
152
|
- lib/athena_health/order_collection.rb
|
151
153
|
- lib/athena_health/patient.rb
|