ckm_client 0.0.2 → 0.0.3

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: bece0bab89daadab517097e731b7f1704deac94c
4
- data.tar.gz: e3b6bb1dafd32672dbd1df57a276eab92249f56f
3
+ metadata.gz: 28e62a00ab82106b8f358d630adfcb194675f93a
4
+ data.tar.gz: bf7aa2d96bbe2dd3a6eb22f23dcee50df85e37a4
5
5
  SHA512:
6
- metadata.gz: 98aaec17bce043bd848744accfe884e699517e9d92c485f0f9f6b345f2a3c8bdeab2c92485f3a37519f89e55f8a69f0e3be72bea492dc9a021cf291a46fc8e21
7
- data.tar.gz: 95a0d9d74da16cd2d6d7a6ea36d908ebd8c66fd0224ef77d61fbb9dba24cb693879872c6f7d74b610e5505e286f7450d3fbeb616a153bc84cc8f47945b801319
6
+ metadata.gz: 4f01086564fca26456d3fa9b30762f0e34c32c0102f59b852481b25392d1bc11e5f8e4aef71707bc92680603d6266675a78e00db2127100bf675c0ec0c7863ab
7
+ data.tar.gz: e22f0926e382620faaff4dc9974f32285def22361fe2239e3e794f380c746982718f58232454fa2467e3c410684b8097f1db6025eb63a811570988e82f0e6898
@@ -1,15 +1,19 @@
1
1
  require 'thor'
2
+ require 'openehr/ckm_client/soap_interface'
3
+
2
4
  module OpenEHR
3
5
  module CKMClient
4
6
  class CLI < Thor
5
7
  desc 'fetch', 'Retrieve archetype by archetype_id'
6
- def fetch(archtype_id)
7
- puts OpenEHR::CKMClient.new.fetch(archtype_id)
8
+ def get(archtype_id)
9
+ puts OpenEHR::CKMClient::SOAPInterface.new.fetch(archtype_id)
8
10
  end
11
+
12
+ alias fetch get
9
13
 
10
14
  desc 'search', 'Query archetype by partial id'
11
15
  def search(part_id)
12
- puts OpenEHR::CKMClient.new.search(part_id)
16
+ puts OpenEHR::CKMClient::SOAPInterface.new.search(part_id)
13
17
  end
14
18
 
15
19
  desc 'help', 'Show this help'
@@ -19,7 +23,7 @@ Usage:
19
23
  ckmc <command> [<args>]
20
24
 
21
25
  Commands supported:
22
- fetch Retrieve archetype by archetype_id
26
+ get Retrieve archetype by archetype_id
23
27
  search query archetype by keyword
24
28
  help show this help
25
29
  USAGE
@@ -1,4 +1,5 @@
1
1
  CKM_REPOSITORY = 'http://openehr.org/ckm/services/ArchetypeFinderBean?wsdl'
2
+ require 'soap/wsdlDriver'
2
3
 
3
4
  module OpenEHR
4
5
  module CKMClient
@@ -1,5 +1,5 @@
1
1
  module OpenEHR
2
2
  module CKMClient
3
- VERSION = '0.0.2'
3
+ VERSION = '0.0.3'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ckm_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shinji KOBAYASHI