class Mirah::PushResult
The result of a create or update operation.
@example Create a new patient
result = client.push_patient(external_id: 'mrn001', given_name: 'Henry', family_name: 'Jones', birth_date: Date.parse('1983-03-20')) => #<Mirah::PushResult:... @given_name="Henry", @family_name="Jones", @birth_date=#<Date: 1983-03-20> result.status # => "UPDATED" result.result.given_name # => "Henry"
Attributes
errors[R]
Any errors that occurred in processing @return [Array<Error>] any errors that occurred.
input[R]
The input parameters used @return [Input] the input object
result[R]
The result, where executed successfully. @return [Data, nil] the appropriate data type, if the result was successful
status[R]
The status of the request. It can be one of:
* CREATED: A new resource was created * UPDATED: An existing resource was updated * SKIPPED: The record was understood but not processed. * ERROR: An error occured.
@return [“CREATED”, “UPDATED”, “ERROR”, “SKIPPED”]
Public Class Methods
new(status:, result:, errors:, input:)
click to toggle source
# File lib/mirah/push_result.rb, line 13 def initialize(status:, result:, errors:, input:) @result = result @status = status @errors = errors @input = input end