@metriport/shared 0.23.7 → 0.23.8

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 (164) hide show
  1. package/dist/common/__tests__/date.test.js +116 -68
  2. package/dist/common/__tests__/date.test.js.map +1 -1
  3. package/dist/common/date.d.ts +5 -1
  4. package/dist/common/date.d.ts.map +1 -1
  5. package/dist/common/date.js +6 -2
  6. package/dist/common/date.js.map +1 -1
  7. package/dist/domain/jwt-token.d.ts +1 -0
  8. package/dist/domain/jwt-token.d.ts.map +1 -1
  9. package/dist/error/shared.d.ts.map +1 -1
  10. package/dist/error/shared.js +2 -0
  11. package/dist/error/shared.js.map +1 -1
  12. package/dist/interface/external/ehr/athenahealth/allergy.d.ts +206 -0
  13. package/dist/interface/external/ehr/athenahealth/allergy.d.ts.map +1 -0
  14. package/dist/interface/external/ehr/athenahealth/allergy.js +44 -0
  15. package/dist/interface/external/ehr/athenahealth/allergy.js.map +1 -0
  16. package/dist/interface/external/ehr/athenahealth/clinical-document.d.ts +27 -0
  17. package/dist/interface/external/ehr/athenahealth/clinical-document.d.ts.map +1 -0
  18. package/dist/interface/external/ehr/athenahealth/clinical-document.js +14 -0
  19. package/dist/interface/external/ehr/athenahealth/clinical-document.js.map +1 -0
  20. package/dist/interface/external/ehr/athenahealth/index.d.ts +5 -0
  21. package/dist/interface/external/ehr/athenahealth/index.d.ts.map +1 -1
  22. package/dist/interface/external/ehr/athenahealth/index.js +5 -0
  23. package/dist/interface/external/ehr/athenahealth/index.js.map +1 -1
  24. package/dist/interface/external/ehr/athenahealth/lab-result.d.ts +27 -0
  25. package/dist/interface/external/ehr/athenahealth/lab-result.d.ts.map +1 -0
  26. package/dist/interface/external/ehr/athenahealth/lab-result.js +14 -0
  27. package/dist/interface/external/ehr/athenahealth/lab-result.js.map +1 -0
  28. package/dist/interface/external/ehr/athenahealth/medication.d.ts +19 -6
  29. package/dist/interface/external/ehr/athenahealth/medication.d.ts.map +1 -1
  30. package/dist/interface/external/ehr/athenahealth/medication.js +1 -1
  31. package/dist/interface/external/ehr/athenahealth/medication.js.map +1 -1
  32. package/dist/interface/external/ehr/athenahealth/surgical-history.d.ts +27 -0
  33. package/dist/interface/external/ehr/athenahealth/surgical-history.d.ts.map +1 -0
  34. package/dist/interface/external/ehr/athenahealth/surgical-history.js +14 -0
  35. package/dist/interface/external/ehr/athenahealth/surgical-history.js.map +1 -0
  36. package/dist/interface/external/ehr/athenahealth/vaccine.d.ts +18 -0
  37. package/dist/interface/external/ehr/athenahealth/vaccine.d.ts.map +1 -0
  38. package/dist/interface/external/ehr/athenahealth/vaccine.js +11 -0
  39. package/dist/interface/external/ehr/athenahealth/vaccine.js.map +1 -0
  40. package/dist/interface/external/ehr/athenahealth/vitals.d.ts +2 -17
  41. package/dist/interface/external/ehr/athenahealth/vitals.d.ts.map +1 -1
  42. package/dist/interface/external/ehr/athenahealth/vitals.js +2 -2
  43. package/dist/interface/external/ehr/athenahealth/vitals.js.map +1 -1
  44. package/dist/interface/external/ehr/fhir-resource.d.ts +69 -0
  45. package/dist/interface/external/ehr/fhir-resource.d.ts.map +1 -1
  46. package/dist/interface/external/ehr/fhir-resource.js +12 -1
  47. package/dist/interface/external/ehr/fhir-resource.js.map +1 -1
  48. package/dist/net/error.d.ts +2 -2
  49. package/dist/net/error.d.ts.map +1 -1
  50. package/dist/net/error.js +5 -1
  51. package/dist/net/error.js.map +1 -1
  52. package/package.json +2 -2
  53. package/dist/common/titleCase.d.ts +0 -2
  54. package/dist/common/titleCase.d.ts.map +0 -1
  55. package/dist/common/titleCase.js +0 -10
  56. package/dist/common/titleCase.js.map +0 -1
  57. package/dist/domain/address/__tests__/normalize-zip.test.d.ts +0 -2
  58. package/dist/domain/address/__tests__/normalize-zip.test.d.ts.map +0 -1
  59. package/dist/domain/address/__tests__/normalize-zip.test.js +0 -83
  60. package/dist/domain/address/__tests__/normalize-zip.test.js.map +0 -1
  61. package/dist/domain/patient/patient-import.d.ts +0 -131
  62. package/dist/domain/patient/patient-import.d.ts.map +0 -1
  63. package/dist/domain/patient/patient-import.js +0 -32
  64. package/dist/domain/patient/patient-import.js.map +0 -1
  65. package/dist/interface/external/athenahealth/appointment.d.ts +0 -63
  66. package/dist/interface/external/athenahealth/appointment.d.ts.map +0 -1
  67. package/dist/interface/external/athenahealth/appointment.js +0 -18
  68. package/dist/interface/external/athenahealth/appointment.js.map +0 -1
  69. package/dist/interface/external/athenahealth/cx-mapping.d.ts +0 -10
  70. package/dist/interface/external/athenahealth/cx-mapping.d.ts.map +0 -1
  71. package/dist/interface/external/athenahealth/cx-mapping.js +0 -8
  72. package/dist/interface/external/athenahealth/cx-mapping.js.map +0 -1
  73. package/dist/interface/external/athenahealth/department.d.ts +0 -28
  74. package/dist/interface/external/athenahealth/department.d.ts.map +0 -1
  75. package/dist/interface/external/athenahealth/department.js +0 -11
  76. package/dist/interface/external/athenahealth/department.js.map +0 -1
  77. package/dist/interface/external/athenahealth/index.d.ts +0 -9
  78. package/dist/interface/external/athenahealth/index.d.ts.map +0 -1
  79. package/dist/interface/external/athenahealth/index.js +0 -25
  80. package/dist/interface/external/athenahealth/index.js.map +0 -1
  81. package/dist/interface/external/athenahealth/jwt-token.d.ts +0 -34
  82. package/dist/interface/external/athenahealth/jwt-token.d.ts.map +0 -1
  83. package/dist/interface/external/athenahealth/jwt-token.js +0 -18
  84. package/dist/interface/external/athenahealth/jwt-token.js.map +0 -1
  85. package/dist/interface/external/athenahealth/medication.d.ts +0 -50
  86. package/dist/interface/external/athenahealth/medication.d.ts.map +0 -1
  87. package/dist/interface/external/athenahealth/medication.js +0 -19
  88. package/dist/interface/external/athenahealth/medication.js.map +0 -1
  89. package/dist/interface/external/athenahealth/patient.d.ts +0 -44
  90. package/dist/interface/external/athenahealth/patient.d.ts.map +0 -1
  91. package/dist/interface/external/athenahealth/patient.js +0 -15
  92. package/dist/interface/external/athenahealth/patient.js.map +0 -1
  93. package/dist/interface/external/athenahealth/problem.d.ts +0 -27
  94. package/dist/interface/external/athenahealth/problem.d.ts.map +0 -1
  95. package/dist/interface/external/athenahealth/problem.js +0 -14
  96. package/dist/interface/external/athenahealth/problem.js.map +0 -1
  97. package/dist/interface/external/athenahealth/subscription.d.ts +0 -20
  98. package/dist/interface/external/athenahealth/subscription.d.ts.map +0 -1
  99. package/dist/interface/external/athenahealth/subscription.js +0 -11
  100. package/dist/interface/external/athenahealth/subscription.js.map +0 -1
  101. package/dist/interface/external/athenahealth/vitals.d.ts +0 -82
  102. package/dist/interface/external/athenahealth/vitals.d.ts.map +0 -1
  103. package/dist/interface/external/athenahealth/vitals.js +0 -15
  104. package/dist/interface/external/athenahealth/vitals.js.map +0 -1
  105. package/dist/interface/external/canvas/appointment.d.ts +0 -68
  106. package/dist/interface/external/canvas/appointment.d.ts.map +0 -1
  107. package/dist/interface/external/canvas/appointment.js +0 -15
  108. package/dist/interface/external/canvas/appointment.js.map +0 -1
  109. package/dist/interface/external/canvas/index.d.ts +0 -3
  110. package/dist/interface/external/canvas/index.d.ts.map +0 -1
  111. package/dist/interface/external/canvas/index.js +0 -19
  112. package/dist/interface/external/canvas/index.js.map +0 -1
  113. package/dist/interface/external/canvas/jwt-token.d.ts +0 -31
  114. package/dist/interface/external/canvas/jwt-token.d.ts.map +0 -1
  115. package/dist/interface/external/canvas/jwt-token.js +0 -17
  116. package/dist/interface/external/canvas/jwt-token.js.map +0 -1
  117. package/dist/interface/external/ehr/resource-diff.d.ts +0 -7
  118. package/dist/interface/external/ehr/resource-diff.d.ts.map +0 -1
  119. package/dist/interface/external/ehr/resource-diff.js +0 -12
  120. package/dist/interface/external/ehr/resource-diff.js.map +0 -1
  121. package/dist/interface/external/elation/appointment.d.ts +0 -68
  122. package/dist/interface/external/elation/appointment.d.ts.map +0 -1
  123. package/dist/interface/external/elation/appointment.js +0 -15
  124. package/dist/interface/external/elation/appointment.js.map +0 -1
  125. package/dist/interface/external/elation/index.d.ts +0 -4
  126. package/dist/interface/external/elation/index.d.ts.map +0 -1
  127. package/dist/interface/external/elation/index.js +0 -20
  128. package/dist/interface/external/elation/index.js.map +0 -1
  129. package/dist/interface/external/elation/jwt-token.d.ts +0 -20
  130. package/dist/interface/external/elation/jwt-token.d.ts.map +0 -1
  131. package/dist/interface/external/elation/jwt-token.js +0 -13
  132. package/dist/interface/external/elation/jwt-token.js.map +0 -1
  133. package/dist/interface/external/elation/patient.d.ts +0 -96
  134. package/dist/interface/external/elation/patient.d.ts.map +0 -1
  135. package/dist/interface/external/elation/patient.js +0 -33
  136. package/dist/interface/external/elation/patient.js.map +0 -1
  137. package/dist/interface/external/elation/subscription.d.ts +0 -2
  138. package/dist/interface/external/elation/subscription.d.ts.map +0 -1
  139. package/dist/interface/external/elation/subscription.js +0 -3
  140. package/dist/interface/external/elation/subscription.js.map +0 -1
  141. package/dist/interface/external/shared/ehr/patient.d.ts +0 -250
  142. package/dist/interface/external/shared/ehr/patient.d.ts.map +0 -1
  143. package/dist/interface/external/shared/ehr/patient.js +0 -35
  144. package/dist/interface/external/shared/ehr/patient.js.map +0 -1
  145. package/dist/validators/driver-license/__tests__/index.test.d.ts +0 -2
  146. package/dist/validators/driver-license/__tests__/index.test.d.ts.map +0 -1
  147. package/dist/validators/driver-license/__tests__/index.test.js +0 -87
  148. package/dist/validators/driver-license/__tests__/index.test.js.map +0 -1
  149. package/dist/validators/driver-license/ca-dl.d.ts +0 -6
  150. package/dist/validators/driver-license/ca-dl.d.ts.map +0 -1
  151. package/dist/validators/driver-license/ca-dl.js +0 -87
  152. package/dist/validators/driver-license/ca-dl.js.map +0 -1
  153. package/dist/validators/driver-license/index.d.ts +0 -18
  154. package/dist/validators/driver-license/index.d.ts.map +0 -1
  155. package/dist/validators/driver-license/index.js +0 -86
  156. package/dist/validators/driver-license/index.js.map +0 -1
  157. package/dist/validators/driver-license/interfaces.d.ts +0 -33
  158. package/dist/validators/driver-license/interfaces.d.ts.map +0 -1
  159. package/dist/validators/driver-license/interfaces.js +0 -3
  160. package/dist/validators/driver-license/interfaces.js.map +0 -1
  161. package/dist/validators/driver-license/us-dl.d.ts +0 -6
  162. package/dist/validators/driver-license/us-dl.d.ts.map +0 -1
  163. package/dist/validators/driver-license/us-dl.js +0 -471
  164. package/dist/validators/driver-license/us-dl.js.map +0 -1
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createdClinicalDocumentSuccessSchema = exports.createdClinicalDocumentSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.createdClinicalDocumentSchema = zod_1.z.object({
6
+ success: zod_1.z.boolean(),
7
+ errormessage: zod_1.z.string().optional(),
8
+ clinicaldocumentid: zod_1.z.coerce.string().optional(),
9
+ });
10
+ exports.createdClinicalDocumentSuccessSchema = zod_1.z.object({
11
+ success: zod_1.z.literal(true),
12
+ clinicaldocumentid: zod_1.z.coerce.string(),
13
+ });
14
+ //# sourceMappingURL=clinical-document.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clinical-document.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/athenahealth/clinical-document.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IACpD,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE;IACpB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,kBAAkB,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACjD,CAAC,CAAC;AAEU,QAAA,oCAAoC,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3D,OAAO,EAAE,OAAC,CAAC,OAAO,CAAC,IAAI,CAAC;IACxB,kBAAkB,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;CACtC,CAAC,CAAC"}
@@ -7,4 +7,9 @@ export * from "./department";
7
7
  export * from "./problem";
8
8
  export * from "./vitals";
9
9
  export * from "./patient";
10
+ export * from "./lab-result";
11
+ export * from "./vaccine";
12
+ export * from "./clinical-document";
13
+ export * from "./allergy";
14
+ export * from "./surgical-history";
10
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/athenahealth/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/athenahealth/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,qBAAqB,CAAC;AACpC,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC"}
@@ -23,4 +23,9 @@ __exportStar(require("./department"), exports);
23
23
  __exportStar(require("./problem"), exports);
24
24
  __exportStar(require("./vitals"), exports);
25
25
  __exportStar(require("./patient"), exports);
26
+ __exportStar(require("./lab-result"), exports);
27
+ __exportStar(require("./vaccine"), exports);
28
+ __exportStar(require("./clinical-document"), exports);
29
+ __exportStar(require("./allergy"), exports);
30
+ __exportStar(require("./surgical-history"), exports);
26
31
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/athenahealth/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,8CAA4B;AAC5B,gDAA8B;AAC9B,+CAA6B;AAC7B,iDAA+B;AAC/B,+CAA6B;AAC7B,4CAA0B;AAC1B,2CAAyB;AACzB,4CAA0B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/athenahealth/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,8CAA4B;AAC5B,gDAA8B;AAC9B,+CAA6B;AAC7B,iDAA+B;AAC/B,+CAA6B;AAC7B,4CAA0B;AAC1B,2CAAyB;AACzB,4CAA0B;AAC1B,+CAA6B;AAC7B,4CAA0B;AAC1B,sDAAoC;AACpC,4CAA0B;AAC1B,qDAAmC"}
@@ -0,0 +1,27 @@
1
+ import { z } from "zod";
2
+ export declare const createdLabResultSchema: z.ZodObject<{
3
+ success: z.ZodBoolean;
4
+ errormessage: z.ZodOptional<z.ZodString>;
5
+ labresultid: z.ZodOptional<z.ZodString>;
6
+ }, "strip", z.ZodTypeAny, {
7
+ success: boolean;
8
+ errormessage?: string | undefined;
9
+ labresultid?: string | undefined;
10
+ }, {
11
+ success: boolean;
12
+ errormessage?: string | undefined;
13
+ labresultid?: string | undefined;
14
+ }>;
15
+ export type CreatedLabResult = z.infer<typeof createdLabResultSchema>;
16
+ export declare const createdLabResultSuccessSchema: z.ZodObject<{
17
+ success: z.ZodLiteral<true>;
18
+ labresultid: z.ZodString;
19
+ }, "strip", z.ZodTypeAny, {
20
+ success: true;
21
+ labresultid: string;
22
+ }, {
23
+ success: true;
24
+ labresultid: string;
25
+ }>;
26
+ export type CreatedLabResultSuccess = z.infer<typeof createdLabResultSuccessSchema>;
27
+ //# sourceMappingURL=lab-result.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lab-result.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/athenahealth/lab-result.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;EAIjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,eAAO,MAAM,6BAA6B;;;;;;;;;EAGxC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createdLabResultSuccessSchema = exports.createdLabResultSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.createdLabResultSchema = zod_1.z.object({
6
+ success: zod_1.z.boolean(),
7
+ errormessage: zod_1.z.string().optional(),
8
+ labresultid: zod_1.z.coerce.string().optional(),
9
+ });
10
+ exports.createdLabResultSuccessSchema = zod_1.z.object({
11
+ success: zod_1.z.literal(true),
12
+ labresultid: zod_1.z.coerce.string(),
13
+ });
14
+ //# sourceMappingURL=lab-result.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lab-result.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/athenahealth/lab-result.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE;IACpB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,WAAW,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC1C,CAAC,CAAC;AAEU,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IACpD,OAAO,EAAE,OAAC,CAAC,OAAO,CAAC,IAAI,CAAC;IACxB,WAAW,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;CAC/B,CAAC,CAAC"}
@@ -26,25 +26,38 @@ export declare const createdMedicationSuccessSchema: z.ZodObject<{
26
26
  export type CreatedMedicationSuccess = z.infer<typeof createdMedicationSuccessSchema>;
27
27
  declare const medicationReferenceSchema: z.ZodObject<{
28
28
  medication: z.ZodString;
29
- medicationid: z.ZodNumber;
29
+ medicationid: z.ZodString;
30
30
  }, "strip", z.ZodTypeAny, {
31
31
  medication: string;
32
- medicationid: number;
32
+ medicationid: string;
33
33
  }, {
34
34
  medication: string;
35
- medicationid: number;
35
+ medicationid: string;
36
36
  }>;
37
37
  export type MedicationReference = z.infer<typeof medicationReferenceSchema>;
38
38
  export declare const medicationReferencesSchema: z.ZodArray<z.ZodObject<{
39
39
  medication: z.ZodString;
40
- medicationid: z.ZodNumber;
40
+ medicationid: z.ZodString;
41
41
  }, "strip", z.ZodTypeAny, {
42
42
  medication: string;
43
- medicationid: number;
43
+ medicationid: string;
44
44
  }, {
45
45
  medication: string;
46
- medicationid: number;
46
+ medicationid: string;
47
47
  }>, "many">;
48
48
  export type MedicationReferences = z.infer<typeof medicationReferencesSchema>;
49
+ export type MedicationCreateParams = {
50
+ departmentid: string;
51
+ providernote: string;
52
+ unstructuredsig: string;
53
+ medicationid: string;
54
+ hidden: boolean;
55
+ startdate: string | undefined;
56
+ stopdate: string | undefined;
57
+ stopreason: string | undefined;
58
+ patientnote: string | undefined;
59
+ THIRDPARTYUSERNAME: string | undefined;
60
+ PATIENTFACINGCALL: string | undefined;
61
+ };
49
62
  export {};
50
63
  //# sourceMappingURL=medication.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"medication.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/athenahealth/medication.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;EAIlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,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B,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,kBAAkB,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,iBAAiB,EAAE,MAAM,GAAG,SAAS,CAAC;CACvC,CAAC"}
@@ -13,7 +13,7 @@ exports.createdMedicationSuccessSchema = zod_1.z.object({
13
13
  });
14
14
  const medicationReferenceSchema = zod_1.z.object({
15
15
  medication: zod_1.z.string(),
16
- medicationid: zod_1.z.number(),
16
+ medicationid: zod_1.z.coerce.string(),
17
17
  });
18
18
  exports.medicationReferencesSchema = medicationReferenceSchema.array();
19
19
  //# sourceMappingURL=medication.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"medication.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/athenahealth/medication.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE;IACpB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,iBAAiB,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChD,CAAC,CAAC;AAEU,QAAA,8BAA8B,GAAG,OAAC,CAAC,MAAM,CAAC;IACrD,OAAO,EAAE,OAAC,CAAC,OAAO,CAAC,IAAI,CAAC;IACxB,iBAAiB,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;CACrC,CAAC,CAAC;AAGH,MAAM,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;IACtB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;CACzB,CAAC,CAAC;AAEU,QAAA,0BAA0B,GAAG,yBAAyB,CAAC,KAAK,EAAE,CAAC"}
1
+ {"version":3,"file":"medication.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/athenahealth/medication.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE;IACpB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,iBAAiB,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChD,CAAC,CAAC;AAEU,QAAA,8BAA8B,GAAG,OAAC,CAAC,MAAM,CAAC;IACrD,OAAO,EAAE,OAAC,CAAC,OAAO,CAAC,IAAI,CAAC;IACxB,iBAAiB,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;CACrC,CAAC,CAAC;AAGH,MAAM,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;IACtB,YAAY,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;CAChC,CAAC,CAAC;AAEU,QAAA,0BAA0B,GAAG,yBAAyB,CAAC,KAAK,EAAE,CAAC"}
@@ -0,0 +1,27 @@
1
+ import { z } from "zod";
2
+ export declare const createdSurgicalHistorySchema: z.ZodObject<{
3
+ success: z.ZodBoolean;
4
+ errormessage: z.ZodOptional<z.ZodString>;
5
+ procedureids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6
+ }, "strip", z.ZodTypeAny, {
7
+ success: boolean;
8
+ errormessage?: string | undefined;
9
+ procedureids?: string[] | undefined;
10
+ }, {
11
+ success: boolean;
12
+ errormessage?: string | undefined;
13
+ procedureids?: string[] | undefined;
14
+ }>;
15
+ export type CreatedSurgicalHistory = z.infer<typeof createdSurgicalHistorySchema>;
16
+ export declare const createdSurgicalHistorySuccessSchema: z.ZodObject<{
17
+ success: z.ZodLiteral<true>;
18
+ procedureids: z.ZodArray<z.ZodString, "many">;
19
+ }, "strip", z.ZodTypeAny, {
20
+ success: true;
21
+ procedureids: string[];
22
+ }, {
23
+ success: true;
24
+ procedureids: string[];
25
+ }>;
26
+ export type CreatedSurgicalHistorySuccess = z.infer<typeof createdSurgicalHistorySuccessSchema>;
27
+ //# sourceMappingURL=surgical-history.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"surgical-history.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/athenahealth/surgical-history.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,4BAA4B;;;;;;;;;;;;EAIvC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAClF,eAAO,MAAM,mCAAmC;;;;;;;;;EAG9C,CAAC;AACH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createdSurgicalHistorySuccessSchema = exports.createdSurgicalHistorySchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.createdSurgicalHistorySchema = zod_1.z.object({
6
+ success: zod_1.z.boolean(),
7
+ errormessage: zod_1.z.string().optional(),
8
+ procedureids: zod_1.z.coerce.string().array().optional(),
9
+ });
10
+ exports.createdSurgicalHistorySuccessSchema = zod_1.z.object({
11
+ success: zod_1.z.literal(true),
12
+ procedureids: zod_1.z.coerce.string().array().min(1),
13
+ });
14
+ //# sourceMappingURL=surgical-history.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"surgical-history.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/athenahealth/surgical-history.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,4BAA4B,GAAG,OAAC,CAAC,MAAM,CAAC;IACnD,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE;IACpB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,YAAY,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;CACnD,CAAC,CAAC;AAEU,QAAA,mCAAmC,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1D,OAAO,EAAE,OAAC,CAAC,OAAO,CAAC,IAAI,CAAC;IACxB,YAAY,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CAC/C,CAAC,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { z } from "zod";
2
+ export declare const createdVaccinesSchema: z.ZodObject<{
3
+ vaccineids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4
+ }, "strip", z.ZodTypeAny, {
5
+ vaccineids?: string[] | undefined;
6
+ }, {
7
+ vaccineids?: string[] | undefined;
8
+ }>;
9
+ export type CreatedVaccines = z.infer<typeof createdVaccinesSchema>;
10
+ export declare const createdVaccinesSuccessSchema: z.ZodObject<{
11
+ vaccineids: z.ZodArray<z.ZodString, "many">;
12
+ }, "strip", z.ZodTypeAny, {
13
+ vaccineids: string[];
14
+ }, {
15
+ vaccineids: string[];
16
+ }>;
17
+ export type CreatedVaccinesSuccess = z.infer<typeof createdVaccinesSuccessSchema>;
18
+ //# sourceMappingURL=vaccine.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vaccine.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/athenahealth/vaccine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,qBAAqB;;;;;;EAEhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,eAAO,MAAM,4BAA4B;;;;;;EAEvC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createdVaccinesSuccessSchema = exports.createdVaccinesSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.createdVaccinesSchema = zod_1.z.object({
6
+ vaccineids: zod_1.z.coerce.string().array().optional(),
7
+ });
8
+ exports.createdVaccinesSuccessSchema = zod_1.z.object({
9
+ vaccineids: zod_1.z.coerce.string().array().min(1),
10
+ });
11
+ //# sourceMappingURL=vaccine.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vaccine.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/athenahealth/vaccine.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5C,UAAU,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;CACjD,CAAC,CAAC;AAEU,QAAA,4BAA4B,GAAG,OAAC,CAAC,MAAM,CAAC;IACnD,UAAU,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CAC7C,CAAC,CAAC"}
@@ -28,20 +28,7 @@ export declare const createdVitalsSchema: z.ZodObject<{
28
28
  }[] | undefined;
29
29
  }>;
30
30
  export type CreatedVitals = z.infer<typeof createdVitalsSchema>;
31
- export declare const createdVitalsSuccessSchema: z.ZodObject<z.objectUtil.extendShape<{
32
- success: z.ZodBoolean;
33
- errormessage: z.ZodOptional<z.ZodString>;
34
- vitalids: z.ZodOptional<z.ZodArray<z.ZodObject<{
35
- vitalid: z.ZodString;
36
- clinicalelementid: z.ZodString;
37
- }, "strip", z.ZodTypeAny, {
38
- vitalid: string;
39
- clinicalelementid: string;
40
- }, {
41
- vitalid: string;
42
- clinicalelementid: string;
43
- }>, "many">>;
44
- }, {
31
+ export declare const createdVitalsSuccessSchema: z.ZodObject<{
45
32
  success: z.ZodLiteral<true>;
46
33
  vitalids: z.ZodArray<z.ZodObject<{
47
34
  vitalid: z.ZodString;
@@ -53,20 +40,18 @@ export declare const createdVitalsSuccessSchema: z.ZodObject<z.objectUtil.extend
53
40
  vitalid: string;
54
41
  clinicalelementid: string;
55
42
  }>, "many">;
56
- }>, "strip", z.ZodTypeAny, {
43
+ }, "strip", z.ZodTypeAny, {
57
44
  success: true;
58
45
  vitalids: {
59
46
  vitalid: string;
60
47
  clinicalelementid: string;
61
48
  }[];
62
- errormessage?: string | undefined;
63
49
  }, {
64
50
  success: true;
65
51
  vitalids: {
66
52
  vitalid: string;
67
53
  clinicalelementid: string;
68
54
  }[];
69
- errormessage?: string | undefined;
70
55
  }>;
71
56
  export type CreatedVitalsSuccess = z.infer<typeof createdVitalsSuccessSchema>;
72
57
  export type VitalsCreateParams = {
@@ -1 +1 @@
1
- {"version":3,"file":"vitals.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/athenahealth/vitals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,MAAM,MAAM,kBAAkB,GAAG;IAC/B,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,OAAO,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;KAAE,EAAE,EAAE,CAAC;IAClD,kBAAkB,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,iBAAiB,EAAE,MAAM,GAAG,SAAS,CAAC;CACvC,CAAC"}
1
+ {"version":3,"file":"vitals.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/athenahealth/vitals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;EAGrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,MAAM,MAAM,kBAAkB,GAAG;IAC/B,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,OAAO,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;KAAE,EAAE,EAAE,CAAC;IAClD,kBAAkB,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,iBAAiB,EAAE,MAAM,GAAG,SAAS,CAAC;CACvC,CAAC"}
@@ -8,8 +8,8 @@ exports.createdVitalsSchema = zod_1.z.object({
8
8
  errormessage: zod_1.z.string().optional(),
9
9
  vitalids: vitalIdSchema.array().optional(),
10
10
  });
11
- exports.createdVitalsSuccessSchema = exports.createdVitalsSchema.extend({
11
+ exports.createdVitalsSuccessSchema = zod_1.z.object({
12
12
  success: zod_1.z.literal(true),
13
- vitalids: vitalIdSchema.array(),
13
+ vitalids: vitalIdSchema.array().min(1),
14
14
  });
15
15
  //# sourceMappingURL=vitals.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"vitals.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/athenahealth/vitals.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,MAAM,aAAa,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,iBAAiB,EAAE,OAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AAEjF,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE;IACpB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,QAAQ,EAAE,aAAa,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;CAC3C,CAAC,CAAC;AAGU,QAAA,0BAA0B,GAAG,2BAAmB,CAAC,MAAM,CAAC;IACnE,OAAO,EAAE,OAAC,CAAC,OAAO,CAAC,IAAI,CAAC;IACxB,QAAQ,EAAE,aAAa,CAAC,KAAK,EAAE;CAChC,CAAC,CAAC"}
1
+ {"version":3,"file":"vitals.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/athenahealth/vitals.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,MAAM,aAAa,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,iBAAiB,EAAE,OAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AAEjF,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE;IACpB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,QAAQ,EAAE,aAAa,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;CAC3C,CAAC,CAAC;AAGU,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,OAAO,EAAE,OAAC,CAAC,OAAO,CAAC,IAAI,CAAC;IACxB,QAAQ,EAAE,aAAa,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CACvC,CAAC,CAAC"}
@@ -111,4 +111,73 @@ export type BundleWithLastModified = {
111
111
  };
112
112
  export declare function createBundleFromResourceList(resourceList: Resource[]): Bundle;
113
113
  export declare function getDefaultBundle(): Bundle;
114
+ export declare const fhirOperationOutcomeIssueSchema: z.ZodObject<{
115
+ severity: z.ZodString;
116
+ code: z.ZodString;
117
+ details: z.ZodObject<{
118
+ text: z.ZodString;
119
+ }, "strip", z.ZodTypeAny, {
120
+ text: string;
121
+ }, {
122
+ text: string;
123
+ }>;
124
+ }, "strip", z.ZodTypeAny, {
125
+ code: string;
126
+ severity: string;
127
+ details: {
128
+ text: string;
129
+ };
130
+ }, {
131
+ code: string;
132
+ severity: string;
133
+ details: {
134
+ text: string;
135
+ };
136
+ }>;
137
+ export type FhirOperationOutcomeIssue = z.infer<typeof fhirOperationOutcomeIssueSchema>;
138
+ export declare const fhirOperationOutcomeSchema: z.ZodObject<{
139
+ resourceType: z.ZodLiteral<"OperationOutcome">;
140
+ issue: z.ZodArray<z.ZodObject<{
141
+ severity: z.ZodString;
142
+ code: z.ZodString;
143
+ details: z.ZodObject<{
144
+ text: z.ZodString;
145
+ }, "strip", z.ZodTypeAny, {
146
+ text: string;
147
+ }, {
148
+ text: string;
149
+ }>;
150
+ }, "strip", z.ZodTypeAny, {
151
+ code: string;
152
+ severity: string;
153
+ details: {
154
+ text: string;
155
+ };
156
+ }, {
157
+ code: string;
158
+ severity: string;
159
+ details: {
160
+ text: string;
161
+ };
162
+ }>, "many">;
163
+ }, "strip", z.ZodTypeAny, {
164
+ resourceType: "OperationOutcome";
165
+ issue: {
166
+ code: string;
167
+ severity: string;
168
+ details: {
169
+ text: string;
170
+ };
171
+ }[];
172
+ }, {
173
+ resourceType: "OperationOutcome";
174
+ issue: {
175
+ code: string;
176
+ severity: string;
177
+ details: {
178
+ text: string;
179
+ };
180
+ }[];
181
+ }>;
182
+ export type FhirOperationOutcome = z.infer<typeof fhirOperationOutcomeSchema>;
114
183
  //# sourceMappingURL=fhir-resource.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fhir-resource.d.ts","sourceRoot":"","sources":["../../../../src/interface/external/ehr/fhir-resource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,qBAAqB;;;;;;;;;uCAMjC,CAAC;AACF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,sBAAsB;;;;;;;;;gDAAgC,CAAC;AACpE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;EAEvC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAElF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAItC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,EAAE,MAA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AA+B;;;;;;;;;;;;;;;;;;;;;;EAM1C,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AACxF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getDefaultBundle = exports.createBundleFromResourceList = exports.ehrFhirResourceBundleSchema = exports.ehrFhirResourceWrapperSchema = exports.ehrFhirResourcesSchema = exports.ehrFhirResourceSchema = void 0;
3
+ exports.fhirOperationOutcomeSchema = exports.fhirOperationOutcomeIssueSchema = exports.getDefaultBundle = exports.createBundleFromResourceList = exports.ehrFhirResourceBundleSchema = exports.ehrFhirResourceWrapperSchema = exports.ehrFhirResourcesSchema = exports.ehrFhirResourceSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.ehrFhirResourceSchema = zod_1.z.intersection(zod_1.z.object({
6
6
  id: zod_1.z.string(),
@@ -29,4 +29,15 @@ function getDefaultBundle() {
29
29
  };
30
30
  }
31
31
  exports.getDefaultBundle = getDefaultBundle;
32
+ exports.fhirOperationOutcomeIssueSchema = zod_1.z.object({
33
+ severity: zod_1.z.string(),
34
+ code: zod_1.z.string(),
35
+ details: zod_1.z.object({
36
+ text: zod_1.z.string(),
37
+ }),
38
+ });
39
+ exports.fhirOperationOutcomeSchema = zod_1.z.object({
40
+ resourceType: zod_1.z.literal("OperationOutcome"),
41
+ issue: exports.fhirOperationOutcomeIssueSchema.array(),
42
+ });
32
43
  //# sourceMappingURL=fhir-resource.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"fhir-resource.js","sourceRoot":"","sources":["../../../../src/interface/external/ehr/fhir-resource.ts"],"names":[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E;IACpB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC;QAChB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;KACjB,CAAC;CACH,CAAC,CAAC;AAEU,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,YAAY,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;IAC3C,KAAK,EAAE,uCAA+B,CAAC,KAAK,EAAE;CAC/C,CAAC,CAAC"}
@@ -8,11 +8,11 @@ export declare const axiosTimeoutErrorCodes: readonly ["ECONNABORTED", "ETIMEDOU
8
8
  export type AxiosTimeoutError = (typeof axiosTimeoutErrorCodes)[number];
9
9
  export declare const axiosResponseErrorCodes: readonly ["ERR_BAD_RESPONSE"];
10
10
  export type AxiosResponseError = (typeof axiosResponseErrorCodes)[number];
11
- export declare const axiosNetworkErrors: readonly ["ERR_BAD_RESPONSE", "ECONNABORTED", "ETIMEDOUT"];
11
+ export declare const axiosNetworkErrors: readonly ["ERR_NETWORK", "ERR_BAD_RESPONSE", "ECONNABORTED", "ETIMEDOUT"];
12
12
  export type AxiosNetworkError = (typeof axiosNetworkErrors)[number];
13
13
  export declare const networkTimeoutErrors: ("ETIMEDOUT" | "ECONNABORTED")[];
14
14
  export type NetworkTimeoutError = (typeof networkTimeoutErrors)[number];
15
- export declare const networkErrors: readonly ["ECONNREFUSED", "ECONNRESET", "ETIMEDOUT", "ENOTFOUND", "ERR_BAD_RESPONSE", "ECONNABORTED", "ETIMEDOUT"];
15
+ export declare const networkErrors: readonly ["ECONNREFUSED", "ECONNRESET", "ETIMEDOUT", "ENOTFOUND", "ERR_NETWORK", "ERR_BAD_RESPONSE", "ECONNABORTED", "ETIMEDOUT"];
16
16
  export type NetworkError = (typeof networkErrors)[number];
17
17
  export declare function getNetworkErrorDetails(error: unknown): {
18
18
  details: string;
@@ -1 +1 @@
1
- {"version":3,"file":"error.d.ts","sourceRoot":"","s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package/dist/net/error.js CHANGED
@@ -38,7 +38,11 @@ exports.nodeNetworkErrorCodes = [
38
38
  // https://github.com/axios/axios?tab=readme-ov-file#error-types
39
39
  exports.axiosTimeoutErrorCodes = [axios_1.AxiosError.ECONNABORTED, axios_1.AxiosError.ETIMEDOUT];
40
40
  exports.axiosResponseErrorCodes = [axios_1.AxiosError.ERR_BAD_RESPONSE];
41
- exports.axiosNetworkErrors = [...exports.axiosResponseErrorCodes, ...exports.axiosTimeoutErrorCodes];
41
+ exports.axiosNetworkErrors = [
42
+ axios_1.AxiosError.ERR_NETWORK,
43
+ ...exports.axiosResponseErrorCodes,
44
+ ...exports.axiosTimeoutErrorCodes,
45
+ ];
42
46
  // General Network errors
43
47
  exports.networkTimeoutErrors = [...exports.nodeTimeoutErrorCodes, ...exports.axiosTimeoutErrorCodes];
44
48
  exports.networkErrors = [...exports.nodeNetworkErrorCodes, ...exports.axiosNetworkErrors];
@@ -1 +1 @@
1
- {"version":3,"file":"error.js","sourceRoot":"","sources":["../../src/net/error.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA0C;AAC1C,4CAAgD;AAEhD,4EAA4E;AAC/D,QAAA,yBAAyB,GAAG,CAAC,cAAc,EAAE,YAAY,CAAU,CAAC;AAGpE,QAAA,qBAAqB,GAAG,CAAC,WAAW,CAAU,CAAC;AAG/C,QAAA,qBAAqB,GAAG;IACnC,GAAG,iCAAyB;IAC5B,GAAG,6BAAqB;IACxB,WAAW;CACH,CAAC;AAGX,4CAA4C;AAC5C,gEAAgE;AAEnD,QAAA,sBAAsB,GAAG,CAAC,kBAAU,CAAC,YAAY,EAAE,kBAAU,CAAC,SAAS,CAAU,CAAC;AAGlF,QAAA,uBAAuB,GAAG,CAAC,kBAAU,CAAC,gBAAgB,CAAU,CAAC;AAGjE,QAAA,kBAAkB,GAAG,CAAC,GAAG,+BAAuB,EAAE,GAAG,8BAAsB,CAAU,CAAC;AAGnG,yBAAyB;AAEZ,QAA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G,6BAAqB,EAAE,GAAG,8BAAsB,CAAC,CAAC;AAG7E,QAAA,aAAa,GAAG,CAAC,GAAG,6BAAqB,EAAE,GAAG,0BAAkB,CAAU,CAAC;AAGxF,SAAgB,sBAAsB,CAAC,KAAc;IAKnD,MAAM,OAAO,GAAG,IAAA,sBAAa,EAAC,KAAK,CAAC,CAAC;IACrC,IAAI,eAAK,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE;QAC7B,OAAO;YACL,OAAO;YACP,IAAI,EAAE,KAAK,CAAC,IAAI;YAChB,MAAM,EAAE,KAAK,CAAC,QAAQ,EAAE,MAAM;SAC/B,CAAC;KACH;IACD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;AACzD,CAAC;AAdD,wDAcC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metriport/shared",
3
- "version": "0.23.7",
3
+ "version": "0.23.8",
4
4
  "description": "Common code shared across packages - by Metriport Inc.",
5
5
  "author": "Metriport Inc. <contact@metriport.com>",
6
6
  "homepage": "https://metriport.com/",
@@ -114,5 +114,5 @@
114
114
  "ts-jest": "29.1.1",
115
115
  "typescript": "^4.9.5"
116
116
  },
117
- "gitHead": "25d564c41a9aeb744d379292064e8c799bff4029"
117
+ "gitHead": "099cab08f73adbeed920ab5e487d10aeb3abd48c"
118
118
  }
@@ -1,2 +0,0 @@
1
- export declare function toTitleCase(str: string): string;
2
- //# sourceMappingURL=titleCase.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"titleCase.d.ts","sourceRoot":"","sources":["../../src/common/titleCase.ts"],"names":[],"mappings":"AAEA,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAG/C"}
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toTitleCase = void 0;
4
- const lodash_1 = require("lodash");
5
- function toTitleCase(str) {
6
- const trimmedStr = str.trim();
7
- return (0, lodash_1.startCase)(trimmedStr.toLowerCase());
8
- }
9
- exports.toTitleCase = toTitleCase;
10
- //# sourceMappingURL=titleCase.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"titleCase.js","sourceRoot":"","sources":["../../src/common/titleCase.ts"],"names":[],"mappings":";;;AAAA,mCAAmC;AAEnC,SAAgB,WAAW,CAAC,GAAW;IACrC,MAAM,UAAU,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC;IAC9B,OAAO,IAAA,kBAAS,EAAC,UAAU,CAAC,WAAW,EAAE,CAAC,CAAC;AAC7C,CAAC;AAHD,kCAGC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=normalize-zip.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"normalize-zip.test.d.ts","sourceRoot":"","sources":["../../../../src/domain/address/__tests__/normalize-zip.test.ts"],"names":[],"mappings":""}