candidhealth 1.9.1 → 1.11.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 (77) hide show
  1. package/Client.js +2 -2
  2. package/api/resources/encounters/resources/v4/types/ReportTransmissionCode.d.ts +4 -0
  3. package/api/resources/encounters/resources/v4/types/ReportTransmissionCode.js +1 -0
  4. package/api/resources/preEncounter/resources/common/types/ExternalProvider.d.ts +2 -0
  5. package/api/resources/preEncounter/resources/{patients/resources/v1 → common}/types/PatientServiceFacility.d.ts +2 -2
  6. package/api/resources/preEncounter/resources/common/types/index.d.ts +1 -0
  7. package/api/resources/preEncounter/resources/common/types/index.js +1 -0
  8. package/api/resources/preEncounter/resources/patients/resources/v1/types/DoNotInvoiceReason.d.ts +4 -1
  9. package/api/resources/preEncounter/resources/patients/resources/v1/types/DoNotInvoiceReason.js +3 -0
  10. package/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +1 -1
  11. package/api/resources/preEncounter/resources/patients/resources/v1/types/Patient.d.ts +1 -1
  12. package/api/resources/preEncounter/resources/patients/resources/v1/types/Referral.d.ts +5 -0
  13. package/api/resources/preEncounter/resources/patients/resources/v1/types/ReferralUnit.d.ts +8 -0
  14. package/api/resources/preEncounter/resources/patients/resources/v1/types/ReferralUnit.js +10 -0
  15. package/api/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +1 -1
  16. package/api/resources/preEncounter/resources/patients/resources/v1/types/index.js +1 -1
  17. package/dist/Client.js +2 -2
  18. package/dist/api/resources/encounters/resources/v4/types/ReportTransmissionCode.d.ts +4 -0
  19. package/dist/api/resources/encounters/resources/v4/types/ReportTransmissionCode.js +1 -0
  20. package/dist/api/resources/preEncounter/resources/common/types/ExternalProvider.d.ts +2 -0
  21. package/dist/api/resources/preEncounter/resources/{patients/resources/v1 → common}/types/PatientServiceFacility.d.ts +2 -2
  22. package/dist/api/resources/preEncounter/resources/common/types/index.d.ts +1 -0
  23. package/dist/api/resources/preEncounter/resources/common/types/index.js +1 -0
  24. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/DoNotInvoiceReason.d.ts +4 -1
  25. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/DoNotInvoiceReason.js +3 -0
  26. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +1 -1
  27. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/Patient.d.ts +1 -1
  28. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/Referral.d.ts +5 -0
  29. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/ReferralUnit.d.ts +8 -0
  30. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/ReferralUnit.js +10 -0
  31. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +1 -1
  32. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/index.js +1 -1
  33. package/dist/serialization/resources/encounters/resources/v4/types/ReportTransmissionCode.d.ts +1 -1
  34. package/dist/serialization/resources/encounters/resources/v4/types/ReportTransmissionCode.js +1 -1
  35. package/dist/serialization/resources/preEncounter/resources/common/types/ExternalProvider.d.ts +2 -0
  36. package/dist/serialization/resources/preEncounter/resources/common/types/ExternalProvider.js +2 -0
  37. package/dist/serialization/resources/preEncounter/resources/common/types/PatientServiceFacility.d.ts +13 -0
  38. package/dist/serialization/resources/preEncounter/resources/{patients/resources/v1 → common}/types/PatientServiceFacility.js +2 -2
  39. package/dist/serialization/resources/preEncounter/resources/common/types/index.d.ts +1 -0
  40. package/dist/serialization/resources/preEncounter/resources/common/types/index.js +1 -0
  41. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/DoNotInvoiceReason.d.ts +1 -1
  42. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/DoNotInvoiceReason.js +9 -1
  43. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +1 -1
  44. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.js +1 -1
  45. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/Referral.d.ts +7 -0
  46. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/Referral.js +7 -0
  47. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/ReferralUnit.d.ts +10 -0
  48. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/ReferralUnit.js +41 -0
  49. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +1 -1
  50. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.js +1 -1
  51. package/dist/version.d.ts +1 -1
  52. package/dist/version.js +1 -1
  53. package/package.json +1 -1
  54. package/serialization/resources/encounters/resources/v4/types/ReportTransmissionCode.d.ts +1 -1
  55. package/serialization/resources/encounters/resources/v4/types/ReportTransmissionCode.js +1 -1
  56. package/serialization/resources/preEncounter/resources/common/types/ExternalProvider.d.ts +2 -0
  57. package/serialization/resources/preEncounter/resources/common/types/ExternalProvider.js +2 -0
  58. package/serialization/resources/preEncounter/resources/common/types/PatientServiceFacility.d.ts +13 -0
  59. package/serialization/resources/preEncounter/resources/{patients/resources/v1 → common}/types/PatientServiceFacility.js +2 -2
  60. package/serialization/resources/preEncounter/resources/common/types/index.d.ts +1 -0
  61. package/serialization/resources/preEncounter/resources/common/types/index.js +1 -0
  62. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/DoNotInvoiceReason.d.ts +1 -1
  63. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/DoNotInvoiceReason.js +9 -1
  64. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +1 -1
  65. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.js +1 -1
  66. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/Referral.d.ts +7 -0
  67. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/Referral.js +7 -0
  68. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/ReferralUnit.d.ts +10 -0
  69. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/ReferralUnit.js +41 -0
  70. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +1 -1
  71. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.js +1 -1
  72. package/version.d.ts +1 -1
  73. package/version.js +1 -1
  74. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/PatientServiceFacility.d.ts +0 -13
  75. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/PatientServiceFacility.d.ts +0 -13
  76. /package/api/resources/preEncounter/resources/{patients/resources/v1 → common}/types/PatientServiceFacility.js +0 -0
  77. /package/dist/api/resources/preEncounter/resources/{patients/resources/v1 → common}/types/PatientServiceFacility.js +0 -0
package/Client.js CHANGED
@@ -93,8 +93,8 @@ class CandidApiClient {
93
93
  this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_1.mergeHeaders)({
94
94
  "X-Fern-Language": "JavaScript",
95
95
  "X-Fern-SDK-Name": "candidhealth",
96
- "X-Fern-SDK-Version": "1.9.1",
97
- "User-Agent": "candidhealth/1.9.1",
96
+ "X-Fern-SDK-Version": "1.11.0",
97
+ "User-Agent": "candidhealth/1.11.0",
98
98
  "X-Fern-Runtime": core.RUNTIME.type,
99
99
  "X-Fern-Runtime-Version": core.RUNTIME.version,
100
100
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -5,10 +5,14 @@ export type ReportTransmissionCode =
5
5
  /**
6
6
  * By Mail */
7
7
  "BM"
8
+ /**
9
+ * Electronically Only */
10
+ | "EL"
8
11
  /**
9
12
  * By Fax */
10
13
  | "FX";
11
14
  export declare const ReportTransmissionCode: {
12
15
  readonly Cbm: "BM";
16
+ readonly Cel: "EL";
13
17
  readonly Cfx: "FX";
14
18
  };
@@ -6,5 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.ReportTransmissionCode = void 0;
7
7
  exports.ReportTransmissionCode = {
8
8
  Cbm: "BM",
9
+ Cel: "EL",
9
10
  Cfx: "FX",
10
11
  };
@@ -12,4 +12,6 @@ export interface ExternalProvider {
12
12
  period?: CandidApi.preEncounter.Period;
13
13
  canonicalId?: CandidApi.preEncounter.CanonicalProviderId;
14
14
  fax?: string;
15
+ /** Associated service facilities for this provider. */
16
+ serviceFacilities?: CandidApi.preEncounter.PatientServiceFacility[];
15
17
  }
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as CandidApi from "../../../../../../../index";
4
+ import * as CandidApi from "../../../../../index";
5
5
  /**
6
- * Represents a canonical service facility which is associated with a patient.
6
+ * Represents a canonical service facility attached to a patient or patient dependent object
7
7
  */
8
8
  export interface PatientServiceFacility {
9
9
  serviceFacilityId: CandidApi.preEncounter.CanonicalServiceFacilityId;
@@ -16,6 +16,7 @@ export * from "./CanonicalNonInsurancePayerId";
16
16
  export * from "./CanonicalClinicalTrialAssociation";
17
17
  export * from "./CanonicalClinicalTrialId";
18
18
  export * from "./CanonicalServiceFacilityId";
19
+ export * from "./PatientServiceFacility";
19
20
  export * from "./Relationship";
20
21
  export * from "./Gender";
21
22
  export * from "./Sex";
@@ -32,6 +32,7 @@ __exportStar(require("./CanonicalNonInsurancePayerId"), exports);
32
32
  __exportStar(require("./CanonicalClinicalTrialAssociation"), exports);
33
33
  __exportStar(require("./CanonicalClinicalTrialId"), exports);
34
34
  __exportStar(require("./CanonicalServiceFacilityId"), exports);
35
+ __exportStar(require("./PatientServiceFacility"), exports);
35
36
  __exportStar(require("./Relationship"), exports);
36
37
  __exportStar(require("./Gender"), exports);
37
38
  __exportStar(require("./Sex"), exports);
@@ -1,10 +1,13 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type DoNotInvoiceReason = "BANKRUPTCY" | "DECEASED" | "HARDSHIP" | "OTHER";
4
+ export type DoNotInvoiceReason = "BANKRUPTCY" | "DECEASED" | "HARDSHIP" | "OTHER" | "COLLECTIONS" | "BAD_ADDRESS" | "PROFESSIONAL_COURTESY";
5
5
  export declare const DoNotInvoiceReason: {
6
6
  readonly Bankruptcy: "BANKRUPTCY";
7
7
  readonly Deceased: "DECEASED";
8
8
  readonly Hardship: "HARDSHIP";
9
9
  readonly Other: "OTHER";
10
+ readonly Collections: "COLLECTIONS";
11
+ readonly BadAddress: "BAD_ADDRESS";
12
+ readonly ProfessionalCourtesy: "PROFESSIONAL_COURTESY";
10
13
  };
@@ -9,4 +9,7 @@ exports.DoNotInvoiceReason = {
9
9
  Deceased: "DECEASED",
10
10
  Hardship: "HARDSHIP",
11
11
  Other: "OTHER",
12
+ Collections: "COLLECTIONS",
13
+ BadAddress: "BAD_ADDRESS",
14
+ ProfessionalCourtesy: "PROFESSIONAL_COURTESY",
12
15
  };
@@ -54,7 +54,7 @@ export interface MutablePatient {
54
54
  referrals?: CandidApi.preEncounter.patients.v1.Referral[];
55
55
  primaryServiceFacilityId?: string;
56
56
  /** Associated service facilities for this patient. */
57
- serviceFacilities?: CandidApi.preEncounter.patients.v1.PatientServiceFacility[];
57
+ serviceFacilities?: CandidApi.preEncounter.PatientServiceFacility[];
58
58
  /** If this value is defined, the customer will not be invoiced. */
59
59
  doNotInvoiceReason?: CandidApi.preEncounter.patients.v1.DoNotInvoiceReason;
60
60
  noteIds?: CandidApi.preEncounter.NoteId[];
@@ -8,6 +8,6 @@ import * as CandidApi from "../../../../../../../index";
8
8
  export interface Patient extends CandidApi.preEncounter.BaseModel, CandidApi.preEncounter.patients.v1.MutablePatient {
9
9
  /** The unique UUID identifier for a Patient. Patient ID is used in machine contexts. */
10
10
  id: CandidApi.preEncounter.PatientId;
11
- /** The medical record number for the patient. Human-friendly Candid generated MRNs are of the form "YYMMDDXXXX", where "YYYYMMDD" is the date of patient creation and "XXXX" is a zero-padded incrementing integer. */
11
+ /** The medical record number for the patient. Human-friendly Candid generated MRNs are of the form "YYMMDDXXXX", where "YYMMDD" is the date of patient creation and "XXXX" is a zero-padded incrementing integer. */
12
12
  mrn: string;
13
13
  }
@@ -7,4 +7,9 @@ export interface Referral {
7
7
  referralNumber: string;
8
8
  period?: CandidApi.preEncounter.Period;
9
9
  notes?: string;
10
+ serviceFacility?: CandidApi.preEncounter.PatientServiceFacility;
11
+ units?: CandidApi.preEncounter.patients.v1.ReferralUnit;
12
+ quantity?: number;
13
+ cptCodes?: string[];
14
+ applyForAllCptCodes?: boolean;
10
15
  }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type ReferralUnit = "VISIT" | "UNIT";
5
+ export declare const ReferralUnit: {
6
+ readonly Visit: "VISIT";
7
+ readonly Unit: "UNIT";
8
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ReferralUnit = void 0;
7
+ exports.ReferralUnit = {
8
+ Visit: "VISIT",
9
+ Unit: "UNIT",
10
+ };
@@ -11,10 +11,10 @@ export * from "./Patient";
11
11
  export * from "./PatientPage";
12
12
  export * from "./AuthorizationUnit";
13
13
  export * from "./Authorization";
14
+ export * from "./ReferralUnit";
14
15
  export * from "./Referral";
15
16
  export * from "./Guarantor";
16
17
  export * from "./ReferralSource";
17
18
  export * from "./ReferralType";
18
19
  export * from "./SpecializationCategory";
19
20
  export * from "./OriginationDetail";
20
- export * from "./PatientServiceFacility";
@@ -27,10 +27,10 @@ __exportStar(require("./Patient"), exports);
27
27
  __exportStar(require("./PatientPage"), exports);
28
28
  __exportStar(require("./AuthorizationUnit"), exports);
29
29
  __exportStar(require("./Authorization"), exports);
30
+ __exportStar(require("./ReferralUnit"), exports);
30
31
  __exportStar(require("./Referral"), exports);
31
32
  __exportStar(require("./Guarantor"), exports);
32
33
  __exportStar(require("./ReferralSource"), exports);
33
34
  __exportStar(require("./ReferralType"), exports);
34
35
  __exportStar(require("./SpecializationCategory"), exports);
35
36
  __exportStar(require("./OriginationDetail"), exports);
36
- __exportStar(require("./PatientServiceFacility"), exports);
package/dist/Client.js CHANGED
@@ -93,8 +93,8 @@ class CandidApiClient {
93
93
  this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_1.mergeHeaders)({
94
94
  "X-Fern-Language": "JavaScript",
95
95
  "X-Fern-SDK-Name": "candidhealth",
96
- "X-Fern-SDK-Version": "1.9.1",
97
- "User-Agent": "candidhealth/1.9.1",
96
+ "X-Fern-SDK-Version": "1.11.0",
97
+ "User-Agent": "candidhealth/1.11.0",
98
98
  "X-Fern-Runtime": core.RUNTIME.type,
99
99
  "X-Fern-Runtime-Version": core.RUNTIME.version,
100
100
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -5,10 +5,14 @@ export type ReportTransmissionCode =
5
5
  /**
6
6
  * By Mail */
7
7
  "BM"
8
+ /**
9
+ * Electronically Only */
10
+ | "EL"
8
11
  /**
9
12
  * By Fax */
10
13
  | "FX";
11
14
  export declare const ReportTransmissionCode: {
12
15
  readonly Cbm: "BM";
16
+ readonly Cel: "EL";
13
17
  readonly Cfx: "FX";
14
18
  };
@@ -6,5 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.ReportTransmissionCode = void 0;
7
7
  exports.ReportTransmissionCode = {
8
8
  Cbm: "BM",
9
+ Cel: "EL",
9
10
  Cfx: "FX",
10
11
  };
@@ -12,4 +12,6 @@ export interface ExternalProvider {
12
12
  period?: CandidApi.preEncounter.Period;
13
13
  canonicalId?: CandidApi.preEncounter.CanonicalProviderId;
14
14
  fax?: string;
15
+ /** Associated service facilities for this provider. */
16
+ serviceFacilities?: CandidApi.preEncounter.PatientServiceFacility[];
15
17
  }
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as CandidApi from "../../../../../../../index";
4
+ import * as CandidApi from "../../../../../index";
5
5
  /**
6
- * Represents a canonical service facility which is associated with a patient.
6
+ * Represents a canonical service facility attached to a patient or patient dependent object
7
7
  */
8
8
  export interface PatientServiceFacility {
9
9
  serviceFacilityId: CandidApi.preEncounter.CanonicalServiceFacilityId;
@@ -16,6 +16,7 @@ export * from "./CanonicalNonInsurancePayerId";
16
16
  export * from "./CanonicalClinicalTrialAssociation";
17
17
  export * from "./CanonicalClinicalTrialId";
18
18
  export * from "./CanonicalServiceFacilityId";
19
+ export * from "./PatientServiceFacility";
19
20
  export * from "./Relationship";
20
21
  export * from "./Gender";
21
22
  export * from "./Sex";
@@ -32,6 +32,7 @@ __exportStar(require("./CanonicalNonInsurancePayerId"), exports);
32
32
  __exportStar(require("./CanonicalClinicalTrialAssociation"), exports);
33
33
  __exportStar(require("./CanonicalClinicalTrialId"), exports);
34
34
  __exportStar(require("./CanonicalServiceFacilityId"), exports);
35
+ __exportStar(require("./PatientServiceFacility"), exports);
35
36
  __exportStar(require("./Relationship"), exports);
36
37
  __exportStar(require("./Gender"), exports);
37
38
  __exportStar(require("./Sex"), exports);
@@ -1,10 +1,13 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type DoNotInvoiceReason = "BANKRUPTCY" | "DECEASED" | "HARDSHIP" | "OTHER";
4
+ export type DoNotInvoiceReason = "BANKRUPTCY" | "DECEASED" | "HARDSHIP" | "OTHER" | "COLLECTIONS" | "BAD_ADDRESS" | "PROFESSIONAL_COURTESY";
5
5
  export declare const DoNotInvoiceReason: {
6
6
  readonly Bankruptcy: "BANKRUPTCY";
7
7
  readonly Deceased: "DECEASED";
8
8
  readonly Hardship: "HARDSHIP";
9
9
  readonly Other: "OTHER";
10
+ readonly Collections: "COLLECTIONS";
11
+ readonly BadAddress: "BAD_ADDRESS";
12
+ readonly ProfessionalCourtesy: "PROFESSIONAL_COURTESY";
10
13
  };
@@ -9,4 +9,7 @@ exports.DoNotInvoiceReason = {
9
9
  Deceased: "DECEASED",
10
10
  Hardship: "HARDSHIP",
11
11
  Other: "OTHER",
12
+ Collections: "COLLECTIONS",
13
+ BadAddress: "BAD_ADDRESS",
14
+ ProfessionalCourtesy: "PROFESSIONAL_COURTESY",
12
15
  };
@@ -54,7 +54,7 @@ export interface MutablePatient {
54
54
  referrals?: CandidApi.preEncounter.patients.v1.Referral[];
55
55
  primaryServiceFacilityId?: string;
56
56
  /** Associated service facilities for this patient. */
57
- serviceFacilities?: CandidApi.preEncounter.patients.v1.PatientServiceFacility[];
57
+ serviceFacilities?: CandidApi.preEncounter.PatientServiceFacility[];
58
58
  /** If this value is defined, the customer will not be invoiced. */
59
59
  doNotInvoiceReason?: CandidApi.preEncounter.patients.v1.DoNotInvoiceReason;
60
60
  noteIds?: CandidApi.preEncounter.NoteId[];
@@ -8,6 +8,6 @@ import * as CandidApi from "../../../../../../../index";
8
8
  export interface Patient extends CandidApi.preEncounter.BaseModel, CandidApi.preEncounter.patients.v1.MutablePatient {
9
9
  /** The unique UUID identifier for a Patient. Patient ID is used in machine contexts. */
10
10
  id: CandidApi.preEncounter.PatientId;
11
- /** The medical record number for the patient. Human-friendly Candid generated MRNs are of the form "YYMMDDXXXX", where "YYYYMMDD" is the date of patient creation and "XXXX" is a zero-padded incrementing integer. */
11
+ /** The medical record number for the patient. Human-friendly Candid generated MRNs are of the form "YYMMDDXXXX", where "YYMMDD" is the date of patient creation and "XXXX" is a zero-padded incrementing integer. */
12
12
  mrn: string;
13
13
  }
@@ -7,4 +7,9 @@ export interface Referral {
7
7
  referralNumber: string;
8
8
  period?: CandidApi.preEncounter.Period;
9
9
  notes?: string;
10
+ serviceFacility?: CandidApi.preEncounter.PatientServiceFacility;
11
+ units?: CandidApi.preEncounter.patients.v1.ReferralUnit;
12
+ quantity?: number;
13
+ cptCodes?: string[];
14
+ applyForAllCptCodes?: boolean;
10
15
  }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type ReferralUnit = "VISIT" | "UNIT";
5
+ export declare const ReferralUnit: {
6
+ readonly Visit: "VISIT";
7
+ readonly Unit: "UNIT";
8
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ReferralUnit = void 0;
7
+ exports.ReferralUnit = {
8
+ Visit: "VISIT",
9
+ Unit: "UNIT",
10
+ };
@@ -11,10 +11,10 @@ export * from "./Patient";
11
11
  export * from "./PatientPage";
12
12
  export * from "./AuthorizationUnit";
13
13
  export * from "./Authorization";
14
+ export * from "./ReferralUnit";
14
15
  export * from "./Referral";
15
16
  export * from "./Guarantor";
16
17
  export * from "./ReferralSource";
17
18
  export * from "./ReferralType";
18
19
  export * from "./SpecializationCategory";
19
20
  export * from "./OriginationDetail";
20
- export * from "./PatientServiceFacility";
@@ -27,10 +27,10 @@ __exportStar(require("./Patient"), exports);
27
27
  __exportStar(require("./PatientPage"), exports);
28
28
  __exportStar(require("./AuthorizationUnit"), exports);
29
29
  __exportStar(require("./Authorization"), exports);
30
+ __exportStar(require("./ReferralUnit"), exports);
30
31
  __exportStar(require("./Referral"), exports);
31
32
  __exportStar(require("./Guarantor"), exports);
32
33
  __exportStar(require("./ReferralSource"), exports);
33
34
  __exportStar(require("./ReferralType"), exports);
34
35
  __exportStar(require("./SpecializationCategory"), exports);
35
36
  __exportStar(require("./OriginationDetail"), exports);
36
- __exportStar(require("./PatientServiceFacility"), exports);
@@ -6,5 +6,5 @@ import * as CandidApi from "../../../../../../api/index";
6
6
  import * as core from "../../../../../../core";
7
7
  export declare const ReportTransmissionCode: core.serialization.Schema<serializers.encounters.v4.ReportTransmissionCode.Raw, CandidApi.encounters.v4.ReportTransmissionCode>;
8
8
  export declare namespace ReportTransmissionCode {
9
- type Raw = "BM" | "FX";
9
+ type Raw = "BM" | "EL" | "FX";
10
10
  }
@@ -38,4 +38,4 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.ReportTransmissionCode = void 0;
40
40
  const core = __importStar(require("../../../../../../core"));
41
- exports.ReportTransmissionCode = core.serialization.enum_(["BM", "FX"]);
41
+ exports.ReportTransmissionCode = core.serialization.enum_(["BM", "EL", "FX"]);
@@ -10,6 +10,7 @@ import { ContactPoint } from "./ContactPoint";
10
10
  import { Address } from "./Address";
11
11
  import { Period } from "./Period";
12
12
  import { CanonicalProviderId } from "./CanonicalProviderId";
13
+ import { PatientServiceFacility } from "./PatientServiceFacility";
13
14
  export declare const ExternalProvider: core.serialization.ObjectSchema<serializers.preEncounter.ExternalProvider.Raw, CandidApi.preEncounter.ExternalProvider>;
14
15
  export declare namespace ExternalProvider {
15
16
  interface Raw {
@@ -21,5 +22,6 @@ export declare namespace ExternalProvider {
21
22
  period?: Period.Raw | null;
22
23
  canonical_id?: CanonicalProviderId.Raw | null;
23
24
  fax?: string | null;
25
+ service_facilities?: PatientServiceFacility.Raw[] | null;
24
26
  }
25
27
  }
@@ -44,6 +44,7 @@ const ContactPoint_1 = require("./ContactPoint");
44
44
  const Address_1 = require("./Address");
45
45
  const Period_1 = require("./Period");
46
46
  const CanonicalProviderId_1 = require("./CanonicalProviderId");
47
+ const PatientServiceFacility_1 = require("./PatientServiceFacility");
47
48
  exports.ExternalProvider = core.serialization.object({
48
49
  name: HumanName_1.HumanName,
49
50
  type: ExternalProviderType_1.ExternalProviderType.optional(),
@@ -53,4 +54,5 @@ exports.ExternalProvider = core.serialization.object({
53
54
  period: Period_1.Period.optional(),
54
55
  canonicalId: core.serialization.property("canonical_id", CanonicalProviderId_1.CanonicalProviderId.optional()),
55
56
  fax: core.serialization.string().optional(),
57
+ serviceFacilities: core.serialization.property("service_facilities", core.serialization.list(PatientServiceFacility_1.PatientServiceFacility).optional()),
56
58
  });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../index";
5
+ import * as CandidApi from "../../../../../../api/index";
6
+ import * as core from "../../../../../../core";
7
+ import { CanonicalServiceFacilityId } from "./CanonicalServiceFacilityId";
8
+ export declare const PatientServiceFacility: core.serialization.ObjectSchema<serializers.preEncounter.PatientServiceFacility.Raw, CandidApi.preEncounter.PatientServiceFacility>;
9
+ export declare namespace PatientServiceFacility {
10
+ interface Raw {
11
+ service_facility_id: CanonicalServiceFacilityId.Raw;
12
+ }
13
+ }
@@ -37,8 +37,8 @@ var __importStar = (this && this.__importStar) || (function () {
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.PatientServiceFacility = void 0;
40
- const core = __importStar(require("../../../../../../../../core"));
41
- const CanonicalServiceFacilityId_1 = require("../../../../common/types/CanonicalServiceFacilityId");
40
+ const core = __importStar(require("../../../../../../core"));
41
+ const CanonicalServiceFacilityId_1 = require("./CanonicalServiceFacilityId");
42
42
  exports.PatientServiceFacility = core.serialization.object({
43
43
  serviceFacilityId: core.serialization.property("service_facility_id", CanonicalServiceFacilityId_1.CanonicalServiceFacilityId),
44
44
  });
@@ -16,6 +16,7 @@ export * from "./CanonicalNonInsurancePayerId";
16
16
  export * from "./CanonicalClinicalTrialAssociation";
17
17
  export * from "./CanonicalClinicalTrialId";
18
18
  export * from "./CanonicalServiceFacilityId";
19
+ export * from "./PatientServiceFacility";
19
20
  export * from "./Relationship";
20
21
  export * from "./Gender";
21
22
  export * from "./Sex";
@@ -32,6 +32,7 @@ __exportStar(require("./CanonicalNonInsurancePayerId"), exports);
32
32
  __exportStar(require("./CanonicalClinicalTrialAssociation"), exports);
33
33
  __exportStar(require("./CanonicalClinicalTrialId"), exports);
34
34
  __exportStar(require("./CanonicalServiceFacilityId"), exports);
35
+ __exportStar(require("./PatientServiceFacility"), exports);
35
36
  __exportStar(require("./Relationship"), exports);
36
37
  __exportStar(require("./Gender"), exports);
37
38
  __exportStar(require("./Sex"), exports);
@@ -6,5 +6,5 @@ import * as CandidApi from "../../../../../../../../api/index";
6
6
  import * as core from "../../../../../../../../core";
7
7
  export declare const DoNotInvoiceReason: core.serialization.Schema<serializers.preEncounter.patients.v1.DoNotInvoiceReason.Raw, CandidApi.preEncounter.patients.v1.DoNotInvoiceReason>;
8
8
  export declare namespace DoNotInvoiceReason {
9
- type Raw = "BANKRUPTCY" | "DECEASED" | "HARDSHIP" | "OTHER";
9
+ type Raw = "BANKRUPTCY" | "DECEASED" | "HARDSHIP" | "OTHER" | "COLLECTIONS" | "BAD_ADDRESS" | "PROFESSIONAL_COURTESY";
10
10
  }
@@ -38,4 +38,12 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.DoNotInvoiceReason = void 0;
40
40
  const core = __importStar(require("../../../../../../../../core"));
41
- exports.DoNotInvoiceReason = core.serialization.enum_(["BANKRUPTCY", "DECEASED", "HARDSHIP", "OTHER"]);
41
+ exports.DoNotInvoiceReason = core.serialization.enum_([
42
+ "BANKRUPTCY",
43
+ "DECEASED",
44
+ "HARDSHIP",
45
+ "OTHER",
46
+ "COLLECTIONS",
47
+ "BAD_ADDRESS",
48
+ "PROFESSIONAL_COURTESY",
49
+ ]);
@@ -24,7 +24,7 @@ import { CanonicalNonInsurancePayerAssociation } from "../../../../common/types/
24
24
  import { Guarantor } from "./Guarantor";
25
25
  import { Authorization } from "./Authorization";
26
26
  import { Referral } from "./Referral";
27
- import { PatientServiceFacility } from "./PatientServiceFacility";
27
+ import { PatientServiceFacility } from "../../../../common/types/PatientServiceFacility";
28
28
  import { DoNotInvoiceReason } from "./DoNotInvoiceReason";
29
29
  import { NoteId } from "../../../../common/types/NoteId";
30
30
  import { TagId } from "../../../../common/types/TagId";
@@ -58,7 +58,7 @@ const CanonicalNonInsurancePayerAssociation_1 = require("../../../../common/type
58
58
  const Guarantor_1 = require("./Guarantor");
59
59
  const Authorization_1 = require("./Authorization");
60
60
  const Referral_1 = require("./Referral");
61
- const PatientServiceFacility_1 = require("./PatientServiceFacility");
61
+ const PatientServiceFacility_1 = require("../../../../common/types/PatientServiceFacility");
62
62
  const DoNotInvoiceReason_1 = require("./DoNotInvoiceReason");
63
63
  const NoteId_1 = require("../../../../common/types/NoteId");
64
64
  const TagId_1 = require("../../../../common/types/TagId");
@@ -6,6 +6,8 @@ import * as CandidApi from "../../../../../../../../api/index";
6
6
  import * as core from "../../../../../../../../core";
7
7
  import { ExternalProvider } from "../../../../common/types/ExternalProvider";
8
8
  import { Period } from "../../../../common/types/Period";
9
+ import { PatientServiceFacility } from "../../../../common/types/PatientServiceFacility";
10
+ import { ReferralUnit } from "./ReferralUnit";
9
11
  export declare const Referral: core.serialization.ObjectSchema<serializers.preEncounter.patients.v1.Referral.Raw, CandidApi.preEncounter.patients.v1.Referral>;
10
12
  export declare namespace Referral {
11
13
  interface Raw {
@@ -13,5 +15,10 @@ export declare namespace Referral {
13
15
  referral_number: string;
14
16
  period?: Period.Raw | null;
15
17
  notes?: string | null;
18
+ serviceFacility?: PatientServiceFacility.Raw | null;
19
+ units?: ReferralUnit.Raw | null;
20
+ quantity?: number | null;
21
+ cptCodes?: string[] | null;
22
+ applyForAllCptCodes?: boolean | null;
16
23
  }
17
24
  }
@@ -40,9 +40,16 @@ exports.Referral = void 0;
40
40
  const core = __importStar(require("../../../../../../../../core"));
41
41
  const ExternalProvider_1 = require("../../../../common/types/ExternalProvider");
42
42
  const Period_1 = require("../../../../common/types/Period");
43
+ const PatientServiceFacility_1 = require("../../../../common/types/PatientServiceFacility");
44
+ const ReferralUnit_1 = require("./ReferralUnit");
43
45
  exports.Referral = core.serialization.object({
44
46
  provider: ExternalProvider_1.ExternalProvider,
45
47
  referralNumber: core.serialization.property("referral_number", core.serialization.string()),
46
48
  period: Period_1.Period.optional(),
47
49
  notes: core.serialization.string().optional(),
50
+ serviceFacility: PatientServiceFacility_1.PatientServiceFacility.optional(),
51
+ units: ReferralUnit_1.ReferralUnit.optional(),
52
+ quantity: core.serialization.number().optional(),
53
+ cptCodes: core.serialization.list(core.serialization.string()).optional(),
54
+ applyForAllCptCodes: core.serialization.boolean().optional(),
48
55
  });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../../../index";
5
+ import * as CandidApi from "../../../../../../../../api/index";
6
+ import * as core from "../../../../../../../../core";
7
+ export declare const ReferralUnit: core.serialization.Schema<serializers.preEncounter.patients.v1.ReferralUnit.Raw, CandidApi.preEncounter.patients.v1.ReferralUnit>;
8
+ export declare namespace ReferralUnit {
9
+ type Raw = "VISIT" | "UNIT";
10
+ }
@@ -0,0 +1,41 @@
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 () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.ReferralUnit = void 0;
40
+ const core = __importStar(require("../../../../../../../../core"));
41
+ exports.ReferralUnit = core.serialization.enum_(["VISIT", "UNIT"]);
@@ -11,10 +11,10 @@ export * from "./Patient";
11
11
  export * from "./PatientPage";
12
12
  export * from "./AuthorizationUnit";
13
13
  export * from "./Authorization";
14
+ export * from "./ReferralUnit";
14
15
  export * from "./Referral";
15
16
  export * from "./Guarantor";
16
17
  export * from "./ReferralSource";
17
18
  export * from "./ReferralType";
18
19
  export * from "./SpecializationCategory";
19
20
  export * from "./OriginationDetail";
20
- export * from "./PatientServiceFacility";
@@ -27,10 +27,10 @@ __exportStar(require("./Patient"), exports);
27
27
  __exportStar(require("./PatientPage"), exports);
28
28
  __exportStar(require("./AuthorizationUnit"), exports);
29
29
  __exportStar(require("./Authorization"), exports);
30
+ __exportStar(require("./ReferralUnit"), exports);
30
31
  __exportStar(require("./Referral"), exports);
31
32
  __exportStar(require("./Guarantor"), exports);
32
33
  __exportStar(require("./ReferralSource"), exports);
33
34
  __exportStar(require("./ReferralType"), exports);
34
35
  __exportStar(require("./SpecializationCategory"), exports);
35
36
  __exportStar(require("./OriginationDetail"), exports);
36
- __exportStar(require("./PatientServiceFacility"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.9.1";
1
+ export declare const SDK_VERSION = "1.11.0";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "1.9.1";
4
+ exports.SDK_VERSION = "1.11.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "candidhealth",
3
- "version": "1.9.1",
3
+ "version": "1.11.0",
4
4
  "private": false,
5
5
  "repository": "github:candidhealth/candid-node",
6
6
  "main": "./index.js",
@@ -6,5 +6,5 @@ import * as CandidApi from "../../../../../../api/index";
6
6
  import * as core from "../../../../../../core";
7
7
  export declare const ReportTransmissionCode: core.serialization.Schema<serializers.encounters.v4.ReportTransmissionCode.Raw, CandidApi.encounters.v4.ReportTransmissionCode>;
8
8
  export declare namespace ReportTransmissionCode {
9
- type Raw = "BM" | "FX";
9
+ type Raw = "BM" | "EL" | "FX";
10
10
  }
@@ -38,4 +38,4 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.ReportTransmissionCode = void 0;
40
40
  const core = __importStar(require("../../../../../../core"));
41
- exports.ReportTransmissionCode = core.serialization.enum_(["BM", "FX"]);
41
+ exports.ReportTransmissionCode = core.serialization.enum_(["BM", "EL", "FX"]);
@@ -10,6 +10,7 @@ import { ContactPoint } from "./ContactPoint";
10
10
  import { Address } from "./Address";
11
11
  import { Period } from "./Period";
12
12
  import { CanonicalProviderId } from "./CanonicalProviderId";
13
+ import { PatientServiceFacility } from "./PatientServiceFacility";
13
14
  export declare const ExternalProvider: core.serialization.ObjectSchema<serializers.preEncounter.ExternalProvider.Raw, CandidApi.preEncounter.ExternalProvider>;
14
15
  export declare namespace ExternalProvider {
15
16
  interface Raw {
@@ -21,5 +22,6 @@ export declare namespace ExternalProvider {
21
22
  period?: Period.Raw | null;
22
23
  canonical_id?: CanonicalProviderId.Raw | null;
23
24
  fax?: string | null;
25
+ service_facilities?: PatientServiceFacility.Raw[] | null;
24
26
  }
25
27
  }
@@ -44,6 +44,7 @@ const ContactPoint_1 = require("./ContactPoint");
44
44
  const Address_1 = require("./Address");
45
45
  const Period_1 = require("./Period");
46
46
  const CanonicalProviderId_1 = require("./CanonicalProviderId");
47
+ const PatientServiceFacility_1 = require("./PatientServiceFacility");
47
48
  exports.ExternalProvider = core.serialization.object({
48
49
  name: HumanName_1.HumanName,
49
50
  type: ExternalProviderType_1.ExternalProviderType.optional(),
@@ -53,4 +54,5 @@ exports.ExternalProvider = core.serialization.object({
53
54
  period: Period_1.Period.optional(),
54
55
  canonicalId: core.serialization.property("canonical_id", CanonicalProviderId_1.CanonicalProviderId.optional()),
55
56
  fax: core.serialization.string().optional(),
57
+ serviceFacilities: core.serialization.property("service_facilities", core.serialization.list(PatientServiceFacility_1.PatientServiceFacility).optional()),
56
58
  });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../index";
5
+ import * as CandidApi from "../../../../../../api/index";
6
+ import * as core from "../../../../../../core";
7
+ import { CanonicalServiceFacilityId } from "./CanonicalServiceFacilityId";
8
+ export declare const PatientServiceFacility: core.serialization.ObjectSchema<serializers.preEncounter.PatientServiceFacility.Raw, CandidApi.preEncounter.PatientServiceFacility>;
9
+ export declare namespace PatientServiceFacility {
10
+ interface Raw {
11
+ service_facility_id: CanonicalServiceFacilityId.Raw;
12
+ }
13
+ }
@@ -37,8 +37,8 @@ var __importStar = (this && this.__importStar) || (function () {
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.PatientServiceFacility = void 0;
40
- const core = __importStar(require("../../../../../../../../core"));
41
- const CanonicalServiceFacilityId_1 = require("../../../../common/types/CanonicalServiceFacilityId");
40
+ const core = __importStar(require("../../../../../../core"));
41
+ const CanonicalServiceFacilityId_1 = require("./CanonicalServiceFacilityId");
42
42
  exports.PatientServiceFacility = core.serialization.object({
43
43
  serviceFacilityId: core.serialization.property("service_facility_id", CanonicalServiceFacilityId_1.CanonicalServiceFacilityId),
44
44
  });
@@ -16,6 +16,7 @@ export * from "./CanonicalNonInsurancePayerId";
16
16
  export * from "./CanonicalClinicalTrialAssociation";
17
17
  export * from "./CanonicalClinicalTrialId";
18
18
  export * from "./CanonicalServiceFacilityId";
19
+ export * from "./PatientServiceFacility";
19
20
  export * from "./Relationship";
20
21
  export * from "./Gender";
21
22
  export * from "./Sex";
@@ -32,6 +32,7 @@ __exportStar(require("./CanonicalNonInsurancePayerId"), exports);
32
32
  __exportStar(require("./CanonicalClinicalTrialAssociation"), exports);
33
33
  __exportStar(require("./CanonicalClinicalTrialId"), exports);
34
34
  __exportStar(require("./CanonicalServiceFacilityId"), exports);
35
+ __exportStar(require("./PatientServiceFacility"), exports);
35
36
  __exportStar(require("./Relationship"), exports);
36
37
  __exportStar(require("./Gender"), exports);
37
38
  __exportStar(require("./Sex"), exports);
@@ -6,5 +6,5 @@ import * as CandidApi from "../../../../../../../../api/index";
6
6
  import * as core from "../../../../../../../../core";
7
7
  export declare const DoNotInvoiceReason: core.serialization.Schema<serializers.preEncounter.patients.v1.DoNotInvoiceReason.Raw, CandidApi.preEncounter.patients.v1.DoNotInvoiceReason>;
8
8
  export declare namespace DoNotInvoiceReason {
9
- type Raw = "BANKRUPTCY" | "DECEASED" | "HARDSHIP" | "OTHER";
9
+ type Raw = "BANKRUPTCY" | "DECEASED" | "HARDSHIP" | "OTHER" | "COLLECTIONS" | "BAD_ADDRESS" | "PROFESSIONAL_COURTESY";
10
10
  }
@@ -38,4 +38,12 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.DoNotInvoiceReason = void 0;
40
40
  const core = __importStar(require("../../../../../../../../core"));
41
- exports.DoNotInvoiceReason = core.serialization.enum_(["BANKRUPTCY", "DECEASED", "HARDSHIP", "OTHER"]);
41
+ exports.DoNotInvoiceReason = core.serialization.enum_([
42
+ "BANKRUPTCY",
43
+ "DECEASED",
44
+ "HARDSHIP",
45
+ "OTHER",
46
+ "COLLECTIONS",
47
+ "BAD_ADDRESS",
48
+ "PROFESSIONAL_COURTESY",
49
+ ]);
@@ -24,7 +24,7 @@ import { CanonicalNonInsurancePayerAssociation } from "../../../../common/types/
24
24
  import { Guarantor } from "./Guarantor";
25
25
  import { Authorization } from "./Authorization";
26
26
  import { Referral } from "./Referral";
27
- import { PatientServiceFacility } from "./PatientServiceFacility";
27
+ import { PatientServiceFacility } from "../../../../common/types/PatientServiceFacility";
28
28
  import { DoNotInvoiceReason } from "./DoNotInvoiceReason";
29
29
  import { NoteId } from "../../../../common/types/NoteId";
30
30
  import { TagId } from "../../../../common/types/TagId";
@@ -58,7 +58,7 @@ const CanonicalNonInsurancePayerAssociation_1 = require("../../../../common/type
58
58
  const Guarantor_1 = require("./Guarantor");
59
59
  const Authorization_1 = require("./Authorization");
60
60
  const Referral_1 = require("./Referral");
61
- const PatientServiceFacility_1 = require("./PatientServiceFacility");
61
+ const PatientServiceFacility_1 = require("../../../../common/types/PatientServiceFacility");
62
62
  const DoNotInvoiceReason_1 = require("./DoNotInvoiceReason");
63
63
  const NoteId_1 = require("../../../../common/types/NoteId");
64
64
  const TagId_1 = require("../../../../common/types/TagId");
@@ -6,6 +6,8 @@ import * as CandidApi from "../../../../../../../../api/index";
6
6
  import * as core from "../../../../../../../../core";
7
7
  import { ExternalProvider } from "../../../../common/types/ExternalProvider";
8
8
  import { Period } from "../../../../common/types/Period";
9
+ import { PatientServiceFacility } from "../../../../common/types/PatientServiceFacility";
10
+ import { ReferralUnit } from "./ReferralUnit";
9
11
  export declare const Referral: core.serialization.ObjectSchema<serializers.preEncounter.patients.v1.Referral.Raw, CandidApi.preEncounter.patients.v1.Referral>;
10
12
  export declare namespace Referral {
11
13
  interface Raw {
@@ -13,5 +15,10 @@ export declare namespace Referral {
13
15
  referral_number: string;
14
16
  period?: Period.Raw | null;
15
17
  notes?: string | null;
18
+ serviceFacility?: PatientServiceFacility.Raw | null;
19
+ units?: ReferralUnit.Raw | null;
20
+ quantity?: number | null;
21
+ cptCodes?: string[] | null;
22
+ applyForAllCptCodes?: boolean | null;
16
23
  }
17
24
  }
@@ -40,9 +40,16 @@ exports.Referral = void 0;
40
40
  const core = __importStar(require("../../../../../../../../core"));
41
41
  const ExternalProvider_1 = require("../../../../common/types/ExternalProvider");
42
42
  const Period_1 = require("../../../../common/types/Period");
43
+ const PatientServiceFacility_1 = require("../../../../common/types/PatientServiceFacility");
44
+ const ReferralUnit_1 = require("./ReferralUnit");
43
45
  exports.Referral = core.serialization.object({
44
46
  provider: ExternalProvider_1.ExternalProvider,
45
47
  referralNumber: core.serialization.property("referral_number", core.serialization.string()),
46
48
  period: Period_1.Period.optional(),
47
49
  notes: core.serialization.string().optional(),
50
+ serviceFacility: PatientServiceFacility_1.PatientServiceFacility.optional(),
51
+ units: ReferralUnit_1.ReferralUnit.optional(),
52
+ quantity: core.serialization.number().optional(),
53
+ cptCodes: core.serialization.list(core.serialization.string()).optional(),
54
+ applyForAllCptCodes: core.serialization.boolean().optional(),
48
55
  });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../../../index";
5
+ import * as CandidApi from "../../../../../../../../api/index";
6
+ import * as core from "../../../../../../../../core";
7
+ export declare const ReferralUnit: core.serialization.Schema<serializers.preEncounter.patients.v1.ReferralUnit.Raw, CandidApi.preEncounter.patients.v1.ReferralUnit>;
8
+ export declare namespace ReferralUnit {
9
+ type Raw = "VISIT" | "UNIT";
10
+ }
@@ -0,0 +1,41 @@
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 () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.ReferralUnit = void 0;
40
+ const core = __importStar(require("../../../../../../../../core"));
41
+ exports.ReferralUnit = core.serialization.enum_(["VISIT", "UNIT"]);
@@ -11,10 +11,10 @@ export * from "./Patient";
11
11
  export * from "./PatientPage";
12
12
  export * from "./AuthorizationUnit";
13
13
  export * from "./Authorization";
14
+ export * from "./ReferralUnit";
14
15
  export * from "./Referral";
15
16
  export * from "./Guarantor";
16
17
  export * from "./ReferralSource";
17
18
  export * from "./ReferralType";
18
19
  export * from "./SpecializationCategory";
19
20
  export * from "./OriginationDetail";
20
- export * from "./PatientServiceFacility";
@@ -27,10 +27,10 @@ __exportStar(require("./Patient"), exports);
27
27
  __exportStar(require("./PatientPage"), exports);
28
28
  __exportStar(require("./AuthorizationUnit"), exports);
29
29
  __exportStar(require("./Authorization"), exports);
30
+ __exportStar(require("./ReferralUnit"), exports);
30
31
  __exportStar(require("./Referral"), exports);
31
32
  __exportStar(require("./Guarantor"), exports);
32
33
  __exportStar(require("./ReferralSource"), exports);
33
34
  __exportStar(require("./ReferralType"), exports);
34
35
  __exportStar(require("./SpecializationCategory"), exports);
35
36
  __exportStar(require("./OriginationDetail"), exports);
36
- __exportStar(require("./PatientServiceFacility"), exports);
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.9.1";
1
+ export declare const SDK_VERSION = "1.11.0";
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "1.9.1";
4
+ exports.SDK_VERSION = "1.11.0";
@@ -1,13 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../../../../../../../index";
5
- import * as CandidApi from "../../../../../../../../api/index";
6
- import * as core from "../../../../../../../../core";
7
- import { CanonicalServiceFacilityId } from "../../../../common/types/CanonicalServiceFacilityId";
8
- export declare const PatientServiceFacility: core.serialization.ObjectSchema<serializers.preEncounter.patients.v1.PatientServiceFacility.Raw, CandidApi.preEncounter.patients.v1.PatientServiceFacility>;
9
- export declare namespace PatientServiceFacility {
10
- interface Raw {
11
- service_facility_id: CanonicalServiceFacilityId.Raw;
12
- }
13
- }
@@ -1,13 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../../../../../../../index";
5
- import * as CandidApi from "../../../../../../../../api/index";
6
- import * as core from "../../../../../../../../core";
7
- import { CanonicalServiceFacilityId } from "../../../../common/types/CanonicalServiceFacilityId";
8
- export declare const PatientServiceFacility: core.serialization.ObjectSchema<serializers.preEncounter.patients.v1.PatientServiceFacility.Raw, CandidApi.preEncounter.patients.v1.PatientServiceFacility>;
9
- export declare namespace PatientServiceFacility {
10
- interface Raw {
11
- service_facility_id: CanonicalServiceFacilityId.Raw;
12
- }
13
- }