Class: OpenEHR::CKMClient::SOAPInterface

Inherits:
Object
  • Object
show all
Defined in:
lib/openehr/ckm_client/soap_interface.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ SOAPInterface

Returns a new instance of SOAPInterface.



9
10
11
12
# File 'lib/openehr/ckm_client/soap_interface.rb', line 9

def initialize(params)
  @repository = params[:repository] || CKM_REPOSITORY
  @log_level = params[:verbose] ? :debug : :fatal
end

Instance Attribute Details

#repositoryObject (readonly)

Returns the value of attribute repository.



7
8
9
# File 'lib/openehr/ckm_client/soap_interface.rb', line 7

def repository
  @repository
end

Instance Method Details

#fetch(id) ⇒ Object



14
15
16
# File 'lib/openehr/ckm_client/soap_interface.rb', line 14

def fetch(id)
  soap_driver(@repository).get_adl_by_id(id)
end

#search(partial_id) ⇒ Object



18
19
20
# File 'lib/openehr/ckm_client/soap_interface.rb', line 18

def search(partial_id)
  soap_driver(@repository).get_archetypes_by_partial_id(partial_id)
end