candidhealth 0.39.3 → 0.39.5

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 (108) hide show
  1. package/api/resources/auth/resources/v2/client/Client.js +1 -1
  2. package/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  3. package/api/resources/chargeCapture/resources/v1/client/Client.js +5 -5
  4. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +3 -3
  5. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  6. package/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  7. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  8. package/api/resources/diagnoses/client/Client.js +3 -3
  9. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  10. package/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  11. package/api/resources/encounters/resources/v4/client/Client.d.ts +0 -223
  12. package/api/resources/encounters/resources/v4/client/Client.js +5 -288
  13. package/api/resources/encounters/resources/v4/client/index.d.ts +0 -1
  14. package/api/resources/encounters/resources/v4/client/index.js +1 -2
  15. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  16. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  17. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  18. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  19. package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  20. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  21. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  22. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  23. package/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  24. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  25. package/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  26. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  27. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  28. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  29. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  30. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  31. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  32. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  33. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  34. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +6 -6
  35. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +2 -12
  36. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +10 -20
  37. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  38. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  39. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +15 -3
  40. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +24 -12
  41. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientRequest.d.ts +5 -1
  42. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientWithMrnRequest.d.ts +5 -1
  43. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  44. package/api/resources/serviceFacility/client/Client.js +1 -1
  45. package/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  46. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  47. package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  48. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  49. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  50. package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +5 -5
  51. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +3 -3
  52. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  53. package/dist/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  54. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  55. package/dist/api/resources/diagnoses/client/Client.js +3 -3
  56. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  57. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  58. package/dist/api/resources/encounters/resources/v4/client/Client.d.ts +0 -223
  59. package/dist/api/resources/encounters/resources/v4/client/Client.js +5 -288
  60. package/dist/api/resources/encounters/resources/v4/client/index.d.ts +0 -1
  61. package/dist/api/resources/encounters/resources/v4/client/index.js +1 -2
  62. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  63. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  64. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  65. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  66. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  67. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  68. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  69. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  70. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  71. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  72. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  73. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  74. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  75. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  76. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  77. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  78. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  79. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  80. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  81. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +6 -6
  82. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +2 -12
  83. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +10 -20
  84. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  85. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  86. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +15 -3
  87. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +24 -12
  88. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientRequest.d.ts +5 -1
  89. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientWithMrnRequest.d.ts +5 -1
  90. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  91. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  92. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  93. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  94. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  95. package/dist/serialization/resources/encounters/resources/v4/client/index.d.ts +0 -1
  96. package/dist/serialization/resources/encounters/resources/v4/client/index.js +1 -2
  97. package/package.json +1 -1
  98. package/reference.md +4340 -2020
  99. package/serialization/resources/encounters/resources/v4/client/index.d.ts +0 -1
  100. package/serialization/resources/encounters/resources/v4/client/index.js +1 -2
  101. package/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientInternal.d.ts +0 -58
  102. package/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientInternal.js +0 -113
  103. package/dist/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientInternal.d.ts +0 -58
  104. package/dist/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientInternal.js +0 -113
  105. package/dist/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatientInternal.d.ts +0 -39
  106. package/dist/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatientInternal.js +0 -90
  107. package/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatientInternal.d.ts +0 -39
  108. package/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatientInternal.js +0 -90
@@ -132,7 +132,7 @@ class V4 {
132
132
  Authorization: yield this._getAuthorizationHeader(),
133
133
  "X-Fern-Language": "JavaScript",
134
134
  "X-Fern-SDK-Name": "candidhealth",
135
- "X-Fern-SDK-Version": "0.39.3",
135
+ "X-Fern-SDK-Version": "0.39.5",
136
136
  "X-Fern-Runtime": core.RUNTIME.type,
137
137
  "X-Fern-Runtime-Version": core.RUNTIME.version,
138
138
  },
@@ -178,7 +178,7 @@ class V4 {
178
178
  Authorization: yield this._getAuthorizationHeader(),
179
179
  "X-Fern-Language": "JavaScript",
180
180
  "X-Fern-SDK-Name": "candidhealth",
181
- "X-Fern-SDK-Version": "0.39.3",
181
+ "X-Fern-SDK-Version": "0.39.5",
182
182
  "X-Fern-Runtime": core.RUNTIME.type,
183
183
  "X-Fern-Runtime-Version": core.RUNTIME.version,
184
184
  },
@@ -547,7 +547,7 @@ class V4 {
547
547
  Authorization: yield this._getAuthorizationHeader(),
548
548
  "X-Fern-Language": "JavaScript",
549
549
  "X-Fern-SDK-Name": "candidhealth",
550
- "X-Fern-SDK-Version": "0.39.3",
550
+ "X-Fern-SDK-Version": "0.39.5",
551
551
  "X-Fern-Runtime": core.RUNTIME.type,
552
552
  "X-Fern-Runtime-Version": core.RUNTIME.version,
553
553
  },
@@ -830,7 +830,7 @@ class V4 {
830
830
  Authorization: yield this._getAuthorizationHeader(),
831
831
  "X-Fern-Language": "JavaScript",
832
832
  "X-Fern-SDK-Name": "candidhealth",
833
- "X-Fern-SDK-Version": "0.39.3",
833
+ "X-Fern-SDK-Version": "0.39.5",
834
834
  "X-Fern-Runtime": core.RUNTIME.type,
835
835
  "X-Fern-Runtime-Version": core.RUNTIME.version,
836
836
  },
@@ -879,289 +879,6 @@ class V4 {
879
879
  };
880
880
  });
881
881
  }
882
- /**
883
- * Create an encounter from a pre-encounter patient and appointment. This endpoint is intended to be used by consumers who are managing
884
- * patients and appointments in the pre-encounter service and is currently under development. Consumers who are not taking advantage
885
- * of the pre-encounter service should use the standard create endpoint.
886
- *
887
- * The endpoint will create an encounter from the provided fields, pulling information from the provided patient and appointment objects
888
- * where applicable. In particular, the following fields are populated from the patient and appointment objects:
889
- *
890
- * - Patient
891
- * - Referring Provider
892
- * - Subscriber Primary
893
- * - Subscriber Secondary
894
- * - Referral Number
895
- * - Responsible Party
896
- * - Guarantor
897
- *
898
- * Utilizing this endpoint opts you into automatic updating of the encounter when the patient or appointment is updated, assuming the
899
- * encounter has not already been submitted or adjudicated.
900
- *
901
- * @param {CandidApi.encounters.v4.EncounterCreateFromPreEncounter} request
902
- * @param {V4.RequestOptions} requestOptions - Request-specific configuration.
903
- *
904
- * @example
905
- * await client.encounters.v4.createFromPreEncounterPatientInternal({
906
- * preEncounterPatientId: CandidApi.PreEncounterPatientId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
907
- * preEncounterAppointmentIds: [CandidApi.PreEncounterAppointmentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")],
908
- * billingProvider: {
909
- * address: {
910
- * address1: "123 Main St",
911
- * address2: "Apt 1",
912
- * city: "New York",
913
- * state: CandidApi.State.Ny,
914
- * zipCode: "10001",
915
- * zipPlusFourCode: "1234"
916
- * },
917
- * taxId: "string",
918
- * npi: "string",
919
- * taxonomyCode: "string",
920
- * providerCommercialLicenseType: CandidApi.BillingProviderCommercialLicenseType.LicensedClinicalSocialWorker,
921
- * firstName: "string",
922
- * lastName: "string",
923
- * organizationName: "string"
924
- * },
925
- * renderingProvider: {
926
- * npi: "string",
927
- * taxonomyCode: "string",
928
- * address: {
929
- * address1: "123 Main St",
930
- * address2: "Apt 1",
931
- * city: "New York",
932
- * state: CandidApi.State.Ny,
933
- * zipCode: "10001",
934
- * zipPlusFourCode: "1234"
935
- * },
936
- * firstName: "string",
937
- * lastName: "string",
938
- * organizationName: "string"
939
- * },
940
- * initialReferringProvider: {
941
- * npi: "string",
942
- * taxonomyCode: "string",
943
- * address: {
944
- * address1: "123 Main St",
945
- * address2: "Apt 1",
946
- * city: "New York",
947
- * state: CandidApi.State.Ny,
948
- * zipCode: "10001",
949
- * zipPlusFourCode: "1234"
950
- * },
951
- * qualifier: CandidApi.QualifierCode.Dq,
952
- * firstName: "string",
953
- * lastName: "string",
954
- * organizationName: "string"
955
- * },
956
- * supervisingProvider: {
957
- * npi: "string",
958
- * taxonomyCode: "string",
959
- * address: {
960
- * address1: "123 Main St",
961
- * address2: "Apt 1",
962
- * city: "New York",
963
- * state: CandidApi.State.Ny,
964
- * zipCode: "10001",
965
- * zipPlusFourCode: "1234"
966
- * },
967
- * firstName: "string",
968
- * lastName: "string",
969
- * organizationName: "string"
970
- * },
971
- * serviceFacility: {
972
- * organizationName: "string",
973
- * npi: "string",
974
- * address: {
975
- * address1: "123 Main St",
976
- * address2: "Apt 1",
977
- * city: "New York",
978
- * state: CandidApi.State.Ny,
979
- * zipCode: "10001",
980
- * zipPlusFourCode: "1234"
981
- * },
982
- * secondaryIdentification: "string"
983
- * },
984
- * diagnoses: [{
985
- * name: "string",
986
- * codeType: CandidApi.DiagnosisTypeCode.Abf,
987
- * code: "string"
988
- * }],
989
- * clinicalNotes: [{
990
- * category: CandidApi.encounters.v4.NoteCategory.Clinical,
991
- * notes: []
992
- * }],
993
- * billingNotes: [{
994
- * text: "string"
995
- * }],
996
- * placeOfServiceCode: CandidApi.FacilityTypeCode.Pharmacy,
997
- * patientHistories: [{
998
- * category: CandidApi.encounters.v4.PatientHistoryCategoryEnum.PresentIllness,
999
- * questions: [{
1000
- * id: CandidApi.encounters.v4.IntakeQuestionId("6E7FBCE4-A8EA-46D0-A8D8-FF83CA3BB176"),
1001
- * text: "Do you have any allergies?",
1002
- * responses: [{
1003
- * response: "No allergies",
1004
- * followUps: [{
1005
- * id: CandidApi.encounters.v4.IntakeFollowUpId("4F3D57F9-AC94-49D6-87E4-E804B709917A"),
1006
- * text: "Do you have any allergies?",
1007
- * response: "No allergies"
1008
- * }]
1009
- * }]
1010
- * }]
1011
- * }],
1012
- * serviceLines: [{
1013
- * procedureCode: "string",
1014
- * quantity: CandidApi.Decimal("string"),
1015
- * units: CandidApi.ServiceLineUnits.Mj,
1016
- * diagnosisPointers: []
1017
- * }],
1018
- * externalClaimSubmission: {
1019
- * claimCreatedAt: new Date("2023-01-01T12:00:00.000Z"),
1020
- * patientControlNumber: "PATIENT_CONTROL_NUMBER",
1021
- * submissionRecords: [{
1022
- * submittedAt: new Date("2023-01-01T13:00:00.000Z"),
1023
- * claimFrequencyCode: CandidApi.claimSubmission.v1.ClaimFrequencyTypeCode.Original,
1024
- * payerResponsibility: CandidApi.ClaimSubmissionPayerResponsibilityType.Primary,
1025
- * intendedSubmissionMedium: CandidApi.IntendedSubmissionMedium.Electronic
1026
- * }, {
1027
- * submittedAt: new Date("2023-01-04T12:00:00.000Z"),
1028
- * claimFrequencyCode: CandidApi.claimSubmission.v1.ClaimFrequencyTypeCode.Replacement,
1029
- * payerResponsibility: CandidApi.ClaimSubmissionPayerResponsibilityType.Primary,
1030
- * intendedSubmissionMedium: CandidApi.IntendedSubmissionMedium.Paper
1031
- * }]
1032
- * },
1033
- * tagIds: [CandidApi.TagId("string")],
1034
- * schemaInstances: [{
1035
- * schemaId: CandidApi.SchemaId("ec096b13-f80a-471d-aaeb-54b021c9d582"),
1036
- * content: {
1037
- * "provider_category": "internist",
1038
- * "is_urgent_care": true,
1039
- * "bmi": 24.2,
1040
- * "age": 38
1041
- * }
1042
- * }],
1043
- * externalId: CandidApi.EncounterExternalId("string"),
1044
- * dateOfService: "2023-01-15",
1045
- * endDateOfService: "2023-01-15",
1046
- * patientAuthorizedRelease: true,
1047
- * benefitsAssignedToProvider: true,
1048
- * providerAcceptsAssignment: true,
1049
- * appointmentType: "string",
1050
- * existingMedications: [{
1051
- * name: "Lisinopril",
1052
- * rxCui: CandidApi.encounters.v4.RxCui("860975"),
1053
- * dosage: "10mg",
1054
- * dosageForm: "Tablet",
1055
- * frequency: "Once Daily",
1056
- * asNeeded: true
1057
- * }],
1058
- * vitals: {
1059
- * heightIn: 70,
1060
- * weightLbs: 165,
1061
- * bloodPressureSystolicMmhg: 115,
1062
- * bloodPressureDiastolicMmhg: 85,
1063
- * bodyTemperatureF: 98,
1064
- * hemoglobinGdl: 15.1,
1065
- * hematocritPct: 51.2
1066
- * },
1067
- * interventions: [{
1068
- * name: "Physical Therapy Session",
1069
- * category: CandidApi.encounters.v4.InterventionCategory.Lifestyle,
1070
- * description: "A session focused on improving muscular strength, flexibility, and range of motion post-injury.",
1071
- * medication: {
1072
- * name: "Lisinopril",
1073
- * rxCui: CandidApi.encounters.v4.RxCui("860975"),
1074
- * dosage: "10mg",
1075
- * dosageForm: "Tablet",
1076
- * frequency: "Once Daily",
1077
- * asNeeded: true
1078
- * },
1079
- * labs: [{
1080
- * name: "Genetic Health Labs",
1081
- * code: "GH12345",
1082
- * codeType: CandidApi.encounters.v4.LabCodeType.Quest
1083
- * }]
1084
- * }],
1085
- * payToAddress: {
1086
- * address1: "123 Main St",
1087
- * address2: "Apt 1",
1088
- * city: "New York",
1089
- * state: CandidApi.State.Ny,
1090
- * zipCode: "10001",
1091
- * zipPlusFourCode: "1234"
1092
- * },
1093
- * synchronicity: CandidApi.encounters.v4.SynchronicityType.Synchronous,
1094
- * billableStatus: CandidApi.encounters.v4.BillableStatusType.Billable,
1095
- * additionalInformation: "string",
1096
- * serviceAuthorizationExceptionCode: CandidApi.encounters.v4.ServiceAuthorizationExceptionCode.C1,
1097
- * admissionDate: "2023-01-15",
1098
- * dischargeDate: "2023-01-15",
1099
- * onsetOfCurrentIllnessOrSymptomDate: "2023-01-15",
1100
- * lastMenstrualPeriodDate: "2023-01-15",
1101
- * delayReasonCode: CandidApi.DelayReasonCode.C1
1102
- * })
1103
- */
1104
- createFromPreEncounterPatientInternal(request, requestOptions) {
1105
- var _a, _b;
1106
- return __awaiter(this, void 0, void 0, function* () {
1107
- const _response = yield core.fetcher({
1108
- url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
1109
- .candidApi, "/api/encounters/v4/create-from-pre-encounter-internal"),
1110
- method: "POST",
1111
- headers: {
1112
- Authorization: yield this._getAuthorizationHeader(),
1113
- "X-Fern-Language": "JavaScript",
1114
- "X-Fern-SDK-Name": "candidhealth",
1115
- "X-Fern-SDK-Version": "0.39.3",
1116
- "X-Fern-Runtime": core.RUNTIME.type,
1117
- "X-Fern-Runtime-Version": core.RUNTIME.version,
1118
- },
1119
- contentType: "application/json",
1120
- requestType: "json",
1121
- body: serializers.encounters.v4.EncounterCreateFromPreEncounter.jsonOrThrow(request, {
1122
- unrecognizedObjectKeys: "strip",
1123
- }),
1124
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1125
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1126
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1127
- });
1128
- if (_response.ok) {
1129
- return {
1130
- ok: true,
1131
- body: serializers.encounters.v4.Encounter.parseOrThrow(_response.body, {
1132
- unrecognizedObjectKeys: "passthrough",
1133
- allowUnrecognizedUnionMembers: true,
1134
- allowUnrecognizedEnumValues: true,
1135
- breadcrumbsPrefix: ["response"],
1136
- }),
1137
- };
1138
- }
1139
- if (_response.error.reason === "status-code") {
1140
- switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.errorName) {
1141
- case "EncounterExternalIdUniquenessError":
1142
- case "EncounterPatientControlNumberUniquenessError":
1143
- case "EntityNotFoundError":
1144
- case "HttpRequestValidationsError":
1145
- case "SchemaInstanceValidationHttpFailure":
1146
- case "HttpRequestValidationError":
1147
- return {
1148
- ok: false,
1149
- error: serializers.encounters.v4.createFromPreEncounterPatientInternal.Error.parseOrThrow(_response.error
1150
- .body, {
1151
- unrecognizedObjectKeys: "passthrough",
1152
- allowUnrecognizedUnionMembers: true,
1153
- allowUnrecognizedEnumValues: true,
1154
- breadcrumbsPrefix: ["response"],
1155
- }),
1156
- };
1157
- }
1158
- }
1159
- return {
1160
- ok: false,
1161
- error: CandidApi.encounters.v4.createFromPreEncounterPatientInternal.Error._unknown(_response.error),
1162
- };
1163
- });
1164
- }
1165
882
  /**
1166
883
  * @param {CandidApi.EncounterId} encounterId
1167
884
  * @param {CandidApi.encounters.v4.EncounterUpdate} request
@@ -1184,7 +901,7 @@ class V4 {
1184
901
  Authorization: yield this._getAuthorizationHeader(),
1185
902
  "X-Fern-Language": "JavaScript",
1186
903
  "X-Fern-SDK-Name": "candidhealth",
1187
- "X-Fern-SDK-Version": "0.39.3",
904
+ "X-Fern-SDK-Version": "0.39.5",
1188
905
  "X-Fern-Runtime": core.RUNTIME.type,
1189
906
  "X-Fern-Runtime-Version": core.RUNTIME.version,
1190
907
  },
@@ -3,5 +3,4 @@ export * as getAll from "./getAll";
3
3
  export * as get from "./get";
4
4
  export * as create from "./create";
5
5
  export * as createFromPreEncounterPatient from "./createFromPreEncounterPatient";
6
- export * as createFromPreEncounterPatientInternal from "./createFromPreEncounterPatientInternal";
7
6
  export * as update from "./update";
@@ -26,11 +26,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.update = exports.createFromPreEncounterPatientInternal = exports.createFromPreEncounterPatient = exports.create = exports.get = exports.getAll = void 0;
29
+ exports.update = exports.createFromPreEncounterPatient = exports.create = exports.get = exports.getAll = void 0;
30
30
  __exportStar(require("./requests"), exports);
31
31
  exports.getAll = __importStar(require("./getAll"));
32
32
  exports.get = __importStar(require("./get"));
33
33
  exports.create = __importStar(require("./create"));
34
34
  exports.createFromPreEncounterPatient = __importStar(require("./createFromPreEncounterPatient"));
35
- exports.createFromPreEncounterPatientInternal = __importStar(require("./createFromPreEncounterPatientInternal"));
36
35
  exports.update = __importStar(require("./update"));
@@ -79,7 +79,7 @@ class V1 {
79
79
  Authorization: yield this._getAuthorizationHeader(),
80
80
  "X-Fern-Language": "JavaScript",
81
81
  "X-Fern-SDK-Name": "candidhealth",
82
- "X-Fern-SDK-Version": "0.39.3",
82
+ "X-Fern-SDK-Version": "0.39.5",
83
83
  "X-Fern-Runtime": core.RUNTIME.type,
84
84
  "X-Fern-Runtime-Version": core.RUNTIME.version,
85
85
  },
@@ -96,7 +96,7 @@ class V2 {
96
96
  Authorization: yield this._getAuthorizationHeader(),
97
97
  "X-Fern-Language": "JavaScript",
98
98
  "X-Fern-SDK-Name": "candidhealth",
99
- "X-Fern-SDK-Version": "0.39.3",
99
+ "X-Fern-SDK-Version": "0.39.5",
100
100
  "X-Fern-Runtime": core.RUNTIME.type,
101
101
  "X-Fern-Runtime-Version": core.RUNTIME.version,
102
102
  },
@@ -189,7 +189,7 @@ class V2 {
189
189
  Authorization: yield this._getAuthorizationHeader(),
190
190
  "X-Fern-Language": "JavaScript",
191
191
  "X-Fern-SDK-Name": "candidhealth",
192
- "X-Fern-SDK-Version": "0.39.3",
192
+ "X-Fern-SDK-Version": "0.39.5",
193
193
  "X-Fern-Runtime": core.RUNTIME.type,
194
194
  "X-Fern-Runtime-Version": core.RUNTIME.version,
195
195
  },
@@ -87,7 +87,7 @@ class V3 {
87
87
  Authorization: yield this._getAuthorizationHeader(),
88
88
  "X-Fern-Language": "JavaScript",
89
89
  "X-Fern-SDK-Name": "candidhealth",
90
- "X-Fern-SDK-Version": "0.39.3",
90
+ "X-Fern-SDK-Version": "0.39.5",
91
91
  "X-Fern-Runtime": core.RUNTIME.type,
92
92
  "X-Fern-Runtime-Version": core.RUNTIME.version,
93
93
  },
@@ -82,7 +82,7 @@ class V1 {
82
82
  Authorization: yield this._getAuthorizationHeader(),
83
83
  "X-Fern-Language": "JavaScript",
84
84
  "X-Fern-SDK-Name": "candidhealth",
85
- "X-Fern-SDK-Version": "0.39.3",
85
+ "X-Fern-SDK-Version": "0.39.5",
86
86
  "X-Fern-Runtime": core.RUNTIME.type,
87
87
  "X-Fern-Runtime-Version": core.RUNTIME.version,
88
88
  },
@@ -68,7 +68,7 @@ class V3 {
68
68
  Authorization: yield this._getAuthorizationHeader(),
69
69
  "X-Fern-Language": "JavaScript",
70
70
  "X-Fern-SDK-Name": "candidhealth",
71
- "X-Fern-SDK-Version": "0.39.3",
71
+ "X-Fern-SDK-Version": "0.39.5",
72
72
  "X-Fern-Runtime": core.RUNTIME.type,
73
73
  "X-Fern-Runtime-Version": core.RUNTIME.version,
74
74
  },
@@ -131,7 +131,7 @@ class V3 {
131
131
  Authorization: yield this._getAuthorizationHeader(),
132
132
  "X-Fern-Language": "JavaScript",
133
133
  "X-Fern-SDK-Name": "candidhealth",
134
- "X-Fern-SDK-Version": "0.39.3",
134
+ "X-Fern-SDK-Version": "0.39.5",
135
135
  "X-Fern-Runtime": core.RUNTIME.type,
136
136
  "X-Fern-Runtime-Version": core.RUNTIME.version,
137
137
  },
@@ -274,7 +274,7 @@ class V3 {
274
274
  Authorization: yield this._getAuthorizationHeader(),
275
275
  "X-Fern-Language": "JavaScript",
276
276
  "X-Fern-SDK-Name": "candidhealth",
277
- "X-Fern-SDK-Version": "0.39.3",
277
+ "X-Fern-SDK-Version": "0.39.5",
278
278
  "X-Fern-Runtime": core.RUNTIME.type,
279
279
  "X-Fern-Runtime-Version": core.RUNTIME.version,
280
280
  },
@@ -401,7 +401,7 @@ class V3 {
401
401
  Authorization: yield this._getAuthorizationHeader(),
402
402
  "X-Fern-Language": "JavaScript",
403
403
  "X-Fern-SDK-Name": "candidhealth",
404
- "X-Fern-SDK-Version": "0.39.3",
404
+ "X-Fern-SDK-Version": "0.39.5",
405
405
  "X-Fern-Runtime": core.RUNTIME.type,
406
406
  "X-Fern-Runtime-Version": core.RUNTIME.version,
407
407
  },
@@ -449,7 +449,7 @@ class V3 {
449
449
  Authorization: yield this._getAuthorizationHeader(),
450
450
  "X-Fern-Language": "JavaScript",
451
451
  "X-Fern-SDK-Name": "candidhealth",
452
- "X-Fern-SDK-Version": "0.39.3",
452
+ "X-Fern-SDK-Version": "0.39.5",
453
453
  "X-Fern-Runtime": core.RUNTIME.type,
454
454
  "X-Fern-Runtime-Version": core.RUNTIME.version,
455
455
  },
@@ -531,7 +531,7 @@ class V3 {
531
531
  Authorization: yield this._getAuthorizationHeader(),
532
532
  "X-Fern-Language": "JavaScript",
533
533
  "X-Fern-SDK-Name": "candidhealth",
534
- "X-Fern-SDK-Version": "0.39.3",
534
+ "X-Fern-SDK-Version": "0.39.5",
535
535
  "X-Fern-Runtime": core.RUNTIME.type,
536
536
  "X-Fern-Runtime-Version": core.RUNTIME.version,
537
537
  },
@@ -596,7 +596,7 @@ class V3 {
596
596
  Authorization: yield this._getAuthorizationHeader(),
597
597
  "X-Fern-Language": "JavaScript",
598
598
  "X-Fern-SDK-Name": "candidhealth",
599
- "X-Fern-SDK-Version": "0.39.3",
599
+ "X-Fern-SDK-Version": "0.39.5",
600
600
  "X-Fern-Runtime": core.RUNTIME.type,
601
601
  "X-Fern-Runtime-Version": core.RUNTIME.version,
602
602
  },
@@ -652,7 +652,7 @@ class V3 {
652
652
  Authorization: yield this._getAuthorizationHeader(),
653
653
  "X-Fern-Language": "JavaScript",
654
654
  "X-Fern-SDK-Name": "candidhealth",
655
- "X-Fern-SDK-Version": "0.39.3",
655
+ "X-Fern-SDK-Version": "0.39.5",
656
656
  "X-Fern-Runtime": core.RUNTIME.type,
657
657
  "X-Fern-Runtime-Version": core.RUNTIME.version,
658
658
  },
@@ -709,7 +709,7 @@ class V3 {
709
709
  Authorization: yield this._getAuthorizationHeader(),
710
710
  "X-Fern-Language": "JavaScript",
711
711
  "X-Fern-SDK-Name": "candidhealth",
712
- "X-Fern-SDK-Version": "0.39.3",
712
+ "X-Fern-SDK-Version": "0.39.5",
713
713
  "X-Fern-Runtime": core.RUNTIME.type,
714
714
  "X-Fern-Runtime-Version": core.RUNTIME.version,
715
715
  },
@@ -762,7 +762,7 @@ class V3 {
762
762
  Authorization: yield this._getAuthorizationHeader(),
763
763
  "X-Fern-Language": "JavaScript",
764
764
  "X-Fern-SDK-Name": "candidhealth",
765
- "X-Fern-SDK-Version": "0.39.3",
765
+ "X-Fern-SDK-Version": "0.39.5",
766
766
  "X-Fern-Runtime": core.RUNTIME.type,
767
767
  "X-Fern-Runtime-Version": core.RUNTIME.version,
768
768
  },
@@ -89,7 +89,7 @@ class V1 {
89
89
  Authorization: yield this._getAuthorizationHeader(),
90
90
  "X-Fern-Language": "JavaScript",
91
91
  "X-Fern-SDK-Name": "candidhealth",
92
- "X-Fern-SDK-Version": "0.39.3",
92
+ "X-Fern-SDK-Version": "0.39.5",
93
93
  "X-Fern-Runtime": core.RUNTIME.type,
94
94
  "X-Fern-Runtime-Version": core.RUNTIME.version,
95
95
  },
@@ -152,7 +152,7 @@ class V1 {
152
152
  Authorization: yield this._getAuthorizationHeader(),
153
153
  "X-Fern-Language": "JavaScript",
154
154
  "X-Fern-SDK-Name": "candidhealth",
155
- "X-Fern-SDK-Version": "0.39.3",
155
+ "X-Fern-SDK-Version": "0.39.5",
156
156
  "X-Fern-Runtime": core.RUNTIME.type,
157
157
  "X-Fern-Runtime-Version": core.RUNTIME.version,
158
158
  },
@@ -220,7 +220,7 @@ class V1 {
220
220
  Authorization: yield this._getAuthorizationHeader(),
221
221
  "X-Fern-Language": "JavaScript",
222
222
  "X-Fern-SDK-Name": "candidhealth",
223
- "X-Fern-SDK-Version": "0.39.3",
223
+ "X-Fern-SDK-Version": "0.39.5",
224
224
  "X-Fern-Runtime": core.RUNTIME.type,
225
225
  "X-Fern-Runtime-Version": core.RUNTIME.version,
226
226
  },
@@ -84,7 +84,7 @@ class V1 {
84
84
  Authorization: yield this._getAuthorizationHeader(),
85
85
  "X-Fern-Language": "JavaScript",
86
86
  "X-Fern-SDK-Name": "candidhealth",
87
- "X-Fern-SDK-Version": "0.39.3",
87
+ "X-Fern-SDK-Version": "0.39.5",
88
88
  "X-Fern-Runtime": core.RUNTIME.type,
89
89
  "X-Fern-Runtime-Version": core.RUNTIME.version,
90
90
  },
@@ -197,7 +197,7 @@ class V1 {
197
197
  Authorization: yield this._getAuthorizationHeader(),
198
198
  "X-Fern-Language": "JavaScript",
199
199
  "X-Fern-SDK-Name": "candidhealth",
200
- "X-Fern-SDK-Version": "0.39.3",
200
+ "X-Fern-SDK-Version": "0.39.5",
201
201
  "X-Fern-Runtime": core.RUNTIME.type,
202
202
  "X-Fern-Runtime-Version": core.RUNTIME.version,
203
203
  },
@@ -245,7 +245,7 @@ class V1 {
245
245
  Authorization: yield this._getAuthorizationHeader(),
246
246
  "X-Fern-Language": "JavaScript",
247
247
  "X-Fern-SDK-Name": "candidhealth",
248
- "X-Fern-SDK-Version": "0.39.3",
248
+ "X-Fern-SDK-Version": "0.39.5",
249
249
  "X-Fern-Runtime": core.RUNTIME.type,
250
250
  "X-Fern-Runtime-Version": core.RUNTIME.version,
251
251
  },
@@ -322,7 +322,7 @@ class V1 {
322
322
  Authorization: yield this._getAuthorizationHeader(),
323
323
  "X-Fern-Language": "JavaScript",
324
324
  "X-Fern-SDK-Name": "candidhealth",
325
- "X-Fern-SDK-Version": "0.39.3",
325
+ "X-Fern-SDK-Version": "0.39.5",
326
326
  "X-Fern-Runtime": core.RUNTIME.type,
327
327
  "X-Fern-Runtime-Version": core.RUNTIME.version,
328
328
  },
@@ -68,7 +68,7 @@ class V1 {
68
68
  Authorization: yield this._getAuthorizationHeader(),
69
69
  "X-Fern-Language": "JavaScript",
70
70
  "X-Fern-SDK-Name": "candidhealth",
71
- "X-Fern-SDK-Version": "0.39.3",
71
+ "X-Fern-SDK-Version": "0.39.5",
72
72
  "X-Fern-Runtime": core.RUNTIME.type,
73
73
  "X-Fern-Runtime-Version": core.RUNTIME.version,
74
74
  },
@@ -138,7 +138,7 @@ class V1 {
138
138
  Authorization: yield this._getAuthorizationHeader(),
139
139
  "X-Fern-Language": "JavaScript",
140
140
  "X-Fern-SDK-Name": "candidhealth",
141
- "X-Fern-SDK-Version": "0.39.3",
141
+ "X-Fern-SDK-Version": "0.39.5",
142
142
  "X-Fern-Runtime": core.RUNTIME.type,
143
143
  "X-Fern-Runtime-Version": core.RUNTIME.version,
144
144
  },
@@ -202,7 +202,7 @@ class V1 {
202
202
  Authorization: yield this._getAuthorizationHeader(),
203
203
  "X-Fern-Language": "JavaScript",
204
204
  "X-Fern-SDK-Name": "candidhealth",
205
- "X-Fern-SDK-Version": "0.39.3",
205
+ "X-Fern-SDK-Version": "0.39.5",
206
206
  "X-Fern-Runtime": core.RUNTIME.type,
207
207
  "X-Fern-Runtime-Version": core.RUNTIME.version,
208
208
  },
@@ -103,7 +103,7 @@ class V1 {
103
103
  Authorization: yield this._getAuthorizationHeader(),
104
104
  "X-Fern-Language": "JavaScript",
105
105
  "X-Fern-SDK-Name": "candidhealth",
106
- "X-Fern-SDK-Version": "0.39.3",
106
+ "X-Fern-SDK-Version": "0.39.5",
107
107
  "X-Fern-Runtime": core.RUNTIME.type,
108
108
  "X-Fern-Runtime-Version": core.RUNTIME.version,
109
109
  },
@@ -167,7 +167,7 @@ class V1 {
167
167
  Authorization: yield this._getAuthorizationHeader(),
168
168
  "X-Fern-Language": "JavaScript",
169
169
  "X-Fern-SDK-Name": "candidhealth",
170
- "X-Fern-SDK-Version": "0.39.3",
170
+ "X-Fern-SDK-Version": "0.39.5",
171
171
  "X-Fern-Runtime": core.RUNTIME.type,
172
172
  "X-Fern-Runtime-Version": core.RUNTIME.version,
173
173
  },
@@ -245,7 +245,7 @@ class V1 {
245
245
  Authorization: yield this._getAuthorizationHeader(),
246
246
  "X-Fern-Language": "JavaScript",
247
247
  "X-Fern-SDK-Name": "candidhealth",
248
- "X-Fern-SDK-Version": "0.39.3",
248
+ "X-Fern-SDK-Version": "0.39.5",
249
249
  "X-Fern-Runtime": core.RUNTIME.type,
250
250
  "X-Fern-Runtime-Version": core.RUNTIME.version,
251
251
  },
@@ -319,7 +319,7 @@ class V1 {
319
319
  Authorization: yield this._getAuthorizationHeader(),
320
320
  "X-Fern-Language": "JavaScript",
321
321
  "X-Fern-SDK-Name": "candidhealth",
322
- "X-Fern-SDK-Version": "0.39.3",
322
+ "X-Fern-SDK-Version": "0.39.5",
323
323
  "X-Fern-Runtime": core.RUNTIME.type,
324
324
  "X-Fern-Runtime-Version": core.RUNTIME.version,
325
325
  },
@@ -387,7 +387,7 @@ class V1 {
387
387
  Authorization: yield this._getAuthorizationHeader(),
388
388
  "X-Fern-Language": "JavaScript",
389
389
  "X-Fern-SDK-Name": "candidhealth",
390
- "X-Fern-SDK-Version": "0.39.3",
390
+ "X-Fern-SDK-Version": "0.39.5",
391
391
  "X-Fern-Runtime": core.RUNTIME.type,
392
392
  "X-Fern-Runtime-Version": core.RUNTIME.version,
393
393
  },