@arbol-ai/cli 3.57.0 → 3.58.0

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 (2) hide show
  1. package/dist/index.js +799 -228
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -9212,6 +9212,20 @@ var commands = {
9212
9212
  ],
9213
9213
  pathField: null,
9214
9214
  fields: [
9215
+ {
9216
+ name: "bookingRoute",
9217
+ flag: "booking-route",
9218
+ kind: "string",
9219
+ required: false,
9220
+ description: "Verified payment route, required for agent scheduling at clinics using colored booking windows.",
9221
+ choices: [
9222
+ "PRIVATE",
9223
+ "AXA_PREPAID",
9224
+ "AXA_ARL",
9225
+ "PONAL_STARKEY",
9226
+ "EPS_SURA"
9227
+ ]
9228
+ },
9215
9229
  {
9216
9230
  name: "connectionId",
9217
9231
  flag: "connection-id",
@@ -9372,6 +9386,31 @@ var commands = {
9372
9386
  }
9373
9387
  }
9374
9388
  },
9389
+ bookingRoute: {
9390
+ description: "Verified payment route, required for agent scheduling at clinics using colored booking windows.",
9391
+ anyOf: [
9392
+ {
9393
+ const: "PRIVATE",
9394
+ type: "string"
9395
+ },
9396
+ {
9397
+ const: "AXA_PREPAID",
9398
+ type: "string"
9399
+ },
9400
+ {
9401
+ const: "AXA_ARL",
9402
+ type: "string"
9403
+ },
9404
+ {
9405
+ const: "PONAL_STARKEY",
9406
+ type: "string"
9407
+ },
9408
+ {
9409
+ const: "EPS_SURA",
9410
+ type: "string"
9411
+ }
9412
+ ]
9413
+ },
9375
9414
  connectionId: {
9376
9415
  pattern: "^con_[0-9A-Za-z]{26}$",
9377
9416
  type: "string"
@@ -9379,7 +9418,7 @@ var commands = {
9379
9418
  }
9380
9419
  },
9381
9420
  title: "Create appointment",
9382
- description: "Use the organization gMedic account. No automatic write retries; reconcile an unknown outcome before repeating.",
9421
+ description: "Create a patient appointment. For agents at clinics using colored booking windows, send bookingRoute with the verified payment route. The connector selects the appointment color and rechecks the entire interval. Reconcile unknown outcomes before repeating.",
9383
9422
  effect: "write",
9384
9423
  confirmation: null,
9385
9424
  hidden: false
@@ -9546,6 +9585,20 @@ var commands = {
9546
9585
  ],
9547
9586
  pathField: "appointmentId",
9548
9587
  fields: [
9588
+ {
9589
+ name: "bookingRoute",
9590
+ flag: "booking-route",
9591
+ kind: "string",
9592
+ required: false,
9593
+ description: "Verified payment route, required for agent scheduling at clinics using colored booking windows.",
9594
+ choices: [
9595
+ "PRIVATE",
9596
+ "AXA_PREPAID",
9597
+ "AXA_ARL",
9598
+ "PONAL_STARKEY",
9599
+ "EPS_SURA"
9600
+ ]
9601
+ },
9549
9602
  {
9550
9603
  name: "color",
9551
9604
  flag: "color",
@@ -9646,6 +9699,31 @@ var commands = {
9646
9699
  pattern: "^[1-9][0-9]{0,14}$",
9647
9700
  type: "string"
9648
9701
  },
9702
+ bookingRoute: {
9703
+ description: "Verified payment route, required for agent scheduling at clinics using colored booking windows.",
9704
+ anyOf: [
9705
+ {
9706
+ const: "PRIVATE",
9707
+ type: "string"
9708
+ },
9709
+ {
9710
+ const: "AXA_PREPAID",
9711
+ type: "string"
9712
+ },
9713
+ {
9714
+ const: "AXA_ARL",
9715
+ type: "string"
9716
+ },
9717
+ {
9718
+ const: "PONAL_STARKEY",
9719
+ type: "string"
9720
+ },
9721
+ {
9722
+ const: "EPS_SURA",
9723
+ type: "string"
9724
+ }
9725
+ ]
9726
+ },
9649
9727
  color: {
9650
9728
  anyOf: [
9651
9729
  {
@@ -9809,7 +9887,7 @@ var commands = {
9809
9887
  }
9810
9888
  },
9811
9889
  title: "Update appointment",
9812
- description: "Use the organization gMedic account. No automatic write retries; reconcile an unknown outcome before repeating.",
9890
+ description: "Update a patient appointment. For agents at clinics using colored booking windows, send the verified bookingRoute when changing the time. Reconcile unknown outcomes before repeating.",
9813
9891
  effect: "write",
9814
9892
  confirmation: null,
9815
9893
  hidden: false
@@ -9850,6 +9928,20 @@ var commands = {
9850
9928
  description: "Maximum items returned in one page. Defaults to 25; larger reads require another cursor.",
9851
9929
  default: 25
9852
9930
  },
9931
+ {
9932
+ name: "bookingRoute",
9933
+ flag: "booking-route",
9934
+ kind: "string",
9935
+ required: false,
9936
+ description: "Verified payment route, required for agent scheduling at clinics using colored booking windows.",
9937
+ choices: [
9938
+ "PRIVATE",
9939
+ "AXA_PREPAID",
9940
+ "AXA_ARL",
9941
+ "PONAL_STARKEY",
9942
+ "EPS_SURA"
9943
+ ]
9944
+ },
9853
9945
  {
9854
9946
  name: "agendaId",
9855
9947
  flag: "agenda-id",
@@ -9928,6 +10020,31 @@ var commands = {
9928
10020
  type: "integer",
9929
10021
  default: 25
9930
10022
  },
10023
+ bookingRoute: {
10024
+ description: "Verified payment route, required for agent scheduling at clinics using colored booking windows.",
10025
+ anyOf: [
10026
+ {
10027
+ const: "PRIVATE",
10028
+ type: "string"
10029
+ },
10030
+ {
10031
+ const: "AXA_PREPAID",
10032
+ type: "string"
10033
+ },
10034
+ {
10035
+ const: "AXA_ARL",
10036
+ type: "string"
10037
+ },
10038
+ {
10039
+ const: "PONAL_STARKEY",
10040
+ type: "string"
10041
+ },
10042
+ {
10043
+ const: "EPS_SURA",
10044
+ type: "string"
10045
+ }
10046
+ ]
10047
+ },
9931
10048
  agendaId: {
9932
10049
  pattern: "^[1-9][0-9]{0,14}$",
9933
10050
  type: "string"
@@ -9961,7 +10078,7 @@ var commands = {
9961
10078
  }
9962
10079
  },
9963
10080
  title: "List availability",
9964
- description: "Use the organization gMedic account. Read-only request; provider failures are never empty results.",
10081
+ description: "List available intervals. At clinics using colored booking windows, send the verified bookingRoute. Check the full duration within a returned interval and a compatible agenda.",
9965
10082
  effect: "read",
9966
10083
  confirmation: null,
9967
10084
  hidden: false
@@ -13722,8 +13839,8 @@ var commands = {
13722
13839
  name: "idempotencyKey",
13723
13840
  flag: "idempotency-key",
13724
13841
  kind: "string",
13725
- required: true,
13726
- description: "A key the caller chooses once per intended write, such as a UUID. Repeating it with the same request answers the recorded outcome and never writes again; another request with it answers IDEMPOTENCY_KEY_REUSED."
13842
+ required: false,
13843
+ description: "Optional. Without it the service derives the key from the request itself, so repeating the identical request answers the recorded outcome and never writes again. A caller that retries with changed values can choose one key per intended write, such as a UUID; another request with it answers IDEMPOTENCY_KEY_REUSED."
13727
13844
  },
13728
13845
  {
13729
13846
  name: "confirm",
@@ -13750,7 +13867,6 @@ var commands = {
13750
13867
  required: [
13751
13868
  "documentType",
13752
13869
  "documentNumber",
13753
- "idempotencyKey",
13754
13870
  "confirm",
13755
13871
  "cancellation",
13756
13872
  "appointmentId"
@@ -13775,7 +13891,7 @@ var commands = {
13775
13891
  minLength: 8,
13776
13892
  maxLength: 64,
13777
13893
  pattern: "^[A-Za-z0-9_-]+$",
13778
- description: "A key the caller chooses once per intended write, such as a UUID. Repeating it with the same request answers the recorded outcome and never writes again; another request with it answers IDEMPOTENCY_KEY_REUSED.",
13894
+ description: "Optional. Without it the service derives the key from the request itself, so repeating the identical request answers the recorded outcome and never writes again. A caller that retries with changed values can choose one key per intended write, such as a UUID; another request with it answers IDEMPOTENCY_KEY_REUSED.",
13779
13895
  type: "string"
13780
13896
  },
13781
13897
  confirm: {
@@ -13819,7 +13935,7 @@ var commands = {
13819
13935
  }
13820
13936
  },
13821
13937
  title: "Cancel an appointment",
13822
- description: "Cancel one upcoming assigned e-Oficlinic appointment of the patient resolved by citizenship card. Use the exact CAS (serviceNumber) from that patient's assigned appointments, one exact listed cancellation reason, and confirm true only after the patient or authorized staff confirms this specific cancellation. The same idempotency key and request return the recorded result without sending again. OUTCOME_UNKNOWN means the cancellation may have happened: look up the patient's cancelled appointments and do not dispatch it again. agentMode true answers concise Spanish text instead.",
13938
+ description: "Cancel one upcoming assigned e-Oficlinic appointment of the patient resolved by citizenship card. Use the exact CAS (serviceNumber) from that patient's assigned appointments, one exact listed cancellation reason, and confirm true only after the patient or authorized staff confirms this specific cancellation. Repeating the identical request returns the recorded result without sending again; no idempotency key is needed. OUTCOME_UNKNOWN means the cancellation may have happened: look up the patient's cancelled appointments and do not dispatch it again. agentMode true answers concise Spanish text instead.",
13823
13939
  effect: "write",
13824
13940
  confirmation: null,
13825
13941
  hidden: false
@@ -13844,8 +13960,8 @@ var commands = {
13844
13960
  name: "idempotencyKey",
13845
13961
  flag: "idempotency-key",
13846
13962
  kind: "string",
13847
- required: true,
13848
- description: "A key the caller chooses once per intended write, such as a UUID. Repeating it with the same request answers the recorded outcome and never writes again; another request with it answers IDEMPOTENCY_KEY_REUSED."
13963
+ required: false,
13964
+ description: "Optional. Without it the service derives the key from the request itself, so repeating the identical request answers the recorded outcome and never writes again. A caller that retries with changed values can choose one key per intended write, such as a UUID; another request with it answers IDEMPOTENCY_KEY_REUSED."
13849
13965
  },
13850
13966
  {
13851
13967
  name: "confirm",
@@ -13869,7 +13985,7 @@ var commands = {
13869
13985
  flag: "slot-id",
13870
13986
  kind: "string",
13871
13987
  required: true,
13872
- description: "A slot id from list_booking_slots in the same flow."
13988
+ description: "A slot id from search_booking_slots or list_booking_slots in the same flow."
13873
13989
  },
13874
13990
  {
13875
13991
  name: "documentType",
@@ -13892,8 +14008,8 @@ var commands = {
13892
14008
  name: "payerId",
13893
14009
  flag: "payer-id",
13894
14010
  kind: "string",
13895
- required: true,
13896
- description: "The flow's payer, repeated as a check."
14011
+ required: false,
14012
+ description: "The payer the availability flow was opened for. Left out: that payer. When given it must be that payer."
13897
14013
  },
13898
14014
  {
13899
14015
  name: "planId",
@@ -13914,8 +14030,7 @@ var commands = {
13914
14030
  flag: "contract-id",
13915
14031
  kind: "string",
13916
14032
  required: false,
13917
- description: "A contract of the payer from list_payer_contracts, which must not be inactive; null (the default) sends none.",
13918
- default: null
14033
+ description: "A contract of the payer from list_payer_contracts, which must not be inactive. An explicit null sends none. Leaving the key out is not the same as null: the service then sends the payer's only contract when list_payer_contracts has exactly one that is not inactive and marks it active, sends none when the payer has no contract or only inactive ones, and answers BOOKING_VALUE_UNRESOLVED otherwise (several contracts, or an unrecognized active flag)."
13919
14034
  },
13920
14035
  {
13921
14036
  name: "observations",
@@ -13938,18 +14053,14 @@ var commands = {
13938
14053
  additionalProperties: false,
13939
14054
  type: "object",
13940
14055
  required: [
13941
- "idempotencyKey",
13942
14056
  "confirm",
13943
14057
  "flowId",
13944
14058
  "slotId",
13945
14059
  "documentType",
13946
14060
  "documentNumber",
13947
- "payerId",
13948
14061
  "planId",
13949
14062
  "subplanId",
13950
- "classification",
13951
- "billing",
13952
- "referral"
14063
+ "classification"
13953
14064
  ],
13954
14065
  properties: {
13955
14066
  connectionId: {
@@ -13961,7 +14072,7 @@ var commands = {
13961
14072
  minLength: 8,
13962
14073
  maxLength: 64,
13963
14074
  pattern: "^[A-Za-z0-9_-]+$",
13964
- description: "A key the caller chooses once per intended write, such as a UUID. Repeating it with the same request answers the recorded outcome and never writes again; another request with it answers IDEMPOTENCY_KEY_REUSED.",
14075
+ description: "Optional. Without it the service derives the key from the request itself, so repeating the identical request answers the recorded outcome and never writes again. A caller that retries with changed values can choose one key per intended write, such as a UUID; another request with it answers IDEMPOTENCY_KEY_REUSED.",
13965
14076
  type: "string"
13966
14077
  },
13967
14078
  confirm: {
@@ -13976,7 +14087,7 @@ var commands = {
13976
14087
  },
13977
14088
  slotId: {
13978
14089
  pattern: "^[0-9A-Za-z._-]{1,32}$",
13979
- description: "A slot id from list_booking_slots in the same flow.",
14090
+ description: "A slot id from search_booking_slots or list_booking_slots in the same flow.",
13980
14091
  type: "string"
13981
14092
  },
13982
14093
  documentType: {
@@ -13991,7 +14102,7 @@ var commands = {
13991
14102
  },
13992
14103
  payerId: {
13993
14104
  pattern: "^[0-9A-Za-z._-]{1,32}$",
13994
- description: "The flow's payer, repeated as a check.",
14105
+ description: "The payer the availability flow was opened for. Left out: that payer. When given it must be that payer.",
13995
14106
  type: "string"
13996
14107
  },
13997
14108
  planId: {
@@ -14005,7 +14116,7 @@ var commands = {
14005
14116
  type: "string"
14006
14117
  },
14007
14118
  contractId: {
14008
- description: "A contract of the payer from list_payer_contracts, which must not be inactive; null (the default) sends none.",
14119
+ description: "A contract of the payer from list_payer_contracts, which must not be inactive. An explicit null sends none. Leaving the key out is not the same as null: the service then sends the payer's only contract when list_payer_contracts has exactly one that is not inactive and marks it active, sends none when the payer has no contract or only inactive ones, and answers BOOKING_VALUE_UNRESOLVED otherwise (several contracts, or an unrecognized active flag).",
14009
14120
  anyOf: [
14010
14121
  {
14011
14122
  pattern: "^[0-9A-Za-z._-]{1,32}$",
@@ -14014,19 +14125,15 @@ var commands = {
14014
14125
  {
14015
14126
  type: "null"
14016
14127
  }
14017
- ],
14018
- default: null
14128
+ ]
14019
14129
  },
14020
14130
  classification: {
14021
14131
  additionalProperties: false,
14022
- description: "Coverage and clinical classification codes, as the clinic's own provider catalogs define them. Never guessed: the caller supplies them.",
14132
+ description: "Coverage and clinical classification codes, as the clinic's own provider catalogs define them. regime and affiliateType are never guessed: the caller supplies them. The rest has the defaults each field states.",
14023
14133
  type: "object",
14024
14134
  required: [
14025
14135
  "affiliateType",
14026
- "regime",
14027
- "programId",
14028
- "attentionTypeId",
14029
- "purposeId"
14136
+ "regime"
14030
14137
  ],
14031
14138
  properties: {
14032
14139
  affiliateType: {
@@ -14040,7 +14147,7 @@ var commands = {
14040
14147
  type: "string"
14041
14148
  },
14042
14149
  relationship: {
14043
- description: "Sent as pParentesco (strParentesco); empty when null. Otherwise one list_relationships answers.",
14150
+ description: "Sent as pParentesco (strParentesco); empty when null. One list_relationships answers. The screen disables it for the affiliate types C and N; for any other affiliate type it requires one, so leaving it out then answers BOOKING_VALUE_UNRESOLVED.",
14044
14151
  anyOf: [
14045
14152
  {
14046
14153
  pattern: "^[0-9A-Za-z._-]{1,32}$",
@@ -14053,7 +14160,7 @@ var commands = {
14053
14160
  default: null
14054
14161
  },
14055
14162
  salaryRange: {
14056
- description: "Sent as pRangoSalarial (strRango); empty when null. No catalog of it is mapped, so it is not checked.",
14163
+ description: "Sent as pRangoSalarial (strRango); empty when null. One list_salary_ranges answers for the regime, or BOOKING_VALUE_UNRESOLVED. Required when billing is left out: its row supplies the copayment values.",
14057
14164
  anyOf: [
14058
14165
  {
14059
14166
  pattern: "^[0-9A-Za-z._-]{1,32}$",
@@ -14066,7 +14173,7 @@ var commands = {
14066
14173
  default: null
14067
14174
  },
14068
14175
  listStatus: {
14069
- description: "Sent as pEstadoListado (strEstado); empty when null. No catalog of it is mapped, so it is not checked.",
14176
+ description: "Sent as pEstadoListado (strEstado); empty when null. No catalog of it is mapped, so it is not checked. The screen requires one only when the payer uses an attention list (usesAttentionList in list_payers): leaving it out then answers BOOKING_VALUE_UNRESOLVED.",
14070
14177
  anyOf: [
14071
14178
  {
14072
14179
  pattern: "^[0-9A-Za-z._-]{1,32}$",
@@ -14080,24 +14187,25 @@ var commands = {
14080
14187
  },
14081
14188
  programId: {
14082
14189
  pattern: "^[0-9A-Za-z._-]{1,32}$",
14083
- description: "Sent as pPrograma (sysPrograma). Required: the program the availability flow was opened for, from list_programs.",
14190
+ description: "Sent as pPrograma (sysPrograma). Left out: the program the availability flow was opened for. When given it must be that program.",
14084
14191
  type: "string"
14085
14192
  },
14086
14193
  attentionTypeId: {
14087
14194
  pattern: "^[0-9A-Za-z._-]{1,32}$",
14088
- description: "The one-unit attention type the availability flow was opened for, from list_programs. The source's request has no field for it: it decides the slot list's unit count, and it is part of this write's recorded request.",
14195
+ description: "The one-unit attention type the availability flow was opened for. Left out: that one. When given it must be that one. The source's request has no field for it: it decides the slot list's unit count.",
14089
14196
  type: "string"
14090
14197
  },
14091
14198
  purposeId: {
14092
14199
  pattern: "^[0-9A-Za-z._-]{1,32}$",
14093
- description: "Sent as pFinalidad (sysFinalidad). Required. The screen's source of it is a hidden control, so no catalog proves it here, and a program's sourcePurpose is never applied in its place.",
14094
- type: "string"
14200
+ description: "Sent as pFinalidad (sysFinalidad). Left out: 10, the default of the screen's hidden control. No catalog proves it here, and a program's sourcePurpose is never applied in its place.",
14201
+ type: "string",
14202
+ default: "10"
14095
14203
  }
14096
14204
  }
14097
14205
  },
14098
14206
  billing: {
14099
14207
  additionalProperties: false,
14100
- description: "Billing values of the clinic's tariff matrix. Never guessed: the caller supplies them as the clinic's workflow defines them.",
14208
+ description: "Billing values of the booking screen. Leave the whole object out and the service resolves them as the screen does: tariff from the payer's tariff matrix for the flow's service under the plan and subplan; billPrivately, billCopayments and enteredCopayment from the payer's row; copaymentPercentage, maxCopayment and indicatedModeratorFee from the row of classification.salaryRange; exempt 0, courtOrder 0 and markExempt false. When given, every value is sent exactly as given and nothing is resolved.",
14101
14209
  type: "object",
14102
14210
  required: [
14103
14211
  "tariff",
@@ -14114,7 +14222,7 @@ var commands = {
14114
14222
  properties: {
14115
14223
  tariff: {
14116
14224
  pattern: "^(0|[1-9][0-9]{0,9})(\\.[0-9]{1,2})?$",
14117
- description: "Sent as pTarifaProced: the unit value of the clinic's tariff for the service. Required.",
14225
+ description: "Sent as pTarifaProced: the unit value of the clinic's tariff for the service. Required when billing is given.",
14118
14226
  type: "string"
14119
14227
  },
14120
14228
  billPrivately: {
@@ -14221,6 +14329,7 @@ var commands = {
14221
14329
  },
14222
14330
  referral: {
14223
14331
  additionalProperties: false,
14332
+ description: "Referral values of the booking screen. Left out: no requesting professional, no authorization number and requestedByUser false.",
14224
14333
  type: "object",
14225
14334
  required: [],
14226
14335
  properties: {
@@ -14238,7 +14347,7 @@ var commands = {
14238
14347
  default: null
14239
14348
  },
14240
14349
  authorizationNumber: {
14241
- description: "Sent as pAutorizacion: the payer's authorization number, when the payer requires one; empty when null.",
14350
+ description: "Sent as pAutorizacion: the payer's authorization number; empty when null. The screen requires one only when the payer requires it (requiresAuthorization in list_payers): leaving it out then answers BOOKING_VALUE_UNRESOLVED.",
14242
14351
  anyOf: [
14243
14352
  {
14244
14353
  pattern: "^[0-9A-Za-z-]{1,30}$",
@@ -14280,7 +14389,7 @@ var commands = {
14280
14389
  }
14281
14390
  },
14282
14391
  title: "Create an appointment",
14283
- description: "Book one appointment in e-Oficlinic (ASIGNAR_CITAS) for a slot that list_booking_slots offered in an availability flow. Requires confirm true and an idempotencyKey. Before anything is written, the patient is resolved by citizenship card; the program and attention type must be the flow's, and the source must still count exactly one unit for them; the regime, affiliate type and relationship must be listed by the provider; the payer, plan, subplan and contract must be listed by the provider for the connection; the service must be configured for the slot's professional; and a fresh read must still show the slot. The classification, billing and referral values are the clinic's own provider codes, which the caller supplies explicitly: this service never guesses them, never derives them from a program and never loads the clinic's tariff matrix. The intent and a fence on the slot are recorded before the single provider request, which is never resent. Success means the provider answered a strictly positive appointment number, the source's own creation signal (verification provider_acknowledgement). OUTCOME_UNKNOWN means the appointment may exist: do not book again; check lookup_appointments with status assigned and ask staff. WRITE_TARGET_UNRESOLVED means another key's write to this slot has no final outcome, so nothing was sent. WRITE_LEDGER_FULL means the connection's ledger refused a new write and nothing was sent. Repeating the same idempotencyKey and request answers the recorded outcome. One-slot, one-unit bookings only. agentMode true answers concise Spanish text instead.",
14392
+ description: "Book one appointment in e-Oficlinic (ASIGNAR_CITAS) for a slot that search_booking_slots or list_booking_slots offered in an availability flow. Send what a person at the desk chooses: confirm true; the slot's flowId and slotId; the patient's documentType and documentNumber; the payer's planId and subplanId (list_payer_plans, list_payer_subplans); and in classification the patient's regime and affiliateType (list_regimes, list_affiliate_types) and, for copayments, salaryRange (list_salary_ranges). Leave the rest out: the service resolves it as the provider's own booking screen does. The payer, program and attention type are the flow's; the purpose is the form's default, 10; the contract is the payer's only active one, or none when it has none; billing takes its flags from the payer's row, its copayment rate, cap and moderator fee from the salary range's row, and its tariff from the payer's tariff matrix for the flow's service under the plan and subplan. A value the caller does send is used as given, and a billing object is sent unchanged with nothing resolved. BOOKING_VALUE_UNRESOLVED means a needed value could not be resolved from the provider's own data and nothing was written; send it and repeat: contractId when the payer has several active contracts; classification.relationship when the affiliate type is neither C nor N; classification.listStatus when the payer uses an attention list; referral.authorizationNumber when the payer requires authorization; a classification.salaryRange the regime lists; or billing when the payer's tariff grid has no positive tariff for the service. Before anything is written, the patient is resolved by citizenship card; the source must still count exactly one unit for the program and attention type; the regime, affiliate type, relationship and salary range, and the payer, plan, subplan and contract, must be listed by the provider; the service must be configured for the slot's professional; and a fresh read must still show the slot. The intent and a fence on the slot are recorded before the single provider request, which is never resent. Success means the provider answered a strictly positive appointment number, the source's own creation signal (verification provider_acknowledgement). OUTCOME_UNKNOWN means the appointment may exist: do not book again; check lookup_appointments with status assigned and ask staff. WRITE_TARGET_UNRESOLVED means another key's write to this slot has no final outcome, so nothing was sent. WRITE_LEDGER_FULL means the connection's ledger refused a new write and nothing was sent. Repeating the identical request answers the recorded outcome; no idempotency key is needed. One-slot, one-unit bookings only. agentMode true answers concise Spanish text instead.",
14284
14393
  effect: "write",
14285
14394
  confirmation: null,
14286
14395
  hidden: false
@@ -14473,8 +14582,8 @@ var commands = {
14473
14582
  name: "idempotencyKey",
14474
14583
  flag: "idempotency-key",
14475
14584
  kind: "string",
14476
- required: true,
14477
- description: "A key the caller chooses once per intended write, such as a UUID. Repeating it with the same request answers the recorded outcome and never writes again; another request with it answers IDEMPOTENCY_KEY_REUSED."
14585
+ required: false,
14586
+ description: "Optional. Without it the service derives the key from the request itself, so repeating the identical request answers the recorded outcome and never writes again. A caller that retries with changed values can choose one key per intended write, such as a UUID; another request with it answers IDEMPOTENCY_KEY_REUSED."
14478
14587
  },
14479
14588
  {
14480
14589
  name: "confirm",
@@ -14498,7 +14607,7 @@ var commands = {
14498
14607
  flag: "slot-id",
14499
14608
  kind: "string",
14500
14609
  required: true,
14501
- description: "A slot id from list_booking_slots in the same flow."
14610
+ description: "A slot id from search_booking_slots or list_booking_slots in the same flow."
14502
14611
  },
14503
14612
  {
14504
14613
  name: "documentType",
@@ -14521,8 +14630,8 @@ var commands = {
14521
14630
  name: "payerId",
14522
14631
  flag: "payer-id",
14523
14632
  kind: "string",
14524
- required: true,
14525
- description: "The flow's payer, repeated as a check."
14633
+ required: false,
14634
+ description: "The payer the availability flow was opened for. Left out: that payer. When given it must be that payer."
14526
14635
  },
14527
14636
  {
14528
14637
  name: "planId",
@@ -14543,8 +14652,7 @@ var commands = {
14543
14652
  flag: "contract-id",
14544
14653
  kind: "string",
14545
14654
  required: false,
14546
- description: "A contract of the payer from list_payer_contracts, which must not be inactive; null (the default) sends none.",
14547
- default: null
14655
+ description: "A contract of the payer from list_payer_contracts, which must not be inactive. An explicit null sends none. Leaving the key out is not the same as null: the service then sends the payer's only contract when list_payer_contracts has exactly one that is not inactive and marks it active, sends none when the payer has no contract or only inactive ones, and answers BOOKING_VALUE_UNRESOLVED otherwise (several contracts, or an unrecognized active flag)."
14548
14656
  },
14549
14657
  {
14550
14658
  name: "observations",
@@ -14567,18 +14675,14 @@ var commands = {
14567
14675
  additionalProperties: false,
14568
14676
  type: "object",
14569
14677
  required: [
14570
- "idempotencyKey",
14571
14678
  "confirm",
14572
14679
  "flowId",
14573
14680
  "slotId",
14574
14681
  "documentType",
14575
14682
  "documentNumber",
14576
- "payerId",
14577
14683
  "planId",
14578
14684
  "subplanId",
14579
14685
  "classification",
14580
- "billing",
14581
- "referral",
14582
14686
  "cancellation",
14583
14687
  "appointmentId"
14584
14688
  ],
@@ -14592,7 +14696,7 @@ var commands = {
14592
14696
  minLength: 8,
14593
14697
  maxLength: 64,
14594
14698
  pattern: "^[A-Za-z0-9_-]+$",
14595
- description: "A key the caller chooses once per intended write, such as a UUID. Repeating it with the same request answers the recorded outcome and never writes again; another request with it answers IDEMPOTENCY_KEY_REUSED.",
14699
+ description: "Optional. Without it the service derives the key from the request itself, so repeating the identical request answers the recorded outcome and never writes again. A caller that retries with changed values can choose one key per intended write, such as a UUID; another request with it answers IDEMPOTENCY_KEY_REUSED.",
14596
14700
  type: "string"
14597
14701
  },
14598
14702
  confirm: {
@@ -14607,7 +14711,7 @@ var commands = {
14607
14711
  },
14608
14712
  slotId: {
14609
14713
  pattern: "^[0-9A-Za-z._-]{1,32}$",
14610
- description: "A slot id from list_booking_slots in the same flow.",
14714
+ description: "A slot id from search_booking_slots or list_booking_slots in the same flow.",
14611
14715
  type: "string"
14612
14716
  },
14613
14717
  documentType: {
@@ -14622,7 +14726,7 @@ var commands = {
14622
14726
  },
14623
14727
  payerId: {
14624
14728
  pattern: "^[0-9A-Za-z._-]{1,32}$",
14625
- description: "The flow's payer, repeated as a check.",
14729
+ description: "The payer the availability flow was opened for. Left out: that payer. When given it must be that payer.",
14626
14730
  type: "string"
14627
14731
  },
14628
14732
  planId: {
@@ -14636,7 +14740,7 @@ var commands = {
14636
14740
  type: "string"
14637
14741
  },
14638
14742
  contractId: {
14639
- description: "A contract of the payer from list_payer_contracts, which must not be inactive; null (the default) sends none.",
14743
+ description: "A contract of the payer from list_payer_contracts, which must not be inactive. An explicit null sends none. Leaving the key out is not the same as null: the service then sends the payer's only contract when list_payer_contracts has exactly one that is not inactive and marks it active, sends none when the payer has no contract or only inactive ones, and answers BOOKING_VALUE_UNRESOLVED otherwise (several contracts, or an unrecognized active flag).",
14640
14744
  anyOf: [
14641
14745
  {
14642
14746
  pattern: "^[0-9A-Za-z._-]{1,32}$",
@@ -14645,19 +14749,15 @@ var commands = {
14645
14749
  {
14646
14750
  type: "null"
14647
14751
  }
14648
- ],
14649
- default: null
14752
+ ]
14650
14753
  },
14651
14754
  classification: {
14652
14755
  additionalProperties: false,
14653
- description: "Coverage and clinical classification codes, as the clinic's own provider catalogs define them. Never guessed: the caller supplies them.",
14756
+ description: "Coverage and clinical classification codes, as the clinic's own provider catalogs define them. regime and affiliateType are never guessed: the caller supplies them. The rest has the defaults each field states.",
14654
14757
  type: "object",
14655
14758
  required: [
14656
14759
  "affiliateType",
14657
- "regime",
14658
- "programId",
14659
- "attentionTypeId",
14660
- "purposeId"
14760
+ "regime"
14661
14761
  ],
14662
14762
  properties: {
14663
14763
  affiliateType: {
@@ -14671,7 +14771,7 @@ var commands = {
14671
14771
  type: "string"
14672
14772
  },
14673
14773
  relationship: {
14674
- description: "Sent as pParentesco (strParentesco); empty when null. Otherwise one list_relationships answers.",
14774
+ description: "Sent as pParentesco (strParentesco); empty when null. One list_relationships answers. The screen disables it for the affiliate types C and N; for any other affiliate type it requires one, so leaving it out then answers BOOKING_VALUE_UNRESOLVED.",
14675
14775
  anyOf: [
14676
14776
  {
14677
14777
  pattern: "^[0-9A-Za-z._-]{1,32}$",
@@ -14684,7 +14784,7 @@ var commands = {
14684
14784
  default: null
14685
14785
  },
14686
14786
  salaryRange: {
14687
- description: "Sent as pRangoSalarial (strRango); empty when null. No catalog of it is mapped, so it is not checked.",
14787
+ description: "Sent as pRangoSalarial (strRango); empty when null. One list_salary_ranges answers for the regime, or BOOKING_VALUE_UNRESOLVED. Required when billing is left out: its row supplies the copayment values.",
14688
14788
  anyOf: [
14689
14789
  {
14690
14790
  pattern: "^[0-9A-Za-z._-]{1,32}$",
@@ -14697,7 +14797,7 @@ var commands = {
14697
14797
  default: null
14698
14798
  },
14699
14799
  listStatus: {
14700
- description: "Sent as pEstadoListado (strEstado); empty when null. No catalog of it is mapped, so it is not checked.",
14800
+ description: "Sent as pEstadoListado (strEstado); empty when null. No catalog of it is mapped, so it is not checked. The screen requires one only when the payer uses an attention list (usesAttentionList in list_payers): leaving it out then answers BOOKING_VALUE_UNRESOLVED.",
14701
14801
  anyOf: [
14702
14802
  {
14703
14803
  pattern: "^[0-9A-Za-z._-]{1,32}$",
@@ -14711,24 +14811,25 @@ var commands = {
14711
14811
  },
14712
14812
  programId: {
14713
14813
  pattern: "^[0-9A-Za-z._-]{1,32}$",
14714
- description: "Sent as pPrograma (sysPrograma). Required: the program the availability flow was opened for, from list_programs.",
14814
+ description: "Sent as pPrograma (sysPrograma). Left out: the program the availability flow was opened for. When given it must be that program.",
14715
14815
  type: "string"
14716
14816
  },
14717
14817
  attentionTypeId: {
14718
14818
  pattern: "^[0-9A-Za-z._-]{1,32}$",
14719
- description: "The one-unit attention type the availability flow was opened for, from list_programs. The source's request has no field for it: it decides the slot list's unit count, and it is part of this write's recorded request.",
14819
+ description: "The one-unit attention type the availability flow was opened for. Left out: that one. When given it must be that one. The source's request has no field for it: it decides the slot list's unit count.",
14720
14820
  type: "string"
14721
14821
  },
14722
14822
  purposeId: {
14723
14823
  pattern: "^[0-9A-Za-z._-]{1,32}$",
14724
- description: "Sent as pFinalidad (sysFinalidad). Required. The screen's source of it is a hidden control, so no catalog proves it here, and a program's sourcePurpose is never applied in its place.",
14725
- type: "string"
14824
+ description: "Sent as pFinalidad (sysFinalidad). Left out: 10, the default of the screen's hidden control. No catalog proves it here, and a program's sourcePurpose is never applied in its place.",
14825
+ type: "string",
14826
+ default: "10"
14726
14827
  }
14727
14828
  }
14728
14829
  },
14729
14830
  billing: {
14730
14831
  additionalProperties: false,
14731
- description: "Billing values of the clinic's tariff matrix. Never guessed: the caller supplies them as the clinic's workflow defines them.",
14832
+ description: "Billing values of the booking screen. Leave the whole object out and the service resolves them as the screen does: tariff from the payer's tariff matrix for the flow's service under the plan and subplan; billPrivately, billCopayments and enteredCopayment from the payer's row; copaymentPercentage, maxCopayment and indicatedModeratorFee from the row of classification.salaryRange; exempt 0, courtOrder 0 and markExempt false. When given, every value is sent exactly as given and nothing is resolved.",
14732
14833
  type: "object",
14733
14834
  required: [
14734
14835
  "tariff",
@@ -14745,7 +14846,7 @@ var commands = {
14745
14846
  properties: {
14746
14847
  tariff: {
14747
14848
  pattern: "^(0|[1-9][0-9]{0,9})(\\.[0-9]{1,2})?$",
14748
- description: "Sent as pTarifaProced: the unit value of the clinic's tariff for the service. Required.",
14849
+ description: "Sent as pTarifaProced: the unit value of the clinic's tariff for the service. Required when billing is given.",
14749
14850
  type: "string"
14750
14851
  },
14751
14852
  billPrivately: {
@@ -14852,6 +14953,7 @@ var commands = {
14852
14953
  },
14853
14954
  referral: {
14854
14955
  additionalProperties: false,
14956
+ description: "Referral values of the booking screen. Left out: no requesting professional, no authorization number and requestedByUser false.",
14855
14957
  type: "object",
14856
14958
  required: [],
14857
14959
  properties: {
@@ -14869,7 +14971,7 @@ var commands = {
14869
14971
  default: null
14870
14972
  },
14871
14973
  authorizationNumber: {
14872
- description: "Sent as pAutorizacion: the payer's authorization number, when the payer requires one; empty when null.",
14974
+ description: "Sent as pAutorizacion: the payer's authorization number; empty when null. The screen requires one only when the payer requires it (requiresAuthorization in list_payers): leaving it out then answers BOOKING_VALUE_UNRESOLVED.",
14873
14975
  anyOf: [
14874
14976
  {
14875
14977
  pattern: "^[0-9A-Za-z-]{1,30}$",
@@ -14939,7 +15041,7 @@ var commands = {
14939
15041
  }
14940
15042
  },
14941
15043
  title: "Reschedule an appointment",
14942
- description: "Reschedule one assigned e-Oficlinic appointment. The provider has no individual reschedule (its REPROGRAMAR_AGENDA moves a professional's whole agenda and is never used), so this is a saga, never atomic: the original must be an upcoming assigned appointment of the patient resolved by citizenship card (its CAS, serviceNumber in lookup_appointments); the cancellation reason must be exactly one list_cancellation_reasons answers; the new slot is booked first exactly as create_appointment books it; only after the provider acknowledged the new booking is the original cancelled (CANECELAR_CITAS) with the given reason and observations. If the new booking fails, nothing changes; if its outcome is unknown, OUTCOME_UNKNOWN answers and the original is never cancelled. Once the new booking is acknowledged the answer reports each phase: completed when the cancellation was confirmed too, partial otherwise (cancellation pending, unknown or not possible), when the patient may hold both appointments. pending continues when the same request is repeated with the same idempotencyKey, which resumes the cancellation alone; nothing is ever resent. The slot and the original are fenced from the first dispatch: WRITE_TARGET_UNRESOLVED means another key's write to either has no final outcome, and nothing was sent. agentMode true answers concise Spanish text instead.",
15044
+ description: "Reschedule one assigned e-Oficlinic appointment. The provider has no individual reschedule (its REPROGRAMAR_AGENDA moves a professional's whole agenda and is never used), so this is a saga, never atomic: the original must be an upcoming assigned appointment of the patient resolved by citizenship card (its CAS, serviceNumber in lookup_appointments); the cancellation reason must be exactly one list_cancellation_reasons answers; the new slot is booked first exactly as create_appointment books it, from the same input: the new slot's flowId and slotId, the patient's document, the payer's planId and subplanId, and in classification the patient's regime, affiliateType and, for copayments, salaryRange. The service resolves the payer, program, attention type, purpose, contract and billing with its tariff from the flow and the provider's own data, as create_appointment describes; BOOKING_VALUE_UNRESOLVED means a needed value could not be resolved, nothing was written and the original is untouched: send it and repeat. Only after the provider acknowledged the new booking is the original cancelled (CANECELAR_CITAS) with the given reason and observations. If the new booking fails, nothing changes; if its outcome is unknown, OUTCOME_UNKNOWN answers and the original is never cancelled. Once the new booking is acknowledged the answer reports each phase: completed when the cancellation was confirmed too, partial otherwise (cancellation pending, unknown or not possible), when the patient may hold both appointments. pending continues when the identical request is repeated, which resumes the cancellation alone; nothing is ever resent. The slot and the original are fenced from the first dispatch: WRITE_TARGET_UNRESOLVED means another key's write to either has no final outcome, and nothing was sent. agentMode true answers concise Spanish text instead.",
14943
15045
  effect: "write",
14944
15046
  confirmation: null,
14945
15047
  hidden: false
@@ -16250,8 +16352,8 @@ var commands = {
16250
16352
  name: "idempotencyKey",
16251
16353
  flag: "idempotency-key",
16252
16354
  kind: "string",
16253
- required: true,
16254
- description: "A key the caller chooses once per intended write, such as a UUID. Repeating it with the same request answers the recorded outcome and never writes again; another request with it answers IDEMPOTENCY_KEY_REUSED."
16355
+ required: false,
16356
+ description: "Optional. Without it the service derives the key from the request itself, so repeating the identical request answers the recorded outcome and never writes again. A caller that retries with changed values can choose one key per intended write, such as a UUID; another request with it answers IDEMPOTENCY_KEY_REUSED."
16255
16357
  },
16256
16358
  {
16257
16359
  name: "agentMode",
@@ -16279,8 +16381,7 @@ var commands = {
16279
16381
  "regimeId",
16280
16382
  "affiliateTypeId",
16281
16383
  "salaryRangeId",
16282
- "confirm",
16283
- "idempotencyKey"
16384
+ "confirm"
16284
16385
  ],
16285
16386
  properties: {
16286
16387
  connectionId: {
@@ -16387,7 +16488,7 @@ var commands = {
16387
16488
  minLength: 8,
16388
16489
  maxLength: 64,
16389
16490
  pattern: "^[A-Za-z0-9_-]+$",
16390
- description: "A key the caller chooses once per intended write, such as a UUID. Repeating it with the same request answers the recorded outcome and never writes again; another request with it answers IDEMPOTENCY_KEY_REUSED.",
16491
+ description: "Optional. Without it the service derives the key from the request itself, so repeating the identical request answers the recorded outcome and never writes again. A caller that retries with changed values can choose one key per intended write, such as a UUID; another request with it answers IDEMPOTENCY_KEY_REUSED.",
16391
16492
  type: "string"
16392
16493
  },
16393
16494
  agentMode: {
@@ -16398,7 +16499,7 @@ var commands = {
16398
16499
  }
16399
16500
  },
16400
16501
  title: "Create a patient",
16401
- description: "Create one new patient in e-Oficlinic using the clinic-confirmed legal identity, contact and classification fields. Use only with verified authority to register this person and explicit confirmation of their details. Requires confirm true and one idempotency key for this intent. An existing patient is never changed. An uncertain result must be checked with lookup_patient and must not be sent again. The result contains no patient data. Verify the saved patient with lookup_patient before attempting a booking. The submission follows the live-verified Cardiología scheduling form. agentMode true answers concise Spanish text instead.",
16502
+ description: "Create one new patient in e-Oficlinic using the clinic-confirmed legal identity, contact and classification fields. Use only with verified authority to register this person and explicit confirmation of their details. Requires confirm true; repeating the identical request answers the recorded outcome, with no idempotency key needed. An existing patient is never changed. An uncertain result must be checked with lookup_patient and must not be sent again. The result contains no patient data. Verify the saved patient with lookup_patient before attempting a booking. The submission follows the live-verified Cardiología scheduling form. agentMode true answers concise Spanish text instead.",
16402
16503
  effect: "write",
16403
16504
  confirmation: null,
16404
16505
  hidden: false
@@ -28645,7 +28746,7 @@ var commands = {
28645
28746
  }
28646
28747
  },
28647
28748
  title: "Look up affiliation",
28648
- description: "Read one matching member contract from an active Account connection. Confirmed affiliation results are reused for seven days. Unknown or unresolved is never inactive. Session cookies are reused; one renewal is admitted only on expiry. This does not authorize care.",
28749
+ description: "Read one matching member contract from an active Account connection. Confirmed affiliation results are reused for seven days. When the provider lists no contract for the document in the company, the answer is outcome noContract with active null: an answer, not a failure and not inactive, so confirm the document number and the company with the person. PATIENT_UNRESOLVED means it listed several contracts and none was chosen. The session is kept alive through the day, and one renewal is admitted only on expiry. This does not authorize care.",
28649
28750
  effect: "read",
28650
28751
  confirmation: null,
28651
28752
  hidden: false
@@ -152133,6 +152234,74 @@ var schemaComponents = {
152133
152234
  }
152134
152235
  }
152135
152236
  },
152237
+ GmedicBookingColorRequiredFailure: {
152238
+ type: "object",
152239
+ description: "This booking requires a verified free interval in the clinic’s correct blue or gray window. Check availability with the required booking color or refer the request to reception.",
152240
+ additionalProperties: false,
152241
+ required: [
152242
+ "code",
152243
+ "message",
152244
+ "retryable",
152245
+ "data"
152246
+ ],
152247
+ properties: {
152248
+ code: {
152249
+ type: "string",
152250
+ enum: [
152251
+ "BOOKING_COLOR_REQUIRED"
152252
+ ],
152253
+ description: "The failure code, stable across releases."
152254
+ },
152255
+ message: {
152256
+ type: "string",
152257
+ description: "What went wrong, for people; it never contains input values."
152258
+ },
152259
+ retryable: {
152260
+ type: "boolean",
152261
+ enum: [
152262
+ false
152263
+ ],
152264
+ description: "Whether repeating the same request may succeed."
152265
+ },
152266
+ data: {
152267
+ $ref: "#/components/schemas/Empty"
152268
+ }
152269
+ }
152270
+ },
152271
+ GmedicBookingInProgressFailure: {
152272
+ type: "object",
152273
+ description: "Another appointment change is in progress. Check the agenda again before trying to book.",
152274
+ additionalProperties: false,
152275
+ required: [
152276
+ "code",
152277
+ "message",
152278
+ "retryable",
152279
+ "data"
152280
+ ],
152281
+ properties: {
152282
+ code: {
152283
+ type: "string",
152284
+ enum: [
152285
+ "BOOKING_IN_PROGRESS"
152286
+ ],
152287
+ description: "The failure code, stable across releases."
152288
+ },
152289
+ message: {
152290
+ type: "string",
152291
+ description: "What went wrong, for people; it never contains input values."
152292
+ },
152293
+ retryable: {
152294
+ type: "boolean",
152295
+ enum: [
152296
+ false
152297
+ ],
152298
+ description: "Whether repeating the same request may succeed."
152299
+ },
152300
+ data: {
152301
+ $ref: "#/components/schemas/Empty"
152302
+ }
152303
+ }
152304
+ },
152136
152305
  GmedicBranchOfficesPage: {
152137
152306
  additionalProperties: false,
152138
152307
  type: "object",
@@ -152866,12 +153035,86 @@ var schemaComponents = {
152866
153035
  }
152867
153036
  }
152868
153037
  },
153038
+ bookingRoute: {
153039
+ description: "Verified payment route, required for agent scheduling at clinics using colored booking windows.",
153040
+ anyOf: [
153041
+ {
153042
+ const: "PRIVATE",
153043
+ type: "string"
153044
+ },
153045
+ {
153046
+ const: "AXA_PREPAID",
153047
+ type: "string"
153048
+ },
153049
+ {
153050
+ const: "AXA_ARL",
153051
+ type: "string"
153052
+ },
153053
+ {
153054
+ const: "PONAL_STARKEY",
153055
+ type: "string"
153056
+ },
153057
+ {
153058
+ const: "EPS_SURA",
153059
+ type: "string"
153060
+ }
153061
+ ]
153062
+ },
152869
153063
  connectionId: {
152870
153064
  pattern: "^con_[0-9A-Za-z]{26}$",
152871
153065
  type: "string"
152872
153066
  }
152873
153067
  }
152874
153068
  },
153069
+ GmedicCreateAppointmentConflictError: {
153070
+ type: "object",
153071
+ description: "A failed answer.",
153072
+ additionalProperties: false,
153073
+ required: [
153074
+ "success",
153075
+ "data",
153076
+ "error",
153077
+ "metadata"
153078
+ ],
153079
+ properties: {
153080
+ success: {
153081
+ type: "boolean",
153082
+ enum: [
153083
+ false
153084
+ ]
153085
+ },
153086
+ data: {
153087
+ const: null
153088
+ },
153089
+ error: {
153090
+ $ref: "#/components/schemas/GmedicCreateAppointmentConflictFailure"
153091
+ },
153092
+ metadata: {
153093
+ $ref: "#/components/schemas/ResponseMetadata"
153094
+ }
153095
+ }
153096
+ },
153097
+ GmedicCreateAppointmentConflictFailure: {
153098
+ oneOf: [
153099
+ {
153100
+ $ref: "#/components/schemas/GmedicNotConfiguredFailure"
153101
+ },
153102
+ {
153103
+ $ref: "#/components/schemas/GmedicBookingColorRequiredFailure"
153104
+ },
153105
+ {
153106
+ $ref: "#/components/schemas/GmedicBookingInProgressFailure"
153107
+ }
153108
+ ],
153109
+ discriminator: {
153110
+ propertyName: "code",
153111
+ mapping: {
153112
+ NOT_CONFIGURED: "#/components/schemas/GmedicNotConfiguredFailure",
153113
+ BOOKING_COLOR_REQUIRED: "#/components/schemas/GmedicBookingColorRequiredFailure",
153114
+ BOOKING_IN_PROGRESS: "#/components/schemas/GmedicBookingInProgressFailure"
153115
+ }
153116
+ }
153117
+ },
152875
153118
  GmedicCreateAppointmentNotFoundError: {
152876
153119
  type: "object",
152877
153120
  description: "A failed answer.",
@@ -157621,6 +157864,51 @@ var schemaComponents = {
157621
157864
  }
157622
157865
  }
157623
157866
  },
157867
+ GmedicListAvailabilityConflictError: {
157868
+ type: "object",
157869
+ description: "A failed answer.",
157870
+ additionalProperties: false,
157871
+ required: [
157872
+ "success",
157873
+ "data",
157874
+ "error",
157875
+ "metadata"
157876
+ ],
157877
+ properties: {
157878
+ success: {
157879
+ type: "boolean",
157880
+ enum: [
157881
+ false
157882
+ ]
157883
+ },
157884
+ data: {
157885
+ const: null
157886
+ },
157887
+ error: {
157888
+ $ref: "#/components/schemas/GmedicListAvailabilityConflictFailure"
157889
+ },
157890
+ metadata: {
157891
+ $ref: "#/components/schemas/ResponseMetadata"
157892
+ }
157893
+ }
157894
+ },
157895
+ GmedicListAvailabilityConflictFailure: {
157896
+ oneOf: [
157897
+ {
157898
+ $ref: "#/components/schemas/GmedicNotConfiguredFailure"
157899
+ },
157900
+ {
157901
+ $ref: "#/components/schemas/GmedicBookingColorRequiredFailure"
157902
+ }
157903
+ ],
157904
+ discriminator: {
157905
+ propertyName: "code",
157906
+ mapping: {
157907
+ NOT_CONFIGURED: "#/components/schemas/GmedicNotConfiguredFailure",
157908
+ BOOKING_COLOR_REQUIRED: "#/components/schemas/GmedicBookingColorRequiredFailure"
157909
+ }
157910
+ }
157911
+ },
157624
157912
  GmedicListAvailabilityNotFoundError: {
157625
157913
  type: "object",
157626
157914
  description: "A failed answer.",
@@ -163365,6 +163653,31 @@ var schemaComponents = {
163365
163653
  type: "object",
163366
163654
  required: [],
163367
163655
  properties: {
163656
+ bookingRoute: {
163657
+ description: "Verified payment route, required for agent scheduling at clinics using colored booking windows.",
163658
+ anyOf: [
163659
+ {
163660
+ const: "PRIVATE",
163661
+ type: "string"
163662
+ },
163663
+ {
163664
+ const: "AXA_PREPAID",
163665
+ type: "string"
163666
+ },
163667
+ {
163668
+ const: "AXA_ARL",
163669
+ type: "string"
163670
+ },
163671
+ {
163672
+ const: "PONAL_STARKEY",
163673
+ type: "string"
163674
+ },
163675
+ {
163676
+ const: "EPS_SURA",
163677
+ type: "string"
163678
+ }
163679
+ ]
163680
+ },
163368
163681
  color: {
163369
163682
  anyOf: [
163370
163683
  {
@@ -163527,6 +163840,55 @@ var schemaComponents = {
163527
163840
  }
163528
163841
  }
163529
163842
  },
163843
+ GmedicUpdateAppointmentConflictError: {
163844
+ type: "object",
163845
+ description: "A failed answer.",
163846
+ additionalProperties: false,
163847
+ required: [
163848
+ "success",
163849
+ "data",
163850
+ "error",
163851
+ "metadata"
163852
+ ],
163853
+ properties: {
163854
+ success: {
163855
+ type: "boolean",
163856
+ enum: [
163857
+ false
163858
+ ]
163859
+ },
163860
+ data: {
163861
+ const: null
163862
+ },
163863
+ error: {
163864
+ $ref: "#/components/schemas/GmedicUpdateAppointmentConflictFailure"
163865
+ },
163866
+ metadata: {
163867
+ $ref: "#/components/schemas/ResponseMetadata"
163868
+ }
163869
+ }
163870
+ },
163871
+ GmedicUpdateAppointmentConflictFailure: {
163872
+ oneOf: [
163873
+ {
163874
+ $ref: "#/components/schemas/GmedicNotConfiguredFailure"
163875
+ },
163876
+ {
163877
+ $ref: "#/components/schemas/GmedicBookingColorRequiredFailure"
163878
+ },
163879
+ {
163880
+ $ref: "#/components/schemas/GmedicBookingInProgressFailure"
163881
+ }
163882
+ ],
163883
+ discriminator: {
163884
+ propertyName: "code",
163885
+ mapping: {
163886
+ NOT_CONFIGURED: "#/components/schemas/GmedicNotConfiguredFailure",
163887
+ BOOKING_COLOR_REQUIRED: "#/components/schemas/GmedicBookingColorRequiredFailure",
163888
+ BOOKING_IN_PROGRESS: "#/components/schemas/GmedicBookingInProgressFailure"
163889
+ }
163890
+ }
163891
+ },
163530
163892
  GmedicUpdateAppointmentNotFoundError: {
163531
163893
  type: "object",
163532
163894
  description: "A failed answer.",
@@ -172028,6 +172390,40 @@ var schemaComponents = {
172028
172390
  }
172029
172391
  }
172030
172392
  },
172393
+ OficlinicBookingValueUnresolvedFailure: {
172394
+ type: "object",
172395
+ description: "A value the booking needs could not be resolved from the provider's own data, so the caller must supply it: a contract, a relationship, a list status, an authorization number, a salary range the regime lists, or the billing values. Nothing was written.",
172396
+ additionalProperties: false,
172397
+ required: [
172398
+ "code",
172399
+ "message",
172400
+ "retryable",
172401
+ "data"
172402
+ ],
172403
+ properties: {
172404
+ code: {
172405
+ type: "string",
172406
+ enum: [
172407
+ "BOOKING_VALUE_UNRESOLVED"
172408
+ ],
172409
+ description: "The failure code, stable across releases."
172410
+ },
172411
+ message: {
172412
+ type: "string",
172413
+ description: "What went wrong, for people; it never contains input values."
172414
+ },
172415
+ retryable: {
172416
+ type: "boolean",
172417
+ enum: [
172418
+ false
172419
+ ],
172420
+ description: "Whether repeating the same request may succeed."
172421
+ },
172422
+ data: {
172423
+ $ref: "#/components/schemas/Empty"
172424
+ }
172425
+ }
172426
+ },
172031
172427
  OficlinicCancelAppointmentBadGatewayError: {
172032
172428
  type: "object",
172033
172429
  description: "A failed answer.",
@@ -172087,7 +172483,6 @@ var schemaComponents = {
172087
172483
  required: [
172088
172484
  "documentType",
172089
172485
  "documentNumber",
172090
- "idempotencyKey",
172091
172486
  "confirm",
172092
172487
  "cancellation"
172093
172488
  ],
@@ -172111,7 +172506,7 @@ var schemaComponents = {
172111
172506
  minLength: 8,
172112
172507
  maxLength: 64,
172113
172508
  pattern: "^[A-Za-z0-9_-]+$",
172114
- description: "A key the caller chooses once per intended write, such as a UUID. Repeating it with the same request answers the recorded outcome and never writes again; another request with it answers IDEMPOTENCY_KEY_REUSED.",
172509
+ description: "Optional. Without it the service derives the key from the request itself, so repeating the identical request answers the recorded outcome and never writes again. A caller that retries with changed values can choose one key per intended write, such as a UUID; another request with it answers IDEMPOTENCY_KEY_REUSED.",
172115
172510
  type: "string"
172116
172511
  },
172117
172512
  confirm: {
@@ -172919,18 +173314,14 @@ var schemaComponents = {
172919
173314
  additionalProperties: false,
172920
173315
  type: "object",
172921
173316
  required: [
172922
- "idempotencyKey",
172923
173317
  "confirm",
172924
173318
  "flowId",
172925
173319
  "slotId",
172926
173320
  "documentType",
172927
173321
  "documentNumber",
172928
- "payerId",
172929
173322
  "planId",
172930
173323
  "subplanId",
172931
- "classification",
172932
- "billing",
172933
- "referral"
173324
+ "classification"
172934
173325
  ],
172935
173326
  properties: {
172936
173327
  connectionId: {
@@ -172942,7 +173333,7 @@ var schemaComponents = {
172942
173333
  minLength: 8,
172943
173334
  maxLength: 64,
172944
173335
  pattern: "^[A-Za-z0-9_-]+$",
172945
- description: "A key the caller chooses once per intended write, such as a UUID. Repeating it with the same request answers the recorded outcome and never writes again; another request with it answers IDEMPOTENCY_KEY_REUSED.",
173336
+ description: "Optional. Without it the service derives the key from the request itself, so repeating the identical request answers the recorded outcome and never writes again. A caller that retries with changed values can choose one key per intended write, such as a UUID; another request with it answers IDEMPOTENCY_KEY_REUSED.",
172946
173337
  type: "string"
172947
173338
  },
172948
173339
  confirm: {
@@ -172957,7 +173348,7 @@ var schemaComponents = {
172957
173348
  },
172958
173349
  slotId: {
172959
173350
  pattern: "^[0-9A-Za-z._-]{1,32}$",
172960
- description: "A slot id from list_booking_slots in the same flow.",
173351
+ description: "A slot id from search_booking_slots or list_booking_slots in the same flow.",
172961
173352
  type: "string"
172962
173353
  },
172963
173354
  documentType: {
@@ -172972,7 +173363,7 @@ var schemaComponents = {
172972
173363
  },
172973
173364
  payerId: {
172974
173365
  pattern: "^[0-9A-Za-z._-]{1,32}$",
172975
- description: "The flow's payer, repeated as a check.",
173366
+ description: "The payer the availability flow was opened for. Left out: that payer. When given it must be that payer.",
172976
173367
  type: "string"
172977
173368
  },
172978
173369
  planId: {
@@ -172986,7 +173377,7 @@ var schemaComponents = {
172986
173377
  type: "string"
172987
173378
  },
172988
173379
  contractId: {
172989
- description: "A contract of the payer from list_payer_contracts, which must not be inactive; null (the default) sends none.",
173380
+ description: "A contract of the payer from list_payer_contracts, which must not be inactive. An explicit null sends none. Leaving the key out is not the same as null: the service then sends the payer's only contract when list_payer_contracts has exactly one that is not inactive and marks it active, sends none when the payer has no contract or only inactive ones, and answers BOOKING_VALUE_UNRESOLVED otherwise (several contracts, or an unrecognized active flag).",
172990
173381
  anyOf: [
172991
173382
  {
172992
173383
  pattern: "^[0-9A-Za-z._-]{1,32}$",
@@ -172995,19 +173386,15 @@ var schemaComponents = {
172995
173386
  {
172996
173387
  type: "null"
172997
173388
  }
172998
- ],
172999
- default: null
173389
+ ]
173000
173390
  },
173001
173391
  classification: {
173002
173392
  additionalProperties: false,
173003
- description: "Coverage and clinical classification codes, as the clinic's own provider catalogs define them. Never guessed: the caller supplies them.",
173393
+ description: "Coverage and clinical classification codes, as the clinic's own provider catalogs define them. regime and affiliateType are never guessed: the caller supplies them. The rest has the defaults each field states.",
173004
173394
  type: "object",
173005
173395
  required: [
173006
173396
  "affiliateType",
173007
- "regime",
173008
- "programId",
173009
- "attentionTypeId",
173010
- "purposeId"
173397
+ "regime"
173011
173398
  ],
173012
173399
  properties: {
173013
173400
  affiliateType: {
@@ -173021,7 +173408,7 @@ var schemaComponents = {
173021
173408
  type: "string"
173022
173409
  },
173023
173410
  relationship: {
173024
- description: "Sent as pParentesco (strParentesco); empty when null. Otherwise one list_relationships answers.",
173411
+ description: "Sent as pParentesco (strParentesco); empty when null. One list_relationships answers. The screen disables it for the affiliate types C and N; for any other affiliate type it requires one, so leaving it out then answers BOOKING_VALUE_UNRESOLVED.",
173025
173412
  anyOf: [
173026
173413
  {
173027
173414
  pattern: "^[0-9A-Za-z._-]{1,32}$",
@@ -173034,7 +173421,7 @@ var schemaComponents = {
173034
173421
  default: null
173035
173422
  },
173036
173423
  salaryRange: {
173037
- description: "Sent as pRangoSalarial (strRango); empty when null. No catalog of it is mapped, so it is not checked.",
173424
+ description: "Sent as pRangoSalarial (strRango); empty when null. One list_salary_ranges answers for the regime, or BOOKING_VALUE_UNRESOLVED. Required when billing is left out: its row supplies the copayment values.",
173038
173425
  anyOf: [
173039
173426
  {
173040
173427
  pattern: "^[0-9A-Za-z._-]{1,32}$",
@@ -173047,7 +173434,7 @@ var schemaComponents = {
173047
173434
  default: null
173048
173435
  },
173049
173436
  listStatus: {
173050
- description: "Sent as pEstadoListado (strEstado); empty when null. No catalog of it is mapped, so it is not checked.",
173437
+ description: "Sent as pEstadoListado (strEstado); empty when null. No catalog of it is mapped, so it is not checked. The screen requires one only when the payer uses an attention list (usesAttentionList in list_payers): leaving it out then answers BOOKING_VALUE_UNRESOLVED.",
173051
173438
  anyOf: [
173052
173439
  {
173053
173440
  pattern: "^[0-9A-Za-z._-]{1,32}$",
@@ -173061,24 +173448,25 @@ var schemaComponents = {
173061
173448
  },
173062
173449
  programId: {
173063
173450
  pattern: "^[0-9A-Za-z._-]{1,32}$",
173064
- description: "Sent as pPrograma (sysPrograma). Required: the program the availability flow was opened for, from list_programs.",
173451
+ description: "Sent as pPrograma (sysPrograma). Left out: the program the availability flow was opened for. When given it must be that program.",
173065
173452
  type: "string"
173066
173453
  },
173067
173454
  attentionTypeId: {
173068
173455
  pattern: "^[0-9A-Za-z._-]{1,32}$",
173069
- description: "The one-unit attention type the availability flow was opened for, from list_programs. The source's request has no field for it: it decides the slot list's unit count, and it is part of this write's recorded request.",
173456
+ description: "The one-unit attention type the availability flow was opened for. Left out: that one. When given it must be that one. The source's request has no field for it: it decides the slot list's unit count.",
173070
173457
  type: "string"
173071
173458
  },
173072
173459
  purposeId: {
173073
173460
  pattern: "^[0-9A-Za-z._-]{1,32}$",
173074
- description: "Sent as pFinalidad (sysFinalidad). Required. The screen's source of it is a hidden control, so no catalog proves it here, and a program's sourcePurpose is never applied in its place.",
173075
- type: "string"
173461
+ description: "Sent as pFinalidad (sysFinalidad). Left out: 10, the default of the screen's hidden control. No catalog proves it here, and a program's sourcePurpose is never applied in its place.",
173462
+ type: "string",
173463
+ default: "10"
173076
173464
  }
173077
173465
  }
173078
173466
  },
173079
173467
  billing: {
173080
173468
  additionalProperties: false,
173081
- description: "Billing values of the clinic's tariff matrix. Never guessed: the caller supplies them as the clinic's workflow defines them.",
173469
+ description: "Billing values of the booking screen. Leave the whole object out and the service resolves them as the screen does: tariff from the payer's tariff matrix for the flow's service under the plan and subplan; billPrivately, billCopayments and enteredCopayment from the payer's row; copaymentPercentage, maxCopayment and indicatedModeratorFee from the row of classification.salaryRange; exempt 0, courtOrder 0 and markExempt false. When given, every value is sent exactly as given and nothing is resolved.",
173082
173470
  type: "object",
173083
173471
  required: [
173084
173472
  "tariff",
@@ -173095,7 +173483,7 @@ var schemaComponents = {
173095
173483
  properties: {
173096
173484
  tariff: {
173097
173485
  pattern: "^(0|[1-9][0-9]{0,9})(\\.[0-9]{1,2})?$",
173098
- description: "Sent as pTarifaProced: the unit value of the clinic's tariff for the service. Required.",
173486
+ description: "Sent as pTarifaProced: the unit value of the clinic's tariff for the service. Required when billing is given.",
173099
173487
  type: "string"
173100
173488
  },
173101
173489
  billPrivately: {
@@ -173202,6 +173590,7 @@ var schemaComponents = {
173202
173590
  },
173203
173591
  referral: {
173204
173592
  additionalProperties: false,
173593
+ description: "Referral values of the booking screen. Left out: no requesting professional, no authorization number and requestedByUser false.",
173205
173594
  type: "object",
173206
173595
  required: [],
173207
173596
  properties: {
@@ -173219,7 +173608,7 @@ var schemaComponents = {
173219
173608
  default: null
173220
173609
  },
173221
173610
  authorizationNumber: {
173222
- description: "Sent as pAutorizacion: the payer's authorization number, when the payer requires one; empty when null.",
173611
+ description: "Sent as pAutorizacion: the payer's authorization number; empty when null. The screen requires one only when the payer requires it (requiresAuthorization in list_payers): leaving it out then answers BOOKING_VALUE_UNRESOLVED.",
173223
173612
  anyOf: [
173224
173613
  {
173225
173614
  pattern: "^[0-9A-Za-z-]{1,30}$",
@@ -173557,6 +173946,9 @@ var schemaComponents = {
173557
173946
  {
173558
173947
  $ref: "#/components/schemas/OficlinicProviderIdentityMismatchFailure"
173559
173948
  },
173949
+ {
173950
+ $ref: "#/components/schemas/OficlinicBookingValueUnresolvedFailure"
173951
+ },
173560
173952
  {
173561
173953
  $ref: "#/components/schemas/OficlinicProgramUnitsNotSupportedFailure"
173562
173954
  }
@@ -173567,6 +173959,7 @@ var schemaComponents = {
173567
173959
  CREDENTIALS_REJECTED: "#/components/schemas/CredentialsRejectedFailure",
173568
173960
  CONTEXT_NOT_AVAILABLE: "#/components/schemas/OficlinicContextNotAvailableFailure",
173569
173961
  PROVIDER_IDENTITY_MISMATCH: "#/components/schemas/OficlinicProviderIdentityMismatchFailure",
173962
+ BOOKING_VALUE_UNRESOLVED: "#/components/schemas/OficlinicBookingValueUnresolvedFailure",
173570
173963
  PROGRAM_UNITS_NOT_SUPPORTED: "#/components/schemas/OficlinicProgramUnitsNotSupportedFailure"
173571
173964
  }
173572
173965
  }
@@ -173641,8 +174034,7 @@ var schemaComponents = {
173641
174034
  "regimeId",
173642
174035
  "affiliateTypeId",
173643
174036
  "salaryRangeId",
173644
- "confirm",
173645
- "idempotencyKey"
174037
+ "confirm"
173646
174038
  ],
173647
174039
  properties: {
173648
174040
  connectionId: {
@@ -173749,7 +174141,7 @@ var schemaComponents = {
173749
174141
  minLength: 8,
173750
174142
  maxLength: 64,
173751
174143
  pattern: "^[A-Za-z0-9_-]+$",
173752
- description: "A key the caller chooses once per intended write, such as a UUID. Repeating it with the same request answers the recorded outcome and never writes again; another request with it answers IDEMPOTENCY_KEY_REUSED.",
174144
+ description: "Optional. Without it the service derives the key from the request itself, so repeating the identical request answers the recorded outcome and never writes again. A caller that retries with changed values can choose one key per intended write, such as a UUID; another request with it answers IDEMPOTENCY_KEY_REUSED.",
173753
174145
  type: "string"
173754
174146
  },
173755
174147
  agentMode: {
@@ -182747,18 +183139,14 @@ var schemaComponents = {
182747
183139
  additionalProperties: false,
182748
183140
  type: "object",
182749
183141
  required: [
182750
- "idempotencyKey",
182751
183142
  "confirm",
182752
183143
  "flowId",
182753
183144
  "slotId",
182754
183145
  "documentType",
182755
183146
  "documentNumber",
182756
- "payerId",
182757
183147
  "planId",
182758
183148
  "subplanId",
182759
183149
  "classification",
182760
- "billing",
182761
- "referral",
182762
183150
  "cancellation"
182763
183151
  ],
182764
183152
  properties: {
@@ -182771,7 +183159,7 @@ var schemaComponents = {
182771
183159
  minLength: 8,
182772
183160
  maxLength: 64,
182773
183161
  pattern: "^[A-Za-z0-9_-]+$",
182774
- description: "A key the caller chooses once per intended write, such as a UUID. Repeating it with the same request answers the recorded outcome and never writes again; another request with it answers IDEMPOTENCY_KEY_REUSED.",
183162
+ description: "Optional. Without it the service derives the key from the request itself, so repeating the identical request answers the recorded outcome and never writes again. A caller that retries with changed values can choose one key per intended write, such as a UUID; another request with it answers IDEMPOTENCY_KEY_REUSED.",
182775
183163
  type: "string"
182776
183164
  },
182777
183165
  confirm: {
@@ -182786,7 +183174,7 @@ var schemaComponents = {
182786
183174
  },
182787
183175
  slotId: {
182788
183176
  pattern: "^[0-9A-Za-z._-]{1,32}$",
182789
- description: "A slot id from list_booking_slots in the same flow.",
183177
+ description: "A slot id from search_booking_slots or list_booking_slots in the same flow.",
182790
183178
  type: "string"
182791
183179
  },
182792
183180
  documentType: {
@@ -182801,7 +183189,7 @@ var schemaComponents = {
182801
183189
  },
182802
183190
  payerId: {
182803
183191
  pattern: "^[0-9A-Za-z._-]{1,32}$",
182804
- description: "The flow's payer, repeated as a check.",
183192
+ description: "The payer the availability flow was opened for. Left out: that payer. When given it must be that payer.",
182805
183193
  type: "string"
182806
183194
  },
182807
183195
  planId: {
@@ -182815,7 +183203,7 @@ var schemaComponents = {
182815
183203
  type: "string"
182816
183204
  },
182817
183205
  contractId: {
182818
- description: "A contract of the payer from list_payer_contracts, which must not be inactive; null (the default) sends none.",
183206
+ description: "A contract of the payer from list_payer_contracts, which must not be inactive. An explicit null sends none. Leaving the key out is not the same as null: the service then sends the payer's only contract when list_payer_contracts has exactly one that is not inactive and marks it active, sends none when the payer has no contract or only inactive ones, and answers BOOKING_VALUE_UNRESOLVED otherwise (several contracts, or an unrecognized active flag).",
182819
183207
  anyOf: [
182820
183208
  {
182821
183209
  pattern: "^[0-9A-Za-z._-]{1,32}$",
@@ -182824,19 +183212,15 @@ var schemaComponents = {
182824
183212
  {
182825
183213
  type: "null"
182826
183214
  }
182827
- ],
182828
- default: null
183215
+ ]
182829
183216
  },
182830
183217
  classification: {
182831
183218
  additionalProperties: false,
182832
- description: "Coverage and clinical classification codes, as the clinic's own provider catalogs define them. Never guessed: the caller supplies them.",
183219
+ description: "Coverage and clinical classification codes, as the clinic's own provider catalogs define them. regime and affiliateType are never guessed: the caller supplies them. The rest has the defaults each field states.",
182833
183220
  type: "object",
182834
183221
  required: [
182835
183222
  "affiliateType",
182836
- "regime",
182837
- "programId",
182838
- "attentionTypeId",
182839
- "purposeId"
183223
+ "regime"
182840
183224
  ],
182841
183225
  properties: {
182842
183226
  affiliateType: {
@@ -182850,7 +183234,7 @@ var schemaComponents = {
182850
183234
  type: "string"
182851
183235
  },
182852
183236
  relationship: {
182853
- description: "Sent as pParentesco (strParentesco); empty when null. Otherwise one list_relationships answers.",
183237
+ description: "Sent as pParentesco (strParentesco); empty when null. One list_relationships answers. The screen disables it for the affiliate types C and N; for any other affiliate type it requires one, so leaving it out then answers BOOKING_VALUE_UNRESOLVED.",
182854
183238
  anyOf: [
182855
183239
  {
182856
183240
  pattern: "^[0-9A-Za-z._-]{1,32}$",
@@ -182863,7 +183247,7 @@ var schemaComponents = {
182863
183247
  default: null
182864
183248
  },
182865
183249
  salaryRange: {
182866
- description: "Sent as pRangoSalarial (strRango); empty when null. No catalog of it is mapped, so it is not checked.",
183250
+ description: "Sent as pRangoSalarial (strRango); empty when null. One list_salary_ranges answers for the regime, or BOOKING_VALUE_UNRESOLVED. Required when billing is left out: its row supplies the copayment values.",
182867
183251
  anyOf: [
182868
183252
  {
182869
183253
  pattern: "^[0-9A-Za-z._-]{1,32}$",
@@ -182876,7 +183260,7 @@ var schemaComponents = {
182876
183260
  default: null
182877
183261
  },
182878
183262
  listStatus: {
182879
- description: "Sent as pEstadoListado (strEstado); empty when null. No catalog of it is mapped, so it is not checked.",
183263
+ description: "Sent as pEstadoListado (strEstado); empty when null. No catalog of it is mapped, so it is not checked. The screen requires one only when the payer uses an attention list (usesAttentionList in list_payers): leaving it out then answers BOOKING_VALUE_UNRESOLVED.",
182880
183264
  anyOf: [
182881
183265
  {
182882
183266
  pattern: "^[0-9A-Za-z._-]{1,32}$",
@@ -182890,24 +183274,25 @@ var schemaComponents = {
182890
183274
  },
182891
183275
  programId: {
182892
183276
  pattern: "^[0-9A-Za-z._-]{1,32}$",
182893
- description: "Sent as pPrograma (sysPrograma). Required: the program the availability flow was opened for, from list_programs.",
183277
+ description: "Sent as pPrograma (sysPrograma). Left out: the program the availability flow was opened for. When given it must be that program.",
182894
183278
  type: "string"
182895
183279
  },
182896
183280
  attentionTypeId: {
182897
183281
  pattern: "^[0-9A-Za-z._-]{1,32}$",
182898
- description: "The one-unit attention type the availability flow was opened for, from list_programs. The source's request has no field for it: it decides the slot list's unit count, and it is part of this write's recorded request.",
183282
+ description: "The one-unit attention type the availability flow was opened for. Left out: that one. When given it must be that one. The source's request has no field for it: it decides the slot list's unit count.",
182899
183283
  type: "string"
182900
183284
  },
182901
183285
  purposeId: {
182902
183286
  pattern: "^[0-9A-Za-z._-]{1,32}$",
182903
- description: "Sent as pFinalidad (sysFinalidad). Required. The screen's source of it is a hidden control, so no catalog proves it here, and a program's sourcePurpose is never applied in its place.",
182904
- type: "string"
183287
+ description: "Sent as pFinalidad (sysFinalidad). Left out: 10, the default of the screen's hidden control. No catalog proves it here, and a program's sourcePurpose is never applied in its place.",
183288
+ type: "string",
183289
+ default: "10"
182905
183290
  }
182906
183291
  }
182907
183292
  },
182908
183293
  billing: {
182909
183294
  additionalProperties: false,
182910
- description: "Billing values of the clinic's tariff matrix. Never guessed: the caller supplies them as the clinic's workflow defines them.",
183295
+ description: "Billing values of the booking screen. Leave the whole object out and the service resolves them as the screen does: tariff from the payer's tariff matrix for the flow's service under the plan and subplan; billPrivately, billCopayments and enteredCopayment from the payer's row; copaymentPercentage, maxCopayment and indicatedModeratorFee from the row of classification.salaryRange; exempt 0, courtOrder 0 and markExempt false. When given, every value is sent exactly as given and nothing is resolved.",
182911
183296
  type: "object",
182912
183297
  required: [
182913
183298
  "tariff",
@@ -182924,7 +183309,7 @@ var schemaComponents = {
182924
183309
  properties: {
182925
183310
  tariff: {
182926
183311
  pattern: "^(0|[1-9][0-9]{0,9})(\\.[0-9]{1,2})?$",
182927
- description: "Sent as pTarifaProced: the unit value of the clinic's tariff for the service. Required.",
183312
+ description: "Sent as pTarifaProced: the unit value of the clinic's tariff for the service. Required when billing is given.",
182928
183313
  type: "string"
182929
183314
  },
182930
183315
  billPrivately: {
@@ -183031,6 +183416,7 @@ var schemaComponents = {
183031
183416
  },
183032
183417
  referral: {
183033
183418
  additionalProperties: false,
183419
+ description: "Referral values of the booking screen. Left out: no requesting professional, no authorization number and requestedByUser false.",
183034
183420
  type: "object",
183035
183421
  required: [],
183036
183422
  properties: {
@@ -183048,7 +183434,7 @@ var schemaComponents = {
183048
183434
  default: null
183049
183435
  },
183050
183436
  authorizationNumber: {
183051
- description: "Sent as pAutorizacion: the payer's authorization number, when the payer requires one; empty when null.",
183437
+ description: "Sent as pAutorizacion: the payer's authorization number; empty when null. The screen requires one only when the payer requires it (requiresAuthorization in list_payers): leaving it out then answers BOOKING_VALUE_UNRESOLVED.",
183052
183438
  anyOf: [
183053
183439
  {
183054
183440
  pattern: "^[0-9A-Za-z-]{1,30}$",
@@ -183417,6 +183803,9 @@ var schemaComponents = {
183417
183803
  {
183418
183804
  $ref: "#/components/schemas/OficlinicProviderIdentityMismatchFailure"
183419
183805
  },
183806
+ {
183807
+ $ref: "#/components/schemas/OficlinicBookingValueUnresolvedFailure"
183808
+ },
183420
183809
  {
183421
183810
  $ref: "#/components/schemas/OficlinicProgramUnitsNotSupportedFailure"
183422
183811
  }
@@ -183427,6 +183816,7 @@ var schemaComponents = {
183427
183816
  CREDENTIALS_REJECTED: "#/components/schemas/CredentialsRejectedFailure",
183428
183817
  CONTEXT_NOT_AVAILABLE: "#/components/schemas/OficlinicContextNotAvailableFailure",
183429
183818
  PROVIDER_IDENTITY_MISMATCH: "#/components/schemas/OficlinicProviderIdentityMismatchFailure",
183819
+ BOOKING_VALUE_UNRESOLVED: "#/components/schemas/OficlinicBookingValueUnresolvedFailure",
183430
183820
  PROGRAM_UNITS_NOT_SUPPORTED: "#/components/schemas/OficlinicProgramUnitsNotSupportedFailure"
183431
183821
  }
183432
183822
  }
@@ -226255,6 +226645,45 @@ var schemaComponents = {
226255
226645
  }
226256
226646
  }
226257
226647
  },
226648
+ SanitasLookupAffiliationResult: {
226649
+ anyOf: [
226650
+ {
226651
+ $ref: "#/components/schemas/SanitasSanitasAffiliation"
226652
+ },
226653
+ {
226654
+ $ref: "#/components/schemas/SanitasSanitasNoContract",
226655
+ description: "Sanitas listed no contract for the document in the company. It does not mean inactive: confirm the document number and the company with the person."
226656
+ }
226657
+ ]
226658
+ },
226659
+ SanitasLookupAffiliationResultResponse: {
226660
+ type: "object",
226661
+ description: "A successful answer.",
226662
+ additionalProperties: false,
226663
+ required: [
226664
+ "success",
226665
+ "data",
226666
+ "error",
226667
+ "metadata"
226668
+ ],
226669
+ properties: {
226670
+ success: {
226671
+ type: "boolean",
226672
+ enum: [
226673
+ true
226674
+ ]
226675
+ },
226676
+ data: {
226677
+ $ref: "#/components/schemas/SanitasLookupAffiliationResult"
226678
+ },
226679
+ error: {
226680
+ const: null
226681
+ },
226682
+ metadata: {
226683
+ $ref: "#/components/schemas/ResponseMetadata"
226684
+ }
226685
+ }
226686
+ },
226258
226687
  SanitasLookupAffiliationServiceUnavailableError: {
226259
226688
  type: "object",
226260
226689
  description: "A failed answer.",
@@ -226351,7 +226780,7 @@ var schemaComponents = {
226351
226780
  },
226352
226781
  SanitasPatientUnresolvedFailure: {
226353
226782
  type: "object",
226354
- description: "The provider did not return one matching contract. Coverage is unknown.",
226783
+ description: "The provider listed several contracts for this document in this company and none was chosen. Coverage is unknown.",
226355
226784
  additionalProperties: false,
226356
226785
  required: [
226357
226786
  "code",
@@ -226718,34 +227147,6 @@ var schemaComponents = {
226718
227147
  }
226719
227148
  }
226720
227149
  },
226721
- SanitasSanitasAffiliationResponse: {
226722
- type: "object",
226723
- description: "A successful answer.",
226724
- additionalProperties: false,
226725
- required: [
226726
- "success",
226727
- "data",
226728
- "error",
226729
- "metadata"
226730
- ],
226731
- properties: {
226732
- success: {
226733
- type: "boolean",
226734
- enum: [
226735
- true
226736
- ]
226737
- },
226738
- data: {
226739
- $ref: "#/components/schemas/SanitasSanitasAffiliation"
226740
- },
226741
- error: {
226742
- const: null
226743
- },
226744
- metadata: {
226745
- $ref: "#/components/schemas/ResponseMetadata"
226746
- }
226747
- }
226748
- },
226749
227150
  SanitasSanitasConnection: {
226750
227151
  additionalProperties: false,
226751
227152
  type: "object",
@@ -226855,6 +227256,115 @@ var schemaComponents = {
226855
227256
  }
226856
227257
  }
226857
227258
  },
227259
+ SanitasSanitasNoContract: {
227260
+ additionalProperties: false,
227261
+ type: "object",
227262
+ required: [
227263
+ "documentType",
227264
+ "documentNumber",
227265
+ "company",
227266
+ "checkedAt",
227267
+ "active",
227268
+ "outcome"
227269
+ ],
227270
+ properties: {
227271
+ documentType: {
227272
+ anyOf: [
227273
+ {
227274
+ const: "AS",
227275
+ type: "string"
227276
+ },
227277
+ {
227278
+ const: "CC",
227279
+ type: "string"
227280
+ },
227281
+ {
227282
+ const: "CD",
227283
+ type: "string"
227284
+ },
227285
+ {
227286
+ const: "CE",
227287
+ type: "string"
227288
+ },
227289
+ {
227290
+ const: "CN",
227291
+ type: "string"
227292
+ },
227293
+ {
227294
+ const: "MS",
227295
+ type: "string"
227296
+ },
227297
+ {
227298
+ const: "NI",
227299
+ type: "string"
227300
+ },
227301
+ {
227302
+ const: "NU",
227303
+ type: "string"
227304
+ },
227305
+ {
227306
+ const: "PA",
227307
+ type: "string"
227308
+ },
227309
+ {
227310
+ const: "PD",
227311
+ type: "string"
227312
+ },
227313
+ {
227314
+ const: "PE",
227315
+ type: "string"
227316
+ },
227317
+ {
227318
+ const: "PT",
227319
+ type: "string"
227320
+ },
227321
+ {
227322
+ const: "RC",
227323
+ type: "string"
227324
+ },
227325
+ {
227326
+ const: "SC",
227327
+ type: "string"
227328
+ },
227329
+ {
227330
+ const: "TI",
227331
+ type: "string"
227332
+ }
227333
+ ]
227334
+ },
227335
+ documentNumber: {
227336
+ pattern: "^[A-Za-z0-9]{1,25}$",
227337
+ type: "string"
227338
+ },
227339
+ company: {
227340
+ anyOf: [
227341
+ {
227342
+ const: "sanitas",
227343
+ type: "string"
227344
+ },
227345
+ {
227346
+ const: "colsanitas",
227347
+ type: "string"
227348
+ },
227349
+ {
227350
+ const: "medisanitas",
227351
+ type: "string"
227352
+ }
227353
+ ]
227354
+ },
227355
+ checkedAt: {
227356
+ format: "date-time",
227357
+ type: "string"
227358
+ },
227359
+ active: {
227360
+ type: "null"
227361
+ },
227362
+ outcome: {
227363
+ const: "noContract",
227364
+ type: "string"
227365
+ }
227366
+ }
227367
+ },
226858
227368
  SignedUrl: {
226859
227369
  additionalProperties: false,
226860
227370
  type: "object",
@@ -243572,6 +244082,31 @@ var schemaComponents = {
243572
244082
  }
243573
244083
  }
243574
244084
  },
244085
+ bookingRoute: {
244086
+ description: "Verified payment route, required for agent scheduling at clinics using colored booking windows.",
244087
+ anyOf: [
244088
+ {
244089
+ const: "PRIVATE",
244090
+ type: "string"
244091
+ },
244092
+ {
244093
+ const: "AXA_PREPAID",
244094
+ type: "string"
244095
+ },
244096
+ {
244097
+ const: "AXA_ARL",
244098
+ type: "string"
244099
+ },
244100
+ {
244101
+ const: "PONAL_STARKEY",
244102
+ type: "string"
244103
+ },
244104
+ {
244105
+ const: "EPS_SURA",
244106
+ type: "string"
244107
+ }
244108
+ ]
244109
+ },
243575
244110
  connectionId: {
243576
244111
  pattern: "^con_[0-9A-Za-z]{26}$",
243577
244112
  type: "string"
@@ -243589,6 +244124,31 @@ var schemaComponents = {
243589
244124
  pattern: "^[1-9][0-9]{0,14}$",
243590
244125
  type: "string"
243591
244126
  },
244127
+ bookingRoute: {
244128
+ description: "Verified payment route, required for agent scheduling at clinics using colored booking windows.",
244129
+ anyOf: [
244130
+ {
244131
+ const: "PRIVATE",
244132
+ type: "string"
244133
+ },
244134
+ {
244135
+ const: "AXA_PREPAID",
244136
+ type: "string"
244137
+ },
244138
+ {
244139
+ const: "AXA_ARL",
244140
+ type: "string"
244141
+ },
244142
+ {
244143
+ const: "PONAL_STARKEY",
244144
+ type: "string"
244145
+ },
244146
+ {
244147
+ const: "EPS_SURA",
244148
+ type: "string"
244149
+ }
244150
+ ]
244151
+ },
243592
244152
  color: {
243593
244153
  anyOf: [
243594
244154
  {
@@ -243786,6 +244346,31 @@ var schemaComponents = {
243786
244346
  type: "integer",
243787
244347
  default: 25
243788
244348
  },
244349
+ bookingRoute: {
244350
+ description: "Verified payment route, required for agent scheduling at clinics using colored booking windows.",
244351
+ anyOf: [
244352
+ {
244353
+ const: "PRIVATE",
244354
+ type: "string"
244355
+ },
244356
+ {
244357
+ const: "AXA_PREPAID",
244358
+ type: "string"
244359
+ },
244360
+ {
244361
+ const: "AXA_ARL",
244362
+ type: "string"
244363
+ },
244364
+ {
244365
+ const: "PONAL_STARKEY",
244366
+ type: "string"
244367
+ },
244368
+ {
244369
+ const: "EPS_SURA",
244370
+ type: "string"
244371
+ }
244372
+ ]
244373
+ },
243789
244374
  agendaId: {
243790
244375
  pattern: "^[1-9][0-9]{0,14}$",
243791
244376
  type: "string"
@@ -245857,18 +246442,14 @@ var schemaComponents = {
245857
246442
  additionalProperties: false,
245858
246443
  type: "object",
245859
246444
  required: [
245860
- "idempotencyKey",
245861
246445
  "confirm",
245862
246446
  "flowId",
245863
246447
  "slotId",
245864
246448
  "documentType",
245865
246449
  "documentNumber",
245866
- "payerId",
245867
246450
  "planId",
245868
246451
  "subplanId",
245869
- "classification",
245870
- "billing",
245871
- "referral"
246452
+ "classification"
245872
246453
  ],
245873
246454
  properties: {
245874
246455
  connectionId: {
@@ -245880,7 +246461,7 @@ var schemaComponents = {
245880
246461
  minLength: 8,
245881
246462
  maxLength: 64,
245882
246463
  pattern: "^[A-Za-z0-9_-]+$",
245883
- description: "A key the caller chooses once per intended write, such as a UUID. Repeating it with the same request answers the recorded outcome and never writes again; another request with it answers IDEMPOTENCY_KEY_REUSED.",
246464
+ description: "Optional. Without it the service derives the key from the request itself, so repeating the identical request answers the recorded outcome and never writes again. A caller that retries with changed values can choose one key per intended write, such as a UUID; another request with it answers IDEMPOTENCY_KEY_REUSED.",
245884
246465
  type: "string"
245885
246466
  },
245886
246467
  confirm: {
@@ -245895,7 +246476,7 @@ var schemaComponents = {
245895
246476
  },
245896
246477
  slotId: {
245897
246478
  pattern: "^[0-9A-Za-z._-]{1,32}$",
245898
- description: "A slot id from list_booking_slots in the same flow.",
246479
+ description: "A slot id from search_booking_slots or list_booking_slots in the same flow.",
245899
246480
  type: "string"
245900
246481
  },
245901
246482
  documentType: {
@@ -245910,7 +246491,7 @@ var schemaComponents = {
245910
246491
  },
245911
246492
  payerId: {
245912
246493
  pattern: "^[0-9A-Za-z._-]{1,32}$",
245913
- description: "The flow's payer, repeated as a check.",
246494
+ description: "The payer the availability flow was opened for. Left out: that payer. When given it must be that payer.",
245914
246495
  type: "string"
245915
246496
  },
245916
246497
  planId: {
@@ -245924,7 +246505,7 @@ var schemaComponents = {
245924
246505
  type: "string"
245925
246506
  },
245926
246507
  contractId: {
245927
- description: "A contract of the payer from list_payer_contracts, which must not be inactive; null (the default) sends none.",
246508
+ description: "A contract of the payer from list_payer_contracts, which must not be inactive. An explicit null sends none. Leaving the key out is not the same as null: the service then sends the payer's only contract when list_payer_contracts has exactly one that is not inactive and marks it active, sends none when the payer has no contract or only inactive ones, and answers BOOKING_VALUE_UNRESOLVED otherwise (several contracts, or an unrecognized active flag).",
245928
246509
  anyOf: [
245929
246510
  {
245930
246511
  pattern: "^[0-9A-Za-z._-]{1,32}$",
@@ -245933,19 +246514,15 @@ var schemaComponents = {
245933
246514
  {
245934
246515
  type: "null"
245935
246516
  }
245936
- ],
245937
- default: null
246517
+ ]
245938
246518
  },
245939
246519
  classification: {
245940
246520
  additionalProperties: false,
245941
- description: "Coverage and clinical classification codes, as the clinic's own provider catalogs define them. Never guessed: the caller supplies them.",
246521
+ description: "Coverage and clinical classification codes, as the clinic's own provider catalogs define them. regime and affiliateType are never guessed: the caller supplies them. The rest has the defaults each field states.",
245942
246522
  type: "object",
245943
246523
  required: [
245944
246524
  "affiliateType",
245945
- "regime",
245946
- "programId",
245947
- "attentionTypeId",
245948
- "purposeId"
246525
+ "regime"
245949
246526
  ],
245950
246527
  properties: {
245951
246528
  affiliateType: {
@@ -245959,7 +246536,7 @@ var schemaComponents = {
245959
246536
  type: "string"
245960
246537
  },
245961
246538
  relationship: {
245962
- description: "Sent as pParentesco (strParentesco); empty when null. Otherwise one list_relationships answers.",
246539
+ description: "Sent as pParentesco (strParentesco); empty when null. One list_relationships answers. The screen disables it for the affiliate types C and N; for any other affiliate type it requires one, so leaving it out then answers BOOKING_VALUE_UNRESOLVED.",
245963
246540
  anyOf: [
245964
246541
  {
245965
246542
  pattern: "^[0-9A-Za-z._-]{1,32}$",
@@ -245972,7 +246549,7 @@ var schemaComponents = {
245972
246549
  default: null
245973
246550
  },
245974
246551
  salaryRange: {
245975
- description: "Sent as pRangoSalarial (strRango); empty when null. No catalog of it is mapped, so it is not checked.",
246552
+ description: "Sent as pRangoSalarial (strRango); empty when null. One list_salary_ranges answers for the regime, or BOOKING_VALUE_UNRESOLVED. Required when billing is left out: its row supplies the copayment values.",
245976
246553
  anyOf: [
245977
246554
  {
245978
246555
  pattern: "^[0-9A-Za-z._-]{1,32}$",
@@ -245985,7 +246562,7 @@ var schemaComponents = {
245985
246562
  default: null
245986
246563
  },
245987
246564
  listStatus: {
245988
- description: "Sent as pEstadoListado (strEstado); empty when null. No catalog of it is mapped, so it is not checked.",
246565
+ description: "Sent as pEstadoListado (strEstado); empty when null. No catalog of it is mapped, so it is not checked. The screen requires one only when the payer uses an attention list (usesAttentionList in list_payers): leaving it out then answers BOOKING_VALUE_UNRESOLVED.",
245989
246566
  anyOf: [
245990
246567
  {
245991
246568
  pattern: "^[0-9A-Za-z._-]{1,32}$",
@@ -245999,24 +246576,25 @@ var schemaComponents = {
245999
246576
  },
246000
246577
  programId: {
246001
246578
  pattern: "^[0-9A-Za-z._-]{1,32}$",
246002
- description: "Sent as pPrograma (sysPrograma). Required: the program the availability flow was opened for, from list_programs.",
246579
+ description: "Sent as pPrograma (sysPrograma). Left out: the program the availability flow was opened for. When given it must be that program.",
246003
246580
  type: "string"
246004
246581
  },
246005
246582
  attentionTypeId: {
246006
246583
  pattern: "^[0-9A-Za-z._-]{1,32}$",
246007
- description: "The one-unit attention type the availability flow was opened for, from list_programs. The source's request has no field for it: it decides the slot list's unit count, and it is part of this write's recorded request.",
246584
+ description: "The one-unit attention type the availability flow was opened for. Left out: that one. When given it must be that one. The source's request has no field for it: it decides the slot list's unit count.",
246008
246585
  type: "string"
246009
246586
  },
246010
246587
  purposeId: {
246011
246588
  pattern: "^[0-9A-Za-z._-]{1,32}$",
246012
- description: "Sent as pFinalidad (sysFinalidad). Required. The screen's source of it is a hidden control, so no catalog proves it here, and a program's sourcePurpose is never applied in its place.",
246013
- type: "string"
246589
+ description: "Sent as pFinalidad (sysFinalidad). Left out: 10, the default of the screen's hidden control. No catalog proves it here, and a program's sourcePurpose is never applied in its place.",
246590
+ type: "string",
246591
+ default: "10"
246014
246592
  }
246015
246593
  }
246016
246594
  },
246017
246595
  billing: {
246018
246596
  additionalProperties: false,
246019
- description: "Billing values of the clinic's tariff matrix. Never guessed: the caller supplies them as the clinic's workflow defines them.",
246597
+ description: "Billing values of the booking screen. Leave the whole object out and the service resolves them as the screen does: tariff from the payer's tariff matrix for the flow's service under the plan and subplan; billPrivately, billCopayments and enteredCopayment from the payer's row; copaymentPercentage, maxCopayment and indicatedModeratorFee from the row of classification.salaryRange; exempt 0, courtOrder 0 and markExempt false. When given, every value is sent exactly as given and nothing is resolved.",
246020
246598
  type: "object",
246021
246599
  required: [
246022
246600
  "tariff",
@@ -246033,7 +246611,7 @@ var schemaComponents = {
246033
246611
  properties: {
246034
246612
  tariff: {
246035
246613
  pattern: "^(0|[1-9][0-9]{0,9})(\\.[0-9]{1,2})?$",
246036
- description: "Sent as pTarifaProced: the unit value of the clinic's tariff for the service. Required.",
246614
+ description: "Sent as pTarifaProced: the unit value of the clinic's tariff for the service. Required when billing is given.",
246037
246615
  type: "string"
246038
246616
  },
246039
246617
  billPrivately: {
@@ -246140,6 +246718,7 @@ var schemaComponents = {
246140
246718
  },
246141
246719
  referral: {
246142
246720
  additionalProperties: false,
246721
+ description: "Referral values of the booking screen. Left out: no requesting professional, no authorization number and requestedByUser false.",
246143
246722
  type: "object",
246144
246723
  required: [],
246145
246724
  properties: {
@@ -246157,7 +246736,7 @@ var schemaComponents = {
246157
246736
  default: null
246158
246737
  },
246159
246738
  authorizationNumber: {
246160
- description: "Sent as pAutorizacion: the payer's authorization number, when the payer requires one; empty when null.",
246739
+ description: "Sent as pAutorizacion: the payer's authorization number; empty when null. The screen requires one only when the payer requires it (requiresAuthorization in list_payers): leaving it out then answers BOOKING_VALUE_UNRESOLVED.",
246161
246740
  anyOf: [
246162
246741
  {
246163
246742
  pattern: "^[0-9A-Za-z-]{1,30}$",
@@ -246204,7 +246783,6 @@ var schemaComponents = {
246204
246783
  required: [
246205
246784
  "documentType",
246206
246785
  "documentNumber",
246207
- "idempotencyKey",
246208
246786
  "confirm",
246209
246787
  "cancellation",
246210
246788
  "appointmentId"
@@ -246229,7 +246807,7 @@ var schemaComponents = {
246229
246807
  minLength: 8,
246230
246808
  maxLength: 64,
246231
246809
  pattern: "^[A-Za-z0-9_-]+$",
246232
- description: "A key the caller chooses once per intended write, such as a UUID. Repeating it with the same request answers the recorded outcome and never writes again; another request with it answers IDEMPOTENCY_KEY_REUSED.",
246810
+ description: "Optional. Without it the service derives the key from the request itself, so repeating the identical request answers the recorded outcome and never writes again. A caller that retries with changed values can choose one key per intended write, such as a UUID; another request with it answers IDEMPOTENCY_KEY_REUSED.",
246233
246811
  type: "string"
246234
246812
  },
246235
246813
  confirm: {
@@ -246276,18 +246854,14 @@ var schemaComponents = {
246276
246854
  additionalProperties: false,
246277
246855
  type: "object",
246278
246856
  required: [
246279
- "idempotencyKey",
246280
246857
  "confirm",
246281
246858
  "flowId",
246282
246859
  "slotId",
246283
246860
  "documentType",
246284
246861
  "documentNumber",
246285
- "payerId",
246286
246862
  "planId",
246287
246863
  "subplanId",
246288
246864
  "classification",
246289
- "billing",
246290
- "referral",
246291
246865
  "cancellation",
246292
246866
  "appointmentId"
246293
246867
  ],
@@ -246301,7 +246875,7 @@ var schemaComponents = {
246301
246875
  minLength: 8,
246302
246876
  maxLength: 64,
246303
246877
  pattern: "^[A-Za-z0-9_-]+$",
246304
- description: "A key the caller chooses once per intended write, such as a UUID. Repeating it with the same request answers the recorded outcome and never writes again; another request with it answers IDEMPOTENCY_KEY_REUSED.",
246878
+ description: "Optional. Without it the service derives the key from the request itself, so repeating the identical request answers the recorded outcome and never writes again. A caller that retries with changed values can choose one key per intended write, such as a UUID; another request with it answers IDEMPOTENCY_KEY_REUSED.",
246305
246879
  type: "string"
246306
246880
  },
246307
246881
  confirm: {
@@ -246316,7 +246890,7 @@ var schemaComponents = {
246316
246890
  },
246317
246891
  slotId: {
246318
246892
  pattern: "^[0-9A-Za-z._-]{1,32}$",
246319
- description: "A slot id from list_booking_slots in the same flow.",
246893
+ description: "A slot id from search_booking_slots or list_booking_slots in the same flow.",
246320
246894
  type: "string"
246321
246895
  },
246322
246896
  documentType: {
@@ -246331,7 +246905,7 @@ var schemaComponents = {
246331
246905
  },
246332
246906
  payerId: {
246333
246907
  pattern: "^[0-9A-Za-z._-]{1,32}$",
246334
- description: "The flow's payer, repeated as a check.",
246908
+ description: "The payer the availability flow was opened for. Left out: that payer. When given it must be that payer.",
246335
246909
  type: "string"
246336
246910
  },
246337
246911
  planId: {
@@ -246345,7 +246919,7 @@ var schemaComponents = {
246345
246919
  type: "string"
246346
246920
  },
246347
246921
  contractId: {
246348
- description: "A contract of the payer from list_payer_contracts, which must not be inactive; null (the default) sends none.",
246922
+ description: "A contract of the payer from list_payer_contracts, which must not be inactive. An explicit null sends none. Leaving the key out is not the same as null: the service then sends the payer's only contract when list_payer_contracts has exactly one that is not inactive and marks it active, sends none when the payer has no contract or only inactive ones, and answers BOOKING_VALUE_UNRESOLVED otherwise (several contracts, or an unrecognized active flag).",
246349
246923
  anyOf: [
246350
246924
  {
246351
246925
  pattern: "^[0-9A-Za-z._-]{1,32}$",
@@ -246354,19 +246928,15 @@ var schemaComponents = {
246354
246928
  {
246355
246929
  type: "null"
246356
246930
  }
246357
- ],
246358
- default: null
246931
+ ]
246359
246932
  },
246360
246933
  classification: {
246361
246934
  additionalProperties: false,
246362
- description: "Coverage and clinical classification codes, as the clinic's own provider catalogs define them. Never guessed: the caller supplies them.",
246935
+ description: "Coverage and clinical classification codes, as the clinic's own provider catalogs define them. regime and affiliateType are never guessed: the caller supplies them. The rest has the defaults each field states.",
246363
246936
  type: "object",
246364
246937
  required: [
246365
246938
  "affiliateType",
246366
- "regime",
246367
- "programId",
246368
- "attentionTypeId",
246369
- "purposeId"
246939
+ "regime"
246370
246940
  ],
246371
246941
  properties: {
246372
246942
  affiliateType: {
@@ -246380,7 +246950,7 @@ var schemaComponents = {
246380
246950
  type: "string"
246381
246951
  },
246382
246952
  relationship: {
246383
- description: "Sent as pParentesco (strParentesco); empty when null. Otherwise one list_relationships answers.",
246953
+ description: "Sent as pParentesco (strParentesco); empty when null. One list_relationships answers. The screen disables it for the affiliate types C and N; for any other affiliate type it requires one, so leaving it out then answers BOOKING_VALUE_UNRESOLVED.",
246384
246954
  anyOf: [
246385
246955
  {
246386
246956
  pattern: "^[0-9A-Za-z._-]{1,32}$",
@@ -246393,7 +246963,7 @@ var schemaComponents = {
246393
246963
  default: null
246394
246964
  },
246395
246965
  salaryRange: {
246396
- description: "Sent as pRangoSalarial (strRango); empty when null. No catalog of it is mapped, so it is not checked.",
246966
+ description: "Sent as pRangoSalarial (strRango); empty when null. One list_salary_ranges answers for the regime, or BOOKING_VALUE_UNRESOLVED. Required when billing is left out: its row supplies the copayment values.",
246397
246967
  anyOf: [
246398
246968
  {
246399
246969
  pattern: "^[0-9A-Za-z._-]{1,32}$",
@@ -246406,7 +246976,7 @@ var schemaComponents = {
246406
246976
  default: null
246407
246977
  },
246408
246978
  listStatus: {
246409
- description: "Sent as pEstadoListado (strEstado); empty when null. No catalog of it is mapped, so it is not checked.",
246979
+ description: "Sent as pEstadoListado (strEstado); empty when null. No catalog of it is mapped, so it is not checked. The screen requires one only when the payer uses an attention list (usesAttentionList in list_payers): leaving it out then answers BOOKING_VALUE_UNRESOLVED.",
246410
246980
  anyOf: [
246411
246981
  {
246412
246982
  pattern: "^[0-9A-Za-z._-]{1,32}$",
@@ -246420,24 +246990,25 @@ var schemaComponents = {
246420
246990
  },
246421
246991
  programId: {
246422
246992
  pattern: "^[0-9A-Za-z._-]{1,32}$",
246423
- description: "Sent as pPrograma (sysPrograma). Required: the program the availability flow was opened for, from list_programs.",
246993
+ description: "Sent as pPrograma (sysPrograma). Left out: the program the availability flow was opened for. When given it must be that program.",
246424
246994
  type: "string"
246425
246995
  },
246426
246996
  attentionTypeId: {
246427
246997
  pattern: "^[0-9A-Za-z._-]{1,32}$",
246428
- description: "The one-unit attention type the availability flow was opened for, from list_programs. The source's request has no field for it: it decides the slot list's unit count, and it is part of this write's recorded request.",
246998
+ description: "The one-unit attention type the availability flow was opened for. Left out: that one. When given it must be that one. The source's request has no field for it: it decides the slot list's unit count.",
246429
246999
  type: "string"
246430
247000
  },
246431
247001
  purposeId: {
246432
247002
  pattern: "^[0-9A-Za-z._-]{1,32}$",
246433
- description: "Sent as pFinalidad (sysFinalidad). Required. The screen's source of it is a hidden control, so no catalog proves it here, and a program's sourcePurpose is never applied in its place.",
246434
- type: "string"
247003
+ description: "Sent as pFinalidad (sysFinalidad). Left out: 10, the default of the screen's hidden control. No catalog proves it here, and a program's sourcePurpose is never applied in its place.",
247004
+ type: "string",
247005
+ default: "10"
246435
247006
  }
246436
247007
  }
246437
247008
  },
246438
247009
  billing: {
246439
247010
  additionalProperties: false,
246440
- description: "Billing values of the clinic's tariff matrix. Never guessed: the caller supplies them as the clinic's workflow defines them.",
247011
+ description: "Billing values of the booking screen. Leave the whole object out and the service resolves them as the screen does: tariff from the payer's tariff matrix for the flow's service under the plan and subplan; billPrivately, billCopayments and enteredCopayment from the payer's row; copaymentPercentage, maxCopayment and indicatedModeratorFee from the row of classification.salaryRange; exempt 0, courtOrder 0 and markExempt false. When given, every value is sent exactly as given and nothing is resolved.",
246441
247012
  type: "object",
246442
247013
  required: [
246443
247014
  "tariff",
@@ -246454,7 +247025,7 @@ var schemaComponents = {
246454
247025
  properties: {
246455
247026
  tariff: {
246456
247027
  pattern: "^(0|[1-9][0-9]{0,9})(\\.[0-9]{1,2})?$",
246457
- description: "Sent as pTarifaProced: the unit value of the clinic's tariff for the service. Required.",
247028
+ description: "Sent as pTarifaProced: the unit value of the clinic's tariff for the service. Required when billing is given.",
246458
247029
  type: "string"
246459
247030
  },
246460
247031
  billPrivately: {
@@ -246561,6 +247132,7 @@ var schemaComponents = {
246561
247132
  },
246562
247133
  referral: {
246563
247134
  additionalProperties: false,
247135
+ description: "Referral values of the booking screen. Left out: no requesting professional, no authorization number and requestedByUser false.",
246564
247136
  type: "object",
246565
247137
  required: [],
246566
247138
  properties: {
@@ -246578,7 +247150,7 @@ var schemaComponents = {
246578
247150
  default: null
246579
247151
  },
246580
247152
  authorizationNumber: {
246581
- description: "Sent as pAutorizacion: the payer's authorization number, when the payer requires one; empty when null.",
247153
+ description: "Sent as pAutorizacion: the payer's authorization number; empty when null. The screen requires one only when the payer requires it (requiresAuthorization in list_payers): leaving it out then answers BOOKING_VALUE_UNRESOLVED.",
246582
247154
  anyOf: [
246583
247155
  {
246584
247156
  pattern: "^[0-9A-Za-z-]{1,30}$",
@@ -247270,8 +247842,7 @@ var schemaComponents = {
247270
247842
  "regimeId",
247271
247843
  "affiliateTypeId",
247272
247844
  "salaryRangeId",
247273
- "confirm",
247274
- "idempotencyKey"
247845
+ "confirm"
247275
247846
  ],
247276
247847
  properties: {
247277
247848
  connectionId: {
@@ -247378,7 +247949,7 @@ var schemaComponents = {
247378
247949
  minLength: 8,
247379
247950
  maxLength: 64,
247380
247951
  pattern: "^[A-Za-z0-9_-]+$",
247381
- description: "A key the caller chooses once per intended write, such as a UUID. Repeating it with the same request answers the recorded outcome and never writes again; another request with it answers IDEMPOTENCY_KEY_REUSED.",
247952
+ description: "Optional. Without it the service derives the key from the request itself, so repeating the identical request answers the recorded outcome and never writes again. A caller that retries with changed values can choose one key per intended write, such as a UUID; another request with it answers IDEMPOTENCY_KEY_REUSED.",
247382
247953
  type: "string"
247383
247954
  },
247384
247955
  agentMode: {
@@ -257594,9 +258165,9 @@ var schemaComponents = {
257594
258165
  // src/generated/generation.json
257595
258166
  var generation_default = {
257596
258167
  formatVersion: 6,
257597
- release: "1.20261113.63907",
257598
- openapiSha256: "81682cd55bdbec958071ad3a5c9d74f35017085add4b08bba1cd284f07c79e7f",
257599
- openapiContentSha256: "12e277340eb5ed2a2a2732fd87021c32c6d9bb2bfbba22f2a0eef5ed12e475dd",
258168
+ release: "1.20261113.150152",
258169
+ openapiSha256: "284a4c78d5360d38f82156b4ab6f70f273e1fa6cb2d340c4cd12e47a6e59802d",
258170
+ openapiContentSha256: "5846d7f85161ffc99a3121a402c3da9d4715375f9ea331a74c815e682af08e8d",
257600
258171
  forge: {
257601
258172
  repository: "https://github.com/cloudflare/forge",
257602
258173
  commit: "7f86447210b7bea3779bfdab3cd5655eade0eadb",
@@ -257609,7 +258180,7 @@ var generation_default = {
257609
258180
  outputs: [
257610
258181
  {
257611
258182
  path: "src/generated/commands.ts",
257612
- sha256: "8643e558b0716cdb8675bcd1799b1beed208f9550438944943e15aa0c5f815ef"
258183
+ sha256: "bca71d45746e79d8e7afa060d035289836d93f62a1195792f31d5c8bf74c8606"
257613
258184
  }
257614
258185
  ]
257615
258186
  };
@@ -259209,7 +259780,7 @@ ${name}`);
259209
259780
  }
259210
259781
 
259211
259782
  // src/index.ts
259212
- var VERSION = "3.57.0";
259783
+ var VERSION = "3.58.0";
259213
259784
  var RELEASE = generation_default.release;
259214
259785
  var commands2 = { ...commands, ...accountOperatorCommands };
259215
259786
  var SDK_PATHS = new Map(Object.values(commands2).map((command) => [command.operation, command.sdkPath]));