allscripts_api 0.5.0 → 0.6.0

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: e7f2c6194381fdaa1b4069b22120b15d035333e2
4
- data.tar.gz: 01520fdc6872cfefe47c6844cf3067ee075095c3
3
+ metadata.gz: e06aaddd4e6fec0d855fe6b972ab0687a6e366b1
4
+ data.tar.gz: 3e8fd1b4de7d5c16acec8ae157aac9077ce460a3
5
5
  SHA512:
6
- metadata.gz: edfadd90b79088c4de35c34a0884e2d11bd7946e50b2ce6409197e793175e28ce97e00b55c69ce5b0e224d3cd578bf09f2d5e23bf08955c0bab775fc4227dc07
7
- data.tar.gz: e87bb431c75c9cd005bd147a8c0043444cbc73181bef5b323d099660fe12c90a51dd7315a08d2da4458d8c570a1267ba026b662303dae09a9d5240a818137b40
6
+ metadata.gz: 2e5809bc5ce6969a91e77f4c5c1324e6f82e701ccda52fc120234a4377e8003cad1a5615eebd062e6246af55bccfe1492c66f110dc2d54df134d14722db55949
7
+ data.tar.gz: acebaabdb10e84956fef21d943983826f92fc1ccb2c79e801f52f64c5b53c34c262bc6357c538da98ddfdbe0e2704223f1e8efde34b19feb95e5d4cd82fb03bd
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- allscripts_api (0.5.0)
4
+ allscripts_api (0.6.0)
5
5
  faraday (>= 0.12.2)
6
6
 
7
7
  GEM
@@ -9,9 +9,9 @@ module AllscriptsApi
9
9
  # a wrapper around SearchPatients
10
10
  #
11
11
  # @param search_string [String] may be a name, birthdate
12
- # partial address, or other PHI
12
+ # partial address, or other PHI
13
13
  # @return [Array<Hash>, Array, MagicError] a list of found patients,
14
- # an empty array, or an error
14
+ # an empty array, or an error
15
15
  def search_patients(search_string)
16
16
  params =
17
17
  MagicParams.format(
@@ -22,6 +22,21 @@ module AllscriptsApi
22
22
  results["searchpatientsinfo"]
23
23
  end
24
24
 
25
+ # a wrapper around GetProvider
26
+ #
27
+ # @param provider_id [String] optional Allscripts user id
28
+ # @param user_name [String] optional Allscripts user_name
29
+ # @return [Array<Hash>, Array, MagicError] a list of providers
30
+ def get_provider(provider_id = nil, user_name = nil)
31
+ params =
32
+ MagicParams.format(
33
+ parameter1: provider_id,
34
+ parameter2: user_name
35
+ )
36
+ results = magic("GetProvider", magic_params: params)
37
+ results["getproviderinfo"]
38
+ end
39
+
25
40
  # gets the CCDA documents for the specified patient and encounter
26
41
  #
27
42
  # @param patient_id [String] patient id
@@ -2,5 +2,5 @@
2
2
 
3
3
  module AllscriptsApi
4
4
  # gem version declaration
5
- VERSION = "0.5.0".freeze
5
+ VERSION = "0.6.0".freeze
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: allscripts_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chase
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-05-11 00:00:00.000000000 Z
11
+ date: 2018-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday