candidhealth 0.4.1 → 0.4.3

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 (169) hide show
  1. package/api/resources/auth/resources/v2/client/Client.js +1 -1
  2. package/api/resources/billingNotes/client/Client.js +1 -1
  3. package/api/resources/commons/types/EntityNotFoundErrorMessage.d.ts +6 -0
  4. package/api/resources/commons/types/ProcedureModifier.d.ts +13 -1
  5. package/api/resources/commons/types/ProcedureModifier.js +3 -0
  6. package/api/resources/commons/types/RequestValidationError.d.ts +7 -0
  7. package/api/resources/commons/types/UnauthorizedErrorMessage.d.ts +6 -0
  8. package/api/resources/commons/types/index.d.ts +3 -1
  9. package/api/resources/commons/types/index.js +3 -1
  10. package/api/resources/encounters/resources/v4/client/Client.js +13 -8
  11. package/api/resources/encounters/resources/v4/client/create.d.ts +13 -1
  12. package/api/resources/encounters/resources/v4/client/create.js +22 -0
  13. package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +4 -4
  14. package/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +1 -0
  15. package/api/resources/encounters/resources/v4/client/update.d.ts +19 -1
  16. package/api/resources/encounters/resources/v4/client/update.js +33 -0
  17. package/api/resources/encounters/resources/v4/types/CodingAttributionType.d.ts +2 -1
  18. package/api/resources/encounters/resources/v4/types/CodingAttributionType.js +1 -0
  19. package/api/resources/encounters/resources/v4/types/Encounter.d.ts +1 -1
  20. package/api/resources/expectedNetworkStatus/client/Client.js +1 -1
  21. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  22. package/api/resources/index.d.ts +0 -1
  23. package/api/resources/index.js +1 -2
  24. package/api/resources/payers/client/Client.js +2 -2
  25. package/api/resources/serviceLines/types/ServiceLineBaseWithOptionals.d.ts +2 -0
  26. package/api/resources/serviceLines/types/ServiceLineCreate.d.ts +1 -0
  27. package/api/resources/tasks/resources/v3/client/Client.js +1 -1
  28. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  29. package/dist/api/resources/billingNotes/client/Client.js +1 -1
  30. package/dist/api/resources/commons/types/EntityNotFoundErrorMessage.d.ts +6 -0
  31. package/dist/api/resources/commons/types/ProcedureModifier.d.ts +13 -1
  32. package/dist/api/resources/commons/types/ProcedureModifier.js +3 -0
  33. package/dist/api/resources/commons/types/RequestValidationError.d.ts +7 -0
  34. package/dist/api/resources/commons/types/RequestValidationError.js +5 -0
  35. package/dist/api/resources/commons/types/UnauthorizedErrorMessage.d.ts +6 -0
  36. package/dist/api/resources/commons/types/UnauthorizedErrorMessage.js +5 -0
  37. package/dist/api/resources/commons/types/index.d.ts +3 -1
  38. package/dist/api/resources/commons/types/index.js +3 -1
  39. package/dist/api/resources/encounters/resources/v4/client/Client.js +13 -8
  40. package/dist/api/resources/encounters/resources/v4/client/create.d.ts +13 -1
  41. package/dist/api/resources/encounters/resources/v4/client/create.js +22 -0
  42. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +4 -4
  43. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +1 -0
  44. package/dist/api/resources/encounters/resources/v4/client/update.d.ts +19 -1
  45. package/dist/api/resources/encounters/resources/v4/client/update.js +33 -0
  46. package/dist/api/resources/encounters/resources/v4/types/CodingAttributionType.d.ts +2 -1
  47. package/dist/api/resources/encounters/resources/v4/types/CodingAttributionType.js +1 -0
  48. package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +1 -1
  49. package/dist/api/resources/expectedNetworkStatus/client/Client.js +1 -1
  50. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  51. package/dist/api/resources/index.d.ts +0 -1
  52. package/dist/api/resources/index.js +1 -2
  53. package/dist/api/resources/payers/client/Client.js +2 -2
  54. package/dist/api/resources/serviceLines/types/ServiceLineBaseWithOptionals.d.ts +2 -0
  55. package/dist/api/resources/serviceLines/types/ServiceLineCreate.d.ts +1 -0
  56. package/dist/api/resources/tasks/resources/v3/client/Client.js +1 -1
  57. package/dist/serialization/resources/commons/types/EntityNotFoundErrorMessage.d.ts +12 -0
  58. package/{serialization/resources/commons/types/UserId.js → dist/serialization/resources/commons/types/EntityNotFoundErrorMessage.js} +3 -7
  59. package/dist/serialization/resources/commons/types/ProcedureModifier.d.ts +1 -1
  60. package/dist/serialization/resources/commons/types/ProcedureModifier.js +3 -0
  61. package/dist/serialization/resources/commons/types/RequestValidationError.d.ts +13 -0
  62. package/dist/serialization/resources/commons/types/{UserId.js → RequestValidationError.js} +4 -7
  63. package/dist/serialization/resources/commons/types/UnauthorizedErrorMessage.d.ts +12 -0
  64. package/dist/serialization/resources/{workQueues/resources/v1/types/WorkQueueCategoryType.js → commons/types/UnauthorizedErrorMessage.js} +5 -3
  65. package/dist/serialization/resources/commons/types/index.d.ts +3 -1
  66. package/dist/serialization/resources/commons/types/index.js +3 -1
  67. package/dist/serialization/resources/encounters/resources/v4/client/create.d.ts +9 -1
  68. package/dist/serialization/resources/encounters/resources/v4/client/create.js +10 -0
  69. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +1 -0
  70. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +1 -0
  71. package/dist/serialization/resources/encounters/resources/v4/client/update.d.ts +13 -1
  72. package/dist/serialization/resources/encounters/resources/v4/client/update.js +15 -0
  73. package/dist/serialization/resources/encounters/resources/v4/types/CodingAttributionType.d.ts +1 -1
  74. package/dist/serialization/resources/encounters/resources/v4/types/CodingAttributionType.js +1 -1
  75. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +1 -1
  76. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.js +1 -3
  77. package/dist/serialization/resources/index.d.ts +0 -1
  78. package/dist/serialization/resources/index.js +1 -2
  79. package/dist/serialization/resources/serviceLines/types/ServiceLineBaseWithOptionals.d.ts +2 -0
  80. package/dist/serialization/resources/serviceLines/types/ServiceLineBaseWithOptionals.js +2 -0
  81. package/dist/serialization/resources/serviceLines/types/ServiceLineCreate.d.ts +1 -0
  82. package/dist/serialization/resources/serviceLines/types/ServiceLineCreate.js +1 -0
  83. package/package.json +1 -1
  84. package/serialization/resources/commons/types/EntityNotFoundErrorMessage.d.ts +12 -0
  85. package/serialization/resources/{workQueues/resources/v1/types/WorkQueueCategoryType.js → commons/types/EntityNotFoundErrorMessage.js} +5 -3
  86. package/serialization/resources/commons/types/ProcedureModifier.d.ts +1 -1
  87. package/serialization/resources/commons/types/ProcedureModifier.js +3 -0
  88. package/serialization/resources/commons/types/RequestValidationError.d.ts +13 -0
  89. package/serialization/resources/commons/types/RequestValidationError.js +34 -0
  90. package/serialization/resources/commons/types/UnauthorizedErrorMessage.d.ts +12 -0
  91. package/serialization/resources/commons/types/UnauthorizedErrorMessage.js +33 -0
  92. package/serialization/resources/commons/types/index.d.ts +3 -1
  93. package/serialization/resources/commons/types/index.js +3 -1
  94. package/serialization/resources/encounters/resources/v4/client/create.d.ts +9 -1
  95. package/serialization/resources/encounters/resources/v4/client/create.js +10 -0
  96. package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +1 -0
  97. package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +1 -0
  98. package/serialization/resources/encounters/resources/v4/client/update.d.ts +13 -1
  99. package/serialization/resources/encounters/resources/v4/client/update.js +15 -0
  100. package/serialization/resources/encounters/resources/v4/types/CodingAttributionType.d.ts +1 -1
  101. package/serialization/resources/encounters/resources/v4/types/CodingAttributionType.js +1 -1
  102. package/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +1 -1
  103. package/serialization/resources/encounters/resources/v4/types/Encounter.js +1 -3
  104. package/serialization/resources/index.d.ts +0 -1
  105. package/serialization/resources/index.js +1 -2
  106. package/serialization/resources/serviceLines/types/ServiceLineBaseWithOptionals.d.ts +2 -0
  107. package/serialization/resources/serviceLines/types/ServiceLineBaseWithOptionals.js +2 -0
  108. package/serialization/resources/serviceLines/types/ServiceLineCreate.d.ts +1 -0
  109. package/serialization/resources/serviceLines/types/ServiceLineCreate.js +1 -0
  110. package/api/resources/commons/types/UserId.d.ts +0 -8
  111. package/api/resources/commons/types/UserId.js +0 -10
  112. package/api/resources/workQueues/index.d.ts +0 -1
  113. package/api/resources/workQueues/index.js +0 -17
  114. package/api/resources/workQueues/resources/index.d.ts +0 -1
  115. package/api/resources/workQueues/resources/index.js +0 -27
  116. package/api/resources/workQueues/resources/v1/index.d.ts +0 -1
  117. package/api/resources/workQueues/resources/v1/index.js +0 -17
  118. package/api/resources/workQueues/resources/v1/types/WorkQueue.d.ts +0 -12
  119. package/api/resources/workQueues/resources/v1/types/WorkQueueCategory.d.ts +0 -9
  120. package/api/resources/workQueues/resources/v1/types/WorkQueueCategoryType.d.ts +0 -12
  121. package/api/resources/workQueues/resources/v1/types/WorkQueueCategoryType.js +0 -14
  122. package/api/resources/workQueues/resources/v1/types/index.d.ts +0 -3
  123. package/api/resources/workQueues/resources/v1/types/index.js +0 -19
  124. package/dist/api/resources/commons/types/UserId.d.ts +0 -8
  125. package/dist/api/resources/commons/types/UserId.js +0 -10
  126. package/dist/api/resources/workQueues/index.d.ts +0 -1
  127. package/dist/api/resources/workQueues/index.js +0 -17
  128. package/dist/api/resources/workQueues/resources/index.d.ts +0 -1
  129. package/dist/api/resources/workQueues/resources/index.js +0 -27
  130. package/dist/api/resources/workQueues/resources/v1/index.d.ts +0 -1
  131. package/dist/api/resources/workQueues/resources/v1/index.js +0 -17
  132. package/dist/api/resources/workQueues/resources/v1/types/WorkQueue.d.ts +0 -12
  133. package/dist/api/resources/workQueues/resources/v1/types/WorkQueueCategory.d.ts +0 -9
  134. package/dist/api/resources/workQueues/resources/v1/types/WorkQueueCategoryType.d.ts +0 -12
  135. package/dist/api/resources/workQueues/resources/v1/types/WorkQueueCategoryType.js +0 -14
  136. package/dist/api/resources/workQueues/resources/v1/types/index.d.ts +0 -3
  137. package/dist/api/resources/workQueues/resources/v1/types/index.js +0 -19
  138. package/dist/serialization/resources/commons/types/UserId.d.ts +0 -10
  139. package/dist/serialization/resources/workQueues/index.d.ts +0 -1
  140. package/dist/serialization/resources/workQueues/index.js +0 -17
  141. package/dist/serialization/resources/workQueues/resources/index.d.ts +0 -1
  142. package/dist/serialization/resources/workQueues/resources/index.js +0 -27
  143. package/dist/serialization/resources/workQueues/resources/v1/index.d.ts +0 -1
  144. package/dist/serialization/resources/workQueues/resources/v1/index.js +0 -17
  145. package/dist/serialization/resources/workQueues/resources/v1/types/WorkQueue.d.ts +0 -17
  146. package/dist/serialization/resources/workQueues/resources/v1/types/WorkQueue.js +0 -38
  147. package/dist/serialization/resources/workQueues/resources/v1/types/WorkQueueCategory.d.ts +0 -14
  148. package/dist/serialization/resources/workQueues/resources/v1/types/WorkQueueCategory.js +0 -35
  149. package/dist/serialization/resources/workQueues/resources/v1/types/WorkQueueCategoryType.d.ts +0 -10
  150. package/dist/serialization/resources/workQueues/resources/v1/types/index.d.ts +0 -3
  151. package/dist/serialization/resources/workQueues/resources/v1/types/index.js +0 -19
  152. package/serialization/resources/commons/types/UserId.d.ts +0 -10
  153. package/serialization/resources/workQueues/index.d.ts +0 -1
  154. package/serialization/resources/workQueues/index.js +0 -17
  155. package/serialization/resources/workQueues/resources/index.d.ts +0 -1
  156. package/serialization/resources/workQueues/resources/index.js +0 -27
  157. package/serialization/resources/workQueues/resources/v1/index.d.ts +0 -1
  158. package/serialization/resources/workQueues/resources/v1/index.js +0 -17
  159. package/serialization/resources/workQueues/resources/v1/types/WorkQueue.d.ts +0 -17
  160. package/serialization/resources/workQueues/resources/v1/types/WorkQueue.js +0 -38
  161. package/serialization/resources/workQueues/resources/v1/types/WorkQueueCategory.d.ts +0 -14
  162. package/serialization/resources/workQueues/resources/v1/types/WorkQueueCategory.js +0 -35
  163. package/serialization/resources/workQueues/resources/v1/types/WorkQueueCategoryType.d.ts +0 -10
  164. package/serialization/resources/workQueues/resources/v1/types/index.d.ts +0 -3
  165. package/serialization/resources/workQueues/resources/v1/types/index.js +0 -19
  166. /package/api/resources/{workQueues/resources/v1/types/WorkQueue.js → commons/types/EntityNotFoundErrorMessage.js} +0 -0
  167. /package/api/resources/{workQueues/resources/v1/types/WorkQueueCategory.js → commons/types/RequestValidationError.js} +0 -0
  168. /package/{dist/api/resources/workQueues/resources/v1/types/WorkQueue.js → api/resources/commons/types/UnauthorizedErrorMessage.js} +0 -0
  169. /package/dist/api/resources/{workQueues/resources/v1/types/WorkQueueCategory.js → commons/types/EntityNotFoundErrorMessage.js} +0 -0
@@ -6,7 +6,6 @@ export * from "./PatientExternalId";
6
6
  export * from "./EncounterExternalId";
7
7
  export * from "./Npi";
8
8
  export * from "./WorkQueueId";
9
- export * from "./UserId";
10
9
  export * from "./LinkUrl";
11
10
  export * from "./ContentDownloadUrl";
12
11
  export * from "./PageToken";
@@ -28,6 +27,9 @@ export * from "./ProcedureModifier";
28
27
  export * from "./ServiceLineUnits";
29
28
  export * from "./InsuranceTypeCode";
30
29
  export * from "./EmrPayerCrosswalk";
30
+ export * from "./EntityNotFoundErrorMessage";
31
+ export * from "./UnauthorizedErrorMessage";
32
+ export * from "./RequestValidationError";
31
33
  export * from "./PhoneNumber";
32
34
  export * from "./PhoneNumberType";
33
35
  export * from "./Email";
@@ -22,7 +22,6 @@ __exportStar(require("./PatientExternalId"), exports);
22
22
  __exportStar(require("./EncounterExternalId"), exports);
23
23
  __exportStar(require("./Npi"), exports);
24
24
  __exportStar(require("./WorkQueueId"), exports);
25
- __exportStar(require("./UserId"), exports);
26
25
  __exportStar(require("./LinkUrl"), exports);
27
26
  __exportStar(require("./ContentDownloadUrl"), exports);
28
27
  __exportStar(require("./PageToken"), exports);
@@ -44,6 +43,9 @@ __exportStar(require("./ProcedureModifier"), exports);
44
43
  __exportStar(require("./ServiceLineUnits"), exports);
45
44
  __exportStar(require("./InsuranceTypeCode"), exports);
46
45
  __exportStar(require("./EmrPayerCrosswalk"), exports);
46
+ __exportStar(require("./EntityNotFoundErrorMessage"), exports);
47
+ __exportStar(require("./UnauthorizedErrorMessage"), exports);
48
+ __exportStar(require("./RequestValidationError"), exports);
47
49
  __exportStar(require("./PhoneNumber"), exports);
48
50
  __exportStar(require("./PhoneNumberType"), exports);
49
51
  __exportStar(require("./Email"), exports);
@@ -6,13 +6,21 @@ import * as CandidApi from "../../../../../../api";
6
6
  import * as core from "../../../../../../core";
7
7
  export declare const Error: core.serialization.Schema<serializers.encounters.v4.create.Error.Raw, CandidApi.encounters.v4.create.Error>;
8
8
  export declare namespace Error {
9
- type Raw = Error.EncounterExternalIdUniquenessError | Error.EncounterGuarantorMissingContactInfoError;
9
+ type Raw = Error.EncounterExternalIdUniquenessError | Error.EntityNotFoundError | Error.EncounterGuarantorMissingContactInfoError | Error.HttpRequestValidationsError;
10
10
  interface EncounterExternalIdUniquenessError {
11
11
  errorName: "EncounterExternalIdUniquenessError";
12
12
  content: serializers.encounters.v4.EncounterExternalIdUniquenessErrorType.Raw;
13
13
  }
14
+ interface EntityNotFoundError {
15
+ errorName: "EntityNotFoundError";
16
+ content: serializers.EntityNotFoundErrorMessage.Raw;
17
+ }
14
18
  interface EncounterGuarantorMissingContactInfoError {
15
19
  errorName: "EncounterGuarantorMissingContactInfoError";
16
20
  content: serializers.encounters.v4.EncounterGuarantorMissingContactInfoErrorType.Raw;
17
21
  }
22
+ interface HttpRequestValidationsError {
23
+ errorName: "HttpRequestValidationsError";
24
+ content: serializers.RequestValidationError.Raw[];
25
+ }
18
26
  }
@@ -34,17 +34,27 @@ exports.Error = core.serialization
34
34
  EncounterExternalIdUniquenessError: core.serialization.object({
35
35
  content: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).encounters.v4.EncounterExternalIdUniquenessErrorType),
36
36
  }),
37
+ EntityNotFoundError: core.serialization.object({
38
+ content: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).EntityNotFoundErrorMessage),
39
+ }),
37
40
  EncounterGuarantorMissingContactInfoError: core.serialization.object({
38
41
  content: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).encounters.v4.EncounterGuarantorMissingContactInfoErrorType),
39
42
  }),
43
+ HttpRequestValidationsError: core.serialization.object({
44
+ content: core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).RequestValidationError)),
45
+ }),
40
46
  })
41
47
  .transform({
42
48
  transform: (value) => {
43
49
  switch (value.errorName) {
44
50
  case "EncounterExternalIdUniquenessError":
45
51
  return CandidApi.encounters.v4.create.Error.encounterExternalIdUniquenessError(value.content);
52
+ case "EntityNotFoundError":
53
+ return CandidApi.encounters.v4.create.Error.entityNotFoundError(value.content);
46
54
  case "EncounterGuarantorMissingContactInfoError":
47
55
  return CandidApi.encounters.v4.create.Error.encounterGuarantorMissingContactInfoError(value.content);
56
+ case "HttpRequestValidationsError":
57
+ return CandidApi.encounters.v4.create.Error.httpRequestValidationsError(value.content);
48
58
  }
49
59
  },
50
60
  untransform: ({ _visit, ...value }) => value,
@@ -22,5 +22,6 @@ export declare namespace EncounterUpdate {
22
22
  place_of_service_code?: serializers.FacilityTypeCode.Raw | null;
23
23
  appointment_type?: string | null;
24
24
  end_date_of_service?: serializers.Date_.Raw | null;
25
+ subscriber_secondary?: serializers.SubscriberCreate.Raw | null;
25
26
  }
26
27
  }
@@ -58,4 +58,5 @@ exports.EncounterUpdate = core.serialization.object({
58
58
  placeOfServiceCode: core.serialization.property("place_of_service_code", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).FacilityTypeCode).optional()),
59
59
  appointmentType: core.serialization.property("appointment_type", core.serialization.string().optional()),
60
60
  endDateOfService: core.serialization.property("end_date_of_service", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).Date_).optional()),
61
+ subscriberSecondary: core.serialization.property("subscriber_secondary", core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).SubscriberCreate).optional()),
61
62
  });
@@ -6,9 +6,21 @@ import * as CandidApi from "../../../../../../api";
6
6
  import * as core from "../../../../../../core";
7
7
  export declare const Error: core.serialization.Schema<serializers.encounters.v4.update.Error.Raw, CandidApi.encounters.v4.update.Error>;
8
8
  export declare namespace Error {
9
- type Raw = Error.EncounterExternalIdUniquenessError;
9
+ type Raw = Error.EncounterExternalIdUniquenessError | Error.EntityNotFoundError | Error.UnauthorizedError | Error.HttpRequestValidationsError;
10
10
  interface EncounterExternalIdUniquenessError {
11
11
  errorName: "EncounterExternalIdUniquenessError";
12
12
  content: serializers.encounters.v4.EncounterExternalIdUniquenessErrorType.Raw;
13
13
  }
14
+ interface EntityNotFoundError {
15
+ errorName: "EntityNotFoundError";
16
+ content: serializers.EntityNotFoundErrorMessage.Raw;
17
+ }
18
+ interface UnauthorizedError {
19
+ errorName: "UnauthorizedError";
20
+ content: serializers.UnauthorizedErrorMessage.Raw;
21
+ }
22
+ interface HttpRequestValidationsError {
23
+ errorName: "HttpRequestValidationsError";
24
+ content: serializers.RequestValidationError.Raw[];
25
+ }
14
26
  }
@@ -34,12 +34,27 @@ exports.Error = core.serialization
34
34
  EncounterExternalIdUniquenessError: core.serialization.object({
35
35
  content: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).encounters.v4.EncounterExternalIdUniquenessErrorType),
36
36
  }),
37
+ EntityNotFoundError: core.serialization.object({
38
+ content: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).EntityNotFoundErrorMessage),
39
+ }),
40
+ UnauthorizedError: core.serialization.object({
41
+ content: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).UnauthorizedErrorMessage),
42
+ }),
43
+ HttpRequestValidationsError: core.serialization.object({
44
+ content: core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).RequestValidationError)),
45
+ }),
37
46
  })
38
47
  .transform({
39
48
  transform: (value) => {
40
49
  switch (value.errorName) {
41
50
  case "EncounterExternalIdUniquenessError":
42
51
  return CandidApi.encounters.v4.update.Error.encounterExternalIdUniquenessError(value.content);
52
+ case "EntityNotFoundError":
53
+ return CandidApi.encounters.v4.update.Error.entityNotFoundError(value.content);
54
+ case "UnauthorizedError":
55
+ return CandidApi.encounters.v4.update.Error.unauthorizedError(value.content);
56
+ case "HttpRequestValidationsError":
57
+ return CandidApi.encounters.v4.update.Error.httpRequestValidationsError(value.content);
43
58
  }
44
59
  },
45
60
  untransform: ({ _visit, ...value }) => value,
@@ -6,5 +6,5 @@ import * as CandidApi from "../../../../../../api";
6
6
  import * as core from "../../../../../../core";
7
7
  export declare const CodingAttributionType: core.serialization.Schema<serializers.encounters.v4.CodingAttributionType.Raw, CandidApi.encounters.v4.CodingAttributionType>;
8
8
  export declare namespace CodingAttributionType {
9
- type Raw = "CANDID" | "CUSTOMER" | "TCN";
9
+ type Raw = "CANDID" | "CUSTOMER" | "TCN" | "PJF";
10
10
  }
@@ -28,4 +28,4 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.CodingAttributionType = void 0;
30
30
  const core = __importStar(require("../../../../../../core"));
31
- exports.CodingAttributionType = core.serialization.enum_(["CANDID", "CUSTOMER", "TCN"]);
31
+ exports.CodingAttributionType = core.serialization.enum_(["CANDID", "CUSTOMER", "TCN", "PJF"]);
@@ -27,6 +27,6 @@ export declare namespace Encounter {
27
27
  patient_payments: serializers.patientPayments.v3.PatientPayment.Raw[];
28
28
  tags: serializers.Tag.Raw[];
29
29
  coding_attribution?: serializers.encounters.v4.CodingAttributionType.Raw | null;
30
- work_queue?: serializers.workQueues.v1.WorkQueue.Raw | null;
30
+ work_queue_id?: serializers.WorkQueueId.Raw | null;
31
31
  }
32
32
  }
@@ -58,8 +58,6 @@ exports.Encounter = core.serialization
58
58
  codingAttribution: core.serialization.property("coding_attribution", core.serialization
59
59
  .lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).encounters.v4.CodingAttributionType)
60
60
  .optional()),
61
- workQueue: core.serialization.property("work_queue", core.serialization
62
- .lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).workQueues.v1.WorkQueue)
63
- .optional()),
61
+ workQueueId: core.serialization.property("work_queue_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).WorkQueueId).optional()),
64
62
  })
65
63
  .extend(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).encounters.v4.EncounterBase));
@@ -5,7 +5,6 @@ export * as guarantor from "./guarantor";
5
5
  export * as organizationProviders from "./organizationProviders";
6
6
  export * as patientPayments from "./patientPayments";
7
7
  export * as tasks from "./tasks";
8
- export * as workQueues from "./workQueues";
9
8
  export * as billingNotes from "./billingNotes";
10
9
  export * from "./billingNotes/types";
11
10
  export * as claims from "./claims";
@@ -26,7 +26,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.tags = exports.serviceLines = exports.serviceFacility = exports.payers = exports.invoices = exports.insuranceCard = exports.individual = exports.expectedNetworkStatus = exports.era = exports.diagnoses = exports.credentialing = exports.contracts = exports.commons = exports.claims = exports.billingNotes = exports.workQueues = exports.tasks = exports.patientPayments = exports.organizationProviders = exports.guarantor = exports.encounters = exports.encounterProviders = exports.auth = void 0;
29
+ exports.tags = exports.serviceLines = exports.serviceFacility = exports.payers = exports.invoices = exports.insuranceCard = exports.individual = exports.expectedNetworkStatus = exports.era = exports.diagnoses = exports.credentialing = exports.contracts = exports.commons = exports.claims = exports.billingNotes = exports.tasks = exports.patientPayments = exports.organizationProviders = exports.guarantor = exports.encounters = exports.encounterProviders = exports.auth = void 0;
30
30
  exports.auth = __importStar(require("./auth"));
31
31
  exports.encounterProviders = __importStar(require("./encounterProviders"));
32
32
  exports.encounters = __importStar(require("./encounters"));
@@ -34,7 +34,6 @@ exports.guarantor = __importStar(require("./guarantor"));
34
34
  exports.organizationProviders = __importStar(require("./organizationProviders"));
35
35
  exports.patientPayments = __importStar(require("./patientPayments"));
36
36
  exports.tasks = __importStar(require("./tasks"));
37
- exports.workQueues = __importStar(require("./workQueues"));
38
37
  exports.billingNotes = __importStar(require("./billingNotes"));
39
38
  __exportStar(require("./billingNotes/types"), exports);
40
39
  exports.claims = __importStar(require("./claims"));
@@ -9,6 +9,8 @@ export declare namespace ServiceLineBaseWithOptionals {
9
9
  interface Raw extends serializers.ServiceLineBase.Raw {
10
10
  charge_amount_cents?: number | null;
11
11
  allowed_amount_cents?: number | null;
12
+ insurance_balance_cents?: number | null;
13
+ patient_balance_cents?: number | null;
12
14
  paid_amount_cents?: number | null;
13
15
  patient_responsibility_cents?: number | null;
14
16
  diagnosis_id_zero?: serializers.DiagnosisId.Raw | null;
@@ -32,6 +32,8 @@ exports.ServiceLineBaseWithOptionals = core.serialization
32
32
  .object({
33
33
  chargeAmountCents: core.serialization.property("charge_amount_cents", core.serialization.number().optional()),
34
34
  allowedAmountCents: core.serialization.property("allowed_amount_cents", core.serialization.number().optional()),
35
+ insuranceBalanceCents: core.serialization.property("insurance_balance_cents", core.serialization.number().optional()),
36
+ patientBalanceCents: core.serialization.property("patient_balance_cents", core.serialization.number().optional()),
35
37
  paidAmountCents: core.serialization.property("paid_amount_cents", core.serialization.number().optional()),
36
38
  patientResponsibilityCents: core.serialization.property("patient_responsibility_cents", core.serialization.number().optional()),
37
39
  diagnosisIdZero: core.serialization.property("diagnosis_id_zero", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).DiagnosisId).optional()),
@@ -13,5 +13,6 @@ export declare namespace ServiceLineCreate {
13
13
  charge_amount_cents?: number | null;
14
14
  diagnosis_pointers: number[];
15
15
  drug_identification?: serializers.DrugIdentification.Raw | null;
16
+ place_of_service_code?: serializers.FacilityTypeCode.Raw | null;
16
17
  }
17
18
  }
@@ -36,5 +36,6 @@ exports.ServiceLineCreate = core.serialization
36
36
  chargeAmountCents: core.serialization.property("charge_amount_cents", core.serialization.number().optional()),
37
37
  diagnosisPointers: core.serialization.property("diagnosis_pointers", core.serialization.list(core.serialization.number())),
38
38
  drugIdentification: core.serialization.property("drug_identification", core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).DrugIdentification).optional()),
39
+ placeOfServiceCode: core.serialization.property("place_of_service_code", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).FacilityTypeCode).optional()),
39
40
  })
40
41
  .extend(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).ServiceLineBase));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "candidhealth",
3
- "version": "0.4.1",
3
+ "version": "0.4.3",
4
4
  "private": false,
5
5
  "repository": "https://github.com/candidhealth/candid-node",
6
6
  "main": "./index.js",
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../..";
5
+ import * as CandidApi from "../../../../api";
6
+ import * as core from "../../../../core";
7
+ export declare const EntityNotFoundErrorMessage: core.serialization.ObjectSchema<serializers.EntityNotFoundErrorMessage.Raw, CandidApi.EntityNotFoundErrorMessage>;
8
+ export declare namespace EntityNotFoundErrorMessage {
9
+ interface Raw {
10
+ id: string;
11
+ }
12
+ }
@@ -26,6 +26,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.WorkQueueCategoryType = void 0;
30
- const core = __importStar(require("../../../../../../core"));
31
- exports.WorkQueueCategoryType = core.serialization.enum_(["PRE_SUBMISSION", "REJECTIONS", "DENIALS", "POST_SUBMISSION", "STALE_CLAIMS", "CUSTOM"]);
29
+ exports.EntityNotFoundErrorMessage = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.EntityNotFoundErrorMessage = core.serialization.object({
32
+ id: core.serialization.string(),
33
+ });
@@ -6,5 +6,5 @@ import * as CandidApi from "../../../../api";
6
6
  import * as core from "../../../../core";
7
7
  export declare const ProcedureModifier: core.serialization.Schema<serializers.ProcedureModifier.Raw, CandidApi.ProcedureModifier>;
8
8
  export declare namespace ProcedureModifier {
9
- type Raw = "22" | "23" | "24" | "25" | "26" | "27" | "32" | "33" | "47" | "50" | "51" | "52" | "53" | "54" | "55" | "56" | "57" | "58" | "59" | "62" | "63" | "66" | "74" | "76" | "77" | "78" | "79" | "80" | "81" | "82" | "90" | "91" | "92" | "93" | "95" | "96" | "97" | "99" | "A1" | "A2" | "A3" | "A4" | "A5" | "A6" | "A7" | "A8" | "A9" | "AA" | "AB" | "AD" | "AE" | "AF" | "AG" | "AH" | "AI" | "AJ" | "AK" | "AM" | "AO" | "AP" | "AQ" | "AR" | "AS" | "AT" | "AZ" | "BA" | "BL" | "BO" | "BP" | "BR" | "BU" | "CA" | "CB" | "CC" | "CD" | "CE" | "CF" | "CG" | "CH" | "CI" | "CJ" | "CK" | "CL" | "CM" | "CN" | "CR" | "CS" | "CT" | "CO" | "CQ" | "E1" | "E2" | "E3" | "E4" | "EA" | "EB" | "EC" | "ED" | "EE" | "EJ" | "EM" | "EP" | "ER" | "ET" | "EX" | "EY" | "F1" | "F2" | "F3" | "F4" | "F5" | "F6" | "F7" | "F8" | "F9" | "FA" | "FB" | "FC" | "FP" | "FQ" | "FR" | "FS" | "FT" | "FX" | "FY" | "G0" | "G1" | "G2" | "G3" | "G4" | "G5" | "G6" | "G7" | "G8" | "G9" | "GA" | "GB" | "GC" | "GE" | "GF" | "GG" | "GH" | "GJ" | "GK" | "GL" | "GM" | "GN" | "GO" | "GP" | "GQ" | "GR" | "GS" | "GT" | "GU" | "GV" | "GW" | "GX" | "GY" | "GZ" | "HA" | "HB" | "HC" | "HD" | "HE" | "HF" | "HG" | "HH" | "HI" | "HJ" | "HK" | "HL" | "HM" | "HN" | "HO" | "HP" | "HQ" | "HR" | "HS" | "HT" | "HU" | "HV" | "HW" | "HX" | "HY" | "HZ" | "J1" | "J2" | "J3" | "J4" | "J5" | "JA" | "JB" | "JC" | "JD" | "JE" | "JG" | "JW" | "JZ" | "K0" | "K1" | "K2" | "K3" | "K4" | "KA" | "KB" | "KC" | "KD" | "KE" | "KF" | "KG" | "KH" | "KI" | "KJ" | "KK" | "KL" | "KM" | "KN" | "KO" | "KP" | "KQ" | "KR" | "KS" | "KT" | "KU" | "KV" | "KW" | "KX" | "KY" | "KZ" | "LC" | "LD" | "LL" | "LM" | "LR" | "LS" | "LT" | "LU" | "M2" | "MA" | "MB" | "MC" | "MD" | "ME" | "MF" | "MG" | "MH" | "MS" | "N1" | "N2" | "N3" | "NB" | "NR" | "NU" | "P1" | "P2" | "P3" | "P4" | "P5" | "P6" | "PA" | "PB" | "PC" | "PD" | "PI" | "PL" | "PM" | "PN" | "PO" | "PS" | "PT" | "Q0" | "Q1" | "Q2" | "Q3" | "Q4" | "Q5" | "Q6" | "Q7" | "Q8" | "Q9" | "QA" | "QB" | "QC" | "QD" | "QE" | "QF" | "QG" | "QH" | "QJ" | "QK" | "QL" | "QM" | "QN" | "QP" | "QQ" | "QR" | "QS" | "QT" | "QW" | "QX" | "QY" | "QZ" | "RA" | "RB" | "RC" | "RD" | "RE" | "RI" | "RR" | "RT" | "SA" | "SB" | "SC" | "SD" | "SE" | "SF" | "SG" | "SH" | "SJ" | "SL" | "SM" | "SN" | "SQ" | "SS" | "ST" | "SU" | "SV" | "SW" | "SY" | "T1" | "T2" | "T3" | "T4" | "T5" | "T6" | "T7" | "T8" | "T9" | "TA" | "TB" | "TC" | "TD" | "TE" | "TF" | "TG" | "TH" | "TJ" | "TK" | "TL" | "TM" | "TN" | "TP" | "TQ" | "TR" | "TS" | "TT" | "TU" | "TV" | "TW" | "U1" | "U2" | "U3" | "U4" | "U5" | "U6" | "U7" | "U8" | "U9" | "UA" | "UB" | "UC" | "UD" | "UE" | "UF" | "UG" | "UH" | "UJ" | "UK" | "UN" | "UP" | "UQ" | "UR" | "US";
9
+ type Raw = "22" | "23" | "24" | "25" | "26" | "27" | "32" | "33" | "47" | "50" | "51" | "52" | "53" | "54" | "55" | "56" | "57" | "58" | "59" | "62" | "63" | "66" | "74" | "76" | "77" | "78" | "79" | "80" | "81" | "82" | "90" | "91" | "92" | "93" | "95" | "96" | "97" | "99" | "A1" | "A2" | "A3" | "A4" | "A5" | "A6" | "A7" | "A8" | "A9" | "AA" | "AB" | "AD" | "AE" | "AF" | "AG" | "AH" | "AI" | "AJ" | "AK" | "AM" | "AO" | "AP" | "AQ" | "AR" | "AS" | "AT" | "AZ" | "BA" | "BL" | "BO" | "BP" | "BR" | "BU" | "CA" | "CB" | "CC" | "CD" | "CE" | "CF" | "CG" | "CH" | "CI" | "CJ" | "CK" | "CL" | "CM" | "CN" | "CR" | "CS" | "CT" | "CO" | "CQ" | "E1" | "E2" | "E3" | "E4" | "EA" | "EB" | "EC" | "ED" | "EE" | "EJ" | "EM" | "EP" | "ER" | "ET" | "EX" | "EY" | "F1" | "F2" | "F3" | "F4" | "F5" | "F6" | "F7" | "F8" | "F9" | "FA" | "FB" | "FC" | "FP" | "FQ" | "FR" | "FS" | "FT" | "FX" | "FY" | "G0" | "G1" | "G2" | "G3" | "G4" | "G5" | "G6" | "G7" | "G8" | "G9" | "GA" | "GB" | "GC" | "GE" | "GF" | "GG" | "GH" | "GJ" | "GK" | "GL" | "GM" | "GN" | "GO" | "GP" | "GQ" | "GR" | "GS" | "GT" | "GU" | "GV" | "GW" | "GX" | "GY" | "GZ" | "HA" | "HB" | "HC" | "HD" | "HE" | "HF" | "HG" | "HH" | "HI" | "HJ" | "HK" | "HL" | "HM" | "HN" | "HO" | "HP" | "HQ" | "HR" | "HS" | "HT" | "HU" | "HV" | "HW" | "HX" | "HY" | "HZ" | "J1" | "J2" | "J3" | "J4" | "J5" | "JA" | "JB" | "JC" | "JD" | "JE" | "JG" | "JW" | "JZ" | "K0" | "K1" | "K2" | "K3" | "K4" | "KA" | "KB" | "KC" | "KD" | "KE" | "KF" | "KG" | "KH" | "KI" | "KJ" | "KK" | "KL" | "KM" | "KN" | "KO" | "KP" | "KQ" | "KR" | "KS" | "KT" | "KU" | "KV" | "KW" | "KX" | "KY" | "KZ" | "LC" | "LD" | "LL" | "LM" | "LR" | "LS" | "LT" | "LU" | "M2" | "MA" | "MB" | "MC" | "MD" | "ME" | "MF" | "MG" | "MH" | "MS" | "N1" | "N2" | "N3" | "NB" | "NR" | "NU" | "P1" | "P2" | "P3" | "P4" | "P5" | "P6" | "PA" | "PB" | "PC" | "PD" | "PI" | "PL" | "PM" | "PN" | "PO" | "PS" | "PT" | "Q0" | "Q1" | "Q2" | "Q3" | "Q4" | "Q5" | "Q6" | "Q7" | "Q8" | "Q9" | "QA" | "QB" | "QC" | "QD" | "QE" | "QF" | "QG" | "QH" | "QJ" | "QK" | "QL" | "QM" | "QN" | "QP" | "QQ" | "QR" | "QS" | "QT" | "QW" | "QX" | "QY" | "QZ" | "RA" | "RB" | "RC" | "RD" | "RE" | "RI" | "RR" | "RT" | "SA" | "SB" | "SC" | "SD" | "SE" | "SF" | "SG" | "SH" | "SJ" | "SL" | "SM" | "SN" | "SQ" | "SS" | "ST" | "SU" | "SV" | "SW" | "SY" | "T1" | "T2" | "T3" | "T4" | "T5" | "T6" | "T7" | "T8" | "T9" | "TA" | "TB" | "TC" | "TD" | "TE" | "TF" | "TG" | "TH" | "TJ" | "TK" | "TL" | "TM" | "TN" | "TP" | "TQ" | "TR" | "TS" | "TT" | "TU" | "TV" | "TW" | "U1" | "U2" | "U3" | "U4" | "U5" | "U6" | "U7" | "U8" | "U9" | "UA" | "UB" | "UC" | "UD" | "UE" | "UF" | "UG" | "UH" | "UJ" | "UK" | "UN" | "UP" | "UQ" | "UR" | "US" | "V1" | "V2" | "V3";
10
10
  }
@@ -412,4 +412,7 @@ exports.ProcedureModifier = core.serialization.enum_([
412
412
  "UQ",
413
413
  "UR",
414
414
  "US",
415
+ "V1",
416
+ "V2",
417
+ "V3",
415
418
  ]);
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../..";
5
+ import * as CandidApi from "../../../../api";
6
+ import * as core from "../../../../core";
7
+ export declare const RequestValidationError: core.serialization.ObjectSchema<serializers.RequestValidationError.Raw, CandidApi.RequestValidationError>;
8
+ export declare namespace RequestValidationError {
9
+ interface Raw {
10
+ fieldName: string;
11
+ humanReadableMessage?: string | null;
12
+ }
13
+ }
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.RequestValidationError = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.RequestValidationError = core.serialization.object({
32
+ fieldName: core.serialization.string(),
33
+ humanReadableMessage: core.serialization.string().optional(),
34
+ });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../..";
5
+ import * as CandidApi from "../../../../api";
6
+ import * as core from "../../../../core";
7
+ export declare const UnauthorizedErrorMessage: core.serialization.ObjectSchema<serializers.UnauthorizedErrorMessage.Raw, CandidApi.UnauthorizedErrorMessage>;
8
+ export declare namespace UnauthorizedErrorMessage {
9
+ interface Raw {
10
+ message?: string | null;
11
+ }
12
+ }
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.UnauthorizedErrorMessage = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.UnauthorizedErrorMessage = core.serialization.object({
32
+ message: core.serialization.string().optional(),
33
+ });
@@ -6,7 +6,6 @@ export * from "./PatientExternalId";
6
6
  export * from "./EncounterExternalId";
7
7
  export * from "./Npi";
8
8
  export * from "./WorkQueueId";
9
- export * from "./UserId";
10
9
  export * from "./LinkUrl";
11
10
  export * from "./ContentDownloadUrl";
12
11
  export * from "./PageToken";
@@ -28,6 +27,9 @@ export * from "./ProcedureModifier";
28
27
  export * from "./ServiceLineUnits";
29
28
  export * from "./InsuranceTypeCode";
30
29
  export * from "./EmrPayerCrosswalk";
30
+ export * from "./EntityNotFoundErrorMessage";
31
+ export * from "./UnauthorizedErrorMessage";
32
+ export * from "./RequestValidationError";
31
33
  export * from "./PhoneNumber";
32
34
  export * from "./PhoneNumberType";
33
35
  export * from "./Email";
@@ -22,7 +22,6 @@ __exportStar(require("./PatientExternalId"), exports);
22
22
  __exportStar(require("./EncounterExternalId"), exports);
23
23
  __exportStar(require("./Npi"), exports);
24
24
  __exportStar(require("./WorkQueueId"), exports);
25
- __exportStar(require("./UserId"), exports);
26
25
  __exportStar(require("./LinkUrl"), exports);
27
26
  __exportStar(require("./ContentDownloadUrl"), exports);
28
27
  __exportStar(require("./PageToken"), exports);
@@ -44,6 +43,9 @@ __exportStar(require("./ProcedureModifier"), exports);
44
43
  __exportStar(require("./ServiceLineUnits"), exports);
45
44
  __exportStar(require("./InsuranceTypeCode"), exports);
46
45
  __exportStar(require("./EmrPayerCrosswalk"), exports);
46
+ __exportStar(require("./EntityNotFoundErrorMessage"), exports);
47
+ __exportStar(require("./UnauthorizedErrorMessage"), exports);
48
+ __exportStar(require("./RequestValidationError"), exports);
47
49
  __exportStar(require("./PhoneNumber"), exports);
48
50
  __exportStar(require("./PhoneNumberType"), exports);
49
51
  __exportStar(require("./Email"), exports);
@@ -6,13 +6,21 @@ import * as CandidApi from "../../../../../../api";
6
6
  import * as core from "../../../../../../core";
7
7
  export declare const Error: core.serialization.Schema<serializers.encounters.v4.create.Error.Raw, CandidApi.encounters.v4.create.Error>;
8
8
  export declare namespace Error {
9
- type Raw = Error.EncounterExternalIdUniquenessError | Error.EncounterGuarantorMissingContactInfoError;
9
+ type Raw = Error.EncounterExternalIdUniquenessError | Error.EntityNotFoundError | Error.EncounterGuarantorMissingContactInfoError | Error.HttpRequestValidationsError;
10
10
  interface EncounterExternalIdUniquenessError {
11
11
  errorName: "EncounterExternalIdUniquenessError";
12
12
  content: serializers.encounters.v4.EncounterExternalIdUniquenessErrorType.Raw;
13
13
  }
14
+ interface EntityNotFoundError {
15
+ errorName: "EntityNotFoundError";
16
+ content: serializers.EntityNotFoundErrorMessage.Raw;
17
+ }
14
18
  interface EncounterGuarantorMissingContactInfoError {
15
19
  errorName: "EncounterGuarantorMissingContactInfoError";
16
20
  content: serializers.encounters.v4.EncounterGuarantorMissingContactInfoErrorType.Raw;
17
21
  }
22
+ interface HttpRequestValidationsError {
23
+ errorName: "HttpRequestValidationsError";
24
+ content: serializers.RequestValidationError.Raw[];
25
+ }
18
26
  }
@@ -34,17 +34,27 @@ exports.Error = core.serialization
34
34
  EncounterExternalIdUniquenessError: core.serialization.object({
35
35
  content: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).encounters.v4.EncounterExternalIdUniquenessErrorType),
36
36
  }),
37
+ EntityNotFoundError: core.serialization.object({
38
+ content: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).EntityNotFoundErrorMessage),
39
+ }),
37
40
  EncounterGuarantorMissingContactInfoError: core.serialization.object({
38
41
  content: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).encounters.v4.EncounterGuarantorMissingContactInfoErrorType),
39
42
  }),
43
+ HttpRequestValidationsError: core.serialization.object({
44
+ content: core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).RequestValidationError)),
45
+ }),
40
46
  })
41
47
  .transform({
42
48
  transform: (value) => {
43
49
  switch (value.errorName) {
44
50
  case "EncounterExternalIdUniquenessError":
45
51
  return CandidApi.encounters.v4.create.Error.encounterExternalIdUniquenessError(value.content);
52
+ case "EntityNotFoundError":
53
+ return CandidApi.encounters.v4.create.Error.entityNotFoundError(value.content);
46
54
  case "EncounterGuarantorMissingContactInfoError":
47
55
  return CandidApi.encounters.v4.create.Error.encounterGuarantorMissingContactInfoError(value.content);
56
+ case "HttpRequestValidationsError":
57
+ return CandidApi.encounters.v4.create.Error.httpRequestValidationsError(value.content);
48
58
  }
49
59
  },
50
60
  untransform: ({ _visit, ...value }) => value,
@@ -22,5 +22,6 @@ export declare namespace EncounterUpdate {
22
22
  place_of_service_code?: serializers.FacilityTypeCode.Raw | null;
23
23
  appointment_type?: string | null;
24
24
  end_date_of_service?: serializers.Date_.Raw | null;
25
+ subscriber_secondary?: serializers.SubscriberCreate.Raw | null;
25
26
  }
26
27
  }
@@ -58,4 +58,5 @@ exports.EncounterUpdate = core.serialization.object({
58
58
  placeOfServiceCode: core.serialization.property("place_of_service_code", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).FacilityTypeCode).optional()),
59
59
  appointmentType: core.serialization.property("appointment_type", core.serialization.string().optional()),
60
60
  endDateOfService: core.serialization.property("end_date_of_service", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).Date_).optional()),
61
+ subscriberSecondary: core.serialization.property("subscriber_secondary", core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).SubscriberCreate).optional()),
61
62
  });
@@ -6,9 +6,21 @@ import * as CandidApi from "../../../../../../api";
6
6
  import * as core from "../../../../../../core";
7
7
  export declare const Error: core.serialization.Schema<serializers.encounters.v4.update.Error.Raw, CandidApi.encounters.v4.update.Error>;
8
8
  export declare namespace Error {
9
- type Raw = Error.EncounterExternalIdUniquenessError;
9
+ type Raw = Error.EncounterExternalIdUniquenessError | Error.EntityNotFoundError | Error.UnauthorizedError | Error.HttpRequestValidationsError;
10
10
  interface EncounterExternalIdUniquenessError {
11
11
  errorName: "EncounterExternalIdUniquenessError";
12
12
  content: serializers.encounters.v4.EncounterExternalIdUniquenessErrorType.Raw;
13
13
  }
14
+ interface EntityNotFoundError {
15
+ errorName: "EntityNotFoundError";
16
+ content: serializers.EntityNotFoundErrorMessage.Raw;
17
+ }
18
+ interface UnauthorizedError {
19
+ errorName: "UnauthorizedError";
20
+ content: serializers.UnauthorizedErrorMessage.Raw;
21
+ }
22
+ interface HttpRequestValidationsError {
23
+ errorName: "HttpRequestValidationsError";
24
+ content: serializers.RequestValidationError.Raw[];
25
+ }
14
26
  }
@@ -34,12 +34,27 @@ exports.Error = core.serialization
34
34
  EncounterExternalIdUniquenessError: core.serialization.object({
35
35
  content: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).encounters.v4.EncounterExternalIdUniquenessErrorType),
36
36
  }),
37
+ EntityNotFoundError: core.serialization.object({
38
+ content: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).EntityNotFoundErrorMessage),
39
+ }),
40
+ UnauthorizedError: core.serialization.object({
41
+ content: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).UnauthorizedErrorMessage),
42
+ }),
43
+ HttpRequestValidationsError: core.serialization.object({
44
+ content: core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).RequestValidationError)),
45
+ }),
37
46
  })
38
47
  .transform({
39
48
  transform: (value) => {
40
49
  switch (value.errorName) {
41
50
  case "EncounterExternalIdUniquenessError":
42
51
  return CandidApi.encounters.v4.update.Error.encounterExternalIdUniquenessError(value.content);
52
+ case "EntityNotFoundError":
53
+ return CandidApi.encounters.v4.update.Error.entityNotFoundError(value.content);
54
+ case "UnauthorizedError":
55
+ return CandidApi.encounters.v4.update.Error.unauthorizedError(value.content);
56
+ case "HttpRequestValidationsError":
57
+ return CandidApi.encounters.v4.update.Error.httpRequestValidationsError(value.content);
43
58
  }
44
59
  },
45
60
  untransform: ({ _visit, ...value }) => value,
@@ -6,5 +6,5 @@ import * as CandidApi from "../../../../../../api";
6
6
  import * as core from "../../../../../../core";
7
7
  export declare const CodingAttributionType: core.serialization.Schema<serializers.encounters.v4.CodingAttributionType.Raw, CandidApi.encounters.v4.CodingAttributionType>;
8
8
  export declare namespace CodingAttributionType {
9
- type Raw = "CANDID" | "CUSTOMER" | "TCN";
9
+ type Raw = "CANDID" | "CUSTOMER" | "TCN" | "PJF";
10
10
  }
@@ -28,4 +28,4 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.CodingAttributionType = void 0;
30
30
  const core = __importStar(require("../../../../../../core"));
31
- exports.CodingAttributionType = core.serialization.enum_(["CANDID", "CUSTOMER", "TCN"]);
31
+ exports.CodingAttributionType = core.serialization.enum_(["CANDID", "CUSTOMER", "TCN", "PJF"]);