@metriport/api-sdk 7.1.2 → 7.1.3-alpha.10

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.
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod";
2
- import { Bundle, Resource } from "@medplum/fhirtypes";
3
2
  export declare const consolidatedFilterSchema: z.ZodObject<{
4
3
  resources: z.ZodString;
5
4
  dateFrom: z.ZodOptional<z.ZodDate>;
@@ -54,16 +53,4 @@ export declare const resourcesSearchableBySubject: readonly ["AdverseEvent", "Ta
54
53
  export type ResourceSearchableBySubject = (typeof resourcesSearchableBySubject)[number];
55
54
  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"];
56
55
  export type ResourceTypeForConsolidation = (typeof resourceTypeForConsolidation)[number];
57
- export type FhirToMedicalRecordPayload = {
58
- bundle: Bundle<Resource>;
59
- patientId: string;
60
- firstName: string;
61
- cxId: string;
62
- resources?: ResourceTypeForConsolidation[];
63
- dateFrom?: string;
64
- dateTo?: string;
65
- conversionType: ConsolidationConversionType;
66
- };
67
- export declare const consolidationConversionTypeSchema: z.ZodEnum<["html", "pdf", "xml"]>;
68
- export type ConsolidationConversionType = z.infer<typeof consolidationConversionTypeSchema>;
69
56
  //# sourceMappingURL=fhir.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fhir.d.ts","sourceRoot":"","sources":["../../../src/medical/models/fhir.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEtD,eAAO,MAAM,wBAAwB;;;;;;;;;;;;EAInC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIlC,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAEhF,eAAO,MAAM,4BAA4B,qjCA+D/B,CAAC;AACX,MAAM,MAAM,2BAA2B,GAAG,CAAC,OAAO,4BAA4B,CAAC,CAAC,MAAM,CAAC,CAAC;AAExF,eAAO,MAAM,4BAA4B,mCAAoC,CAAC;AAC9E,MAAM,MAAM,2BAA2B,GAAG,CAAC,OAAO,4BAA4B,CAAC,CAAC,MAAM,CAAC,CAAC;AAExF,eAAO,MAAM,4BAA4B,6kCAG/B,CAAC;AAEX,MAAM,MAAM,4BAA4B,GAAG,CAAC,OAAO,4BAA4B,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzF,MAAM,MAAM,0BAA0B,GAAG;IACvC,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,4BAA4B,EAAE,CAAC;IAC3C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,2BAA2B,CAAC;CAC7C,CAAC;AAEF,eAAO,MAAM,iCAAiC,mCAAiC,CAAC;AAEhF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC"}
1
+ {"version":3,"file":"fhir.d.ts","sourceRoot":"","sources":["../../../src/medical/models/fhir.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,wBAAwB;;;;;;;;;;;;EAInC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIlC,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAEhF,eAAO,MAAM,4BAA4B,qjCA+D/B,CAAC;AACX,MAAM,MAAM,2BAA2B,GAAG,CAAC,OAAO,4BAA4B,CAAC,CAAC,MAAM,CAAC,CAAC;AAExF,eAAO,MAAM,4BAA4B,mCAAoC,CAAC;AAC9E,MAAM,MAAM,2BAA2B,GAAG,CAAC,OAAO,4BAA4B,CAAC,CAAC,MAAM,CAAC,CAAC;AAExF,eAAO,MAAM,4BAA4B,6kCAG/B,CAAC;AAEX,MAAM,MAAM,4BAA4B,GAAG,CAAC,OAAO,4BAA4B,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.consolidationConversionTypeSchema = exports.resourceTypeForConsolidation = exports.resourcesSearchableBySubject = exports.resourcesSearchableByPatient = exports.consolidatedCountSchema = exports.consolidatedFilterSchema = void 0;
3
+ exports.resourceTypeForConsolidation = exports.resourcesSearchableBySubject = exports.resourcesSearchableByPatient = exports.consolidatedCountSchema = exports.consolidatedFilterSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.consolidatedFilterSchema = zod_1.z.object({
6
6
  resources: zod_1.z.string(),
@@ -81,5 +81,4 @@ exports.resourceTypeForConsolidation = [
81
81
  ...exports.resourcesSearchableByPatient,
82
82
  ...exports.resourcesSearchableBySubject,
83
83
  ];
84
- exports.consolidationConversionTypeSchema = zod_1.z.enum(["html", "pdf", "xml"]);
85
84
  //# sourceMappingURL=fhir.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"fhir.js","sourceRoot":"","sources":["../../../src/medical/models/fhir.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAGX,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,QAAQ,EAAE,OAAC,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IAC7B,MAAM,EAAE,OAAC,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;CAC5B,CAAC,CAAC;AAGU,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,SAAS,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;IAC/B,MAAM,EAAE,gCAAwB;CACjC,CAAC,CAAC;AAIU,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;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jB,SAAS,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;IAC/B,MAAM,EAAE,gCAAwB;CACjC,CAAC,CAAC;AAIU,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;AAGE,QAAA,4BAA4B,GAAG,CAAC,cAAc,EAAE,MAAM,CAAU,CAAC;AAGjE,QAAA,4BAA4B,GAAG;IAC1C,GAAG,oCAA4B;IAC/B,GAAG,oCAA4B;CACvB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metriport/api-sdk",
3
- "version": "7.1.2",
3
+ "version": "7.1.3-alpha.10",
4
4
  "description": "Metriport helps you access and manage health and medical data, through a single open source API.",
5
5
  "author": "Metriport Inc. <contact@metriport.com>",
6
6
  "homepage": "https://metriport.com/",
@@ -74,5 +74,5 @@
74
74
  "ts-jest": "29.1.1",
75
75
  "typescript": "^4.9.5"
76
76
  },
77
- "gitHead": "2adfe6bd428975518490665374fab8b4a7a098ef"
77
+ "gitHead": "17d6e2e955596ab62721b7d951d226a0d9b2387b"
78
78
  }