candidhealth 0.24.6 → 0.24.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/lib/candidhealth/auth/v_2/client.rb +2 -2
  3. data/lib/candidhealth/billing_notes/v_2/client.rb +2 -2
  4. data/lib/candidhealth/contracts/v_2/client.rb +10 -10
  5. data/lib/candidhealth/custom_schemas/v_1/client.rb +8 -8
  6. data/lib/candidhealth/eligibility/v_2/client.rb +6 -6
  7. data/lib/candidhealth/encounters/v_4/client.rb +8 -8
  8. data/lib/candidhealth/expected_network_status/v_1/client.rb +2 -2
  9. data/lib/candidhealth/expected_network_status/v_2/client.rb +4 -4
  10. data/lib/candidhealth/exports/v_3/client.rb +2 -2
  11. data/lib/candidhealth/external_payment_account_config/v_1/client.rb +2 -2
  12. data/lib/candidhealth/fee_schedules/v_3/client.rb +20 -20
  13. data/lib/candidhealth/guarantor/v_1/client.rb +6 -6
  14. data/lib/candidhealth/import_invoice/v_1/client.rb +8 -8
  15. data/lib/candidhealth/insurance_adjudications/v_1/client.rb +6 -6
  16. data/lib/candidhealth/insurance_payments/v_1/client.rb +10 -10
  17. data/lib/candidhealth/insurance_refunds/v_1/client.rb +10 -10
  18. data/lib/candidhealth/organization_providers/v_3/client.rb +8 -8
  19. data/lib/candidhealth/organization_service_facilities/v_2/client.rb +10 -10
  20. data/lib/candidhealth/patient_payments/v_4/client.rb +10 -10
  21. data/lib/candidhealth/patient_refunds/v_1/client.rb +10 -10
  22. data/lib/candidhealth/payers/v_3/client.rb +4 -4
  23. data/lib/candidhealth/pre_encounter/common/types/external_provider.rb +129 -0
  24. data/lib/candidhealth/pre_encounter/common/types/external_provider_type.rb +14 -0
  25. data/lib/candidhealth/pre_encounter/coverages/v_1/client.rb +28 -24
  26. data/lib/candidhealth/pre_encounter/coverages/v_1/types/insurance_plan.rb +13 -4
  27. data/lib/candidhealth/pre_encounter/coverages/v_1/types/insurance_type_code.rb +86 -0
  28. data/lib/candidhealth/pre_encounter/coverages/v_1/types/network_type.rb +5 -0
  29. data/lib/candidhealth/pre_encounter/coverages/v_1/types/subscriber.rb +10 -10
  30. data/lib/candidhealth/pre_encounter/patients/v_1/client.rb +22 -22
  31. data/lib/candidhealth/pre_encounter/patients/v_1/types/contact.rb +1 -11
  32. data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient.rb +14 -10
  33. data/lib/candidhealth/pre_encounter/patients/v_1/types/patient.rb +13 -9
  34. data/lib/candidhealth/service_facility/client.rb +2 -2
  35. data/lib/candidhealth/tasks/v_3/client.rb +10 -10
  36. data/lib/candidhealth/write_offs/v_1/client.rb +8 -8
  37. data/lib/candidhealth.rb +2 -2
  38. data/lib/environment.rb +8 -0
  39. data/lib/requests.rb +6 -4
  40. data/lib/types_export.rb +3 -1
  41. metadata +5 -3
  42. data/lib/candidhealth/pre_encounter/patients/v_1/types/external_provider.rb +0 -122
@@ -2,7 +2,7 @@
2
2
 
3
3
  require_relative "../../../common/types/human_name"
4
4
  require "date"
5
- require_relative "../../../common/types/gender"
5
+ require_relative "../../../common/types/sex"
6
6
  require "ostruct"
7
7
  require "json"
8
8
 
@@ -16,8 +16,8 @@ module CandidApiClient
16
16
  attr_reader :name
17
17
  # @return [Date]
18
18
  attr_reader :date_of_birth
19
- # @return [CandidApiClient::PreEncounter::Common::Types::Gender]
20
- attr_reader :gender
19
+ # @return [CandidApiClient::PreEncounter::Common::Types::Sex]
20
+ attr_reader :biological_sex
21
21
  # @return [OpenStruct] Additional properties unmapped to the current class definition
22
22
  attr_reader :additional_properties
23
23
  # @return [Object]
@@ -28,15 +28,15 @@ module CandidApiClient
28
28
 
29
29
  # @param name [CandidApiClient::PreEncounter::Common::Types::HumanName]
30
30
  # @param date_of_birth [Date]
31
- # @param gender [CandidApiClient::PreEncounter::Common::Types::Gender]
31
+ # @param biological_sex [CandidApiClient::PreEncounter::Common::Types::Sex]
32
32
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
33
33
  # @return [CandidApiClient::PreEncounter::Coverages::V1::Types::Subscriber]
34
- def initialize(name:, date_of_birth:, gender:, additional_properties: nil)
34
+ def initialize(name:, date_of_birth:, biological_sex:, additional_properties: nil)
35
35
  @name = name
36
36
  @date_of_birth = date_of_birth
37
- @gender = gender
37
+ @biological_sex = biological_sex
38
38
  @additional_properties = additional_properties
39
- @_field_set = { "name": name, "date_of_birth": date_of_birth, "gender": gender }
39
+ @_field_set = { "name": name, "date_of_birth": date_of_birth, "biological_sex": biological_sex }
40
40
  end
41
41
 
42
42
  # Deserialize a JSON object to an instance of Subscriber
@@ -53,11 +53,11 @@ module CandidApiClient
53
53
  name = CandidApiClient::PreEncounter::Common::Types::HumanName.from_json(json_object: name)
54
54
  end
55
55
  date_of_birth = (Date.parse(parsed_json["date_of_birth"]) unless parsed_json["date_of_birth"].nil?)
56
- gender = struct["gender"]
56
+ biological_sex = struct["biological_sex"]
57
57
  new(
58
58
  name: name,
59
59
  date_of_birth: date_of_birth,
60
- gender: gender,
60
+ biological_sex: biological_sex,
61
61
  additional_properties: struct
62
62
  )
63
63
  end
@@ -78,7 +78,7 @@ module CandidApiClient
78
78
  def self.validate_raw(obj:)
79
79
  CandidApiClient::PreEncounter::Common::Types::HumanName.validate_raw(obj: obj.name)
80
80
  obj.date_of_birth.is_a?(Date) != false || raise("Passed value for field obj.date_of_birth is not the expected type, validation failed.")
81
- obj.gender.is_a?(CandidApiClient::PreEncounter::Common::Types::Gender) != false || raise("Passed value for field obj.gender is not the expected type, validation failed.")
81
+ obj.biological_sex.is_a?(CandidApiClient::PreEncounter::Common::Types::Sex) != false || raise("Passed value for field obj.biological_sex is not the expected type, validation failed.")
82
82
  end
83
83
  end
84
84
  end
@@ -70,14 +70,14 @@ module CandidApiClient
70
70
  # * :external_id (String)
71
71
  # * :system_name (String)
72
72
  # * :contacts (Array<CandidApiClient::PreEncounter::Patients::V1::Types::Contact>)
73
- # * :general_practitioners (Array<CandidApiClient::PreEncounter::Patients::V1::Types::ExternalProvider>)
73
+ # * :general_practitioners (Array<CandidApiClient::PreEncounter::Common::Types::ExternalProvider>)
74
74
  # * :filing_order (Hash)
75
75
  # * :coverages (Array<String>)
76
76
  # @param request_options [CandidApiClient::RequestOptions]
77
77
  # @return [CandidApiClient::PreEncounter::Patients::V1::Types::Patient]
78
78
  # @example
79
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
80
- # api.pre_encounter.patients.v_1.create(request: { name: { }, other_names: [{ }], gender: MAN, birth_date: DateTime.parse(2023-01-15), social_security_number: "string", biological_sex: FEMALE, sexual_orientation: HETEROSEXUAL, race: AMERICAN_INDIAN_OR_ALASKA_NATIVE, ethnicity: HISPANIC_OR_LATINO, disability_status: DISABLED, marital_status: ANNULLED, deceased: DateTime.parse(2024-01-15T09:30:00.000Z), multiple_birth: 1, primary_address: { }, other_addresses: [{ }], primary_telecom: { }, other_telecoms: [{ }], email: "string", electronic_communication_opt_in: true, photo: "string", language: "string", external_provenance: { external_id: "string", system_name: "string" }, contacts: [{ relationship: [SELF], name: { }, gender: MAN, telecoms: [{ }], addresses: [{ }], period: { } }], general_practitioners: [{ name: { }, npi: "string", telecoms: [{ }], addresses: [{ }], period: { } }], filing_order: { coverages: ["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"] } })
79
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
80
+ # api.pre_encounter.patients.v_1.create(request: { name: { }, other_names: [{ }], gender: MAN, birth_date: DateTime.parse(2023-01-15), social_security_number: "string", biological_sex: FEMALE, sexual_orientation: HETEROSEXUAL, race: AMERICAN_INDIAN_OR_ALASKA_NATIVE, ethnicity: HISPANIC_OR_LATINO, disability_status: DISABLED, marital_status: ANNULLED, deceased: DateTime.parse(2024-01-15T09:30:00.000Z), multiple_birth: 1, primary_address: { }, other_addresses: [{ }], primary_telecom: { }, other_telecoms: [{ }], email: "string", electronic_communication_opt_in: true, photo: "string", language: "string", external_provenance: { external_id: "string", system_name: "string" }, contacts: [{ relationship: [SELF], name: { }, telecoms: [{ }], addresses: [{ }], period: { } }], general_practitioners: [{ }], filing_order: { coverages: ["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"] } })
81
81
  def create(request:, request_options: nil)
82
82
  response = @request_client.conn.post do |req|
83
83
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -100,7 +100,7 @@ module CandidApiClient
100
100
  # @param request_options [CandidApiClient::RequestOptions]
101
101
  # @return [CandidApiClient::PreEncounter::Patients::V1::Types::Patient]
102
102
  # @example
103
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
103
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
104
104
  # api.pre_encounter.patients.v_1.get(id: "string")
105
105
  def get(id:, request_options: nil)
106
106
  response = @request_client.conn.get do |req|
@@ -124,7 +124,7 @@ module CandidApiClient
124
124
  # @param request_options [CandidApiClient::RequestOptions]
125
125
  # @return [Array<CandidApiClient::PreEncounter::Patients::V1::Types::Patient>]
126
126
  # @example
127
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
127
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
128
128
  # api.pre_encounter.patients.v_1.get_history(id: "string")
129
129
  def get_history(id:, request_options: nil)
130
130
  response = @request_client.conn.get do |req|
@@ -196,17 +196,17 @@ module CandidApiClient
196
196
  # * :external_id (String)
197
197
  # * :system_name (String)
198
198
  # * :contacts (Array<CandidApiClient::PreEncounter::Patients::V1::Types::Contact>)
199
- # * :general_practitioners (Array<CandidApiClient::PreEncounter::Patients::V1::Types::ExternalProvider>)
199
+ # * :general_practitioners (Array<CandidApiClient::PreEncounter::Common::Types::ExternalProvider>)
200
200
  # * :filing_order (Hash)
201
201
  # * :coverages (Array<String>)
202
202
  # @param request_options [CandidApiClient::RequestOptions]
203
203
  # @return [CandidApiClient::PreEncounter::Patients::V1::Types::Patient]
204
204
  # @example
205
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
205
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
206
206
  # api.pre_encounter.patients.v_1.update(
207
207
  # id: "string",
208
208
  # version: "string",
209
- # request: { name: { }, other_names: [{ }], gender: MAN, birth_date: DateTime.parse(2023-01-15), social_security_number: "string", biological_sex: FEMALE, sexual_orientation: HETEROSEXUAL, race: AMERICAN_INDIAN_OR_ALASKA_NATIVE, ethnicity: HISPANIC_OR_LATINO, disability_status: DISABLED, marital_status: ANNULLED, deceased: DateTime.parse(2024-01-15T09:30:00.000Z), multiple_birth: 1, primary_address: { }, other_addresses: [{ }], primary_telecom: { }, other_telecoms: [{ }], email: "string", electronic_communication_opt_in: true, photo: "string", language: "string", external_provenance: { external_id: "string", system_name: "string" }, contacts: [{ relationship: [SELF], name: { }, gender: MAN, telecoms: [{ }], addresses: [{ }], period: { } }], general_practitioners: [{ name: { }, npi: "string", telecoms: [{ }], addresses: [{ }], period: { } }], filing_order: { coverages: ["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"] } }
209
+ # request: { name: { }, other_names: [{ }], gender: MAN, birth_date: DateTime.parse(2023-01-15), social_security_number: "string", biological_sex: FEMALE, sexual_orientation: HETEROSEXUAL, race: AMERICAN_INDIAN_OR_ALASKA_NATIVE, ethnicity: HISPANIC_OR_LATINO, disability_status: DISABLED, marital_status: ANNULLED, deceased: DateTime.parse(2024-01-15T09:30:00.000Z), multiple_birth: 1, primary_address: { }, other_addresses: [{ }], primary_telecom: { }, other_telecoms: [{ }], email: "string", electronic_communication_opt_in: true, photo: "string", language: "string", external_provenance: { external_id: "string", system_name: "string" }, contacts: [{ relationship: [SELF], name: { }, telecoms: [{ }], addresses: [{ }], period: { } }], general_practitioners: [{ }], filing_order: { coverages: ["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"] } }
210
210
  # )
211
211
  def update(id:, version:, request:, request_options: nil)
212
212
  response = @request_client.conn.put do |req|
@@ -234,7 +234,7 @@ module CandidApiClient
234
234
  # @param request_options [CandidApiClient::RequestOptions]
235
235
  # @return [Void]
236
236
  # @example
237
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
237
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
238
238
  # api.pre_encounter.patients.v_1.deactivate(id: "string", version: "string")
239
239
  def deactivate(id:, version:, request_options: nil)
240
240
  @request_client.conn.delete do |req|
@@ -256,7 +256,7 @@ module CandidApiClient
256
256
  # @param request_options [CandidApiClient::RequestOptions]
257
257
  # @return [Array<CandidApiClient::PreEncounter::Patients::V1::Types::Patient>]
258
258
  # @example
259
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
259
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
260
260
  # api.pre_encounter.patients.v_1.search(name_contains: "string")
261
261
  def search(name_contains: nil, request_options: nil)
262
262
  response = @request_client.conn.get do |req|
@@ -288,7 +288,7 @@ module CandidApiClient
288
288
  # @param request_options [CandidApiClient::RequestOptions]
289
289
  # @return [Array<CandidApiClient::PreEncounter::Patients::V1::Types::Patient>]
290
290
  # @example
291
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
291
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
292
292
  # api.pre_encounter.patients.v_1.scan(since: DateTime.parse(2024-01-15T09:30:00.000Z))
293
293
  def scan(since:, request_options: nil)
294
294
  response = @request_client.conn.get do |req|
@@ -370,14 +370,14 @@ module CandidApiClient
370
370
  # * :external_id (String)
371
371
  # * :system_name (String)
372
372
  # * :contacts (Array<CandidApiClient::PreEncounter::Patients::V1::Types::Contact>)
373
- # * :general_practitioners (Array<CandidApiClient::PreEncounter::Patients::V1::Types::ExternalProvider>)
373
+ # * :general_practitioners (Array<CandidApiClient::PreEncounter::Common::Types::ExternalProvider>)
374
374
  # * :filing_order (Hash)
375
375
  # * :coverages (Array<String>)
376
376
  # @param request_options [CandidApiClient::RequestOptions]
377
377
  # @return [CandidApiClient::PreEncounter::Patients::V1::Types::Patient]
378
378
  # @example
379
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
380
- # api.pre_encounter.patients.v_1.create(request: { name: { }, other_names: [{ }], gender: MAN, birth_date: DateTime.parse(2023-01-15), social_security_number: "string", biological_sex: FEMALE, sexual_orientation: HETEROSEXUAL, race: AMERICAN_INDIAN_OR_ALASKA_NATIVE, ethnicity: HISPANIC_OR_LATINO, disability_status: DISABLED, marital_status: ANNULLED, deceased: DateTime.parse(2024-01-15T09:30:00.000Z), multiple_birth: 1, primary_address: { }, other_addresses: [{ }], primary_telecom: { }, other_telecoms: [{ }], email: "string", electronic_communication_opt_in: true, photo: "string", language: "string", external_provenance: { external_id: "string", system_name: "string" }, contacts: [{ relationship: [SELF], name: { }, gender: MAN, telecoms: [{ }], addresses: [{ }], period: { } }], general_practitioners: [{ name: { }, npi: "string", telecoms: [{ }], addresses: [{ }], period: { } }], filing_order: { coverages: ["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"] } })
379
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
380
+ # api.pre_encounter.patients.v_1.create(request: { name: { }, other_names: [{ }], gender: MAN, birth_date: DateTime.parse(2023-01-15), social_security_number: "string", biological_sex: FEMALE, sexual_orientation: HETEROSEXUAL, race: AMERICAN_INDIAN_OR_ALASKA_NATIVE, ethnicity: HISPANIC_OR_LATINO, disability_status: DISABLED, marital_status: ANNULLED, deceased: DateTime.parse(2024-01-15T09:30:00.000Z), multiple_birth: 1, primary_address: { }, other_addresses: [{ }], primary_telecom: { }, other_telecoms: [{ }], email: "string", electronic_communication_opt_in: true, photo: "string", language: "string", external_provenance: { external_id: "string", system_name: "string" }, contacts: [{ relationship: [SELF], name: { }, telecoms: [{ }], addresses: [{ }], period: { } }], general_practitioners: [{ }], filing_order: { coverages: ["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"] } })
381
381
  def create(request:, request_options: nil)
382
382
  Async do
383
383
  response = @request_client.conn.post do |req|
@@ -402,7 +402,7 @@ module CandidApiClient
402
402
  # @param request_options [CandidApiClient::RequestOptions]
403
403
  # @return [CandidApiClient::PreEncounter::Patients::V1::Types::Patient]
404
404
  # @example
405
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
405
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
406
406
  # api.pre_encounter.patients.v_1.get(id: "string")
407
407
  def get(id:, request_options: nil)
408
408
  Async do
@@ -428,7 +428,7 @@ module CandidApiClient
428
428
  # @param request_options [CandidApiClient::RequestOptions]
429
429
  # @return [Array<CandidApiClient::PreEncounter::Patients::V1::Types::Patient>]
430
430
  # @example
431
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
431
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
432
432
  # api.pre_encounter.patients.v_1.get_history(id: "string")
433
433
  def get_history(id:, request_options: nil)
434
434
  Async do
@@ -502,17 +502,17 @@ module CandidApiClient
502
502
  # * :external_id (String)
503
503
  # * :system_name (String)
504
504
  # * :contacts (Array<CandidApiClient::PreEncounter::Patients::V1::Types::Contact>)
505
- # * :general_practitioners (Array<CandidApiClient::PreEncounter::Patients::V1::Types::ExternalProvider>)
505
+ # * :general_practitioners (Array<CandidApiClient::PreEncounter::Common::Types::ExternalProvider>)
506
506
  # * :filing_order (Hash)
507
507
  # * :coverages (Array<String>)
508
508
  # @param request_options [CandidApiClient::RequestOptions]
509
509
  # @return [CandidApiClient::PreEncounter::Patients::V1::Types::Patient]
510
510
  # @example
511
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
511
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
512
512
  # api.pre_encounter.patients.v_1.update(
513
513
  # id: "string",
514
514
  # version: "string",
515
- # request: { name: { }, other_names: [{ }], gender: MAN, birth_date: DateTime.parse(2023-01-15), social_security_number: "string", biological_sex: FEMALE, sexual_orientation: HETEROSEXUAL, race: AMERICAN_INDIAN_OR_ALASKA_NATIVE, ethnicity: HISPANIC_OR_LATINO, disability_status: DISABLED, marital_status: ANNULLED, deceased: DateTime.parse(2024-01-15T09:30:00.000Z), multiple_birth: 1, primary_address: { }, other_addresses: [{ }], primary_telecom: { }, other_telecoms: [{ }], email: "string", electronic_communication_opt_in: true, photo: "string", language: "string", external_provenance: { external_id: "string", system_name: "string" }, contacts: [{ relationship: [SELF], name: { }, gender: MAN, telecoms: [{ }], addresses: [{ }], period: { } }], general_practitioners: [{ name: { }, npi: "string", telecoms: [{ }], addresses: [{ }], period: { } }], filing_order: { coverages: ["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"] } }
515
+ # request: { name: { }, other_names: [{ }], gender: MAN, birth_date: DateTime.parse(2023-01-15), social_security_number: "string", biological_sex: FEMALE, sexual_orientation: HETEROSEXUAL, race: AMERICAN_INDIAN_OR_ALASKA_NATIVE, ethnicity: HISPANIC_OR_LATINO, disability_status: DISABLED, marital_status: ANNULLED, deceased: DateTime.parse(2024-01-15T09:30:00.000Z), multiple_birth: 1, primary_address: { }, other_addresses: [{ }], primary_telecom: { }, other_telecoms: [{ }], email: "string", electronic_communication_opt_in: true, photo: "string", language: "string", external_provenance: { external_id: "string", system_name: "string" }, contacts: [{ relationship: [SELF], name: { }, telecoms: [{ }], addresses: [{ }], period: { } }], general_practitioners: [{ }], filing_order: { coverages: ["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"] } }
516
516
  # )
517
517
  def update(id:, version:, request:, request_options: nil)
518
518
  Async do
@@ -542,7 +542,7 @@ module CandidApiClient
542
542
  # @param request_options [CandidApiClient::RequestOptions]
543
543
  # @return [Void]
544
544
  # @example
545
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
545
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
546
546
  # api.pre_encounter.patients.v_1.deactivate(id: "string", version: "string")
547
547
  def deactivate(id:, version:, request_options: nil)
548
548
  Async do
@@ -566,7 +566,7 @@ module CandidApiClient
566
566
  # @param request_options [CandidApiClient::RequestOptions]
567
567
  # @return [Array<CandidApiClient::PreEncounter::Patients::V1::Types::Patient>]
568
568
  # @example
569
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
569
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
570
570
  # api.pre_encounter.patients.v_1.search(name_contains: "string")
571
571
  def search(name_contains: nil, request_options: nil)
572
572
  Async do
@@ -600,7 +600,7 @@ module CandidApiClient
600
600
  # @param request_options [CandidApiClient::RequestOptions]
601
601
  # @return [Array<CandidApiClient::PreEncounter::Patients::V1::Types::Patient>]
602
602
  # @example
603
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
603
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
604
604
  # api.pre_encounter.patients.v_1.scan(since: DateTime.parse(2024-01-15T09:30:00.000Z))
605
605
  def scan(since:, request_options: nil)
606
606
  Async do
@@ -2,7 +2,6 @@
2
2
 
3
3
  require_relative "../../../common/types/relationship"
4
4
  require_relative "../../../common/types/human_name"
5
- require_relative "../../../common/types/gender"
6
5
  require_relative "../../../common/types/contact_point"
7
6
  require_relative "../../../common/types/address"
8
7
  require_relative "../../../common/types/period"
@@ -19,8 +18,6 @@ module CandidApiClient
19
18
  attr_reader :relationship
20
19
  # @return [CandidApiClient::PreEncounter::Common::Types::HumanName]
21
20
  attr_reader :name
22
- # @return [CandidApiClient::PreEncounter::Common::Types::Gender]
23
- attr_reader :gender
24
21
  # @return [Array<CandidApiClient::PreEncounter::Common::Types::ContactPoint>]
25
22
  attr_reader :telecoms
26
23
  # @return [Array<CandidApiClient::PreEncounter::Common::Types::Address>]
@@ -37,17 +34,14 @@ module CandidApiClient
37
34
 
38
35
  # @param relationship [Array<CandidApiClient::PreEncounter::Common::Types::Relationship>]
39
36
  # @param name [CandidApiClient::PreEncounter::Common::Types::HumanName]
40
- # @param gender [CandidApiClient::PreEncounter::Common::Types::Gender]
41
37
  # @param telecoms [Array<CandidApiClient::PreEncounter::Common::Types::ContactPoint>]
42
38
  # @param addresses [Array<CandidApiClient::PreEncounter::Common::Types::Address>]
43
39
  # @param period [CandidApiClient::PreEncounter::Common::Types::Period]
44
40
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
45
41
  # @return [CandidApiClient::PreEncounter::Patients::V1::Types::Contact]
46
- def initialize(relationship:, name:, telecoms:, addresses:, gender: OMIT, period: OMIT,
47
- additional_properties: nil)
42
+ def initialize(relationship:, name:, telecoms:, addresses:, period: OMIT, additional_properties: nil)
48
43
  @relationship = relationship
49
44
  @name = name
50
- @gender = gender if gender != OMIT
51
45
  @telecoms = telecoms
52
46
  @addresses = addresses
53
47
  @period = period if period != OMIT
@@ -55,7 +49,6 @@ module CandidApiClient
55
49
  @_field_set = {
56
50
  "relationship": relationship,
57
51
  "name": name,
58
- "gender": gender,
59
52
  "telecoms": telecoms,
60
53
  "addresses": addresses,
61
54
  "period": period
@@ -78,7 +71,6 @@ module CandidApiClient
78
71
  name = parsed_json["name"].to_json
79
72
  name = CandidApiClient::PreEncounter::Common::Types::HumanName.from_json(json_object: name)
80
73
  end
81
- gender = struct["gender"]
82
74
  telecoms = parsed_json["telecoms"]&.map do |item|
83
75
  item = item.to_json
84
76
  CandidApiClient::PreEncounter::Common::Types::ContactPoint.from_json(json_object: item)
@@ -96,7 +88,6 @@ module CandidApiClient
96
88
  new(
97
89
  relationship: relationship,
98
90
  name: name,
99
- gender: gender,
100
91
  telecoms: telecoms,
101
92
  addresses: addresses,
102
93
  period: period,
@@ -120,7 +111,6 @@ module CandidApiClient
120
111
  def self.validate_raw(obj:)
121
112
  obj.relationship.is_a?(Array) != false || raise("Passed value for field obj.relationship is not the expected type, validation failed.")
122
113
  CandidApiClient::PreEncounter::Common::Types::HumanName.validate_raw(obj: obj.name)
123
- obj.gender&.is_a?(CandidApiClient::PreEncounter::Common::Types::Gender) != false || raise("Passed value for field obj.gender is not the expected type, validation failed.")
124
114
  obj.telecoms.is_a?(Array) != false || raise("Passed value for field obj.telecoms is not the expected type, validation failed.")
125
115
  obj.addresses.is_a?(Array) != false || raise("Passed value for field obj.addresses is not the expected type, validation failed.")
126
116
  obj.period.nil? || CandidApiClient::PreEncounter::Common::Types::Period.validate_raw(obj: obj.period)
@@ -13,7 +13,7 @@ require_relative "../../../common/types/address"
13
13
  require_relative "../../../common/types/contact_point"
14
14
  require_relative "external_provenance"
15
15
  require_relative "contact"
16
- require_relative "external_provider"
16
+ require_relative "../../../common/types/external_provider"
17
17
  require_relative "filing_order"
18
18
  require "ostruct"
19
19
  require "json"
@@ -35,7 +35,9 @@ module CandidApiClient
35
35
  attr_reader :birth_date
36
36
  # @return [String]
37
37
  attr_reader :social_security_number
38
- # @return [CandidApiClient::PreEncounter::Common::Types::Sex] The biological sex of the patient.
38
+ # @return [CandidApiClient::PreEncounter::Common::Types::Sex] The biological sex of the patient. This corresponds to the HL7
39
+ # AdministrativeGender
40
+ # https://www.hl7.org/fhir/valueset-administrative-gender.html
39
41
  attr_reader :biological_sex
40
42
  # @return [CandidApiClient::PreEncounter::Common::Types::SexualOrientation] The sexual orientation of the patient.
41
43
  attr_reader :sexual_orientation
@@ -73,7 +75,7 @@ module CandidApiClient
73
75
  attr_reader :external_provenance
74
76
  # @return [Array<CandidApiClient::PreEncounter::Patients::V1::Types::Contact>] Contacts for the patient.
75
77
  attr_reader :contacts
76
- # @return [Array<CandidApiClient::PreEncounter::Patients::V1::Types::ExternalProvider>]
78
+ # @return [Array<CandidApiClient::PreEncounter::Common::Types::ExternalProvider>]
77
79
  attr_reader :general_practitioners
78
80
  # @return [CandidApiClient::PreEncounter::Patients::V1::Types::FilingOrder]
79
81
  attr_reader :filing_order
@@ -90,7 +92,9 @@ module CandidApiClient
90
92
  # @param gender [CandidApiClient::PreEncounter::Common::Types::Gender]
91
93
  # @param birth_date [Date]
92
94
  # @param social_security_number [String]
93
- # @param biological_sex [CandidApiClient::PreEncounter::Common::Types::Sex] The biological sex of the patient.
95
+ # @param biological_sex [CandidApiClient::PreEncounter::Common::Types::Sex] The biological sex of the patient. This corresponds to the HL7
96
+ # AdministrativeGender
97
+ # https://www.hl7.org/fhir/valueset-administrative-gender.html
94
98
  # @param sexual_orientation [CandidApiClient::PreEncounter::Common::Types::SexualOrientation] The sexual orientation of the patient.
95
99
  # @param race [CandidApiClient::PreEncounter::Common::Types::Race]
96
100
  # @param ethnicity [CandidApiClient::PreEncounter::Common::Types::Ethnicity]
@@ -110,18 +114,18 @@ module CandidApiClient
110
114
  # @param external_provenance [CandidApiClient::PreEncounter::Patients::V1::Types::ExternalProvenance] Information about the upstream system that owns this patient data. Leave unset
111
115
  # if Candid owns patient data.
112
116
  # @param contacts [Array<CandidApiClient::PreEncounter::Patients::V1::Types::Contact>] Contacts for the patient.
113
- # @param general_practitioners [Array<CandidApiClient::PreEncounter::Patients::V1::Types::ExternalProvider>]
117
+ # @param general_practitioners [Array<CandidApiClient::PreEncounter::Common::Types::ExternalProvider>]
114
118
  # @param filing_order [CandidApiClient::PreEncounter::Patients::V1::Types::FilingOrder]
115
119
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
116
120
  # @return [CandidApiClient::PreEncounter::Patients::V1::Types::MutablePatient]
117
- def initialize(name:, other_names:, birth_date:, primary_address:, other_addresses:, primary_telecom:, other_telecoms:, contacts:, general_practitioners:, filing_order:, gender: OMIT, social_security_number: OMIT,
118
- biological_sex: OMIT, sexual_orientation: OMIT, race: OMIT, ethnicity: OMIT, disability_status: OMIT, marital_status: OMIT, deceased: OMIT, multiple_birth: OMIT, email: OMIT, electronic_communication_opt_in: OMIT, photo: OMIT, language: OMIT, external_provenance: OMIT, additional_properties: nil)
121
+ def initialize(name:, other_names:, birth_date:, biological_sex:, primary_address:, other_addresses:,
122
+ primary_telecom:, other_telecoms:, contacts:, general_practitioners:, filing_order:, gender: OMIT, social_security_number: OMIT, sexual_orientation: OMIT, race: OMIT, ethnicity: OMIT, disability_status: OMIT, marital_status: OMIT, deceased: OMIT, multiple_birth: OMIT, email: OMIT, electronic_communication_opt_in: OMIT, photo: OMIT, language: OMIT, external_provenance: OMIT, additional_properties: nil)
119
123
  @name = name
120
124
  @other_names = other_names
121
125
  @gender = gender if gender != OMIT
122
126
  @birth_date = birth_date
123
127
  @social_security_number = social_security_number if social_security_number != OMIT
124
- @biological_sex = biological_sex if biological_sex != OMIT
128
+ @biological_sex = biological_sex
125
129
  @sexual_orientation = sexual_orientation if sexual_orientation != OMIT
126
130
  @race = race if race != OMIT
127
131
  @ethnicity = ethnicity if ethnicity != OMIT
@@ -239,7 +243,7 @@ module CandidApiClient
239
243
  end
240
244
  general_practitioners = parsed_json["general_practitioners"]&.map do |item|
241
245
  item = item.to_json
242
- CandidApiClient::PreEncounter::Patients::V1::Types::ExternalProvider.from_json(json_object: item)
246
+ CandidApiClient::PreEncounter::Common::Types::ExternalProvider.from_json(json_object: item)
243
247
  end
244
248
  if parsed_json["filing_order"].nil?
245
249
  filing_order = nil
@@ -296,7 +300,7 @@ module CandidApiClient
296
300
  obj.gender&.is_a?(CandidApiClient::PreEncounter::Common::Types::Gender) != false || raise("Passed value for field obj.gender is not the expected type, validation failed.")
297
301
  obj.birth_date.is_a?(Date) != false || raise("Passed value for field obj.birth_date is not the expected type, validation failed.")
298
302
  obj.social_security_number&.is_a?(String) != false || raise("Passed value for field obj.social_security_number is not the expected type, validation failed.")
299
- obj.biological_sex&.is_a?(CandidApiClient::PreEncounter::Common::Types::Sex) != false || raise("Passed value for field obj.biological_sex is not the expected type, validation failed.")
303
+ obj.biological_sex.is_a?(CandidApiClient::PreEncounter::Common::Types::Sex) != false || raise("Passed value for field obj.biological_sex is not the expected type, validation failed.")
300
304
  obj.sexual_orientation&.is_a?(CandidApiClient::PreEncounter::Common::Types::SexualOrientation) != false || raise("Passed value for field obj.sexual_orientation is not the expected type, validation failed.")
301
305
  obj.race&.is_a?(CandidApiClient::PreEncounter::Common::Types::Race) != false || raise("Passed value for field obj.race is not the expected type, validation failed.")
302
306
  obj.ethnicity&.is_a?(CandidApiClient::PreEncounter::Common::Types::Ethnicity) != false || raise("Passed value for field obj.ethnicity is not the expected type, validation failed.")
@@ -13,7 +13,7 @@ require_relative "../../../common/types/address"
13
13
  require_relative "../../../common/types/contact_point"
14
14
  require_relative "external_provenance"
15
15
  require_relative "contact"
16
- require_relative "external_provider"
16
+ require_relative "../../../common/types/external_provider"
17
17
  require_relative "filing_order"
18
18
  require "ostruct"
19
19
  require "json"
@@ -53,7 +53,9 @@ module CandidApiClient
53
53
  attr_reader :birth_date
54
54
  # @return [String]
55
55
  attr_reader :social_security_number
56
- # @return [CandidApiClient::PreEncounter::Common::Types::Sex] The biological sex of the patient.
56
+ # @return [CandidApiClient::PreEncounter::Common::Types::Sex] The biological sex of the patient. This corresponds to the HL7
57
+ # AdministrativeGender
58
+ # https://www.hl7.org/fhir/valueset-administrative-gender.html
57
59
  attr_reader :biological_sex
58
60
  # @return [CandidApiClient::PreEncounter::Common::Types::SexualOrientation] The sexual orientation of the patient.
59
61
  attr_reader :sexual_orientation
@@ -91,7 +93,7 @@ module CandidApiClient
91
93
  attr_reader :external_provenance
92
94
  # @return [Array<CandidApiClient::PreEncounter::Patients::V1::Types::Contact>] Contacts for the patient.
93
95
  attr_reader :contacts
94
- # @return [Array<CandidApiClient::PreEncounter::Patients::V1::Types::ExternalProvider>]
96
+ # @return [Array<CandidApiClient::PreEncounter::Common::Types::ExternalProvider>]
95
97
  attr_reader :general_practitioners
96
98
  # @return [CandidApiClient::PreEncounter::Patients::V1::Types::FilingOrder]
97
99
  attr_reader :filing_order
@@ -119,7 +121,9 @@ module CandidApiClient
119
121
  # @param gender [CandidApiClient::PreEncounter::Common::Types::Gender]
120
122
  # @param birth_date [Date]
121
123
  # @param social_security_number [String]
122
- # @param biological_sex [CandidApiClient::PreEncounter::Common::Types::Sex] The biological sex of the patient.
124
+ # @param biological_sex [CandidApiClient::PreEncounter::Common::Types::Sex] The biological sex of the patient. This corresponds to the HL7
125
+ # AdministrativeGender
126
+ # https://www.hl7.org/fhir/valueset-administrative-gender.html
123
127
  # @param sexual_orientation [CandidApiClient::PreEncounter::Common::Types::SexualOrientation] The sexual orientation of the patient.
124
128
  # @param race [CandidApiClient::PreEncounter::Common::Types::Race]
125
129
  # @param ethnicity [CandidApiClient::PreEncounter::Common::Types::Ethnicity]
@@ -139,12 +143,12 @@ module CandidApiClient
139
143
  # @param external_provenance [CandidApiClient::PreEncounter::Patients::V1::Types::ExternalProvenance] Information about the upstream system that owns this patient data. Leave unset
140
144
  # if Candid owns patient data.
141
145
  # @param contacts [Array<CandidApiClient::PreEncounter::Patients::V1::Types::Contact>] Contacts for the patient.
142
- # @param general_practitioners [Array<CandidApiClient::PreEncounter::Patients::V1::Types::ExternalProvider>]
146
+ # @param general_practitioners [Array<CandidApiClient::PreEncounter::Common::Types::ExternalProvider>]
143
147
  # @param filing_order [CandidApiClient::PreEncounter::Patients::V1::Types::FilingOrder]
144
148
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
145
149
  # @return [CandidApiClient::PreEncounter::Patients::V1::Types::Patient]
146
150
  def initialize(id:, mrn:, organization_id:, deactivated:, version:, updated_at:, updating_user_id:, name:,
147
- other_names:, birth_date:, primary_address:, other_addresses:, primary_telecom:, other_telecoms:, contacts:, general_practitioners:, filing_order:, gender: OMIT, social_security_number: OMIT, biological_sex: OMIT, sexual_orientation: OMIT, race: OMIT, ethnicity: OMIT, disability_status: OMIT, marital_status: OMIT, deceased: OMIT, multiple_birth: OMIT, email: OMIT, electronic_communication_opt_in: OMIT, photo: OMIT, language: OMIT, external_provenance: OMIT, additional_properties: nil)
151
+ other_names:, birth_date:, biological_sex:, primary_address:, other_addresses:, primary_telecom:, other_telecoms:, contacts:, general_practitioners:, filing_order:, gender: OMIT, social_security_number: OMIT, sexual_orientation: OMIT, race: OMIT, ethnicity: OMIT, disability_status: OMIT, marital_status: OMIT, deceased: OMIT, multiple_birth: OMIT, email: OMIT, electronic_communication_opt_in: OMIT, photo: OMIT, language: OMIT, external_provenance: OMIT, additional_properties: nil)
148
152
  @id = id
149
153
  @mrn = mrn
150
154
  @organization_id = organization_id
@@ -157,7 +161,7 @@ module CandidApiClient
157
161
  @gender = gender if gender != OMIT
158
162
  @birth_date = birth_date
159
163
  @social_security_number = social_security_number if social_security_number != OMIT
160
- @biological_sex = biological_sex if biological_sex != OMIT
164
+ @biological_sex = biological_sex
161
165
  @sexual_orientation = sexual_orientation if sexual_orientation != OMIT
162
166
  @race = race if race != OMIT
163
167
  @ethnicity = ethnicity if ethnicity != OMIT
@@ -289,7 +293,7 @@ module CandidApiClient
289
293
  end
290
294
  general_practitioners = parsed_json["general_practitioners"]&.map do |item|
291
295
  item = item.to_json
292
- CandidApiClient::PreEncounter::Patients::V1::Types::ExternalProvider.from_json(json_object: item)
296
+ CandidApiClient::PreEncounter::Common::Types::ExternalProvider.from_json(json_object: item)
293
297
  end
294
298
  if parsed_json["filing_order"].nil?
295
299
  filing_order = nil
@@ -360,7 +364,7 @@ module CandidApiClient
360
364
  obj.gender&.is_a?(CandidApiClient::PreEncounter::Common::Types::Gender) != false || raise("Passed value for field obj.gender is not the expected type, validation failed.")
361
365
  obj.birth_date.is_a?(Date) != false || raise("Passed value for field obj.birth_date is not the expected type, validation failed.")
362
366
  obj.social_security_number&.is_a?(String) != false || raise("Passed value for field obj.social_security_number is not the expected type, validation failed.")
363
- obj.biological_sex&.is_a?(CandidApiClient::PreEncounter::Common::Types::Sex) != false || raise("Passed value for field obj.biological_sex is not the expected type, validation failed.")
367
+ obj.biological_sex.is_a?(CandidApiClient::PreEncounter::Common::Types::Sex) != false || raise("Passed value for field obj.biological_sex is not the expected type, validation failed.")
364
368
  obj.sexual_orientation&.is_a?(CandidApiClient::PreEncounter::Common::Types::SexualOrientation) != false || raise("Passed value for field obj.sexual_orientation is not the expected type, validation failed.")
365
369
  obj.race&.is_a?(CandidApiClient::PreEncounter::Common::Types::Race) != false || raise("Passed value for field obj.race is not the expected type, validation failed.")
366
370
  obj.ethnicity&.is_a?(CandidApiClient::PreEncounter::Common::Types::Ethnicity) != false || raise("Passed value for field obj.ethnicity is not the expected type, validation failed.")
@@ -32,7 +32,7 @@ module CandidApiClient
32
32
  # @param request_options [CandidApiClient::RequestOptions]
33
33
  # @return [CandidApiClient::ServiceFacility::Types::EncounterServiceFacility]
34
34
  # @example
35
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
35
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
36
36
  # api.service_facility.update(
37
37
  # service_facility_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
38
38
  # organization_name: "string",
@@ -87,7 +87,7 @@ module CandidApiClient
87
87
  # @param request_options [CandidApiClient::RequestOptions]
88
88
  # @return [CandidApiClient::ServiceFacility::Types::EncounterServiceFacility]
89
89
  # @example
90
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
90
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
91
91
  # api.service_facility.update(
92
92
  # service_facility_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
93
93
  # organization_name: "string",
@@ -29,7 +29,7 @@ module CandidApiClient
29
29
  # @param request_options [CandidApiClient::RequestOptions]
30
30
  # @return [CandidApiClient::Tasks::V3::Types::TaskActions]
31
31
  # @example
32
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
32
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
33
33
  # api.tasks.v_3.get_actions(task_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
34
34
  def get_actions(task_id:, request_options: nil)
35
35
  response = @request_client.conn.get do |req|
@@ -62,7 +62,7 @@ module CandidApiClient
62
62
  # @param request_options [CandidApiClient::RequestOptions]
63
63
  # @return [CandidApiClient::Tasks::V3::Types::TaskPage]
64
64
  # @example
65
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
65
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
66
66
  # api.tasks.v_3.get_multi(
67
67
  # limit: 1,
68
68
  # page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9",
@@ -113,7 +113,7 @@ module CandidApiClient
113
113
  # @param request_options [CandidApiClient::RequestOptions]
114
114
  # @return [CandidApiClient::Tasks::V3::Types::Task]
115
115
  # @example
116
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
116
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
117
117
  # api.tasks.v_3.get(task_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
118
118
  def get(task_id:, request_options: nil)
119
119
  response = @request_client.conn.get do |req|
@@ -141,7 +141,7 @@ module CandidApiClient
141
141
  # @param request_options [CandidApiClient::RequestOptions]
142
142
  # @return [CandidApiClient::Tasks::V3::Types::Task]
143
143
  # @example
144
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
144
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
145
145
  # api.tasks.v_3.create(request: { encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", task_type: CUSTOMER_DATA_REQUEST, description: "string", blocks_claim_submission: true, assignee_user_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", category: OTHER, work_queue_id: "string" })
146
146
  def create(request:, request_options: nil)
147
147
  response = @request_client.conn.post do |req|
@@ -166,7 +166,7 @@ module CandidApiClient
166
166
  # @param request_options [CandidApiClient::RequestOptions]
167
167
  # @return [CandidApiClient::Tasks::V3::Types::Task]
168
168
  # @example
169
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
169
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
170
170
  # api.tasks.v_3.update(task_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { status: FINISHED, assignee_user_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", blocks_claim_submission: true })
171
171
  def update(task_id:, request:, request_options: nil)
172
172
  response = @request_client.conn.patch do |req|
@@ -199,7 +199,7 @@ module CandidApiClient
199
199
  # @param request_options [CandidApiClient::RequestOptions]
200
200
  # @return [CandidApiClient::Tasks::V3::Types::TaskActions]
201
201
  # @example
202
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
202
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
203
203
  # api.tasks.v_3.get_actions(task_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
204
204
  def get_actions(task_id:, request_options: nil)
205
205
  Async do
@@ -234,7 +234,7 @@ module CandidApiClient
234
234
  # @param request_options [CandidApiClient::RequestOptions]
235
235
  # @return [CandidApiClient::Tasks::V3::Types::TaskPage]
236
236
  # @example
237
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
237
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
238
238
  # api.tasks.v_3.get_multi(
239
239
  # limit: 1,
240
240
  # page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9",
@@ -288,7 +288,7 @@ module CandidApiClient
288
288
  # @param request_options [CandidApiClient::RequestOptions]
289
289
  # @return [CandidApiClient::Tasks::V3::Types::Task]
290
290
  # @example
291
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
291
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
292
292
  # api.tasks.v_3.get(task_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
293
293
  def get(task_id:, request_options: nil)
294
294
  Async do
@@ -318,7 +318,7 @@ module CandidApiClient
318
318
  # @param request_options [CandidApiClient::RequestOptions]
319
319
  # @return [CandidApiClient::Tasks::V3::Types::Task]
320
320
  # @example
321
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
321
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
322
322
  # api.tasks.v_3.create(request: { encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", task_type: CUSTOMER_DATA_REQUEST, description: "string", blocks_claim_submission: true, assignee_user_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", category: OTHER, work_queue_id: "string" })
323
323
  def create(request:, request_options: nil)
324
324
  Async do
@@ -346,7 +346,7 @@ module CandidApiClient
346
346
  # @param request_options [CandidApiClient::RequestOptions]
347
347
  # @return [CandidApiClient::Tasks::V3::Types::Task]
348
348
  # @example
349
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
349
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
350
350
  # api.tasks.v_3.update(task_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { status: FINISHED, assignee_user_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", blocks_claim_submission: true })
351
351
  def update(task_id:, request:, request_options: nil)
352
352
  Async do