@metriport/shared 0.12.1-alpha.0 → 0.12.2

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.
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=indext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"indext.d.ts","sourceRoot":"","sources":["../../src/interface/indext.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=indext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"indext.js","sourceRoot":"","sources":["../../src/interface/indext.ts"],"names":[],"mappings":""}
@@ -0,0 +1,31 @@
1
+ import { z } from "zod";
2
+ export declare const internalSendConsolidatedSchema: z.ZodObject<{
3
+ bundleLocation: z.ZodString;
4
+ bundleFilename: z.ZodString;
5
+ requestId: z.ZodString;
6
+ conversionType: z.ZodOptional<z.ZodEnum<["html", "pdf", "json"]>>;
7
+ generateAiBrief: z.ZodOptional<z.ZodBoolean>;
8
+ resources: z.ZodOptional<z.ZodArray<z.ZodEnum<["Account", "AllergyIntolerance", "Appointment", "AppointmentResponse", "AuditEvent", "Basic", "BodyStructure", "CarePlan", "CareTeam", "ChargeItem", "Claim", "ClaimResponse", "ClinicalImpression", "Communication", "CommunicationRequest", "Composition", "Condition", "Consent", "Contract", "Coverage", "CoverageEligibilityRequest", "CoverageEligibilityResponse", "DetectedIssue", "Device", "DeviceRequest", "DeviceUseStatement", "DiagnosticReport", "DocumentManifest", "DocumentReference", "Encounter", "EnrollmentRequest", "EpisodeOfCare", "ExplanationOfBenefit", "FamilyMemberHistory", "Flag", "Goal", "GuidanceResponse", "ImagingStudy", "Immunization", "ImmunizationEvaluation", "ImmunizationRecommendation", "Invoice", "List", "MeasureReport", "Media", "MedicationAdministration", "MedicationDispense", "MedicationRequest", "MedicationStatement", "MolecularSequence", "NutritionOrder", "Observation", "Person", "Procedure", "Provenance", "QuestionnaireResponse", "RelatedPerson", "RequestGroup", "ResearchSubject", "RiskAssessment", "ServiceRequest", "Specimen", "AdverseEvent", "Task", "Practitioner"]>, "many">>;
9
+ dateFrom: z.ZodOptional<z.ZodString>;
10
+ dateTo: z.ZodOptional<z.ZodString>;
11
+ }, "strip", z.ZodTypeAny, {
12
+ bundleLocation: string;
13
+ bundleFilename: string;
14
+ requestId: string;
15
+ conversionType?: "html" | "pdf" | "json" | undefined;
16
+ generateAiBrief?: boolean | undefined;
17
+ resources?: ("Account" | "AllergyIntolerance" | "Appointment" | "AppointmentResponse" | "AuditEvent" | "Basic" | "BodyStructure" | "CarePlan" | "CareTeam" | "ChargeItem" | "Claim" | "ClaimResponse" | "ClinicalImpression" | "Communication" | "CommunicationRequest" | "Composition" | "Condition" | "Consent" | "Contract" | "Coverage" | "CoverageEligibilityRequest" | "CoverageEligibilityResponse" | "DetectedIssue" | "Device" | "DeviceRequest" | "DeviceUseStatement" | "DiagnosticReport" | "DocumentManifest" | "DocumentReference" | "Encounter" | "EnrollmentRequest" | "EpisodeOfCare" | "ExplanationOfBenefit" | "FamilyMemberHistory" | "Flag" | "Goal" | "GuidanceResponse" | "ImagingStudy" | "Immunization" | "ImmunizationEvaluation" | "ImmunizationRecommendation" | "Invoice" | "List" | "MeasureReport" | "Media" | "MedicationAdministration" | "MedicationDispense" | "MedicationRequest" | "MedicationStatement" | "MolecularSequence" | "NutritionOrder" | "Observation" | "Person" | "Procedure" | "Provenance" | "QuestionnaireResponse" | "RelatedPerson" | "RequestGroup" | "ResearchSubject" | "RiskAssessment" | "ServiceRequest" | "Specimen" | "AdverseEvent" | "Task" | "Practitioner")[] | undefined;
18
+ dateFrom?: string | undefined;
19
+ dateTo?: string | undefined;
20
+ }, {
21
+ bundleLocation: string;
22
+ bundleFilename: string;
23
+ requestId: string;
24
+ conversionType?: "html" | "pdf" | "json" | undefined;
25
+ generateAiBrief?: boolean | undefined;
26
+ resources?: ("Account" | "AllergyIntolerance" | "Appointment" | "AppointmentResponse" | "AuditEvent" | "Basic" | "BodyStructure" | "CarePlan" | "CareTeam" | "ChargeItem" | "Claim" | "ClaimResponse" | "ClinicalImpression" | "Communication" | "CommunicationRequest" | "Composition" | "Condition" | "Consent" | "Contract" | "Coverage" | "CoverageEligibilityRequest" | "CoverageEligibilityResponse" | "DetectedIssue" | "Device" | "DeviceRequest" | "DeviceUseStatement" | "DiagnosticReport" | "DocumentManifest" | "DocumentReference" | "Encounter" | "EnrollmentRequest" | "EpisodeOfCare" | "ExplanationOfBenefit" | "FamilyMemberHistory" | "Flag" | "Goal" | "GuidanceResponse" | "ImagingStudy" | "Immunization" | "ImmunizationEvaluation" | "ImmunizationRecommendation" | "Invoice" | "List" | "MeasureReport" | "Media" | "MedicationAdministration" | "MedicationDispense" | "MedicationRequest" | "MedicationStatement" | "MolecularSequence" | "NutritionOrder" | "Observation" | "Person" | "Procedure" | "Provenance" | "QuestionnaireResponse" | "RelatedPerson" | "RequestGroup" | "ResearchSubject" | "RiskAssessment" | "ServiceRequest" | "Specimen" | "AdverseEvent" | "Task" | "Practitioner")[] | undefined;
27
+ dateFrom?: string | undefined;
28
+ dateTo?: string | undefined;
29
+ }>;
30
+ export type InternalSendConsolidated = z.infer<typeof internalSendConsolidatedSchema>;
31
+ //# sourceMappingURL=consolidated.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"consolidated.d.ts","sourceRoot":"","sources":["../../../src/interface/internal/consolidated.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;EASzC,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.internalSendConsolidatedSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const medical_1 = require("../../medical");
6
+ exports.internalSendConsolidatedSchema = zod_1.z.object({
7
+ bundleLocation: zod_1.z.string(),
8
+ bundleFilename: zod_1.z.string(),
9
+ requestId: zod_1.z.string(),
10
+ conversionType: zod_1.z.enum(medical_1.consolidationConversionType).optional(),
11
+ generateAiBrief: zod_1.z.boolean().optional(),
12
+ resources: zod_1.z.array(zod_1.z.enum(medical_1.resourceTypeForConsolidation)).optional(),
13
+ dateFrom: zod_1.z.string().optional(),
14
+ dateTo: zod_1.z.string().optional(),
15
+ });
16
+ //# sourceMappingURL=consolidated.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"consolidated.js","sourceRoot":"","sources":["../../../src/interface/internal/consolidated.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,2CAA0F;AAE7E,QAAA,8BAA8B,GAAG,OAAC,CAAC,MAAM,CAAC;IACrD,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE;IAC1B,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE;IAC1B,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,cAAc,EAAE,OAAC,CAAC,IAAI,CAAC,qCAA2B,CAAC,CAAC,QAAQ,EAAE;IAC9D,eAAe,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACvC,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,IAAI,CAAC,sCAA4B,CAAC,CAAC,CAAC,QAAQ,EAAE;IACnE,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./consolidated";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interface/internal/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1,18 @@
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("./consolidated"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interface/internal/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B"}
@@ -0,0 +1,3 @@
1
+ export declare const consolidationConversionType: readonly ["html", "pdf", "json"];
2
+ export type ConsolidationConversionType = (typeof consolidationConversionType)[number];
3
+ //# sourceMappingURL=conversion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversion.d.ts","sourceRoot":"","sources":["../../../src/medical/fhir/conversion.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B,kCAAmC,CAAC;AAE5E,MAAM,MAAM,2BAA2B,GAAG,CAAC,OAAO,2BAA2B,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.consolidationConversionType = void 0;
4
+ exports.consolidationConversionType = ["html", "pdf", "json"];
5
+ //# sourceMappingURL=conversion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversion.js","sourceRoot":"","sources":["../../../src/medical/fhir/conversion.ts"],"names":[],"mappings":";;;AAAa,QAAA,2BAA2B,GAAG,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,CAAU,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare const resourcesSearchableByPatient: readonly ["Account", "AllergyIntolerance", "Appointment", "AppointmentResponse", "AuditEvent", "Basic", "BodyStructure", "CarePlan", "CareTeam", "ChargeItem", "Claim", "ClaimResponse", "ClinicalImpression", "Communication", "CommunicationRequest", "Composition", "Condition", "Consent", "Contract", "Coverage", "CoverageEligibilityRequest", "CoverageEligibilityResponse", "DetectedIssue", "Device", "DeviceRequest", "DeviceUseStatement", "DiagnosticReport", "DocumentManifest", "DocumentReference", "Encounter", "EnrollmentRequest", "EpisodeOfCare", "ExplanationOfBenefit", "FamilyMemberHistory", "Flag", "Goal", "GuidanceResponse", "ImagingStudy", "Immunization", "ImmunizationEvaluation", "ImmunizationRecommendation", "Invoice", "List", "MeasureReport", "Media", "MedicationAdministration", "MedicationDispense", "MedicationRequest", "MedicationStatement", "MolecularSequence", "NutritionOrder", "Observation", "Person", "Procedure", "Provenance", "QuestionnaireResponse", "RelatedPerson", "RequestGroup", "ResearchSubject", "RiskAssessment", "ServiceRequest", "Specimen"];
2
+ export declare const resourcesSearchableBySubject: readonly ["AdverseEvent", "Task"];
3
+ export declare const generalResources: readonly ["Practitioner"];
4
+ export declare const resourceTypeForConsolidation: readonly ["Account", "AllergyIntolerance", "Appointment", "AppointmentResponse", "AuditEvent", "Basic", "BodyStructure", "CarePlan", "CareTeam", "ChargeItem", "Claim", "ClaimResponse", "ClinicalImpression", "Communication", "CommunicationRequest", "Composition", "Condition", "Consent", "Contract", "Coverage", "CoverageEligibilityRequest", "CoverageEligibilityResponse", "DetectedIssue", "Device", "DeviceRequest", "DeviceUseStatement", "DiagnosticReport", "DocumentManifest", "DocumentReference", "Encounter", "EnrollmentRequest", "EpisodeOfCare", "ExplanationOfBenefit", "FamilyMemberHistory", "Flag", "Goal", "GuidanceResponse", "ImagingStudy", "Immunization", "ImmunizationEvaluation", "ImmunizationRecommendation", "Invoice", "List", "MeasureReport", "Media", "MedicationAdministration", "MedicationDispense", "MedicationRequest", "MedicationStatement", "MolecularSequence", "NutritionOrder", "Observation", "Person", "Procedure", "Provenance", "QuestionnaireResponse", "RelatedPerson", "RequestGroup", "ResearchSubject", "RiskAssessment", "ServiceRequest", "Specimen", "AdverseEvent", "Task", "Practitioner"];
5
+ export type ResourceTypeForConsolidation = (typeof resourceTypeForConsolidation)[number];
6
+ //# sourceMappingURL=resources.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resources.d.ts","sourceRoot":"","sources":["../../../src/medical/fhir/resources.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,4BAA4B,qjCA+D/B,CAAC;AAEX,eAAO,MAAM,4BAA4B,mCAAoC,CAAC;AAE9E,eAAO,MAAM,gBAAgB,2BAA4B,CAAC;AAE1D,eAAO,MAAM,4BAA4B,6lCAI/B,CAAC;AAEX,MAAM,MAAM,4BAA4B,GAAG,CAAC,OAAO,4BAA4B,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resourceTypeForConsolidation = exports.generalResources = exports.resourcesSearchableBySubject = exports.resourcesSearchableByPatient = void 0;
4
+ exports.resourcesSearchableByPatient = [
5
+ "Account",
6
+ "AllergyIntolerance",
7
+ "Appointment",
8
+ "AppointmentResponse",
9
+ "AuditEvent",
10
+ "Basic",
11
+ "BodyStructure",
12
+ "CarePlan",
13
+ "CareTeam",
14
+ "ChargeItem",
15
+ "Claim",
16
+ "ClaimResponse",
17
+ "ClinicalImpression",
18
+ "Communication",
19
+ "CommunicationRequest",
20
+ "Composition",
21
+ "Condition",
22
+ "Consent",
23
+ "Contract",
24
+ "Coverage",
25
+ "CoverageEligibilityRequest",
26
+ "CoverageEligibilityResponse",
27
+ "DetectedIssue",
28
+ "Device",
29
+ "DeviceRequest",
30
+ "DeviceUseStatement",
31
+ "DiagnosticReport",
32
+ "DocumentManifest",
33
+ "DocumentReference",
34
+ "Encounter",
35
+ "EnrollmentRequest",
36
+ "EpisodeOfCare",
37
+ "ExplanationOfBenefit",
38
+ "FamilyMemberHistory",
39
+ "Flag",
40
+ "Goal",
41
+ "GuidanceResponse",
42
+ "ImagingStudy",
43
+ "Immunization",
44
+ "ImmunizationEvaluation",
45
+ "ImmunizationRecommendation",
46
+ "Invoice",
47
+ "List",
48
+ "MeasureReport",
49
+ "Media",
50
+ "MedicationAdministration",
51
+ "MedicationDispense",
52
+ "MedicationRequest",
53
+ "MedicationStatement",
54
+ "MolecularSequence",
55
+ "NutritionOrder",
56
+ "Observation",
57
+ "Person",
58
+ "Procedure",
59
+ "Provenance",
60
+ "QuestionnaireResponse",
61
+ "RelatedPerson",
62
+ "RequestGroup",
63
+ "ResearchSubject",
64
+ "RiskAssessment",
65
+ "ServiceRequest",
66
+ "Specimen",
67
+ ];
68
+ exports.resourcesSearchableBySubject = ["AdverseEvent", "Task"];
69
+ exports.generalResources = ["Practitioner"];
70
+ exports.resourceTypeForConsolidation = [
71
+ ...exports.resourcesSearchableByPatient,
72
+ ...exports.resourcesSearchableBySubject,
73
+ ...exports.generalResources,
74
+ ];
75
+ //# sourceMappingURL=resources.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resources.js","sourceRoot":"","sources":["../../../src/medical/fhir/resources.ts"],"names":[],"mappings":";;;AAAa,QAAA,4BAA4B,GAAG;IAC1C,SAAS;IACT,oBAAoB;IACpB,aAAa;IACb,qBAAqB;IACrB,YAAY;IACZ,OAAO;IACP,eAAe;IACf,UAAU;IACV,UAAU;IACV,YAAY;IACZ,OAAO;IACP,eAAe;IACf,oBAAoB;IACpB,eAAe;IACf,sBAAsB;IACtB,aAAa;IACb,WAAW;IACX,SAAS;IACT,UAAU;IACV,UAAU;IACV,4BAA4B;IAC5B,6BAA6B;IAC7B,eAAe;IACf,QAAQ;IACR,eAAe;IACf,oBAAoB;IACpB,kBAAkB;IAClB,kBAAkB;IAClB,mBAAmB;IACnB,WAAW;IACX,mBAAmB;IACnB,eAAe;IACf,sBAAsB;IACtB,qBAAqB;IACrB,MAAM;IACN,MAAM;IACN,kBAAkB;IAClB,cAAc;IACd,cAAc;IACd,wBAAwB;IACxB,4BAA4B;IAC5B,SAAS;IACT,MAAM;IACN,eAAe;IACf,OAAO;IACP,0BAA0B;IAC1B,oBAAoB;IACpB,mBAAmB;IACnB,qBAAqB;IACrB,mBAAmB;IACnB,gBAAgB;IAChB,aAAa;IACb,QAAQ;IACR,WAAW;IACX,YAAY;IACZ,uBAAuB;IACvB,eAAe;IACf,cAAc;IACd,iBAAiB;IACjB,gBAAgB;IAChB,gBAAgB;IAChB,UAAU;CACF,CAAC;AAEE,QAAA,4BAA4B,GAAG,CAAC,cAAc,EAAE,MAAM,CAAU,CAAC;AAEjE,QAAA,gBAAgB,GAAG,CAAC,cAAc,CAAU,CAAC;AAE7C,QAAA,4BAA4B,GAAG;IAC1C,GAAG,oCAA4B;IAC/B,GAAG,oCAA4B;IAC/B,GAAG,wBAAgB;CACX,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metriport/shared",
3
- "version": "0.12.1-alpha.0",
3
+ "version": "0.12.2",
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/",
@@ -65,5 +65,5 @@
65
65
  "devDependencies": {
66
66
  "@faker-js/faker": "^8.0.2"
67
67
  },
68
- "gitHead": "9fefc5d8fb60cdf33817595f05f813c914f208a7"
68
+ "gitHead": "ce284ae399d29eeaa9b4c6318d56b483783affed"
69
69
  }