@arbol-ai/cli 3.56.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 +1215 -231
  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
@@ -29200,6 +29301,16 @@ var commands = {
29200
29301
  required: false,
29201
29302
  description: "The areaId list_services returned beside that service. Pass it with an exact serviceId to skip a catalog lookup; omit it whenever you are naming the service in words."
29202
29303
  },
29304
+ {
29305
+ name: "coveragePlan",
29306
+ flag: "coverage-plan",
29307
+ kind: "string",
29308
+ required: false,
29309
+ description: "Exact plan printed on the reviewed SURA authorization. Send POS only when the document specifies it. Agenda must offer that plan for the same patient. Keep it when booking the returned opening.",
29310
+ choices: [
29311
+ "POS"
29312
+ ]
29313
+ },
29203
29314
  {
29204
29315
  name: "documentNumber",
29205
29316
  flag: "document-number",
@@ -29327,6 +29438,18 @@ var commands = {
29327
29438
  ],
29328
29439
  description: "The areaId list_services returned beside that service. Pass it with an exact serviceId to skip a catalog lookup; omit it whenever you are naming the service in words."
29329
29440
  },
29441
+ coveragePlan: {
29442
+ anyOf: [
29443
+ {
29444
+ type: "string",
29445
+ const: "POS"
29446
+ },
29447
+ {
29448
+ type: "null"
29449
+ }
29450
+ ],
29451
+ description: "Exact plan printed on the reviewed SURA authorization. Send POS only when the document specifies it. Agenda must offer that plan for the same patient. Keep it when booking the returned opening."
29452
+ },
29330
29453
  documentNumber: {
29331
29454
  type: "string",
29332
29455
  description: "Complete document number of the patient receiving care, from readable original evidence or their message. Normalize separators without changing digits. Request correction only for missing, illegible or conflicting identity; never guess digits."
@@ -30218,6 +30341,16 @@ var commands = {
30218
30341
  required: false,
30219
30342
  description: "The areaId list_services returned beside that service. Pass it with an exact serviceId to skip a catalog lookup; omit it whenever you are naming the service in words."
30220
30343
  },
30344
+ {
30345
+ name: "coveragePlan",
30346
+ flag: "coverage-plan",
30347
+ kind: "string",
30348
+ required: false,
30349
+ description: "Exact plan printed on the reviewed SURA authorization. Send POS only when the document specifies it. Agenda must offer that plan for the same patient. Keep it when booking the returned opening.",
30350
+ choices: [
30351
+ "POS"
30352
+ ]
30353
+ },
30221
30354
  {
30222
30355
  name: "date",
30223
30356
  flag: "date",
@@ -30386,6 +30519,18 @@ var commands = {
30386
30519
  ],
30387
30520
  description: "The areaId list_services returned beside that service. Pass it with an exact serviceId to skip a catalog lookup; omit it whenever you are naming the service in words."
30388
30521
  },
30522
+ coveragePlan: {
30523
+ anyOf: [
30524
+ {
30525
+ type: "string",
30526
+ const: "POS"
30527
+ },
30528
+ {
30529
+ type: "null"
30530
+ }
30531
+ ],
30532
+ description: "Exact plan printed on the reviewed SURA authorization. Send POS only when the document specifies it. Agenda must offer that plan for the same patient. Keep it when booking the returned opening."
30533
+ },
30389
30534
  date: {
30390
30535
  anyOf: [
30391
30536
  {
@@ -152089,6 +152234,74 @@ var schemaComponents = {
152089
152234
  }
152090
152235
  }
152091
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
+ },
152092
152305
  GmedicBranchOfficesPage: {
152093
152306
  additionalProperties: false,
152094
152307
  type: "object",
@@ -152822,12 +153035,86 @@ var schemaComponents = {
152822
153035
  }
152823
153036
  }
152824
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
+ },
152825
153063
  connectionId: {
152826
153064
  pattern: "^con_[0-9A-Za-z]{26}$",
152827
153065
  type: "string"
152828
153066
  }
152829
153067
  }
152830
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
+ },
152831
153118
  GmedicCreateAppointmentNotFoundError: {
152832
153119
  type: "object",
152833
153120
  description: "A failed answer.",
@@ -157577,6 +157864,51 @@ var schemaComponents = {
157577
157864
  }
157578
157865
  }
157579
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
+ },
157580
157912
  GmedicListAvailabilityNotFoundError: {
157581
157913
  type: "object",
157582
157914
  description: "A failed answer.",
@@ -163321,6 +163653,31 @@ var schemaComponents = {
163321
163653
  type: "object",
163322
163654
  required: [],
163323
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
+ },
163324
163681
  color: {
163325
163682
  anyOf: [
163326
163683
  {
@@ -163483,6 +163840,55 @@ var schemaComponents = {
163483
163840
  }
163484
163841
  }
163485
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
+ },
163486
163892
  GmedicUpdateAppointmentNotFoundError: {
163487
163893
  type: "object",
163488
163894
  description: "A failed answer.",
@@ -171984,6 +172390,40 @@ var schemaComponents = {
171984
172390
  }
171985
172391
  }
171986
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
+ },
171987
172427
  OficlinicCancelAppointmentBadGatewayError: {
171988
172428
  type: "object",
171989
172429
  description: "A failed answer.",
@@ -172043,7 +172483,6 @@ var schemaComponents = {
172043
172483
  required: [
172044
172484
  "documentType",
172045
172485
  "documentNumber",
172046
- "idempotencyKey",
172047
172486
  "confirm",
172048
172487
  "cancellation"
172049
172488
  ],
@@ -172067,7 +172506,7 @@ var schemaComponents = {
172067
172506
  minLength: 8,
172068
172507
  maxLength: 64,
172069
172508
  pattern: "^[A-Za-z0-9_-]+$",
172070
- 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.",
172071
172510
  type: "string"
172072
172511
  },
172073
172512
  confirm: {
@@ -172875,18 +173314,14 @@ var schemaComponents = {
172875
173314
  additionalProperties: false,
172876
173315
  type: "object",
172877
173316
  required: [
172878
- "idempotencyKey",
172879
173317
  "confirm",
172880
173318
  "flowId",
172881
173319
  "slotId",
172882
173320
  "documentType",
172883
173321
  "documentNumber",
172884
- "payerId",
172885
173322
  "planId",
172886
173323
  "subplanId",
172887
- "classification",
172888
- "billing",
172889
- "referral"
173324
+ "classification"
172890
173325
  ],
172891
173326
  properties: {
172892
173327
  connectionId: {
@@ -172898,7 +173333,7 @@ var schemaComponents = {
172898
173333
  minLength: 8,
172899
173334
  maxLength: 64,
172900
173335
  pattern: "^[A-Za-z0-9_-]+$",
172901
- 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.",
172902
173337
  type: "string"
172903
173338
  },
172904
173339
  confirm: {
@@ -172913,7 +173348,7 @@ var schemaComponents = {
172913
173348
  },
172914
173349
  slotId: {
172915
173350
  pattern: "^[0-9A-Za-z._-]{1,32}$",
172916
- 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.",
172917
173352
  type: "string"
172918
173353
  },
172919
173354
  documentType: {
@@ -172928,7 +173363,7 @@ var schemaComponents = {
172928
173363
  },
172929
173364
  payerId: {
172930
173365
  pattern: "^[0-9A-Za-z._-]{1,32}$",
172931
- 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.",
172932
173367
  type: "string"
172933
173368
  },
172934
173369
  planId: {
@@ -172942,7 +173377,7 @@ var schemaComponents = {
172942
173377
  type: "string"
172943
173378
  },
172944
173379
  contractId: {
172945
- 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).",
172946
173381
  anyOf: [
172947
173382
  {
172948
173383
  pattern: "^[0-9A-Za-z._-]{1,32}$",
@@ -172951,19 +173386,15 @@ var schemaComponents = {
172951
173386
  {
172952
173387
  type: "null"
172953
173388
  }
172954
- ],
172955
- default: null
173389
+ ]
172956
173390
  },
172957
173391
  classification: {
172958
173392
  additionalProperties: false,
172959
- 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.",
172960
173394
  type: "object",
172961
173395
  required: [
172962
173396
  "affiliateType",
172963
- "regime",
172964
- "programId",
172965
- "attentionTypeId",
172966
- "purposeId"
173397
+ "regime"
172967
173398
  ],
172968
173399
  properties: {
172969
173400
  affiliateType: {
@@ -172977,7 +173408,7 @@ var schemaComponents = {
172977
173408
  type: "string"
172978
173409
  },
172979
173410
  relationship: {
172980
- 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.",
172981
173412
  anyOf: [
172982
173413
  {
172983
173414
  pattern: "^[0-9A-Za-z._-]{1,32}$",
@@ -172990,7 +173421,7 @@ var schemaComponents = {
172990
173421
  default: null
172991
173422
  },
172992
173423
  salaryRange: {
172993
- 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.",
172994
173425
  anyOf: [
172995
173426
  {
172996
173427
  pattern: "^[0-9A-Za-z._-]{1,32}$",
@@ -173003,7 +173434,7 @@ var schemaComponents = {
173003
173434
  default: null
173004
173435
  },
173005
173436
  listStatus: {
173006
- 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.",
173007
173438
  anyOf: [
173008
173439
  {
173009
173440
  pattern: "^[0-9A-Za-z._-]{1,32}$",
@@ -173017,24 +173448,25 @@ var schemaComponents = {
173017
173448
  },
173018
173449
  programId: {
173019
173450
  pattern: "^[0-9A-Za-z._-]{1,32}$",
173020
- 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.",
173021
173452
  type: "string"
173022
173453
  },
173023
173454
  attentionTypeId: {
173024
173455
  pattern: "^[0-9A-Za-z._-]{1,32}$",
173025
- 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.",
173026
173457
  type: "string"
173027
173458
  },
173028
173459
  purposeId: {
173029
173460
  pattern: "^[0-9A-Za-z._-]{1,32}$",
173030
- 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.",
173031
- 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"
173032
173464
  }
173033
173465
  }
173034
173466
  },
173035
173467
  billing: {
173036
173468
  additionalProperties: false,
173037
- 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.",
173038
173470
  type: "object",
173039
173471
  required: [
173040
173472
  "tariff",
@@ -173051,7 +173483,7 @@ var schemaComponents = {
173051
173483
  properties: {
173052
173484
  tariff: {
173053
173485
  pattern: "^(0|[1-9][0-9]{0,9})(\\.[0-9]{1,2})?$",
173054
- 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.",
173055
173487
  type: "string"
173056
173488
  },
173057
173489
  billPrivately: {
@@ -173158,6 +173590,7 @@ var schemaComponents = {
173158
173590
  },
173159
173591
  referral: {
173160
173592
  additionalProperties: false,
173593
+ description: "Referral values of the booking screen. Left out: no requesting professional, no authorization number and requestedByUser false.",
173161
173594
  type: "object",
173162
173595
  required: [],
173163
173596
  properties: {
@@ -173175,7 +173608,7 @@ var schemaComponents = {
173175
173608
  default: null
173176
173609
  },
173177
173610
  authorizationNumber: {
173178
- 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.",
173179
173612
  anyOf: [
173180
173613
  {
173181
173614
  pattern: "^[0-9A-Za-z-]{1,30}$",
@@ -173513,6 +173946,9 @@ var schemaComponents = {
173513
173946
  {
173514
173947
  $ref: "#/components/schemas/OficlinicProviderIdentityMismatchFailure"
173515
173948
  },
173949
+ {
173950
+ $ref: "#/components/schemas/OficlinicBookingValueUnresolvedFailure"
173951
+ },
173516
173952
  {
173517
173953
  $ref: "#/components/schemas/OficlinicProgramUnitsNotSupportedFailure"
173518
173954
  }
@@ -173523,6 +173959,7 @@ var schemaComponents = {
173523
173959
  CREDENTIALS_REJECTED: "#/components/schemas/CredentialsRejectedFailure",
173524
173960
  CONTEXT_NOT_AVAILABLE: "#/components/schemas/OficlinicContextNotAvailableFailure",
173525
173961
  PROVIDER_IDENTITY_MISMATCH: "#/components/schemas/OficlinicProviderIdentityMismatchFailure",
173962
+ BOOKING_VALUE_UNRESOLVED: "#/components/schemas/OficlinicBookingValueUnresolvedFailure",
173526
173963
  PROGRAM_UNITS_NOT_SUPPORTED: "#/components/schemas/OficlinicProgramUnitsNotSupportedFailure"
173527
173964
  }
173528
173965
  }
@@ -173597,8 +174034,7 @@ var schemaComponents = {
173597
174034
  "regimeId",
173598
174035
  "affiliateTypeId",
173599
174036
  "salaryRangeId",
173600
- "confirm",
173601
- "idempotencyKey"
174037
+ "confirm"
173602
174038
  ],
173603
174039
  properties: {
173604
174040
  connectionId: {
@@ -173705,7 +174141,7 @@ var schemaComponents = {
173705
174141
  minLength: 8,
173706
174142
  maxLength: 64,
173707
174143
  pattern: "^[A-Za-z0-9_-]+$",
173708
- 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.",
173709
174145
  type: "string"
173710
174146
  },
173711
174147
  agentMode: {
@@ -182703,18 +183139,14 @@ var schemaComponents = {
182703
183139
  additionalProperties: false,
182704
183140
  type: "object",
182705
183141
  required: [
182706
- "idempotencyKey",
182707
183142
  "confirm",
182708
183143
  "flowId",
182709
183144
  "slotId",
182710
183145
  "documentType",
182711
183146
  "documentNumber",
182712
- "payerId",
182713
183147
  "planId",
182714
183148
  "subplanId",
182715
183149
  "classification",
182716
- "billing",
182717
- "referral",
182718
183150
  "cancellation"
182719
183151
  ],
182720
183152
  properties: {
@@ -182727,7 +183159,7 @@ var schemaComponents = {
182727
183159
  minLength: 8,
182728
183160
  maxLength: 64,
182729
183161
  pattern: "^[A-Za-z0-9_-]+$",
182730
- 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.",
182731
183163
  type: "string"
182732
183164
  },
182733
183165
  confirm: {
@@ -182742,7 +183174,7 @@ var schemaComponents = {
182742
183174
  },
182743
183175
  slotId: {
182744
183176
  pattern: "^[0-9A-Za-z._-]{1,32}$",
182745
- 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.",
182746
183178
  type: "string"
182747
183179
  },
182748
183180
  documentType: {
@@ -182757,7 +183189,7 @@ var schemaComponents = {
182757
183189
  },
182758
183190
  payerId: {
182759
183191
  pattern: "^[0-9A-Za-z._-]{1,32}$",
182760
- 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.",
182761
183193
  type: "string"
182762
183194
  },
182763
183195
  planId: {
@@ -182771,7 +183203,7 @@ var schemaComponents = {
182771
183203
  type: "string"
182772
183204
  },
182773
183205
  contractId: {
182774
- 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).",
182775
183207
  anyOf: [
182776
183208
  {
182777
183209
  pattern: "^[0-9A-Za-z._-]{1,32}$",
@@ -182780,19 +183212,15 @@ var schemaComponents = {
182780
183212
  {
182781
183213
  type: "null"
182782
183214
  }
182783
- ],
182784
- default: null
183215
+ ]
182785
183216
  },
182786
183217
  classification: {
182787
183218
  additionalProperties: false,
182788
- 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.",
182789
183220
  type: "object",
182790
183221
  required: [
182791
183222
  "affiliateType",
182792
- "regime",
182793
- "programId",
182794
- "attentionTypeId",
182795
- "purposeId"
183223
+ "regime"
182796
183224
  ],
182797
183225
  properties: {
182798
183226
  affiliateType: {
@@ -182806,7 +183234,7 @@ var schemaComponents = {
182806
183234
  type: "string"
182807
183235
  },
182808
183236
  relationship: {
182809
- 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.",
182810
183238
  anyOf: [
182811
183239
  {
182812
183240
  pattern: "^[0-9A-Za-z._-]{1,32}$",
@@ -182819,7 +183247,7 @@ var schemaComponents = {
182819
183247
  default: null
182820
183248
  },
182821
183249
  salaryRange: {
182822
- 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.",
182823
183251
  anyOf: [
182824
183252
  {
182825
183253
  pattern: "^[0-9A-Za-z._-]{1,32}$",
@@ -182832,7 +183260,7 @@ var schemaComponents = {
182832
183260
  default: null
182833
183261
  },
182834
183262
  listStatus: {
182835
- 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.",
182836
183264
  anyOf: [
182837
183265
  {
182838
183266
  pattern: "^[0-9A-Za-z._-]{1,32}$",
@@ -182846,24 +183274,25 @@ var schemaComponents = {
182846
183274
  },
182847
183275
  programId: {
182848
183276
  pattern: "^[0-9A-Za-z._-]{1,32}$",
182849
- 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.",
182850
183278
  type: "string"
182851
183279
  },
182852
183280
  attentionTypeId: {
182853
183281
  pattern: "^[0-9A-Za-z._-]{1,32}$",
182854
- 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.",
182855
183283
  type: "string"
182856
183284
  },
182857
183285
  purposeId: {
182858
183286
  pattern: "^[0-9A-Za-z._-]{1,32}$",
182859
- 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.",
182860
- 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"
182861
183290
  }
182862
183291
  }
182863
183292
  },
182864
183293
  billing: {
182865
183294
  additionalProperties: false,
182866
- 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.",
182867
183296
  type: "object",
182868
183297
  required: [
182869
183298
  "tariff",
@@ -182880,7 +183309,7 @@ var schemaComponents = {
182880
183309
  properties: {
182881
183310
  tariff: {
182882
183311
  pattern: "^(0|[1-9][0-9]{0,9})(\\.[0-9]{1,2})?$",
182883
- 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.",
182884
183313
  type: "string"
182885
183314
  },
182886
183315
  billPrivately: {
@@ -182987,6 +183416,7 @@ var schemaComponents = {
182987
183416
  },
182988
183417
  referral: {
182989
183418
  additionalProperties: false,
183419
+ description: "Referral values of the booking screen. Left out: no requesting professional, no authorization number and requestedByUser false.",
182990
183420
  type: "object",
182991
183421
  required: [],
182992
183422
  properties: {
@@ -183004,7 +183434,7 @@ var schemaComponents = {
183004
183434
  default: null
183005
183435
  },
183006
183436
  authorizationNumber: {
183007
- 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.",
183008
183438
  anyOf: [
183009
183439
  {
183010
183440
  pattern: "^[0-9A-Za-z-]{1,30}$",
@@ -183373,6 +183803,9 @@ var schemaComponents = {
183373
183803
  {
183374
183804
  $ref: "#/components/schemas/OficlinicProviderIdentityMismatchFailure"
183375
183805
  },
183806
+ {
183807
+ $ref: "#/components/schemas/OficlinicBookingValueUnresolvedFailure"
183808
+ },
183376
183809
  {
183377
183810
  $ref: "#/components/schemas/OficlinicProgramUnitsNotSupportedFailure"
183378
183811
  }
@@ -183383,6 +183816,7 @@ var schemaComponents = {
183383
183816
  CREDENTIALS_REJECTED: "#/components/schemas/CredentialsRejectedFailure",
183384
183817
  CONTEXT_NOT_AVAILABLE: "#/components/schemas/OficlinicContextNotAvailableFailure",
183385
183818
  PROVIDER_IDENTITY_MISMATCH: "#/components/schemas/OficlinicProviderIdentityMismatchFailure",
183819
+ BOOKING_VALUE_UNRESOLVED: "#/components/schemas/OficlinicBookingValueUnresolvedFailure",
183386
183820
  PROGRAM_UNITS_NOT_SUPPORTED: "#/components/schemas/OficlinicProgramUnitsNotSupportedFailure"
183387
183821
  }
183388
183822
  }
@@ -189736,6 +190170,210 @@ var schemaComponents = {
189736
190170
  "voiceId"
189737
190171
  ],
189738
190172
  properties: {
190173
+ backgroundSound: {
190174
+ anyOf: [
190175
+ {
190176
+ type: "object",
190177
+ required: [
190178
+ "sound"
190179
+ ],
190180
+ properties: {
190181
+ sound: {
190182
+ anyOf: [
190183
+ {
190184
+ type: "string",
190185
+ const: "office1"
190186
+ },
190187
+ {
190188
+ type: "string",
190189
+ const: "office2"
190190
+ },
190191
+ {
190192
+ type: "string",
190193
+ const: "restaurant"
190194
+ },
190195
+ {
190196
+ type: "string",
190197
+ const: "city"
190198
+ }
190199
+ ],
190200
+ description: "The place: `office1`, `office2`, `restaurant` or `city`."
190201
+ },
190202
+ volume: {
190203
+ type: "integer",
190204
+ default: 15,
190205
+ description: "How loud it plays next to the Agent's voice, from 1 to 100. The default, 15, is subtle.",
190206
+ maximum: 100,
190207
+ minimum: 1
190208
+ }
190209
+ },
190210
+ description: "A place that sounds behind the Agent's voice for the whole call, so it sounds less like a quiet studio. Only the caller hears it: it never reaches the transcript. Null turns it off. Left out, the Agent keeps its current value; until it is first set, calls keep behaving as they did. Applies to future calls once the Agent is published.",
190211
+ additionalProperties: false
190212
+ },
190213
+ {
190214
+ type: "null"
190215
+ }
190216
+ ]
190217
+ },
190218
+ capacity: {
190219
+ anyOf: [
190220
+ {
190221
+ type: "object",
190222
+ required: [
190223
+ "callsPerDay",
190224
+ "maxHoldSeconds",
190225
+ "simultaneousCalls"
190226
+ ],
190227
+ properties: {
190228
+ callsPerDay: {
190229
+ anyOf: [
190230
+ {
190231
+ type: "integer",
190232
+ description: "The most calls this Agent takes in a day. Null: Arbol's limit, 100000.",
190233
+ maximum: 1e5,
190234
+ minimum: 1
190235
+ },
190236
+ {
190237
+ type: "null"
190238
+ }
190239
+ ]
190240
+ },
190241
+ maxHoldSeconds: {
190242
+ anyOf: [
190243
+ {
190244
+ type: "integer",
190245
+ description: "How long a caller waits on hold for a free place when the Agent is at its limit, before the call is refused. Null: no hold, the call is refused at once.",
190246
+ maximum: 1800,
190247
+ minimum: 10
190248
+ },
190249
+ {
190250
+ type: "null"
190251
+ }
190252
+ ]
190253
+ },
190254
+ simultaneousCalls: {
190255
+ anyOf: [
190256
+ {
190257
+ type: "integer",
190258
+ description: "The most calls this Agent is on at once, the calls it places included. Null: no limit of its own.",
190259
+ maximum: 1000,
190260
+ minimum: 1
190261
+ },
190262
+ {
190263
+ type: "null"
190264
+ }
190265
+ ]
190266
+ }
190267
+ },
190268
+ description: "How many calls the Agent takes and how long a caller waits on hold when it is at its limit. Null applies Arbol's defaults: no limit of its own, 100000 calls a day, and a hold of up to 180 seconds. Left out, the Agent keeps its current value; until it is first set, calls keep behaving as they did. Applies to future calls once the Agent is published.",
190269
+ additionalProperties: false
190270
+ },
190271
+ {
190272
+ type: "null"
190273
+ }
190274
+ ]
190275
+ },
190276
+ guardrails: {
190277
+ anyOf: [
190278
+ {
190279
+ type: "object",
190280
+ required: [
190281
+ "blockManipulation",
190282
+ "blockedTopics",
190283
+ "rules",
190284
+ "stayOnTopic"
190285
+ ],
190286
+ properties: {
190287
+ blockManipulation: {
190288
+ type: "boolean",
190289
+ description: "End a call in which the caller tries to make the Agent ignore its instructions."
190290
+ },
190291
+ blockedTopics: {
190292
+ type: "array",
190293
+ items: {
190294
+ anyOf: [
190295
+ {
190296
+ type: "string",
190297
+ const: "sexual"
190298
+ },
190299
+ {
190300
+ type: "string",
190301
+ const: "violence"
190302
+ },
190303
+ {
190304
+ type: "string",
190305
+ const: "harassment"
190306
+ },
190307
+ {
190308
+ type: "string",
190309
+ const: "selfHarm"
190310
+ },
190311
+ {
190312
+ type: "string",
190313
+ const: "profanity"
190314
+ },
190315
+ {
190316
+ type: "string",
190317
+ const: "religionOrPolitics"
190318
+ },
190319
+ {
190320
+ type: "string",
190321
+ const: "medicalAndLegal"
190322
+ }
190323
+ ]
190324
+ },
190325
+ description: "Subjects the Agent must not speak about; a reply that touches one ends the call. Careful with `medicalAndLegal`: it can end the calls of an Agent whose work is to talk about specialties, exams or prescriptions. For `no clinical advice`, a rule of your own says it more exactly.",
190326
+ maxItems: 7,
190327
+ uniqueItems: true
190328
+ },
190329
+ rules: {
190330
+ type: "array",
190331
+ items: {
190332
+ type: "object",
190333
+ required: [
190334
+ "blocks",
190335
+ "name"
190336
+ ],
190337
+ properties: {
190338
+ blocks: {
190339
+ type: "string",
190340
+ description: "What the rule blocks, in plain words: `Any diagnosis, dose or treatment recommendation`.",
190341
+ maxLength: 1000,
190342
+ minLength: 1
190343
+ },
190344
+ name: {
190345
+ type: "string",
190346
+ description: "A short name for the rule.",
190347
+ maxLength: 80,
190348
+ minLength: 1
190349
+ }
190350
+ },
190351
+ additionalProperties: false
190352
+ },
190353
+ description: "The organization's own rules. Each one is checked against every reply of the Agent, and a reply that breaks one ends the call.",
190354
+ maxItems: 5
190355
+ },
190356
+ stayOnTopic: {
190357
+ type: "boolean",
190358
+ description: "Remind the Agent of its instructions throughout a long call, so it stays on its subject. It never ends a call."
190359
+ }
190360
+ },
190361
+ description: "Checks that run beside the Agent's instructions on every call. Every check other than `stayOnTopic` ends the call when it triggers, and the caller may hear the start of the reply before it is cut. Null turns every check off. Left out, the Agent keeps its current value; until it is first set, calls keep behaving as they did. Applies to future calls once the Agent is published.",
190362
+ additionalProperties: false
190363
+ },
190364
+ {
190365
+ type: "null"
190366
+ }
190367
+ ]
190368
+ },
190369
+ ignoreBackgroundVoices: {
190370
+ type: "boolean",
190371
+ description: "Keep other people talking near the caller out of the conversation, so they neither answer for the caller nor interrupt the Agent. False turns it off. Left out, the Agent keeps its current value; until it is first set, calls keep behaving as they did. Applies to future calls once the Agent is published."
190372
+ },
190373
+ keypadInput: {
190374
+ type: "boolean",
190375
+ description: "Let callers type on their phone's keypad. What they type reaches the Agent as their message, and the Agent is told it may ask for a number that is long or easy to mishear (an identification number, a phone number) to be typed, ending with #. False ignores the keypad. On for an Agent that never set it; left out of a write, the Agent keeps its current value. Phone calls only. Applies to future calls once the Agent is published."
190376
+ },
189739
190377
  keywords: {
189740
190378
  type: "array",
189741
190379
  items: {
@@ -189747,6 +190385,19 @@ var schemaComponents = {
189747
190385
  maxItems: 50,
189748
190386
  uniqueItems: true
189749
190387
  },
190388
+ maxDurationMessage: {
190389
+ anyOf: [
190390
+ {
190391
+ type: "string",
190392
+ description: "What the Agent says when a call reaches `maxDurationSeconds`, instead of the line going silent. Null: it says nothing. Left out, the Agent keeps its current value; until it is first set, calls keep behaving as they did. Applies to future calls once the Agent is published.",
190393
+ maxLength: 300,
190394
+ minLength: 1
190395
+ },
190396
+ {
190397
+ type: "null"
190398
+ }
190399
+ ]
190400
+ },
189750
190401
  maxDurationSeconds: {
189751
190402
  anyOf: [
189752
190403
  {
@@ -189760,6 +190411,44 @@ var schemaComponents = {
189760
190411
  }
189761
190412
  ]
189762
190413
  },
190414
+ nonInterruptingWords: {
190415
+ type: "array",
190416
+ items: {
190417
+ type: "string",
190418
+ maxLength: 40,
190419
+ minLength: 1
190420
+ },
190421
+ description: "Short words a caller says while listening (`ajá`, `sí`, `ok`) that must not cut the Agent off. Matched whole, whatever the case. An empty list removes them all. Left out, the Agent keeps its current value; until it is first set, calls keep behaving as they did. Applies to future calls once the Agent is published.",
190422
+ maxItems: 50,
190423
+ uniqueItems: true
190424
+ },
190425
+ pronunciations: {
190426
+ type: "array",
190427
+ items: {
190428
+ type: "object",
190429
+ required: [
190430
+ "spokenAs",
190431
+ "term"
190432
+ ],
190433
+ properties: {
190434
+ spokenAs: {
190435
+ type: "string",
190436
+ description: "How to say it, written the way it sounds: `Yeison`, `ce pe a pe`.",
190437
+ maxLength: 120,
190438
+ minLength: 1
190439
+ },
190440
+ term: {
190441
+ type: "string",
190442
+ description: "The word or phrase as the Agent writes it: a surname, a site, a medicine. Matched as a whole word, whatever the case.",
190443
+ maxLength: 64,
190444
+ minLength: 1
190445
+ }
190446
+ },
190447
+ additionalProperties: false
190448
+ },
190449
+ description: "How the Agent pronounces the organization's own words: each `term` is spoken as its `spokenAs`. Terms are matched whatever their case, so a term repeated in another case keeps only its first entry. An empty list removes them all. Left out, the Agent keeps its current value; until it is first set, calls keep behaving as they did. Applies to future calls once the Agent is published.",
190450
+ maxItems: 100
190451
+ },
189763
190452
  recordCalls: {
189764
190453
  type: "boolean",
189765
190454
  description: "Keep the call recording (copied to Raíz after the call)."
@@ -189809,6 +190498,23 @@ var schemaComponents = {
189809
190498
  }
189810
190499
  ]
189811
190500
  },
190501
+ replyTiming: {
190502
+ anyOf: [
190503
+ {
190504
+ type: "string",
190505
+ const: "patient"
190506
+ },
190507
+ {
190508
+ type: "string",
190509
+ const: "normal"
190510
+ },
190511
+ {
190512
+ type: "string",
190513
+ const: "quick"
190514
+ }
190515
+ ],
190516
+ description: "How soon the Agent replies once the caller pauses: `patient` waits longer, for people who think aloud or speak slowly; `normal`; `quick` replies sooner. Left out, the Agent keeps its current value; until it is first set, calls keep behaving as they did. Applies to future calls once the Agent is published."
190517
+ },
189812
190518
  responseDelayMessages: {
189813
190519
  type: "boolean",
189814
190520
  description: "Speak a short contextual message while preparing a slow response. False disables automatic delay messages. Omitted preserves the current runtime setting."
@@ -189865,9 +190571,29 @@ var schemaComponents = {
189865
190571
  toolCallSound: {
189866
190572
  anyOf: [
189867
190573
  {
189868
- type: "string",
189869
- const: "typing",
189870
- description: "Play a typing sound while this Agent's tools execute. Null disables the sound; omitted preserves the current setting. Applies to future calls after synchronization."
190574
+ anyOf: [
190575
+ {
190576
+ type: "string",
190577
+ const: "typing"
190578
+ },
190579
+ {
190580
+ type: "string",
190581
+ const: "music1"
190582
+ },
190583
+ {
190584
+ type: "string",
190585
+ const: "music2"
190586
+ },
190587
+ {
190588
+ type: "string",
190589
+ const: "music3"
190590
+ },
190591
+ {
190592
+ type: "string",
190593
+ const: "music4"
190594
+ }
190595
+ ],
190596
+ description: "What the caller hears while one of the Agent's tools runs, instead of silence: `typing` (a keyboard) or waiting music (`music1` to `music4`). Null: silence. Left out, the Agent keeps its current value; until it is first set, calls keep behaving as they did. Applies to future calls once the Agent is published."
189871
190597
  },
189872
190598
  {
189873
190599
  type: "null"
@@ -189887,6 +190613,23 @@ var schemaComponents = {
189887
190613
  }
189888
190614
  ]
189889
190615
  },
190616
+ uninterruptibleGreeting: {
190617
+ type: "boolean",
190618
+ description: "Say the first message whole: the caller cannot cut it off. For a greeting that carries a notice the caller must hear. False lets the caller interrupt it. Left out, the Agent keeps its current value; until it is first set, calls keep behaving as they did. Applies to future calls once the Agent is published."
190619
+ },
190620
+ voiceVersion: {
190621
+ anyOf: [
190622
+ {
190623
+ type: "string",
190624
+ const: "classic"
190625
+ },
190626
+ {
190627
+ type: "string",
190628
+ const: "turbo"
190629
+ }
190630
+ ],
190631
+ description: "Which version of the voice speaks. `classic` (what every Agent has spoken with) or `turbo`: it answers sooner and with more expression, ignores `speed`, and a voice can sound somewhat different in it. Left out, the Agent keeps its current value; until it is first set, calls keep behaving as they did. Applies to future calls once the Agent is published."
190632
+ },
189890
190633
  backupModels: {
189891
190634
  anyOf: [
189892
190635
  {
@@ -225902,6 +226645,45 @@ var schemaComponents = {
225902
226645
  }
225903
226646
  }
225904
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
+ },
225905
226687
  SanitasLookupAffiliationServiceUnavailableError: {
225906
226688
  type: "object",
225907
226689
  description: "A failed answer.",
@@ -225998,7 +226780,7 @@ var schemaComponents = {
225998
226780
  },
225999
226781
  SanitasPatientUnresolvedFailure: {
226000
226782
  type: "object",
226001
- 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.",
226002
226784
  additionalProperties: false,
226003
226785
  required: [
226004
226786
  "code",
@@ -226365,34 +227147,6 @@ var schemaComponents = {
226365
227147
  }
226366
227148
  }
226367
227149
  },
226368
- SanitasSanitasAffiliationResponse: {
226369
- type: "object",
226370
- description: "A successful answer.",
226371
- additionalProperties: false,
226372
- required: [
226373
- "success",
226374
- "data",
226375
- "error",
226376
- "metadata"
226377
- ],
226378
- properties: {
226379
- success: {
226380
- type: "boolean",
226381
- enum: [
226382
- true
226383
- ]
226384
- },
226385
- data: {
226386
- $ref: "#/components/schemas/SanitasSanitasAffiliation"
226387
- },
226388
- error: {
226389
- const: null
226390
- },
226391
- metadata: {
226392
- $ref: "#/components/schemas/ResponseMetadata"
226393
- }
226394
- }
226395
- },
226396
227150
  SanitasSanitasConnection: {
226397
227151
  additionalProperties: false,
226398
227152
  type: "object",
@@ -226502,6 +227256,115 @@ var schemaComponents = {
226502
227256
  }
226503
227257
  }
226504
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
+ },
226505
227368
  SignedUrl: {
226506
227369
  additionalProperties: false,
226507
227370
  type: "object",
@@ -227475,6 +228338,18 @@ var schemaComponents = {
227475
228338
  ],
227476
228339
  description: "The areaId list_services returned beside that service. Pass it with an exact serviceId to skip a catalog lookup; omit it whenever you are naming the service in words."
227477
228340
  },
228341
+ coveragePlan: {
228342
+ anyOf: [
228343
+ {
228344
+ type: "string",
228345
+ const: "POS"
228346
+ },
228347
+ {
228348
+ type: "null"
228349
+ }
228350
+ ],
228351
+ description: "Exact plan printed on the reviewed SURA authorization. Send POS only when the document specifies it. Agenda must offer that plan for the same patient. Keep it when booking the returned opening."
228352
+ },
227478
228353
  documentNumber: {
227479
228354
  type: "string",
227480
228355
  description: "Complete document number of the patient receiving care, from readable original evidence or their message. Normalize separators without changing digits. Request correction only for missing, illegible or conflicting identity; never guess digits."
@@ -231592,6 +232467,18 @@ var schemaComponents = {
231592
232467
  areaId: {
231593
232468
  type: "string"
231594
232469
  },
232470
+ coveragePlan: {
232471
+ anyOf: [
232472
+ {
232473
+ type: "string",
232474
+ const: "POS"
232475
+ },
232476
+ {
232477
+ type: "null"
232478
+ }
232479
+ ],
232480
+ description: "Exact plan printed on the reviewed SURA authorization. Send POS only when the document specifies it. Agenda must offer that plan for the same patient. Keep it when booking the returned opening."
232481
+ },
231595
232482
  date: {
231596
232483
  anyOf: [
231597
232484
  {
@@ -232012,6 +232899,18 @@ var schemaComponents = {
232012
232899
  ],
232013
232900
  description: "The areaId list_services returned beside that service. Pass it with an exact serviceId to skip a catalog lookup; omit it whenever you are naming the service in words."
232014
232901
  },
232902
+ coveragePlan: {
232903
+ anyOf: [
232904
+ {
232905
+ type: "string",
232906
+ const: "POS"
232907
+ },
232908
+ {
232909
+ type: "null"
232910
+ }
232911
+ ],
232912
+ description: "Exact plan printed on the reviewed SURA authorization. Send POS only when the document specifies it. Agenda must offer that plan for the same patient. Keep it when booking the returned opening."
232913
+ },
232015
232914
  date: {
232016
232915
  anyOf: [
232017
232916
  {
@@ -243183,6 +244082,31 @@ var schemaComponents = {
243183
244082
  }
243184
244083
  }
243185
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
+ },
243186
244110
  connectionId: {
243187
244111
  pattern: "^con_[0-9A-Za-z]{26}$",
243188
244112
  type: "string"
@@ -243200,6 +244124,31 @@ var schemaComponents = {
243200
244124
  pattern: "^[1-9][0-9]{0,14}$",
243201
244125
  type: "string"
243202
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
+ },
243203
244152
  color: {
243204
244153
  anyOf: [
243205
244154
  {
@@ -243397,6 +244346,31 @@ var schemaComponents = {
243397
244346
  type: "integer",
243398
244347
  default: 25
243399
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
+ },
243400
244374
  agendaId: {
243401
244375
  pattern: "^[1-9][0-9]{0,14}$",
243402
244376
  type: "string"
@@ -245468,18 +246442,14 @@ var schemaComponents = {
245468
246442
  additionalProperties: false,
245469
246443
  type: "object",
245470
246444
  required: [
245471
- "idempotencyKey",
245472
246445
  "confirm",
245473
246446
  "flowId",
245474
246447
  "slotId",
245475
246448
  "documentType",
245476
246449
  "documentNumber",
245477
- "payerId",
245478
246450
  "planId",
245479
246451
  "subplanId",
245480
- "classification",
245481
- "billing",
245482
- "referral"
246452
+ "classification"
245483
246453
  ],
245484
246454
  properties: {
245485
246455
  connectionId: {
@@ -245491,7 +246461,7 @@ var schemaComponents = {
245491
246461
  minLength: 8,
245492
246462
  maxLength: 64,
245493
246463
  pattern: "^[A-Za-z0-9_-]+$",
245494
- 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.",
245495
246465
  type: "string"
245496
246466
  },
245497
246467
  confirm: {
@@ -245506,7 +246476,7 @@ var schemaComponents = {
245506
246476
  },
245507
246477
  slotId: {
245508
246478
  pattern: "^[0-9A-Za-z._-]{1,32}$",
245509
- 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.",
245510
246480
  type: "string"
245511
246481
  },
245512
246482
  documentType: {
@@ -245521,7 +246491,7 @@ var schemaComponents = {
245521
246491
  },
245522
246492
  payerId: {
245523
246493
  pattern: "^[0-9A-Za-z._-]{1,32}$",
245524
- 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.",
245525
246495
  type: "string"
245526
246496
  },
245527
246497
  planId: {
@@ -245535,7 +246505,7 @@ var schemaComponents = {
245535
246505
  type: "string"
245536
246506
  },
245537
246507
  contractId: {
245538
- 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).",
245539
246509
  anyOf: [
245540
246510
  {
245541
246511
  pattern: "^[0-9A-Za-z._-]{1,32}$",
@@ -245544,19 +246514,15 @@ var schemaComponents = {
245544
246514
  {
245545
246515
  type: "null"
245546
246516
  }
245547
- ],
245548
- default: null
246517
+ ]
245549
246518
  },
245550
246519
  classification: {
245551
246520
  additionalProperties: false,
245552
- 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.",
245553
246522
  type: "object",
245554
246523
  required: [
245555
246524
  "affiliateType",
245556
- "regime",
245557
- "programId",
245558
- "attentionTypeId",
245559
- "purposeId"
246525
+ "regime"
245560
246526
  ],
245561
246527
  properties: {
245562
246528
  affiliateType: {
@@ -245570,7 +246536,7 @@ var schemaComponents = {
245570
246536
  type: "string"
245571
246537
  },
245572
246538
  relationship: {
245573
- 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.",
245574
246540
  anyOf: [
245575
246541
  {
245576
246542
  pattern: "^[0-9A-Za-z._-]{1,32}$",
@@ -245583,7 +246549,7 @@ var schemaComponents = {
245583
246549
  default: null
245584
246550
  },
245585
246551
  salaryRange: {
245586
- 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.",
245587
246553
  anyOf: [
245588
246554
  {
245589
246555
  pattern: "^[0-9A-Za-z._-]{1,32}$",
@@ -245596,7 +246562,7 @@ var schemaComponents = {
245596
246562
  default: null
245597
246563
  },
245598
246564
  listStatus: {
245599
- 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.",
245600
246566
  anyOf: [
245601
246567
  {
245602
246568
  pattern: "^[0-9A-Za-z._-]{1,32}$",
@@ -245610,24 +246576,25 @@ var schemaComponents = {
245610
246576
  },
245611
246577
  programId: {
245612
246578
  pattern: "^[0-9A-Za-z._-]{1,32}$",
245613
- 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.",
245614
246580
  type: "string"
245615
246581
  },
245616
246582
  attentionTypeId: {
245617
246583
  pattern: "^[0-9A-Za-z._-]{1,32}$",
245618
- 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.",
245619
246585
  type: "string"
245620
246586
  },
245621
246587
  purposeId: {
245622
246588
  pattern: "^[0-9A-Za-z._-]{1,32}$",
245623
- 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.",
245624
- 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"
245625
246592
  }
245626
246593
  }
245627
246594
  },
245628
246595
  billing: {
245629
246596
  additionalProperties: false,
245630
- 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.",
245631
246598
  type: "object",
245632
246599
  required: [
245633
246600
  "tariff",
@@ -245644,7 +246611,7 @@ var schemaComponents = {
245644
246611
  properties: {
245645
246612
  tariff: {
245646
246613
  pattern: "^(0|[1-9][0-9]{0,9})(\\.[0-9]{1,2})?$",
245647
- 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.",
245648
246615
  type: "string"
245649
246616
  },
245650
246617
  billPrivately: {
@@ -245751,6 +246718,7 @@ var schemaComponents = {
245751
246718
  },
245752
246719
  referral: {
245753
246720
  additionalProperties: false,
246721
+ description: "Referral values of the booking screen. Left out: no requesting professional, no authorization number and requestedByUser false.",
245754
246722
  type: "object",
245755
246723
  required: [],
245756
246724
  properties: {
@@ -245768,7 +246736,7 @@ var schemaComponents = {
245768
246736
  default: null
245769
246737
  },
245770
246738
  authorizationNumber: {
245771
- 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.",
245772
246740
  anyOf: [
245773
246741
  {
245774
246742
  pattern: "^[0-9A-Za-z-]{1,30}$",
@@ -245815,7 +246783,6 @@ var schemaComponents = {
245815
246783
  required: [
245816
246784
  "documentType",
245817
246785
  "documentNumber",
245818
- "idempotencyKey",
245819
246786
  "confirm",
245820
246787
  "cancellation",
245821
246788
  "appointmentId"
@@ -245840,7 +246807,7 @@ var schemaComponents = {
245840
246807
  minLength: 8,
245841
246808
  maxLength: 64,
245842
246809
  pattern: "^[A-Za-z0-9_-]+$",
245843
- 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.",
245844
246811
  type: "string"
245845
246812
  },
245846
246813
  confirm: {
@@ -245887,18 +246854,14 @@ var schemaComponents = {
245887
246854
  additionalProperties: false,
245888
246855
  type: "object",
245889
246856
  required: [
245890
- "idempotencyKey",
245891
246857
  "confirm",
245892
246858
  "flowId",
245893
246859
  "slotId",
245894
246860
  "documentType",
245895
246861
  "documentNumber",
245896
- "payerId",
245897
246862
  "planId",
245898
246863
  "subplanId",
245899
246864
  "classification",
245900
- "billing",
245901
- "referral",
245902
246865
  "cancellation",
245903
246866
  "appointmentId"
245904
246867
  ],
@@ -245912,7 +246875,7 @@ var schemaComponents = {
245912
246875
  minLength: 8,
245913
246876
  maxLength: 64,
245914
246877
  pattern: "^[A-Za-z0-9_-]+$",
245915
- 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.",
245916
246879
  type: "string"
245917
246880
  },
245918
246881
  confirm: {
@@ -245927,7 +246890,7 @@ var schemaComponents = {
245927
246890
  },
245928
246891
  slotId: {
245929
246892
  pattern: "^[0-9A-Za-z._-]{1,32}$",
245930
- 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.",
245931
246894
  type: "string"
245932
246895
  },
245933
246896
  documentType: {
@@ -245942,7 +246905,7 @@ var schemaComponents = {
245942
246905
  },
245943
246906
  payerId: {
245944
246907
  pattern: "^[0-9A-Za-z._-]{1,32}$",
245945
- 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.",
245946
246909
  type: "string"
245947
246910
  },
245948
246911
  planId: {
@@ -245956,7 +246919,7 @@ var schemaComponents = {
245956
246919
  type: "string"
245957
246920
  },
245958
246921
  contractId: {
245959
- 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).",
245960
246923
  anyOf: [
245961
246924
  {
245962
246925
  pattern: "^[0-9A-Za-z._-]{1,32}$",
@@ -245965,19 +246928,15 @@ var schemaComponents = {
245965
246928
  {
245966
246929
  type: "null"
245967
246930
  }
245968
- ],
245969
- default: null
246931
+ ]
245970
246932
  },
245971
246933
  classification: {
245972
246934
  additionalProperties: false,
245973
- 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.",
245974
246936
  type: "object",
245975
246937
  required: [
245976
246938
  "affiliateType",
245977
- "regime",
245978
- "programId",
245979
- "attentionTypeId",
245980
- "purposeId"
246939
+ "regime"
245981
246940
  ],
245982
246941
  properties: {
245983
246942
  affiliateType: {
@@ -245991,7 +246950,7 @@ var schemaComponents = {
245991
246950
  type: "string"
245992
246951
  },
245993
246952
  relationship: {
245994
- 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.",
245995
246954
  anyOf: [
245996
246955
  {
245997
246956
  pattern: "^[0-9A-Za-z._-]{1,32}$",
@@ -246004,7 +246963,7 @@ var schemaComponents = {
246004
246963
  default: null
246005
246964
  },
246006
246965
  salaryRange: {
246007
- 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.",
246008
246967
  anyOf: [
246009
246968
  {
246010
246969
  pattern: "^[0-9A-Za-z._-]{1,32}$",
@@ -246017,7 +246976,7 @@ var schemaComponents = {
246017
246976
  default: null
246018
246977
  },
246019
246978
  listStatus: {
246020
- 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.",
246021
246980
  anyOf: [
246022
246981
  {
246023
246982
  pattern: "^[0-9A-Za-z._-]{1,32}$",
@@ -246031,24 +246990,25 @@ var schemaComponents = {
246031
246990
  },
246032
246991
  programId: {
246033
246992
  pattern: "^[0-9A-Za-z._-]{1,32}$",
246034
- 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.",
246035
246994
  type: "string"
246036
246995
  },
246037
246996
  attentionTypeId: {
246038
246997
  pattern: "^[0-9A-Za-z._-]{1,32}$",
246039
- 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.",
246040
246999
  type: "string"
246041
247000
  },
246042
247001
  purposeId: {
246043
247002
  pattern: "^[0-9A-Za-z._-]{1,32}$",
246044
- 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.",
246045
- 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"
246046
247006
  }
246047
247007
  }
246048
247008
  },
246049
247009
  billing: {
246050
247010
  additionalProperties: false,
246051
- 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.",
246052
247012
  type: "object",
246053
247013
  required: [
246054
247014
  "tariff",
@@ -246065,7 +247025,7 @@ var schemaComponents = {
246065
247025
  properties: {
246066
247026
  tariff: {
246067
247027
  pattern: "^(0|[1-9][0-9]{0,9})(\\.[0-9]{1,2})?$",
246068
- 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.",
246069
247029
  type: "string"
246070
247030
  },
246071
247031
  billPrivately: {
@@ -246172,6 +247132,7 @@ var schemaComponents = {
246172
247132
  },
246173
247133
  referral: {
246174
247134
  additionalProperties: false,
247135
+ description: "Referral values of the booking screen. Left out: no requesting professional, no authorization number and requestedByUser false.",
246175
247136
  type: "object",
246176
247137
  required: [],
246177
247138
  properties: {
@@ -246189,7 +247150,7 @@ var schemaComponents = {
246189
247150
  default: null
246190
247151
  },
246191
247152
  authorizationNumber: {
246192
- 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.",
246193
247154
  anyOf: [
246194
247155
  {
246195
247156
  pattern: "^[0-9A-Za-z-]{1,30}$",
@@ -246881,8 +247842,7 @@ var schemaComponents = {
246881
247842
  "regimeId",
246882
247843
  "affiliateTypeId",
246883
247844
  "salaryRangeId",
246884
- "confirm",
246885
- "idempotencyKey"
247845
+ "confirm"
246886
247846
  ],
246887
247847
  properties: {
246888
247848
  connectionId: {
@@ -246989,7 +247949,7 @@ var schemaComponents = {
246989
247949
  minLength: 8,
246990
247950
  maxLength: 64,
246991
247951
  pattern: "^[A-Za-z0-9_-]+$",
246992
- 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.",
246993
247953
  type: "string"
246994
247954
  },
246995
247955
  agentMode: {
@@ -254349,6 +255309,18 @@ var schemaComponents = {
254349
255309
  ],
254350
255310
  description: "The areaId list_services returned beside that service. Pass it with an exact serviceId to skip a catalog lookup; omit it whenever you are naming the service in words."
254351
255311
  },
255312
+ coveragePlan: {
255313
+ anyOf: [
255314
+ {
255315
+ type: "string",
255316
+ const: "POS"
255317
+ },
255318
+ {
255319
+ type: "null"
255320
+ }
255321
+ ],
255322
+ description: "Exact plan printed on the reviewed SURA authorization. Send POS only when the document specifies it. Agenda must offer that plan for the same patient. Keep it when booking the returned opening."
255323
+ },
254352
255324
  documentNumber: {
254353
255325
  type: "string",
254354
255326
  description: "Complete document number of the patient receiving care, from readable original evidence or their message. Normalize separators without changing digits. Request correction only for missing, illegible or conflicting identity; never guess digits."
@@ -255124,6 +256096,18 @@ var schemaComponents = {
255124
256096
  ],
255125
256097
  description: "The areaId list_services returned beside that service. Pass it with an exact serviceId to skip a catalog lookup; omit it whenever you are naming the service in words."
255126
256098
  },
256099
+ coveragePlan: {
256100
+ anyOf: [
256101
+ {
256102
+ type: "string",
256103
+ const: "POS"
256104
+ },
256105
+ {
256106
+ type: "null"
256107
+ }
256108
+ ],
256109
+ description: "Exact plan printed on the reviewed SURA authorization. Send POS only when the document specifies it. Agenda must offer that plan for the same patient. Keep it when booking the returned opening."
256110
+ },
255127
256111
  date: {
255128
256112
  anyOf: [
255129
256113
  {
@@ -257181,9 +258165,9 @@ var schemaComponents = {
257181
258165
  // src/generated/generation.json
257182
258166
  var generation_default = {
257183
258167
  formatVersion: 6,
257184
- release: "1.20261112.191820",
257185
- openapiSha256: "67c05f66440ef691f071c57e882ec8a3ae3e7fa81a4cb2ee0113c6f9aaced310",
257186
- openapiContentSha256: "2f7c07c79d552e9dc7f380e56101da2571ccb50d22ebd1568c1282c69a0ef313",
258168
+ release: "1.20261113.150152",
258169
+ openapiSha256: "284a4c78d5360d38f82156b4ab6f70f273e1fa6cb2d340c4cd12e47a6e59802d",
258170
+ openapiContentSha256: "5846d7f85161ffc99a3121a402c3da9d4715375f9ea331a74c815e682af08e8d",
257187
258171
  forge: {
257188
258172
  repository: "https://github.com/cloudflare/forge",
257189
258173
  commit: "7f86447210b7bea3779bfdab3cd5655eade0eadb",
@@ -257196,7 +258180,7 @@ var generation_default = {
257196
258180
  outputs: [
257197
258181
  {
257198
258182
  path: "src/generated/commands.ts",
257199
- sha256: "2b5293688500f89473a3a3bc75c48f5e8b351698f8ea82ad53b17bfa91456b78"
258183
+ sha256: "bca71d45746e79d8e7afa060d035289836d93f62a1195792f31d5c8bf74c8606"
257200
258184
  }
257201
258185
  ]
257202
258186
  };
@@ -258796,7 +259780,7 @@ ${name}`);
258796
259780
  }
258797
259781
 
258798
259782
  // src/index.ts
258799
- var VERSION = "3.56.0";
259783
+ var VERSION = "3.58.0";
258800
259784
  var RELEASE = generation_default.release;
258801
259785
  var commands2 = { ...commands, ...accountOperatorCommands };
258802
259786
  var SDK_PATHS = new Map(Object.values(commands2).map((command) => [command.operation, command.sdkPath]));