lib/neutrino/gateway/patient.rb
# Invoke self-healing on all members of a patient identity set
#
# @param [Hash] params specify what patient to invoke self healing on, must specify `:root` and `extension`
# @param [Hash] options specify query values
# @return [boolean] true if patient self healing was successful, false if not
# @raise [Exceptions::InvalidTenantOperation] when NEUTRINO returns a 403 status
# @raise [Exceptions::PatientNotFoundError] when NEUTRINO returns a 404 status
Invoke self-healing on all members of a patient identity set
Invoke self - healing on all members of a patient identity set
def self_healing(params, options = {})
          path = "#{base_uri(params)}/self_healing"
          request(path, options.merge(method: :post), {})
            .if_404_raise(Neutrino::Gateway::Exceptions::PatientNotFoundError)
            .if_403_raise(Neutrino::Gateway::Exceptions::InvalidTenantOperation)
            .to_hash['message']
        end
def self_healing ( params , options = { } ) path = "#{base_uri(params)}/self_healing" request ( path , options . merge ( method : :post ) , { } ) . if_404_raise ( Neutrino :: Gateway :: Exceptions :: PatientNotFoundError ) . if_403_raise ( Neutrino :: Gateway :: Exceptions :: InvalidTenantOperation ) . to_hash [ 'message' ] end
Invoke self-healing on all members of a patient identity set
Invoke self - healing on all members of a patient identity set
true if patient self healing was successful, false if not
true if patient self healing was successful false if not
boolean
[Exceptions::InvalidTenantOperation] when NEUTRINO returns a 403 status
[ Exceptions :: InvalidTenantOperation ] when NEUTRINO returns a 403 status
[Exceptions::PatientNotFoundError] when NEUTRINO returns a 404 status
[ Exceptions :: PatientNotFoundError ] when NEUTRINO returns a 404 status
params
<not_specific>
options
<not_specific>
<not_specific>
options specify query values
options specify query values