@opengovsg/refx-ts-sdk 0.0.53 → 0.0.54

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 (91) hide show
  1. package/api/resources/eligibility/client/Client.js +1 -1
  2. package/api/resources/health/client/Client.js +1 -1
  3. package/api/resources/index.d.ts +2 -1
  4. package/api/resources/index.js +3 -2
  5. package/api/resources/links/client/Client.js +1 -1
  6. package/api/resources/links/client/requests/CreateLinkReqUpsert.d.ts +8 -0
  7. package/api/resources/links/types/CreateLinkReqUpsertClinicType.d.ts +11 -0
  8. package/api/resources/links/types/CreateLinkReqUpsertClinicType.js +10 -0
  9. package/api/resources/links/types/index.d.ts +1 -0
  10. package/api/resources/links/types/index.js +1 -0
  11. package/api/resources/notes/client/Client.js +1 -1
  12. package/api/resources/offerings/client/Client.js +3 -3
  13. package/api/resources/public/client/Client.js +1 -1
  14. package/api/resources/referrals/client/Client.js +9 -9
  15. package/api/resources/referrals/client/requests/CreateReferralReq.d.ts +6 -0
  16. package/api/resources/referrals/index.d.ts +1 -0
  17. package/api/resources/referrals/index.js +1 -0
  18. package/api/resources/referrals/types/CreateReferralReqClinicType.d.ts +11 -0
  19. package/api/resources/referrals/types/CreateReferralReqClinicType.js +10 -0
  20. package/api/resources/referrals/types/index.d.ts +1 -0
  21. package/api/resources/referrals/types/index.js +17 -0
  22. package/api/resources/webhooks/client/Client.js +2 -2
  23. package/api/types/AdditionalReferralField.d.ts +2 -1
  24. package/api/types/AdditionalReferralField.js +1 -0
  25. package/api/types/AppointmentDto.d.ts +12 -0
  26. package/api/types/AppointmentDto.js +5 -0
  27. package/api/types/AppointmentDtoStatus.d.ts +11 -0
  28. package/api/types/AppointmentDtoStatus.js +13 -0
  29. package/api/types/CreatePatientReq.d.ts +2 -0
  30. package/api/types/FullReferralDto.d.ts +7 -0
  31. package/api/types/FullReferralDtoClinicType.d.ts +11 -0
  32. package/api/types/FullReferralDtoClinicType.js +10 -0
  33. package/api/types/GetReferralPatientDto.d.ts +2 -0
  34. package/api/types/PublicReferralDto.d.ts +6 -0
  35. package/api/types/PublicReferralDtoClinicType.d.ts +11 -0
  36. package/api/types/PublicReferralDtoClinicType.js +10 -0
  37. package/api/types/ReferralDto.d.ts +6 -0
  38. package/api/types/ReferralDtoClinicType.d.ts +11 -0
  39. package/api/types/ReferralDtoClinicType.js +10 -0
  40. package/api/types/ReferralLinkType.d.ts +2 -1
  41. package/api/types/ReferralLinkType.js +1 -0
  42. package/api/types/index.d.ts +5 -0
  43. package/api/types/index.js +5 -0
  44. package/dist/api/resources/eligibility/client/Client.js +1 -1
  45. package/dist/api/resources/health/client/Client.js +1 -1
  46. package/dist/api/resources/index.d.ts +2 -1
  47. package/dist/api/resources/index.js +3 -2
  48. package/dist/api/resources/links/client/Client.js +1 -1
  49. package/dist/api/resources/links/client/requests/CreateLinkReqUpsert.d.ts +8 -0
  50. package/dist/api/resources/links/types/CreateLinkReqUpsertClinicType.d.ts +11 -0
  51. package/dist/api/resources/links/types/CreateLinkReqUpsertClinicType.js +10 -0
  52. package/dist/api/resources/links/types/index.d.ts +1 -0
  53. package/dist/api/resources/links/types/index.js +1 -0
  54. package/dist/api/resources/notes/client/Client.js +1 -1
  55. package/dist/api/resources/offerings/client/Client.js +3 -3
  56. package/dist/api/resources/public/client/Client.js +1 -1
  57. package/dist/api/resources/referrals/client/Client.js +9 -9
  58. package/dist/api/resources/referrals/client/requests/CreateReferralReq.d.ts +6 -0
  59. package/dist/api/resources/referrals/index.d.ts +1 -0
  60. package/dist/api/resources/referrals/index.js +1 -0
  61. package/dist/api/resources/referrals/types/CreateReferralReqClinicType.d.ts +11 -0
  62. package/dist/api/resources/referrals/types/CreateReferralReqClinicType.js +10 -0
  63. package/dist/api/resources/referrals/types/index.d.ts +1 -0
  64. package/dist/api/resources/referrals/types/index.js +17 -0
  65. package/dist/api/resources/webhooks/client/Client.js +2 -2
  66. package/dist/api/types/AdditionalReferralField.d.ts +2 -1
  67. package/dist/api/types/AdditionalReferralField.js +1 -0
  68. package/dist/api/types/AppointmentDto.d.ts +12 -0
  69. package/dist/api/types/AppointmentDto.js +5 -0
  70. package/dist/api/types/AppointmentDtoStatus.d.ts +11 -0
  71. package/dist/api/types/AppointmentDtoStatus.js +13 -0
  72. package/dist/api/types/CreatePatientReq.d.ts +2 -0
  73. package/dist/api/types/FullReferralDto.d.ts +7 -0
  74. package/dist/api/types/FullReferralDtoClinicType.d.ts +11 -0
  75. package/dist/api/types/FullReferralDtoClinicType.js +10 -0
  76. package/dist/api/types/GetReferralPatientDto.d.ts +2 -0
  77. package/dist/api/types/PublicReferralDto.d.ts +6 -0
  78. package/dist/api/types/PublicReferralDtoClinicType.d.ts +11 -0
  79. package/dist/api/types/PublicReferralDtoClinicType.js +10 -0
  80. package/dist/api/types/ReferralDto.d.ts +6 -0
  81. package/dist/api/types/ReferralDtoClinicType.d.ts +11 -0
  82. package/dist/api/types/ReferralDtoClinicType.js +10 -0
  83. package/dist/api/types/ReferralLinkType.d.ts +2 -1
  84. package/dist/api/types/ReferralLinkType.js +1 -0
  85. package/dist/api/types/index.d.ts +5 -0
  86. package/dist/api/types/index.js +5 -0
  87. package/dist/version.d.ts +1 -1
  88. package/dist/version.js +1 -1
  89. package/package.json +1 -1
  90. package/version.d.ts +1 -1
  91. package/version.js +1 -1
@@ -89,7 +89,7 @@ class Eligibility {
89
89
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
90
90
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, "api/v1/eligibility"),
91
91
  method: "GET",
92
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.53", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.53", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
92
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.54", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.54", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
93
93
  contentType: "application/json",
94
94
  queryParameters: _queryParams,
95
95
  requestType: "json",
@@ -69,7 +69,7 @@ class Health {
69
69
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
70
70
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, "api/v1/health"),
71
71
  method: "GET",
72
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.53", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.53", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
72
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.54", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.54", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
73
73
  contentType: "application/json",
74
74
  requestType: "json",
75
75
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1,7 +1,8 @@
1
+ export * as referrals from "./referrals";
2
+ export * from "./referrals/types";
1
3
  export * as links from "./links";
2
4
  export * from "./links/types";
3
5
  export * as eligibility from "./eligibility";
4
- export * as referrals from "./referrals";
5
6
  export * as notes from "./notes";
6
7
  export * as offerings from "./offerings";
7
8
  export * as public_ from "./public";
@@ -36,11 +36,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.health = exports.webhooks = exports.public_ = exports.offerings = exports.notes = exports.referrals = exports.eligibility = exports.links = void 0;
39
+ exports.health = exports.webhooks = exports.public_ = exports.offerings = exports.notes = exports.eligibility = exports.links = exports.referrals = void 0;
40
+ exports.referrals = __importStar(require("./referrals"));
41
+ __exportStar(require("./referrals/types"), exports);
40
42
  exports.links = __importStar(require("./links"));
41
43
  __exportStar(require("./links/types"), exports);
42
44
  exports.eligibility = __importStar(require("./eligibility"));
43
- exports.referrals = __importStar(require("./referrals"));
44
45
  exports.notes = __importStar(require("./notes"));
45
46
  exports.offerings = __importStar(require("./offerings"));
46
47
  exports.public_ = __importStar(require("./public"));
@@ -79,7 +79,7 @@ class Links {
79
79
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
80
80
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, "api/v1/links/upsert"),
81
81
  method: "POST",
82
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.53", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.53", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
82
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.54", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.54", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
83
83
  contentType: "application/json",
84
84
  requestType: "json",
85
85
  body: request,
@@ -39,4 +39,12 @@ export interface CreateLinkReqUpsert {
39
39
  address?: ReferralExchange.CreateAddressReq;
40
40
  /** Patient residential status */
41
41
  residentialStatus?: ReferralExchange.CreateLinkReqUpsertResidentialStatus;
42
+ /** Patient Healthier SG (HSG) enrolment status */
43
+ isPatientHsgEnrolled?: boolean;
44
+ /** Clinic license number */
45
+ clinicLicenseNumber?: string;
46
+ /** Clinic type */
47
+ clinicType?: ReferralExchange.CreateLinkReqUpsertClinicType;
48
+ /** Any clinical information that is relevant to the referral, e.g. medical history, drug allergies, treatment provided, etc. */
49
+ clinicalInfo?: string;
42
50
  }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Clinic type
6
+ */
7
+ export type CreateLinkReqUpsertClinicType = "CHAS-only" | "CHAS and HSG";
8
+ export declare const CreateLinkReqUpsertClinicType: {
9
+ readonly ChasOnly: "CHAS-only";
10
+ readonly ChasAndHsg: "CHAS and HSG";
11
+ };
@@ -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.CreateLinkReqUpsertClinicType = void 0;
7
+ exports.CreateLinkReqUpsertClinicType = {
8
+ ChasOnly: "CHAS-only",
9
+ ChasAndHsg: "CHAS and HSG",
10
+ };
@@ -1,2 +1,3 @@
1
1
  export * from "./CreateLinkReqUpsertPatientGender";
2
2
  export * from "./CreateLinkReqUpsertResidentialStatus";
3
+ export * from "./CreateLinkReqUpsertClinicType";
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./CreateLinkReqUpsertPatientGender"), exports);
18
18
  __exportStar(require("./CreateLinkReqUpsertResidentialStatus"), exports);
19
+ __exportStar(require("./CreateLinkReqUpsertClinicType"), exports);
@@ -76,7 +76,7 @@ class Notes {
76
76
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
77
77
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, `api/v1/referrals/${encodeURIComponent(referralId)}/notes`),
78
78
  method: "POST",
79
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.53", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.53", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
79
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.54", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.54", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
80
80
  contentType: "application/json",
81
81
  requestType: "json",
82
82
  body: request,
@@ -85,7 +85,7 @@ class Offerings {
85
85
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
86
86
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, "api/v1/offerings"),
87
87
  method: "GET",
88
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.53", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.53", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
88
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.54", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.54", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
89
89
  contentType: "application/json",
90
90
  queryParameters: _queryParams,
91
91
  requestType: "json",
@@ -144,7 +144,7 @@ class Offerings {
144
144
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
145
145
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, "api/v1/offerings/recommended"),
146
146
  method: "GET",
147
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.53", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.53", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
147
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.54", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.54", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
148
148
  contentType: "application/json",
149
149
  queryParameters: _queryParams,
150
150
  requestType: "json",
@@ -207,7 +207,7 @@ class Offerings {
207
207
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
208
208
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, `api/v1/offerings/${encodeURIComponent(offeringId)}/timeslots`),
209
209
  method: "GET",
210
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.53", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.53", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
210
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.54", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.54", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
211
211
  contentType: "application/json",
212
212
  queryParameters: _queryParams,
213
213
  requestType: "json",
@@ -84,7 +84,7 @@ class Public {
84
84
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
85
85
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, `api/v1/public/referrals/${encodeURIComponent(referralId)}`),
86
86
  method: "GET",
87
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.53", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.53", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
87
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.54", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.54", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
88
88
  contentType: "application/json",
89
89
  queryParameters: _queryParams,
90
90
  requestType: "json",
@@ -107,7 +107,7 @@ class Referrals {
107
107
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
108
108
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, "api/v1/referrals"),
109
109
  method: "GET",
110
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.53", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.53", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
110
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.54", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.54", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
111
111
  contentType: "application/json",
112
112
  queryParameters: _queryParams,
113
113
  requestType: "json",
@@ -183,7 +183,7 @@ class Referrals {
183
183
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
184
184
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, "api/v1/referrals"),
185
185
  method: "POST",
186
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.53", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.53", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
186
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.54", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.54", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
187
187
  contentType: "application/json",
188
188
  requestType: "json",
189
189
  body: request,
@@ -249,7 +249,7 @@ class Referrals {
249
249
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
250
250
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, `api/v1/referrals/${encodeURIComponent(referralId)}`),
251
251
  method: "GET",
252
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.53", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.53", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
252
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.54", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.54", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
253
253
  contentType: "application/json",
254
254
  queryParameters: _queryParams,
255
255
  requestType: "json",
@@ -303,7 +303,7 @@ class Referrals {
303
303
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
304
304
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, `api/v1/referrals/${encodeURIComponent(referralId)}`),
305
305
  method: "DELETE",
306
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.53", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.53", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
306
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.54", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.54", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
307
307
  contentType: "application/json",
308
308
  requestType: "json",
309
309
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -355,7 +355,7 @@ class Referrals {
355
355
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
356
356
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, `api/v1/referrals/${encodeURIComponent(referralId)}/cancel`),
357
357
  method: "POST",
358
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.53", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.53", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
358
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.54", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.54", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
359
359
  contentType: "application/json",
360
360
  requestType: "json",
361
361
  body: request,
@@ -410,7 +410,7 @@ class Referrals {
410
410
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
411
411
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, `api/v1/referrals/${encodeURIComponent(referralId)}/amend`),
412
412
  method: "POST",
413
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.53", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.53", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
413
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.54", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.54", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
414
414
  contentType: "application/json",
415
415
  requestType: "json",
416
416
  body: request,
@@ -463,7 +463,7 @@ class Referrals {
463
463
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
464
464
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, `api/v1/referrals/${encodeURIComponent(referralId)}/accept`),
465
465
  method: "POST",
466
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.53", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.53", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
466
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.54", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.54", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
467
467
  contentType: "application/json",
468
468
  requestType: "json",
469
469
  body: request,
@@ -518,7 +518,7 @@ class Referrals {
518
518
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
519
519
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, `api/v1/referrals/${encodeURIComponent(referralId)}/reject`),
520
520
  method: "POST",
521
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.53", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.53", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
521
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.54", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.54", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
522
522
  contentType: "application/json",
523
523
  requestType: "json",
524
524
  body: request,
@@ -570,7 +570,7 @@ class Referrals {
570
570
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
571
571
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, `api/v1/referrals/${encodeURIComponent(referralId)}/back-to-draft`),
572
572
  method: "POST",
573
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.53", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.53", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
573
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.54", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.54", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
574
574
  contentType: "application/json",
575
575
  requestType: "json",
576
576
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -55,4 +55,10 @@ export interface CreateReferralReq {
55
55
  timeslotStartAt?: number;
56
56
  /** Form responses */
57
57
  formResponses: ReferralExchange.FormResponse[];
58
+ /** Clinic license number */
59
+ clinicLicenseNumber?: string;
60
+ /** Clinic type */
61
+ clinicType?: ReferralExchange.CreateReferralReqClinicType;
62
+ /** Any clinical information that is relevant to the referral, e.g. medical history, drug allergies, treatment provided, etc. */
63
+ clinicalInfo?: string;
58
64
  }
@@ -1 +1,2 @@
1
+ export * from "./types";
1
2
  export * from "./client";
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
17
18
  __exportStar(require("./client"), exports);
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Clinic type
6
+ */
7
+ export type CreateReferralReqClinicType = "CHAS-only" | "CHAS and HSG";
8
+ export declare const CreateReferralReqClinicType: {
9
+ readonly ChasOnly: "CHAS-only";
10
+ readonly ChasAndHsg: "CHAS and HSG";
11
+ };
@@ -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.CreateReferralReqClinicType = void 0;
7
+ exports.CreateReferralReqClinicType = {
8
+ ChasOnly: "CHAS-only",
9
+ ChasAndHsg: "CHAS and HSG",
10
+ };
@@ -0,0 +1 @@
1
+ export * from "./CreateReferralReqClinicType";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./CreateReferralReqClinicType"), exports);
@@ -69,7 +69,7 @@ class Webhooks {
69
69
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
70
70
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, "api/v1/webhooks/formsg/singhealth-profile"),
71
71
  method: "POST",
72
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.53", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.53", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
72
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.54", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.54", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
73
73
  contentType: "application/json",
74
74
  requestType: "json",
75
75
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -113,7 +113,7 @@ class Webhooks {
113
113
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
114
114
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ReferralExchangeEnvironment.SmartCms, `api/v1/webhooks/formsg/form-submission/${encodeURIComponent(formId)}`),
115
115
  method: "POST",
116
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.53", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.53", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
116
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@opengovsg/refx-ts-sdk", "X-Fern-SDK-Version": "0.0.54", "User-Agent": "@opengovsg/refx-ts-sdk/0.0.54", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
117
117
  contentType: "application/json",
118
118
  requestType: "json",
119
119
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1,9 +1,10 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type AdditionalReferralField = "attachments" | "url" | "link";
4
+ export type AdditionalReferralField = "attachments" | "url" | "link" | "appointments";
5
5
  export declare const AdditionalReferralField: {
6
6
  readonly Attachments: "attachments";
7
7
  readonly Url: "url";
8
8
  readonly Link: "link";
9
+ readonly Appointments: "appointments";
9
10
  };
@@ -8,4 +8,5 @@ exports.AdditionalReferralField = {
8
8
  Attachments: "attachments",
9
9
  Url: "url",
10
10
  Link: "link",
11
+ Appointments: "appointments",
11
12
  };
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as ReferralExchange from "../index";
5
+ export interface AppointmentDto {
6
+ status: ReferralExchange.AppointmentDtoStatus;
7
+ institutionName?: string;
8
+ specialtyName?: string;
9
+ subSpecialtyName?: string;
10
+ visitDateTime: string;
11
+ isDischarged: boolean;
12
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type AppointmentDtoStatus = "booked" | "actualized" | "noShow" | "cancelled" | "unknown";
5
+ export declare const AppointmentDtoStatus: {
6
+ readonly Booked: "booked";
7
+ readonly Actualized: "actualized";
8
+ readonly NoShow: "noShow";
9
+ readonly Cancelled: "cancelled";
10
+ readonly Unknown: "unknown";
11
+ };
@@ -0,0 +1,13 @@
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.AppointmentDtoStatus = void 0;
7
+ exports.AppointmentDtoStatus = {
8
+ Booked: "booked",
9
+ Actualized: "actualized",
10
+ NoShow: "noShow",
11
+ Cancelled: "cancelled",
12
+ Unknown: "unknown",
13
+ };
@@ -16,4 +16,6 @@ export interface CreatePatientReq {
16
16
  address?: ReferralExchange.CreateAddressReq;
17
17
  /** Patient residential status */
18
18
  residentialStatus?: ReferralExchange.CreatePatientReqResidentialStatus;
19
+ /** Patient Healthier SG (HSG) enrolment status */
20
+ isHsgEnrolled?: boolean;
19
21
  }
@@ -21,6 +21,12 @@ export interface FullReferralDto {
21
21
  attachments: ReferralExchange.AttachmentDto[];
22
22
  /** URL to view the referral */
23
23
  url?: string;
24
+ /** Clinic license number */
25
+ clinicLicenseNumber?: string;
26
+ /** Clinic type */
27
+ clinicType?: ReferralExchange.FullReferralDtoClinicType;
28
+ /** Any clinical information that is relevant to the referral, e.g. medical history, drug allergies, treatment provided, etc. */
29
+ clinicalInfo?: string;
24
30
  status: ReferralExchange.FullReferralDtoStatus;
25
31
  /** Timeslot start time (ISO datetime) */
26
32
  timeslotStartAt?: string;
@@ -29,4 +35,5 @@ export interface FullReferralDto {
29
35
  notes: ReferralExchange.NoteDto[];
30
36
  timelineEvents: ReferralExchange.TimelineEventDto[];
31
37
  links: ReferralExchange.ReferralLinkDto[];
38
+ appointments: ReferralExchange.AppointmentDto[];
32
39
  }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Clinic type
6
+ */
7
+ export type FullReferralDtoClinicType = "CHAS-only" | "CHAS and HSG";
8
+ export declare const FullReferralDtoClinicType: {
9
+ readonly ChasOnly: "CHAS-only";
10
+ readonly ChasAndHsg: "CHAS and HSG";
11
+ };
@@ -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.FullReferralDtoClinicType = void 0;
7
+ exports.FullReferralDtoClinicType = {
8
+ ChasOnly: "CHAS-only",
9
+ ChasAndHsg: "CHAS and HSG",
10
+ };
@@ -16,6 +16,8 @@ export interface GetReferralPatientDto {
16
16
  address?: ReferralExchange.CreateAddressReq;
17
17
  /** Patient residential status */
18
18
  residentialStatus?: ReferralExchange.GetReferralPatientDtoResidentialStatus;
19
+ /** Patient Healthier SG (HSG) enrolment status */
20
+ isHsgEnrolled?: boolean;
19
21
  /** Current CHAS status */
20
22
  chasStatus: string;
21
23
  }
@@ -21,4 +21,10 @@ export interface PublicReferralDto {
21
21
  attachments: ReferralExchange.AttachmentDto[];
22
22
  /** URL to view the referral */
23
23
  url?: string;
24
+ /** Clinic license number */
25
+ clinicLicenseNumber?: string;
26
+ /** Clinic type */
27
+ clinicType?: ReferralExchange.PublicReferralDtoClinicType;
28
+ /** Any clinical information that is relevant to the referral, e.g. medical history, drug allergies, treatment provided, etc. */
29
+ clinicalInfo?: string;
24
30
  }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Clinic type
6
+ */
7
+ export type PublicReferralDtoClinicType = "CHAS-only" | "CHAS and HSG";
8
+ export declare const PublicReferralDtoClinicType: {
9
+ readonly ChasOnly: "CHAS-only";
10
+ readonly ChasAndHsg: "CHAS and HSG";
11
+ };
@@ -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.PublicReferralDtoClinicType = void 0;
7
+ exports.PublicReferralDtoClinicType = {
8
+ ChasOnly: "CHAS-only",
9
+ ChasAndHsg: "CHAS and HSG",
10
+ };
@@ -21,6 +21,12 @@ export interface ReferralDto {
21
21
  attachments: ReferralExchange.AttachmentDto[];
22
22
  /** URL to view the referral */
23
23
  url?: string;
24
+ /** Clinic license number */
25
+ clinicLicenseNumber?: string;
26
+ /** Clinic type */
27
+ clinicType?: ReferralExchange.ReferralDtoClinicType;
28
+ /** Any clinical information that is relevant to the referral, e.g. medical history, drug allergies, treatment provided, etc. */
29
+ clinicalInfo?: string;
24
30
  status: ReferralExchange.ReferralDtoStatus;
25
31
  /** Timeslot start time (ISO datetime) */
26
32
  timeslotStartAt?: string;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Clinic type
6
+ */
7
+ export type ReferralDtoClinicType = "CHAS-only" | "CHAS and HSG";
8
+ export declare const ReferralDtoClinicType: {
9
+ readonly ChasOnly: "CHAS-only";
10
+ readonly ChasAndHsg: "CHAS and HSG";
11
+ };
@@ -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.ReferralDtoClinicType = void 0;
7
+ exports.ReferralDtoClinicType = {
8
+ ChasOnly: "CHAS-only",
9
+ ChasAndHsg: "CHAS and HSG",
10
+ };
@@ -4,9 +4,10 @@
4
4
  /**
5
5
  * type of referral link
6
6
  */
7
- export type ReferralLinkType = "upsert" | "amend" | "select-timeslot";
7
+ export type ReferralLinkType = "upsert" | "amend" | "select-timeslot" | "fill-singhealth-formsg";
8
8
  export declare const ReferralLinkType: {
9
9
  readonly Upsert: "upsert";
10
10
  readonly Amend: "amend";
11
11
  readonly SelectTimeslot: "select-timeslot";
12
+ readonly FillSinghealthFormsg: "fill-singhealth-formsg";
12
13
  };
@@ -8,4 +8,5 @@ exports.ReferralLinkType = {
8
8
  Upsert: "upsert",
9
9
  Amend: "amend",
10
10
  SelectTimeslot: "select-timeslot",
11
+ FillSinghealthFormsg: "fill-singhealth-formsg",
11
12
  };