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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 28e62a00ab82106b8f358d630adfcb194675f93a
|
4
|
+
data.tar.gz: bf7aa2d96bbe2dd3a6eb22f23dcee50df85e37a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
-
|
26
|
+
get Retrieve archetype by archetype_id
|
23
27
|
search query archetype by keyword
|
24
28
|
help show this help
|
25
29
|
USAGE
|