@metriport/shared 0.24.4-alpha.0 → 0.24.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/dist/interface/external/ehr/athenahealth/appointment.d.ts +28 -0
  2. package/dist/interface/external/ehr/athenahealth/appointment.d.ts.map +1 -1
  3. package/dist/interface/external/ehr/athenahealth/appointment.js +7 -1
  4. package/dist/interface/external/ehr/athenahealth/appointment.js.map +1 -1
  5. package/dist/interface/external/ehr/athenahealth/cx-mapping.d.ts +304 -2
  6. package/dist/interface/external/ehr/athenahealth/cx-mapping.d.ts.map +1 -1
  7. package/dist/interface/external/ehr/athenahealth/cx-mapping.js +5 -2
  8. package/dist/interface/external/ehr/athenahealth/cx-mapping.js.map +1 -1
  9. package/dist/interface/external/ehr/athenahealth/encounter.d.ts +33 -0
  10. package/dist/interface/external/ehr/athenahealth/encounter.d.ts.map +1 -0
  11. package/dist/interface/external/ehr/athenahealth/encounter.js +13 -0
  12. package/dist/interface/external/ehr/athenahealth/encounter.js.map +1 -0
  13. package/dist/interface/external/ehr/athenahealth/index.d.ts +1 -0
  14. package/dist/interface/external/ehr/athenahealth/index.d.ts.map +1 -1
  15. package/dist/interface/external/ehr/athenahealth/index.js +1 -0
  16. package/dist/interface/external/ehr/athenahealth/index.js.map +1 -1
  17. package/dist/interface/external/ehr/canvas/cx-mapping.d.ts +308 -0
  18. package/dist/interface/external/ehr/canvas/cx-mapping.d.ts.map +1 -0
  19. package/dist/interface/external/ehr/canvas/cx-mapping.js +7 -0
  20. package/dist/interface/external/ehr/canvas/cx-mapping.js.map +1 -0
  21. package/dist/interface/external/ehr/canvas/index.d.ts +1 -0
  22. package/dist/interface/external/ehr/canvas/index.d.ts.map +1 -1
  23. package/dist/interface/external/ehr/canvas/index.js +1 -0
  24. package/dist/interface/external/ehr/canvas/index.js.map +1 -1
  25. package/dist/interface/external/ehr/elation/cx-mapping.d.ts +310 -2
  26. package/dist/interface/external/ehr/elation/cx-mapping.d.ts.map +1 -1
  27. package/dist/interface/external/ehr/elation/cx-mapping.js +7 -2
  28. package/dist/interface/external/ehr/elation/cx-mapping.js.map +1 -1
  29. package/dist/interface/external/ehr/elation/index.d.ts +4 -0
  30. package/dist/interface/external/ehr/elation/index.d.ts.map +1 -1
  31. package/dist/interface/external/ehr/elation/index.js +4 -0
  32. package/dist/interface/external/ehr/elation/index.js.map +1 -1
  33. package/dist/interface/external/ehr/elation/lab.d.ts +10 -0
  34. package/dist/interface/external/ehr/elation/lab.d.ts.map +1 -0
  35. package/dist/interface/external/ehr/elation/lab.js +8 -0
  36. package/dist/interface/external/ehr/elation/lab.js.map +1 -0
  37. package/dist/interface/external/ehr/elation/note.d.ts +10 -0
  38. package/dist/interface/external/ehr/elation/note.d.ts.map +1 -0
  39. package/dist/interface/external/ehr/elation/note.js +8 -0
  40. package/dist/interface/external/ehr/elation/note.js.map +1 -0
  41. package/dist/interface/external/ehr/elation/practice.d.ts +44 -0
  42. package/dist/interface/external/ehr/elation/practice.d.ts.map +1 -0
  43. package/dist/interface/external/ehr/elation/practice.js +13 -0
  44. package/dist/interface/external/ehr/elation/practice.js.map +1 -0
  45. package/dist/interface/external/ehr/elation/vtial.d.ts +10 -0
  46. package/dist/interface/external/ehr/elation/vtial.d.ts.map +1 -0
  47. package/dist/interface/external/ehr/elation/vtial.js +8 -0
  48. package/dist/interface/external/ehr/elation/vtial.js.map +1 -0
  49. package/dist/interface/external/ehr/fhir-resource.d.ts +4 -4
  50. package/dist/interface/external/ehr/fhir-resource.d.ts.map +1 -1
  51. package/dist/interface/external/ehr/fhir-resource.js +5 -5
  52. package/dist/interface/external/ehr/fhir-resource.js.map +1 -1
  53. package/dist/interface/external/ehr/healthie/cx-mapping.d.ts +304 -2
  54. package/dist/interface/external/ehr/healthie/cx-mapping.d.ts.map +1 -1
  55. package/dist/interface/external/ehr/healthie/cx-mapping.js +5 -2
  56. package/dist/interface/external/ehr/healthie/cx-mapping.js.map +1 -1
  57. package/dist/interface/external/ehr/shared.d.ts +541 -0
  58. package/dist/interface/external/ehr/shared.d.ts.map +1 -0
  59. package/dist/interface/external/ehr/shared.js +46 -0
  60. package/dist/interface/external/ehr/shared.js.map +1 -0
  61. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"cx-mapping.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/elation/cx-mapping.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQzC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC"}
1
+ {"version":3,"file":"cx-mapping.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/elation/cx-mapping.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYX,CAAC;AACjC,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC"}
@@ -3,11 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.elationSecondaryMappingsSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const subscription_1 = require("./subscription");
6
+ const shared_1 = require("../shared");
6
7
  const webhookSchema = zod_1.z.object({
7
8
  url: zod_1.z.string(),
8
9
  signingKey: zod_1.z.string(),
9
10
  });
10
- exports.elationSecondaryMappingsSchema = zod_1.z.object({
11
+ exports.elationSecondaryMappingsSchema = zod_1.z
12
+ .object({
11
13
  webhooks: zod_1.z.record(zod_1.z.enum(subscription_1.subscriptionResources), webhookSchema).optional(),
12
14
  webhookPatientPatientLinkingDisabled: zod_1.z.boolean().optional(),
13
15
  webhookPatientPatientProcessingEnabled: zod_1.z.boolean().optional(),
@@ -15,5 +17,8 @@ exports.elationSecondaryMappingsSchema = zod_1.z.object({
15
17
  webhookAppointmentPatientProcessingDisabled: zod_1.z.boolean().optional(),
16
18
  backgroundAppointmentsDisabled: zod_1.z.boolean().optional(),
17
19
  backgroundAppointmentPatientProcessingDisabled: zod_1.z.boolean().optional(),
18
- });
20
+ defaultPracticeId: zod_1.z.string().optional(),
21
+ defaultPhysicianId: zod_1.z.string().optional(),
22
+ })
23
+ .merge(shared_1.writeBackFiltersSchema);
19
24
  //# sourceMappingURL=cx-mapping.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"cx-mapping.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/elation/cx-mapping.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iDAAuD;AAEvD,MAAM,aAAa,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7B,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;CACvB,CAAC,CAAC;AAEU,QAAA,8BAA8B,GAAG,OAAC,CAAC,MAAM,CAAC;IACrD,QAAQ,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,IAAI,CAAC,oCAAqB,CAAC,EAAE,aAAa,CAAC,CAAC,QAAQ,EAAE;IAC3E,oCAAoC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EAAE;IACtE,iBAAiB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACxC,kBAAkB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC1C,CAAC;KACD,KAAK,CAAC,+BAAsB,CAAC,CAAC"}
@@ -6,4 +6,8 @@ export * from "./subscription";
6
6
  export * from "./cx-mapping";
7
7
  export * from "./event";
8
8
  export * from "./ccda";
9
+ export * from "./vtial";
10
+ export * from "./lab";
11
+ export * from "./practice";
12
+ export * from "./note";
9
13
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/elation/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/elation/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC"}
@@ -22,4 +22,8 @@ __exportStar(require("./subscription"), exports);
22
22
  __exportStar(require("./cx-mapping"), exports);
23
23
  __exportStar(require("./event"), exports);
24
24
  __exportStar(require("./ccda"), exports);
25
+ __exportStar(require("./vtial"), exports);
26
+ __exportStar(require("./lab"), exports);
27
+ __exportStar(require("./practice"), exports);
28
+ __exportStar(require("./note"), exports);
25
29
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/elation/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,4CAA0B;AAC1B,8CAA4B;AAC5B,4CAA0B;AAC1B,iDAA+B;AAC/B,+CAA6B;AAC7B,0CAAwB;AACxB,yCAAuB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/elation/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,4CAA0B;AAC1B,8CAA4B;AAC5B,4CAA0B;AAC1B,iDAA+B;AAC/B,+CAA6B;AAC7B,0CAAwB;AACxB,yCAAuB;AACvB,0CAAwB;AACxB,wCAAsB;AACtB,6CAA2B;AAC3B,yCAAuB"}
@@ -0,0 +1,10 @@
1
+ import { z } from "zod";
2
+ export declare const createdLabSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ }, "strip", z.ZodTypeAny, {
5
+ id: string;
6
+ }, {
7
+ id: string;
8
+ }>;
9
+ export type CreatedLab = z.infer<typeof createdLabSchema>;
10
+ //# sourceMappingURL=lab.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lab.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/elation/lab.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,gBAAgB;;;;;;EAE3B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createdLabSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.createdLabSchema = zod_1.z.object({
6
+ id: zod_1.z.coerce.string(),
7
+ });
8
+ //# sourceMappingURL=lab.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lab.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/elation/lab.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,gBAAgB,GAAG,OAAC,CAAC,MAAM,CAAC;IACvC,EAAE,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { z } from "zod";
2
+ export declare const createdNonVisitNoteSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ }, "strip", z.ZodTypeAny, {
5
+ id: string;
6
+ }, {
7
+ id: string;
8
+ }>;
9
+ export type CreatedNonVisitNote = z.infer<typeof createdNonVisitNoteSchema>;
10
+ //# sourceMappingURL=note.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"note.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/elation/note.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,yBAAyB;;;;;;EAEpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createdNonVisitNoteSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.createdNonVisitNoteSchema = zod_1.z.object({
6
+ id: zod_1.z.coerce.string(),
7
+ });
8
+ //# sourceMappingURL=note.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"note.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/elation/note.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,EAAE,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC"}
@@ -0,0 +1,44 @@
1
+ import { z } from "zod";
2
+ export declare const practiceSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ physicians: z.ZodArray<z.ZodString, "many">;
5
+ status: z.ZodString;
6
+ }, "strip", z.ZodTypeAny, {
7
+ id: string;
8
+ status: string;
9
+ physicians: string[];
10
+ }, {
11
+ id: string;
12
+ status: string;
13
+ physicians: string[];
14
+ }>;
15
+ export type Practice = z.infer<typeof practiceSchema>;
16
+ export declare const practicesSchema: z.ZodObject<{
17
+ results: z.ZodArray<z.ZodObject<{
18
+ id: z.ZodString;
19
+ physicians: z.ZodArray<z.ZodString, "many">;
20
+ status: z.ZodString;
21
+ }, "strip", z.ZodTypeAny, {
22
+ id: string;
23
+ status: string;
24
+ physicians: string[];
25
+ }, {
26
+ id: string;
27
+ status: string;
28
+ physicians: string[];
29
+ }>, "many">;
30
+ }, "strip", z.ZodTypeAny, {
31
+ results: {
32
+ id: string;
33
+ status: string;
34
+ physicians: string[];
35
+ }[];
36
+ }, {
37
+ results: {
38
+ id: string;
39
+ status: string;
40
+ physicians: string[];
41
+ }[];
42
+ }>;
43
+ export type Practices = z.infer<typeof practicesSchema>;
44
+ //# sourceMappingURL=practice.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"practice.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/elation/practice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,cAAc;;;;;;;;;;;;EAIzB,CAAC;AACH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;EAE1B,CAAC;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.practicesSchema = exports.practiceSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.practiceSchema = zod_1.z.object({
6
+ id: zod_1.z.coerce.string(),
7
+ physicians: zod_1.z.coerce.string().array(),
8
+ status: zod_1.z.string(),
9
+ });
10
+ exports.practicesSchema = zod_1.z.object({
11
+ results: zod_1.z.array(exports.practiceSchema),
12
+ });
13
+ //# sourceMappingURL=practice.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"practice.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/elation/practice.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,cAAc,GAAG,OAAC,CAAC,MAAM,CAAC;IACrC,EAAE,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;IACrB,UAAU,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE;IACrC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC;AAGU,QAAA,eAAe,GAAG,OAAC,CAAC,MAAM,CAAC;IACtC,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,sBAAc,CAAC;CACjC,CAAC,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { z } from "zod";
2
+ export declare const createdVitalSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ }, "strip", z.ZodTypeAny, {
5
+ id: string;
6
+ }, {
7
+ id: string;
8
+ }>;
9
+ export type CreatedVital = z.infer<typeof createdVitalSchema>;
10
+ //# sourceMappingURL=vtial.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vtial.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/elation/vtial.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,kBAAkB;;;;;;EAE7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createdVitalSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.createdVitalSchema = zod_1.z.object({
6
+ id: zod_1.z.coerce.string(),
7
+ });
8
+ //# sourceMappingURL=vtial.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vtial.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/elation/vtial.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,EAAE,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC"}
@@ -11,7 +11,7 @@ export declare const ehrFhirResourceSchema: z.ZodIntersection<z.ZodObject<{
11
11
  id?: string | undefined;
12
12
  }>, z.ZodRecord<z.ZodString, z.ZodAny>>;
13
13
  export type EhrFhirResource = z.infer<typeof ehrFhirResourceSchema>;
14
- export declare const ehrFhirResourceWrapperSchema: z.ZodObject<{
14
+ export declare const ehrFhirResourceBundleEntrySchema: z.ZodObject<{
15
15
  resource: z.ZodOptional<z.ZodIntersection<z.ZodObject<{
16
16
  id: z.ZodOptional<z.ZodString>;
17
17
  resourceType: z.ZodOptional<z.ZodString>;
@@ -33,7 +33,7 @@ export declare const ehrFhirResourceWrapperSchema: z.ZodObject<{
33
33
  id?: string | undefined;
34
34
  } & Record<string, any>) | undefined;
35
35
  }>;
36
- export type EhrFhirResourceWrapper = z.infer<typeof ehrFhirResourceWrapperSchema>;
36
+ export type EhrFhirResourceBundleEntry = z.infer<typeof ehrFhirResourceBundleEntrySchema>;
37
37
  export declare const ehrFhirResourceBundleSchema: z.ZodObject<z.objectUtil.extendShape<{
38
38
  resourceType: z.ZodLiteral<"Bundle">;
39
39
  link: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -106,7 +106,7 @@ export declare const ehrStrictFhirResourceSchema: z.ZodIntersection<z.ZodObject<
106
106
  id: string;
107
107
  }>, z.ZodRecord<z.ZodString, z.ZodAny>>;
108
108
  export type EhrStrictFhirResource = z.infer<typeof ehrStrictFhirResourceSchema>;
109
- export declare const ehrStrictFhirResourceWrapperSchema: z.ZodObject<{
109
+ export declare const ehrStrictFhirResourceBundleEntrySchema: z.ZodObject<{
110
110
  resource: z.ZodIntersection<z.ZodObject<{
111
111
  id: z.ZodString;
112
112
  resourceType: z.ZodString;
@@ -128,7 +128,7 @@ export declare const ehrStrictFhirResourceWrapperSchema: z.ZodObject<{
128
128
  id: string;
129
129
  } & Record<string, any>;
130
130
  }>;
131
- export type EhrStrictFhirResourceWrapper = z.infer<typeof ehrStrictFhirResourceWrapperSchema>;
131
+ export type EhrStrictFhirResourceBundleEntry = z.infer<typeof ehrStrictFhirResourceBundleEntrySchema>;
132
132
  export declare const ehrStrictFhirResourceBundleSchema: z.ZodObject<z.objectUtil.extendShape<{
133
133
  resourceType: z.ZodLiteral<"Bundle">;
134
134
  link: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -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;AASxB,eAAO,MAAM,qBAAqB;;;;;;;;;uCAMjC,CAAC;AACF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;EAEvC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAElF,eAAO,MAAM,2B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BAAgB,4BAA4B,CAAC,YAAY,EAAE,QAAQ,EAAE,GAAG,MAAM,CAK7E;AAED,wBAAgB,gBAAgB,IAAI,MAAM,CAKzC;AAED,eAAO,MAAM,+BAA+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.fhirOperationOutcomeSchema = exports.fhirOperationOutcomeIssueSchema = exports.getDefaultBundle = exports.createBundleFromResourceList = exports.ehrStrictFhirResourceBundleSchema = exports.ehrStrictFhirResourceWrapperSchema = exports.ehrStrictFhirResourceSchema = exports.ehrFhirResourceBundleSchema = exports.ehrFhirResourceWrapperSchema = exports.ehrFhirResourceSchema = void 0;
3
+ exports.fhirOperationOutcomeSchema = exports.fhirOperationOutcomeIssueSchema = exports.getDefaultBundle = exports.createBundleFromResourceList = exports.ehrStrictFhirResourceBundleSchema = exports.ehrStrictFhirResourceBundleEntrySchema = exports.ehrStrictFhirResourceSchema = exports.ehrFhirResourceBundleSchema = exports.ehrFhirResourceBundleEntrySchema = exports.ehrFhirResourceSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const ehrFhirResourceSharedFieldsSchema = zod_1.z.record(zod_1.z.string(), zod_1.z.any());
6
6
  const ehrFhirBundleSharedFieldsSchema = zod_1.z.object({
@@ -11,21 +11,21 @@ exports.ehrFhirResourceSchema = zod_1.z.intersection(zod_1.z.object({
11
11
  id: zod_1.z.string().optional(),
12
12
  resourceType: zod_1.z.string().optional(),
13
13
  }), ehrFhirResourceSharedFieldsSchema);
14
- exports.ehrFhirResourceWrapperSchema = zod_1.z.object({
14
+ exports.ehrFhirResourceBundleEntrySchema = zod_1.z.object({
15
15
  resource: exports.ehrFhirResourceSchema.optional(),
16
16
  });
17
17
  exports.ehrFhirResourceBundleSchema = ehrFhirBundleSharedFieldsSchema.extend({
18
- entry: exports.ehrFhirResourceWrapperSchema.array().optional(),
18
+ entry: exports.ehrFhirResourceBundleEntrySchema.array().optional(),
19
19
  });
20
20
  exports.ehrStrictFhirResourceSchema = zod_1.z.intersection(zod_1.z.object({
21
21
  id: zod_1.z.string(),
22
22
  resourceType: zod_1.z.string(),
23
23
  }), ehrFhirResourceSharedFieldsSchema);
24
- exports.ehrStrictFhirResourceWrapperSchema = zod_1.z.object({
24
+ exports.ehrStrictFhirResourceBundleEntrySchema = zod_1.z.object({
25
25
  resource: exports.ehrStrictFhirResourceSchema,
26
26
  });
27
27
  exports.ehrStrictFhirResourceBundleSchema = ehrFhirBundleSharedFieldsSchema.extend({
28
- entry: exports.ehrStrictFhirResourceWrapperSchema.array().optional(),
28
+ entry: exports.ehrStrictFhirResourceBundleEntrySchema.array().optional(),
29
29
  });
30
30
  function createBundleFromResourceList(resourceList) {
31
31
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"fhir-resource.js","sourceRoot":"","sources":["../../../../src/interface/external/ehr/fhir-resource.ts"],"names":[],"mappings":";;;AACA,6BAAwB;AAExB,MAAM,iCAAiC,GAAG,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,GAAG,EAAE,CAAC,CAAC;AAExE,MAAM,+BAA+B,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,YAAY,EAAE,OAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;IACjC,IAAI,EAAE,OAAC,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,EAAE,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,EAAE,CAA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AM,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"}
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- export declare const healthieSecondaryMappingsSchema: z.ZodObject<{
2
+ export declare const healthieSecondaryMappingsSchema: z.ZodObject<z.objectUtil.extendShape<{
3
3
  webhooks: z.ZodOptional<z.ZodRecord<z.ZodEnum<["appointment.created", "patient.created"]>, z.ZodObject<{
4
4
  url: z.ZodString;
5
5
  secretKey: z.ZodString;
@@ -18,7 +18,268 @@ export declare const healthieSecondaryMappingsSchema: z.ZodObject<{
18
18
  backgroundAppointmentPatientProcessingDisabled: z.ZodOptional<z.ZodBoolean>;
19
19
  backgroundAppointments48hrEnabled: z.ZodOptional<z.ZodBoolean>;
20
20
  backgroundAppointment48hrPatientProcessingDisabled: z.ZodOptional<z.ZodBoolean>;
21
- }, "strip", z.ZodTypeAny, {
21
+ }, {
22
+ writeBackEnabled: z.ZodOptional<z.ZodBoolean>;
23
+ writeBackFilters: z.ZodOptional<z.ZodObject<{
24
+ lab: z.ZodOptional<z.ZodObject<{
25
+ loincCodes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
26
+ minCountPerCode: z.ZodOptional<z.ZodNumber>;
27
+ relativeDateRange: z.ZodOptional<z.ZodObject<{
28
+ days: z.ZodOptional<z.ZodNumber>;
29
+ months: z.ZodOptional<z.ZodNumber>;
30
+ years: z.ZodOptional<z.ZodNumber>;
31
+ }, "strip", z.ZodTypeAny, {
32
+ days?: number | undefined;
33
+ months?: number | undefined;
34
+ years?: number | undefined;
35
+ }, {
36
+ days?: number | undefined;
37
+ months?: number | undefined;
38
+ years?: number | undefined;
39
+ }>>;
40
+ disabled: z.ZodOptional<z.ZodBoolean>;
41
+ }, "strip", z.ZodTypeAny, {
42
+ loincCodes?: string[] | undefined;
43
+ minCountPerCode?: number | undefined;
44
+ relativeDateRange?: {
45
+ days?: number | undefined;
46
+ months?: number | undefined;
47
+ years?: number | undefined;
48
+ } | undefined;
49
+ disabled?: boolean | undefined;
50
+ }, {
51
+ loincCodes?: string[] | undefined;
52
+ minCountPerCode?: number | undefined;
53
+ relativeDateRange?: {
54
+ days?: number | undefined;
55
+ months?: number | undefined;
56
+ years?: number | undefined;
57
+ } | undefined;
58
+ disabled?: boolean | undefined;
59
+ }>>;
60
+ labPanel: z.ZodOptional<z.ZodObject<{
61
+ loincCodes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
62
+ minCountPerCode: z.ZodOptional<z.ZodNumber>;
63
+ relativeDateRange: z.ZodOptional<z.ZodObject<{
64
+ days: z.ZodOptional<z.ZodNumber>;
65
+ months: z.ZodOptional<z.ZodNumber>;
66
+ years: z.ZodOptional<z.ZodNumber>;
67
+ }, "strip", z.ZodTypeAny, {
68
+ days?: number | undefined;
69
+ months?: number | undefined;
70
+ years?: number | undefined;
71
+ }, {
72
+ days?: number | undefined;
73
+ months?: number | undefined;
74
+ years?: number | undefined;
75
+ }>>;
76
+ disabled: z.ZodOptional<z.ZodBoolean>;
77
+ }, "strip", z.ZodTypeAny, {
78
+ loincCodes?: string[] | undefined;
79
+ minCountPerCode?: number | undefined;
80
+ relativeDateRange?: {
81
+ days?: number | undefined;
82
+ months?: number | undefined;
83
+ years?: number | undefined;
84
+ } | undefined;
85
+ disabled?: boolean | undefined;
86
+ }, {
87
+ loincCodes?: string[] | undefined;
88
+ minCountPerCode?: number | undefined;
89
+ relativeDateRange?: {
90
+ days?: number | undefined;
91
+ months?: number | undefined;
92
+ years?: number | undefined;
93
+ } | undefined;
94
+ disabled?: boolean | undefined;
95
+ }>>;
96
+ problems: z.ZodOptional<z.ZodObject<{
97
+ chronicityFilter: z.ZodOptional<z.ZodEnum<["all", "chronic", "non-chronic"]>>;
98
+ relativeDateRange: z.ZodOptional<z.ZodObject<{
99
+ days: z.ZodOptional<z.ZodNumber>;
100
+ months: z.ZodOptional<z.ZodNumber>;
101
+ years: z.ZodOptional<z.ZodNumber>;
102
+ }, "strip", z.ZodTypeAny, {
103
+ days?: number | undefined;
104
+ months?: number | undefined;
105
+ years?: number | undefined;
106
+ }, {
107
+ days?: number | undefined;
108
+ months?: number | undefined;
109
+ years?: number | undefined;
110
+ }>>;
111
+ disabled: z.ZodOptional<z.ZodBoolean>;
112
+ }, "strip", z.ZodTypeAny, {
113
+ relativeDateRange?: {
114
+ days?: number | undefined;
115
+ months?: number | undefined;
116
+ years?: number | undefined;
117
+ } | undefined;
118
+ disabled?: boolean | undefined;
119
+ chronicityFilter?: "all" | "chronic" | "non-chronic" | undefined;
120
+ }, {
121
+ relativeDateRange?: {
122
+ days?: number | undefined;
123
+ months?: number | undefined;
124
+ years?: number | undefined;
125
+ } | undefined;
126
+ disabled?: boolean | undefined;
127
+ chronicityFilter?: "all" | "chronic" | "non-chronic" | undefined;
128
+ }>>;
129
+ vital: z.ZodOptional<z.ZodObject<{
130
+ loincCodes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
131
+ relativeDateRange: z.ZodOptional<z.ZodObject<{
132
+ days: z.ZodOptional<z.ZodNumber>;
133
+ months: z.ZodOptional<z.ZodNumber>;
134
+ years: z.ZodOptional<z.ZodNumber>;
135
+ }, "strip", z.ZodTypeAny, {
136
+ days?: number | undefined;
137
+ months?: number | undefined;
138
+ years?: number | undefined;
139
+ }, {
140
+ days?: number | undefined;
141
+ months?: number | undefined;
142
+ years?: number | undefined;
143
+ }>>;
144
+ disabled: z.ZodOptional<z.ZodBoolean>;
145
+ }, "strip", z.ZodTypeAny, {
146
+ loincCodes?: string[] | undefined;
147
+ relativeDateRange?: {
148
+ days?: number | undefined;
149
+ months?: number | undefined;
150
+ years?: number | undefined;
151
+ } | undefined;
152
+ disabled?: boolean | undefined;
153
+ }, {
154
+ loincCodes?: string[] | undefined;
155
+ relativeDateRange?: {
156
+ days?: number | undefined;
157
+ months?: number | undefined;
158
+ years?: number | undefined;
159
+ } | undefined;
160
+ disabled?: boolean | undefined;
161
+ }>>;
162
+ }, "strip", z.ZodTypeAny, {
163
+ lab?: {
164
+ loincCodes?: string[] | undefined;
165
+ minCountPerCode?: number | undefined;
166
+ relativeDateRange?: {
167
+ days?: number | undefined;
168
+ months?: number | undefined;
169
+ years?: number | undefined;
170
+ } | undefined;
171
+ disabled?: boolean | undefined;
172
+ } | undefined;
173
+ labPanel?: {
174
+ loincCodes?: string[] | undefined;
175
+ minCountPerCode?: number | undefined;
176
+ relativeDateRange?: {
177
+ days?: number | undefined;
178
+ months?: number | undefined;
179
+ years?: number | undefined;
180
+ } | undefined;
181
+ disabled?: boolean | undefined;
182
+ } | undefined;
183
+ problems?: {
184
+ relativeDateRange?: {
185
+ days?: number | undefined;
186
+ months?: number | undefined;
187
+ years?: number | undefined;
188
+ } | undefined;
189
+ disabled?: boolean | undefined;
190
+ chronicityFilter?: "all" | "chronic" | "non-chronic" | undefined;
191
+ } | undefined;
192
+ vital?: {
193
+ loincCodes?: string[] | undefined;
194
+ relativeDateRange?: {
195
+ days?: number | undefined;
196
+ months?: number | undefined;
197
+ years?: number | undefined;
198
+ } | undefined;
199
+ disabled?: boolean | undefined;
200
+ } | undefined;
201
+ }, {
202
+ lab?: {
203
+ loincCodes?: string[] | undefined;
204
+ minCountPerCode?: number | undefined;
205
+ relativeDateRange?: {
206
+ days?: number | undefined;
207
+ months?: number | undefined;
208
+ years?: number | undefined;
209
+ } | undefined;
210
+ disabled?: boolean | undefined;
211
+ } | undefined;
212
+ labPanel?: {
213
+ loincCodes?: string[] | undefined;
214
+ minCountPerCode?: number | undefined;
215
+ relativeDateRange?: {
216
+ days?: number | undefined;
217
+ months?: number | undefined;
218
+ years?: number | undefined;
219
+ } | undefined;
220
+ disabled?: boolean | undefined;
221
+ } | undefined;
222
+ problems?: {
223
+ relativeDateRange?: {
224
+ days?: number | undefined;
225
+ months?: number | undefined;
226
+ years?: number | undefined;
227
+ } | undefined;
228
+ disabled?: boolean | undefined;
229
+ chronicityFilter?: "all" | "chronic" | "non-chronic" | undefined;
230
+ } | undefined;
231
+ vital?: {
232
+ loincCodes?: string[] | undefined;
233
+ relativeDateRange?: {
234
+ days?: number | undefined;
235
+ months?: number | undefined;
236
+ years?: number | undefined;
237
+ } | undefined;
238
+ disabled?: boolean | undefined;
239
+ } | undefined;
240
+ }>>;
241
+ }>, "strip", z.ZodTypeAny, {
242
+ writeBackEnabled?: boolean | undefined;
243
+ writeBackFilters?: {
244
+ lab?: {
245
+ loincCodes?: string[] | undefined;
246
+ minCountPerCode?: number | undefined;
247
+ relativeDateRange?: {
248
+ days?: number | undefined;
249
+ months?: number | undefined;
250
+ years?: number | undefined;
251
+ } | undefined;
252
+ disabled?: boolean | undefined;
253
+ } | undefined;
254
+ labPanel?: {
255
+ loincCodes?: string[] | undefined;
256
+ minCountPerCode?: number | undefined;
257
+ relativeDateRange?: {
258
+ days?: number | undefined;
259
+ months?: number | undefined;
260
+ years?: number | undefined;
261
+ } | undefined;
262
+ disabled?: boolean | undefined;
263
+ } | undefined;
264
+ problems?: {
265
+ relativeDateRange?: {
266
+ days?: number | undefined;
267
+ months?: number | undefined;
268
+ years?: number | undefined;
269
+ } | undefined;
270
+ disabled?: boolean | undefined;
271
+ chronicityFilter?: "all" | "chronic" | "non-chronic" | undefined;
272
+ } | undefined;
273
+ vital?: {
274
+ loincCodes?: string[] | undefined;
275
+ relativeDateRange?: {
276
+ days?: number | undefined;
277
+ months?: number | undefined;
278
+ years?: number | undefined;
279
+ } | undefined;
280
+ disabled?: boolean | undefined;
281
+ } | undefined;
282
+ } | undefined;
22
283
  backgroundAppointmentsDisabled?: boolean | undefined;
23
284
  webhooks?: Partial<Record<"appointment.created" | "patient.created", {
24
285
  url: string;
@@ -32,6 +293,47 @@ export declare const healthieSecondaryMappingsSchema: z.ZodObject<{
32
293
  backgroundAppointments48hrEnabled?: boolean | undefined;
33
294
  backgroundAppointment48hrPatientProcessingDisabled?: boolean | undefined;
34
295
  }, {
296
+ writeBackEnabled?: boolean | undefined;
297
+ writeBackFilters?: {
298
+ lab?: {
299
+ loincCodes?: string[] | undefined;
300
+ minCountPerCode?: number | undefined;
301
+ relativeDateRange?: {
302
+ days?: number | undefined;
303
+ months?: number | undefined;
304
+ years?: number | undefined;
305
+ } | undefined;
306
+ disabled?: boolean | undefined;
307
+ } | undefined;
308
+ labPanel?: {
309
+ loincCodes?: string[] | undefined;
310
+ minCountPerCode?: number | undefined;
311
+ relativeDateRange?: {
312
+ days?: number | undefined;
313
+ months?: number | undefined;
314
+ years?: number | undefined;
315
+ } | undefined;
316
+ disabled?: boolean | undefined;
317
+ } | undefined;
318
+ problems?: {
319
+ relativeDateRange?: {
320
+ days?: number | undefined;
321
+ months?: number | undefined;
322
+ years?: number | undefined;
323
+ } | undefined;
324
+ disabled?: boolean | undefined;
325
+ chronicityFilter?: "all" | "chronic" | "non-chronic" | undefined;
326
+ } | undefined;
327
+ vital?: {
328
+ loincCodes?: string[] | undefined;
329
+ relativeDateRange?: {
330
+ days?: number | undefined;
331
+ months?: number | undefined;
332
+ years?: number | undefined;
333
+ } | undefined;
334
+ disabled?: boolean | undefined;
335
+ } | undefined;
336
+ } | undefined;
35
337
  backgroundAppointmentsDisabled?: boolean | undefined;
36
338
  webhooks?: Partial<Record<"appointment.created" | "patient.created", {
37
339
  url: string;
@@ -1 +1 @@
1
- {"version":3,"file":"cx-mapping.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/healthie/cx-mapping.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAU1C,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC"}
1
+ {"version":3,"file":"cx-mapping.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/healthie/cx-mapping.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYZ,CAAC;AACjC,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC"}