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(repository = CKM_REPOSITORY) ⇒ SOAPInterface

Returns a new instance of SOAPInterface.



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

def initialize(repository=CKM_REPOSITORY)
  @repository = repository
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



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

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

#search(partial_id) ⇒ Object



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

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