@ovok/core 0.2.47
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.
- package/README.md +40 -0
- package/dist/client/ai-fhir/methods/AIFhirResources.d.ts +14 -0
- package/dist/client/ai-fhir/methods/AIFhirResources.js +16 -0
- package/dist/client/ai-fhir/methods/index.d.ts +1 -0
- package/dist/client/ai-fhir/methods/index.js +17 -0
- package/dist/client/ai-fhir/types/AIFhirPlan.d.ts +6 -0
- package/dist/client/ai-fhir/types/AIFhirPlan.js +2 -0
- package/dist/client/ai-fhir/types/AIFhirPlanRequest.d.ts +5 -0
- package/dist/client/ai-fhir/types/AIFhirPlanRequest.js +2 -0
- package/dist/client/ai-fhir/types/AIFhirRequest.d.ts +7 -0
- package/dist/client/ai-fhir/types/AIFhirRequest.js +2 -0
- package/dist/client/ai-fhir/types/AIFhirResponse.d.ts +18 -0
- package/dist/client/ai-fhir/types/AIFhirResponse.js +2 -0
- package/dist/client/ai-fhir/types/index.d.ts +4 -0
- package/dist/client/ai-fhir/types/index.js +20 -0
- package/dist/client/auth/methods/appleLogin.d.ts +4 -0
- package/dist/client/auth/methods/appleLogin.js +11 -0
- package/dist/client/auth/methods/changePassword.d.ts +4 -0
- package/dist/client/auth/methods/changePassword.js +6 -0
- package/dist/client/auth/methods/googleLogin.d.ts +4 -0
- package/dist/client/auth/methods/googleLogin.js +11 -0
- package/dist/client/auth/methods/index.d.ts +8 -0
- package/dist/client/auth/methods/index.js +24 -0
- package/dist/client/auth/methods/login.d.ts +4 -0
- package/dist/client/auth/methods/login.js +38 -0
- package/dist/client/auth/methods/refetchProfile.d.ts +2 -0
- package/dist/client/auth/methods/refetchProfile.js +9 -0
- package/dist/client/auth/methods/register.d.ts +4 -0
- package/dist/client/auth/methods/register.js +15 -0
- package/dist/client/auth/methods/requestDeleteUser.d.ts +11 -0
- package/dist/client/auth/methods/requestDeleteUser.js +13 -0
- package/dist/client/auth/methods/resetPassword.d.ts +13 -0
- package/dist/client/auth/methods/resetPassword.js +19 -0
- package/dist/client/auth/types/AppleLoginBody.d.ts +68 -0
- package/dist/client/auth/types/AppleLoginBody.js +17 -0
- package/dist/client/auth/types/AuthResponse.d.ts +15 -0
- package/dist/client/auth/types/AuthResponse.js +2 -0
- package/dist/client/auth/types/ChangePasswordBody.d.ts +5 -0
- package/dist/client/auth/types/ChangePasswordBody.js +2 -0
- package/dist/client/auth/types/GoogleLoginBody.d.ts +26 -0
- package/dist/client/auth/types/GoogleLoginBody.js +2 -0
- package/dist/client/auth/types/LoginBody.d.ts +26 -0
- package/dist/client/auth/types/LoginBody.js +2 -0
- package/dist/client/auth/types/RegisterBody.d.ts +8 -0
- package/dist/client/auth/types/RegisterBody.js +2 -0
- package/dist/client/auth/types/RequestDeleteUserBody.d.ts +11 -0
- package/dist/client/auth/types/RequestDeleteUserBody.js +2 -0
- package/dist/client/auth/types/RequestDeleteUserResponse.d.ts +12 -0
- package/dist/client/auth/types/RequestDeleteUserResponse.js +2 -0
- package/dist/client/auth/types/ResetPasswordBody.d.ts +14 -0
- package/dist/client/auth/types/ResetPasswordBody.js +2 -0
- package/dist/client/auth/types/StartLoginResponse.d.ts +34 -0
- package/dist/client/auth/types/StartLoginResponse.js +2 -0
- package/dist/client/bot/methods/executeBot.d.ts +10 -0
- package/dist/client/bot/methods/executeBot.js +14 -0
- package/dist/client/bot/methods/index.d.ts +1 -0
- package/dist/client/bot/methods/index.js +17 -0
- package/dist/client/chat/ai/methods/createAiSession.d.ts +4 -0
- package/dist/client/chat/ai/methods/createAiSession.js +17 -0
- package/dist/client/chat/ai/methods/index.d.ts +1 -0
- package/dist/client/chat/ai/methods/index.js +17 -0
- package/dist/client/chat/ai/types/CreateAiSessionProps.d.ts +51 -0
- package/dist/client/chat/ai/types/CreateAiSessionProps.js +2 -0
- package/dist/client/chat/ai/types/CreateAiSessionResponse.d.ts +21 -0
- package/dist/client/chat/ai/types/CreateAiSessionResponse.js +2 -0
- package/dist/client/chat/ai/types/SessionMessagesResponse.d.ts +9 -0
- package/dist/client/chat/ai/types/SessionMessagesResponse.js +2 -0
- package/dist/client/observation/methods/generateObservationBodiesByMeasurement.d.ts +4 -0
- package/dist/client/observation/methods/generateObservationBodiesByMeasurement.js +40 -0
- package/dist/client/observation/methods/getLatestObservationsByCodes.d.ts +4 -0
- package/dist/client/observation/methods/getLatestObservationsByCodes.js +19 -0
- package/dist/client/observation/methods/index.d.ts +2 -0
- package/dist/client/observation/methods/index.js +18 -0
- package/dist/client/observation/services/base-observation-service.d.ts +22 -0
- package/dist/client/observation/services/base-observation-service.js +70 -0
- package/dist/client/observation/services/blood-glucose.d.ts +12 -0
- package/dist/client/observation/services/blood-glucose.js +36 -0
- package/dist/client/observation/services/blood-oxygen.d.ts +14 -0
- package/dist/client/observation/services/blood-oxygen.js +57 -0
- package/dist/client/observation/services/blood-pressure.d.ts +15 -0
- package/dist/client/observation/services/blood-pressure.js +72 -0
- package/dist/client/observation/services/body-temperature.d.ts +13 -0
- package/dist/client/observation/services/body-temperature.js +36 -0
- package/dist/client/observation/services/body-weight.d.ts +13 -0
- package/dist/client/observation/services/body-weight.js +36 -0
- package/dist/client/observation/services/creator.d.ts +10 -0
- package/dist/client/observation/services/creator.js +54 -0
- package/dist/client/observation/services/ecg.d.ts +16 -0
- package/dist/client/observation/services/ecg.js +110 -0
- package/dist/client/observation/services/heart-rate-variability.d.ts +13 -0
- package/dist/client/observation/services/heart-rate-variability.js +38 -0
- package/dist/client/observation/services/heart-rate.d.ts +13 -0
- package/dist/client/observation/services/heart-rate.js +39 -0
- package/dist/client/observation/services/index.d.ts +1 -0
- package/dist/client/observation/services/index.js +17 -0
- package/dist/client/observation/services/respiratory-rate.d.ts +13 -0
- package/dist/client/observation/services/respiratory-rate.js +38 -0
- package/dist/client/observation/services/resting-heart-rate.d.ts +13 -0
- package/dist/client/observation/services/resting-heart-rate.js +38 -0
- package/dist/client/observation/services/step-count.d.ts +15 -0
- package/dist/client/observation/services/step-count.js +55 -0
- package/dist/client/observation/services/uric-acid-service.d.ts +21 -0
- package/dist/client/observation/services/uric-acid-service.js +120 -0
- package/dist/client/observation/services/vo2-max.d.ts +13 -0
- package/dist/client/observation/services/vo2-max.js +38 -0
- package/dist/client/observation/services/walking-heart-rate-average.d.ts +12 -0
- package/dist/client/observation/services/walking-heart-rate-average.js +38 -0
- package/dist/client/observation/types/GetLatestObservationsByCodeParams.d.ts +9 -0
- package/dist/client/observation/types/GetLatestObservationsByCodeParams.js +2 -0
- package/dist/client/observation/types/IObservationService.d.ts +15 -0
- package/dist/client/observation/types/IObservationService.js +2 -0
- package/dist/client/observation/types/MeasurementTypeKey.d.ts +20 -0
- package/dist/client/observation/types/MeasurementTypeKey.js +24 -0
- package/dist/client/observation/types/ObservationCode.d.ts +37 -0
- package/dist/client/observation/types/ObservationCode.js +41 -0
- package/dist/client/observation/types/generate-measurement/HealthConnectTypes.d.ts +641 -0
- package/dist/client/observation/types/generate-measurement/HealthConnectTypes.js +45 -0
- package/dist/client/observation/types/generate-measurement/Sample.d.ts +32 -0
- package/dist/client/observation/types/generate-measurement/Sample.js +2 -0
- package/dist/client/observation/types/generate-observation-body/BodyWeightValueParams.d.ts +1 -0
- package/dist/client/observation/types/generate-observation-body/BodyWeightValueParams.js +2 -0
- package/dist/client/observation/types/generate-observation-body/GenerateObservationBodyParams.d.ts +7 -0
- package/dist/client/observation/types/generate-observation-body/GenerateObservationBodyParams.js +2 -0
- package/dist/client/observation/types/generate-observation-body/ObservationValue.d.ts +14 -0
- package/dist/client/observation/types/generate-observation-body/ObservationValue.js +2 -0
- package/dist/client/observation/types/measurement/BloodGlucoseMeasurement.d.ts +6 -0
- package/dist/client/observation/types/measurement/BloodGlucoseMeasurement.js +2 -0
- package/dist/client/observation/types/measurement/BloodPressureMeasurement.d.ts +10 -0
- package/dist/client/observation/types/measurement/BloodPressureMeasurement.js +2 -0
- package/dist/client/observation/types/measurement/BloodPressureStates.d.ts +7 -0
- package/dist/client/observation/types/measurement/BloodPressureStates.js +11 -0
- package/dist/client/observation/types/measurement/BodyTemperatureMeasurement.d.ts +6 -0
- package/dist/client/observation/types/measurement/BodyTemperatureMeasurement.js +2 -0
- package/dist/client/observation/types/measurement/BodyWeightMeasurmement.d.ts +7 -0
- package/dist/client/observation/types/measurement/BodyWeightMeasurmement.js +2 -0
- package/dist/client/observation/types/measurement/EcgDiagnosticFlag.d.ts +15 -0
- package/dist/client/observation/types/measurement/EcgDiagnosticFlag.js +19 -0
- package/dist/client/observation/types/measurement/EcgMeasurement.d.ts +13 -0
- package/dist/client/observation/types/measurement/EcgMeasurement.js +2 -0
- package/dist/client/observation/types/measurement/HeartRateMeasurement.d.ts +6 -0
- package/dist/client/observation/types/measurement/HeartRateMeasurement.js +2 -0
- package/dist/client/observation/types/measurement/HeartRateVariabilityMeasurement.d.ts +6 -0
- package/dist/client/observation/types/measurement/HeartRateVariabilityMeasurement.js +2 -0
- package/dist/client/observation/types/measurement/Measurement.d.ts +4 -0
- package/dist/client/observation/types/measurement/Measurement.js +2 -0
- package/dist/client/observation/types/measurement/MeasurementDevice.d.ts +7 -0
- package/dist/client/observation/types/measurement/MeasurementDevice.js +2 -0
- package/dist/client/observation/types/measurement/PulseOximeterMeasurement.d.ts +9 -0
- package/dist/client/observation/types/measurement/PulseOximeterMeasurement.js +2 -0
- package/dist/client/observation/types/measurement/RespiratoryRateMeasurement.d.ts +6 -0
- package/dist/client/observation/types/measurement/RespiratoryRateMeasurement.js +2 -0
- package/dist/client/observation/types/measurement/RestingHeartRateMeasurement.d.ts +6 -0
- package/dist/client/observation/types/measurement/RestingHeartRateMeasurement.js +2 -0
- package/dist/client/observation/types/measurement/SpirometryMeasurement.d.ts +21 -0
- package/dist/client/observation/types/measurement/SpirometryMeasurement.js +2 -0
- package/dist/client/observation/types/measurement/StepCountMeasurement.d.ts +8 -0
- package/dist/client/observation/types/measurement/StepCountMeasurement.js +2 -0
- package/dist/client/observation/types/measurement/UrineAnalyzeMeasurement.d.ts +23 -0
- package/dist/client/observation/types/measurement/UrineAnalyzeMeasurement.js +2 -0
- package/dist/client/observation/types/measurement/Vo2MaxMeasurement.d.ts +6 -0
- package/dist/client/observation/types/measurement/Vo2MaxMeasurement.js +2 -0
- package/dist/client/observation/types/measurement/WalkingHeartRateAverageMeasurement.d.ts +6 -0
- package/dist/client/observation/types/measurement/WalkingHeartRateAverageMeasurement.js +2 -0
- package/dist/client/observation/types/measurement/index.d.ts +11 -0
- package/dist/client/observation/types/measurement/index.js +27 -0
- package/dist/client/observation/types/service/ObservationMetadata.d.ts +8 -0
- package/dist/client/observation/types/service/ObservationMetadata.js +2 -0
- package/dist/client/observation/utils/getDeviceObject.d.ts +3 -0
- package/dist/client/observation/utils/getDeviceObject.js +34 -0
- package/dist/client/observation/utils/getObservationValueDisplay.d.ts +15 -0
- package/dist/client/observation/utils/getObservationValueDisplay.js +25 -0
- package/dist/client/observation/utils/index.d.ts +1 -0
- package/dist/client/observation/utils/index.js +17 -0
- package/dist/client/ovok-client.d.ts +35 -0
- package/dist/client/ovok-client.js +85 -0
- package/dist/client/questionnaire-response/methods/createQuestionnaireResponseWithObservations.d.ts +3 -0
- package/dist/client/questionnaire-response/methods/createQuestionnaireResponseWithObservations.js +28 -0
- package/dist/client/questionnaire-response/methods/index.d.ts +1 -0
- package/dist/client/questionnaire-response/methods/index.js +17 -0
- package/dist/hooks/index.d.ts +7 -0
- package/dist/hooks/index.js +58 -0
- package/dist/index.d.ts +666 -0
- package/dist/index.js +49 -0
- package/dist/types/ValidationError.d.ts +6 -0
- package/dist/types/ValidationError.js +2 -0
- package/dist/types/index.d.ts +17 -0
- package/dist/types/index.js +38 -0
- package/dist/utils/auth/exchange-code.d.ts +14 -0
- package/dist/utils/auth/exchange-code.js +17 -0
- package/dist/utils/auth/generate-code-challenge-and-verifier.d.ts +6 -0
- package/dist/utils/auth/generate-code-challenge-and-verifier.js +45 -0
- package/dist/utils/auth/handle-tenant-code.d.ts +6 -0
- package/dist/utils/auth/handle-tenant-code.js +21 -0
- package/dist/utils/auth/sha256.d.ts +8 -0
- package/dist/utils/auth/sha256.js +300 -0
- package/dist/utils/auth/start-login.d.ts +10 -0
- package/dist/utils/auth/start-login.js +19 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.js +18 -0
- package/dist/utils/patch/getPatchOperationType.d.ts +2 -0
- package/dist/utils/patch/getPatchOperationType.js +16 -0
- package/package.json +83 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,666 @@
|
|
|
1
|
+
import * as MedplumCore from "@medplum/core";
|
|
2
|
+
export * from "./types";
|
|
3
|
+
declare const Medplum: {
|
|
4
|
+
accepted(location: string): import("@medplum/fhirtypes").OperationOutcome;
|
|
5
|
+
addProfileToResource<T extends import("@medplum/fhirtypes").Resource = import("@medplum/fhirtypes").Resource>(resource: T, profileUrl: string): T;
|
|
6
|
+
append<T>(array: T[] | undefined, value: T): T[];
|
|
7
|
+
applyDefaultValuesToElement(existingValue: object, elements: Record<string, MedplumCore.InternalSchemaElement>, key?: string): object;
|
|
8
|
+
applyDefaultValuesToResource(resource: import("@medplum/fhirtypes").Resource, schema: MedplumCore.InternalTypeSchema): import("@medplum/fhirtypes").Resource;
|
|
9
|
+
applyFixedOrPatternValue(inputValue: any, key: string, element: MedplumCore.InternalSchemaElement, elements: Record<string, MedplumCore.InternalSchemaElement>): any;
|
|
10
|
+
arrayBufferToBase64(arrayBuffer: ArrayBufferLike | ArrayBufferView): string;
|
|
11
|
+
arrayBufferToHex(arrayBuffer: ArrayBufferLike | ArrayBufferView): string;
|
|
12
|
+
arrayify<T>(value: T | T[] | undefined): T[] | undefined;
|
|
13
|
+
assert(condition: unknown, msg?: string): asserts condition;
|
|
14
|
+
assertContextVersionOptional(event: string): asserts event is MedplumCore.FhircastEventVersionOptional;
|
|
15
|
+
assertOk<T>(outcome: import("@medplum/fhirtypes").OperationOutcome, resource: T | undefined): asserts resource is T;
|
|
16
|
+
assertReleaseManifest(candidate: unknown): asserts candidate is MedplumCore.ReleaseManifest;
|
|
17
|
+
badRequest(details: string, expression?: string): import("@medplum/fhirtypes").OperationOutcome;
|
|
18
|
+
booleanToTypedValue(value: boolean): [MedplumCore.TypedValue];
|
|
19
|
+
buildElementsContext({ parentContext, path, elements, profileUrl, debugMode, accessPolicyResource, }: {
|
|
20
|
+
parentContext: MedplumCore.ElementsContextType | undefined;
|
|
21
|
+
path: string;
|
|
22
|
+
elements: Record<string, MedplumCore.InternalSchemaElement>;
|
|
23
|
+
profileUrl?: string;
|
|
24
|
+
debugMode?: boolean;
|
|
25
|
+
accessPolicyResource?: import("@medplum/fhirtypes").AccessPolicyResource;
|
|
26
|
+
}): MedplumCore.ElementsContextType | undefined;
|
|
27
|
+
buildTypeName(components: string[]): string;
|
|
28
|
+
calculateAge(birthDateStr: string, endDateStr?: string): {
|
|
29
|
+
years: number;
|
|
30
|
+
months: number;
|
|
31
|
+
days: number;
|
|
32
|
+
};
|
|
33
|
+
calculateAgeString(birthDateStr: string, endDateStr?: string): string | undefined;
|
|
34
|
+
canReadResourceType(accessPolicy: import("@medplum/fhirtypes").AccessPolicy, resourceType: import("@medplum/fhirtypes").ResourceType): boolean;
|
|
35
|
+
canWriteResource(accessPolicy: import("@medplum/fhirtypes").AccessPolicy, resource: import("@medplum/fhirtypes").Resource): boolean;
|
|
36
|
+
canWriteResourceType(accessPolicy: import("@medplum/fhirtypes").AccessPolicy, resourceType: import("@medplum/fhirtypes").ResourceType): boolean;
|
|
37
|
+
capitalize(word: string): string;
|
|
38
|
+
checkForNull(value: unknown, path: string, issues: import("@medplum/fhirtypes").OperationOutcomeIssue[]): void;
|
|
39
|
+
checkIfValidMedplumVersion(appName: string, version: string): Promise<boolean>;
|
|
40
|
+
clearReleaseCache(): void;
|
|
41
|
+
compressElement(element: MedplumCore.InternalSchemaElement): Partial<MedplumCore.InternalSchemaElement>;
|
|
42
|
+
concatUrls(baseUrl: string | URL, path: string): string;
|
|
43
|
+
conceptMapTranslate(map: import("@medplum/fhirtypes").ConceptMap, params: MedplumCore.ConceptMapTranslateParameters): MedplumCore.ConceptMapTranslateOutput;
|
|
44
|
+
conflict(details: string, code?: string): import("@medplum/fhirtypes").OperationOutcome;
|
|
45
|
+
convertContainedResourcesToBundle(resource: import("@medplum/fhirtypes").Resource & {
|
|
46
|
+
contained?: import("@medplum/fhirtypes").Resource[];
|
|
47
|
+
}): import("@medplum/fhirtypes").Bundle;
|
|
48
|
+
convertToTransactionBundle(bundle: import("@medplum/fhirtypes").Bundle): import("@medplum/fhirtypes").Bundle;
|
|
49
|
+
crawlResource(resource: import("@medplum/fhirtypes").Resource, visitor: MedplumCore.CrawlerVisitor, schema?: MedplumCore.InternalTypeSchema, initialPath?: string): void;
|
|
50
|
+
crawlResource(resource: import("@medplum/fhirtypes").Resource, visitor: MedplumCore.AsyncCrawlerVisitor, options: MedplumCore.CrawlerOptions): Promise<void>;
|
|
51
|
+
crawlResource(resource: import("@medplum/fhirtypes").Resource, visitor: MedplumCore.CrawlerVisitor, options?: MedplumCore.CrawlerOptions): void;
|
|
52
|
+
crawlResourceAsync(resource: import("@medplum/fhirtypes").Resource, visitor: MedplumCore.AsyncCrawlerVisitor, options: MedplumCore.CrawlerOptions): Promise<void>;
|
|
53
|
+
crawlTypedValue(typedValue: MedplumCore.TypedValue, visitor: MedplumCore.CrawlerVisitor, options?: MedplumCore.CrawlerOptions): void;
|
|
54
|
+
crawlTypedValueAsync(typedValue: MedplumCore.TypedValue, visitor: MedplumCore.AsyncCrawlerVisitor, options?: MedplumCore.CrawlerOptions): Promise<void>;
|
|
55
|
+
createConstraintIssue(expression: string, constraint: MedplumCore.Constraint): import("@medplum/fhirtypes").OperationOutcomeIssue;
|
|
56
|
+
createFhircastMessagePayload<EventName extends MedplumCore.FhircastEventVersionOptional>(topic: string, event: EventName, context: MedplumCore.FhircastEventContext<EventName> | MedplumCore.FhircastEventContext<EventName>[], versionId?: never): MedplumCore.FhircastMessagePayload<EventName>;
|
|
57
|
+
createFhircastMessagePayload<EventName extends MedplumCore.FhircastEventVersionRequired>(topic: string, event: EventName, context: MedplumCore.FhircastEventContext<EventName> | MedplumCore.FhircastEventContext<EventName>[], versionId: string): MedplumCore.FhircastMessagePayload<EventName>;
|
|
58
|
+
createOperationOutcomeIssue(severity: MedplumCore.IssueSeverity, code: MedplumCore.IssueType, message: string, path: string, data?: Record<string, any>): import("@medplum/fhirtypes").OperationOutcomeIssue;
|
|
59
|
+
createProcessingIssue(expression: string, message: string, err: Error, data?: Record<string, any>): import("@medplum/fhirtypes").OperationOutcomeIssue;
|
|
60
|
+
createReference<T extends import("@medplum/fhirtypes").Resource>(resource: T): import("@medplum/fhirtypes").Reference<T> & {
|
|
61
|
+
reference: string;
|
|
62
|
+
};
|
|
63
|
+
createStructureIssue(expression: string, details: string): import("@medplum/fhirtypes").OperationOutcomeIssue;
|
|
64
|
+
decodeBase64(data: string): string;
|
|
65
|
+
deepClone<T>(input: T): T;
|
|
66
|
+
deepEquals(object1: unknown, object2: unknown, path?: string): boolean;
|
|
67
|
+
deepIncludes(value: any, pattern: any): boolean;
|
|
68
|
+
encodeBase64(data: string): string;
|
|
69
|
+
encryptSHA256(str: string): Promise<ArrayBuffer>;
|
|
70
|
+
ensureNoLeadingSlash(url: string): string;
|
|
71
|
+
ensureTrailingSlash(url: string): string;
|
|
72
|
+
evalFhirPath(expression: string, input: unknown): unknown[];
|
|
73
|
+
evalFhirPathTyped(expression: string, input: MedplumCore.TypedValue[], variables?: Record<string, MedplumCore.TypedValue>): MedplumCore.TypedValue[];
|
|
74
|
+
evalSqlOnFhir(view: import("@medplum/fhirtypes").ViewDefinition, resources: import("@medplum/fhirtypes").Resource[]): MedplumCore.OutputRow[];
|
|
75
|
+
fetchLatestVersionString(appName: string): Promise<string>;
|
|
76
|
+
fetchVersionManifest(appName: string, version?: string, params?: Record<string, string>): Promise<MedplumCore.ReleaseManifest>;
|
|
77
|
+
fhirPathArrayEquals(x: MedplumCore.TypedValue[], y: MedplumCore.TypedValue[]): MedplumCore.TypedValue[];
|
|
78
|
+
fhirPathArrayEquivalent(x: MedplumCore.TypedValue[], y: MedplumCore.TypedValue[]): MedplumCore.TypedValue[];
|
|
79
|
+
fhirPathArrayNotEquals(x: MedplumCore.TypedValue[], y: MedplumCore.TypedValue[]): MedplumCore.TypedValue[];
|
|
80
|
+
fhirPathEquals(x: MedplumCore.TypedValue, y: MedplumCore.TypedValue): MedplumCore.TypedValue[];
|
|
81
|
+
fhirPathEquivalent(x: MedplumCore.TypedValue, y: MedplumCore.TypedValue): MedplumCore.TypedValue[];
|
|
82
|
+
fhirPathIs(typedValue: MedplumCore.TypedValue, desiredType: string): boolean;
|
|
83
|
+
fhirPathNot(input: MedplumCore.TypedValue[]): MedplumCore.TypedValue[];
|
|
84
|
+
findObservationInterval(definition: import("@medplum/fhirtypes").ObservationDefinition, patient: import("@medplum/fhirtypes").Patient, value: number, category?: "reference" | "critical" | "absolute"): import("@medplum/fhirtypes").ObservationDefinitionQualifiedInterval | undefined;
|
|
85
|
+
findObservationReferenceRange(definition: import("@medplum/fhirtypes").ObservationDefinition, patient: import("@medplum/fhirtypes").Patient, names: string[]): import("@medplum/fhirtypes").ObservationDefinitionQualifiedInterval | undefined;
|
|
86
|
+
findResourceByCode(resources: MedplumCore.ResourceWithCode[], code: import("@medplum/fhirtypes").CodeableConcept | string, system: string): MedplumCore.ResourceWithCode | undefined;
|
|
87
|
+
flatMapFilter<T, U>(arr: T[] | undefined, fn: (value: T, idx: number) => U | undefined): U[];
|
|
88
|
+
formatAddress(address: import("@medplum/fhirtypes").Address, options?: MedplumCore.AddressFormatOptions): string;
|
|
89
|
+
formatCodeableConcept(codeableConcept: import("@medplum/fhirtypes").CodeableConcept | undefined): string;
|
|
90
|
+
formatCoding(coding: import("@medplum/fhirtypes").Coding | undefined, includeCode?: boolean): string;
|
|
91
|
+
formatDate(date: string | undefined, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
|
|
92
|
+
formatDateTime(dateTime: string | undefined, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
|
|
93
|
+
formatFamilyName(name: import("@medplum/fhirtypes").HumanName): string;
|
|
94
|
+
formatGivenName(name: import("@medplum/fhirtypes").HumanName): string;
|
|
95
|
+
formatHl7DateTime(isoDate: Date | string): string;
|
|
96
|
+
formatHumanName(name: import("@medplum/fhirtypes").HumanName, options?: MedplumCore.HumanNameFormatOptions): string;
|
|
97
|
+
formatMoney(money: import("@medplum/fhirtypes").Money | undefined): string;
|
|
98
|
+
formatObservationValue(obs: import("@medplum/fhirtypes").Observation | import("@medplum/fhirtypes").ObservationComponent | undefined): string;
|
|
99
|
+
formatPeriod(period: import("@medplum/fhirtypes").Period | undefined, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
|
|
100
|
+
formatQuantity(quantity: import("@medplum/fhirtypes").Quantity | undefined, precision?: number): string;
|
|
101
|
+
formatRange(range: import("@medplum/fhirtypes").Range | undefined, precision?: number, exclusive?: boolean): string;
|
|
102
|
+
formatReferenceString(value: import("@medplum/fhirtypes").Reference | undefined): string;
|
|
103
|
+
formatSearchQuery(definition: MedplumCore.SearchRequest): string;
|
|
104
|
+
formatTime(time: string | undefined, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
|
|
105
|
+
formatTiming(timing: import("@medplum/fhirtypes").Timing | undefined): string;
|
|
106
|
+
generateId(): string;
|
|
107
|
+
getAllDataTypes(): MedplumCore.DataTypesMap;
|
|
108
|
+
getAllQuestionnaireAnswers(response: import("@medplum/fhirtypes").QuestionnaireResponse): Record<string, import("@medplum/fhirtypes").QuestionnaireResponseItemAnswer[]>;
|
|
109
|
+
getCodeBySystem(concept: import("@medplum/fhirtypes").CodeableConcept, system: string): string | undefined;
|
|
110
|
+
getDataType(type: string, profileUrl?: string): MedplumCore.InternalTypeSchema;
|
|
111
|
+
getDateProperty(date: string | undefined): Date | undefined;
|
|
112
|
+
getDefaultValuesForNewSliceEntry(key: string, slice: MedplumCore.SliceDefinition, slicing: MedplumCore.SlicingRules, schema: MedplumCore.InternalTypeSchema): import("@medplum/fhirtypes").Resource;
|
|
113
|
+
getDisplayString(resource: import("@medplum/fhirtypes").Resource): string;
|
|
114
|
+
getElementDefinition(typeName: string, propertyName: string, profileUrl?: string): MedplumCore.InternalSchemaElement | undefined;
|
|
115
|
+
getElementDefinitionFromElements(elements: MedplumCore.InternalTypeSchema["elements"], propertyName: string): MedplumCore.InternalSchemaElement | undefined;
|
|
116
|
+
getElementDefinitionTypeName(elementDefinition: import("@medplum/fhirtypes").ElementDefinition): string;
|
|
117
|
+
getExpressionForResourceType(resourceType: string, expression: string): string | undefined;
|
|
118
|
+
getExpressionsForResourceType(resourceType: string, expression: string): MedplumCore.Atom[];
|
|
119
|
+
getExtension(resource: any, ...urls: string[]): import("@medplum/fhirtypes").Extension | undefined;
|
|
120
|
+
getExtensionValue(resource: any, ...urls: string[]): import("@medplum/fhirtypes").ExtensionValue | undefined;
|
|
121
|
+
getIdentifier(resource: import("@medplum/fhirtypes").Resource, system: string): string | undefined;
|
|
122
|
+
getImageSrc(resource: import("@medplum/fhirtypes").Resource): string | undefined;
|
|
123
|
+
getNestedProperty(value: MedplumCore.TypedValueWithPath | undefined, key: string, options: {
|
|
124
|
+
profileUrl?: string;
|
|
125
|
+
withPath: true;
|
|
126
|
+
}): (MedplumCore.TypedValueWithPath | MedplumCore.TypedValueWithPath[])[];
|
|
127
|
+
getNestedProperty(value: MedplumCore.TypedValue | undefined, key: string, options?: {
|
|
128
|
+
profileUrl?: string;
|
|
129
|
+
withPath?: false;
|
|
130
|
+
}): (MedplumCore.TypedValue | MedplumCore.TypedValue[] | undefined)[];
|
|
131
|
+
getPathDifference(parentPath: string, path: string): string | undefined;
|
|
132
|
+
getPathDisplayName(path: string): string;
|
|
133
|
+
getPropertyDisplayName(propertyName: string): string;
|
|
134
|
+
getQueryString(query: MedplumCore.QueryTypes): string;
|
|
135
|
+
getQuestionnaireAnswers(response: import("@medplum/fhirtypes").QuestionnaireResponse): Record<string, import("@medplum/fhirtypes").QuestionnaireResponseItemAnswer>;
|
|
136
|
+
getRandomString(): string;
|
|
137
|
+
getReferenceString(input: import("@medplum/fhirtypes").Reference | import("@medplum/fhirtypes").Resource): string;
|
|
138
|
+
getResourceTypes(): import("@medplum/fhirtypes").ResourceType[];
|
|
139
|
+
getSearchParameter(resourceType: string, code: string): import("@medplum/fhirtypes").SearchParameter | undefined;
|
|
140
|
+
getSearchParameterDetails(resourceType: string, searchParam: import("@medplum/fhirtypes").SearchParameter): MedplumCore.SearchParameterDetails;
|
|
141
|
+
getSearchParameters(resourceType: string): Record<string, import("@medplum/fhirtypes").SearchParameter> | undefined;
|
|
142
|
+
getStatus(outcome: import("@medplum/fhirtypes").OperationOutcome): number;
|
|
143
|
+
getTypedPropertyValue(input: MedplumCore.TypedValue, path: string, options?: MedplumCore.GetTypedPropertyValueOptions): MedplumCore.TypedValue[] | MedplumCore.TypedValue | undefined;
|
|
144
|
+
getTypedPropertyValueWithoutSchema(typedValue: MedplumCore.TypedValue, path: string): MedplumCore.TypedValue[] | MedplumCore.TypedValue | undefined;
|
|
145
|
+
getTypedPropertyValueWithPath(input: MedplumCore.TypedValue | MedplumCore.TypedValueWithPath, path: string, options?: MedplumCore.GetTypedPropertyValueOptions): MedplumCore.TypedValueWithPath[] | MedplumCore.TypedValueWithPath;
|
|
146
|
+
getTypedPropertyValueWithSchema(typedValue: MedplumCore.TypedValue, path: string, element: MedplumCore.InternalSchemaElement): MedplumCore.TypedValue[] | MedplumCore.TypedValue | undefined;
|
|
147
|
+
getValueSliceName(value: any, slices: MedplumCore.SliceDefinitionWithTypes[], discriminators: MedplumCore.SliceDiscriminator[], profileUrl: string | undefined): string | undefined;
|
|
148
|
+
getWebSocketUrl(baseUrl: URL | string, path: string): string;
|
|
149
|
+
indexDefaultSearchParameters(bundle: import("@medplum/fhirtypes").StructureDefinition[] | import("@medplum/fhirtypes").Bundle): void;
|
|
150
|
+
indexSearchParameter(searchParam: import("@medplum/fhirtypes").SearchParameter): void;
|
|
151
|
+
indexSearchParameterBundle(bundle: import("@medplum/fhirtypes").Bundle<import("@medplum/fhirtypes").SearchParameter>): void;
|
|
152
|
+
indexStructureDefinitionBundle(bundle: import("@medplum/fhirtypes").StructureDefinition[] | import("@medplum/fhirtypes").Bundle): void;
|
|
153
|
+
inflateBaseSchema(base: MedplumCore.BaseSchema): MedplumCore.DataTypesMap;
|
|
154
|
+
inflateElement(path: string, partial: Partial<MedplumCore.InternalSchemaElement>): MedplumCore.InternalSchemaElement;
|
|
155
|
+
initFhirPathParserBuilder(): MedplumCore.ParserBuilder;
|
|
156
|
+
isAccepted(outcome: import("@medplum/fhirtypes").OperationOutcome): boolean;
|
|
157
|
+
isCodeableConcept(value: unknown): value is import("@medplum/fhirtypes").CodeableConcept & {
|
|
158
|
+
coding: import("@medplum/fhirtypes").Coding[];
|
|
159
|
+
};
|
|
160
|
+
isCoding(value: unknown): value is import("@medplum/fhirtypes").Coding & {
|
|
161
|
+
code: string;
|
|
162
|
+
};
|
|
163
|
+
isCompletedSubscriptionRequest(subscriptionRequest: MedplumCore.SubscriptionRequest | MedplumCore.PendingSubscriptionRequest): subscriptionRequest is MedplumCore.SubscriptionRequest;
|
|
164
|
+
isComplexTypeCode(code: string): boolean;
|
|
165
|
+
isConflict(outcome: import("@medplum/fhirtypes").OperationOutcome): boolean;
|
|
166
|
+
isContextVersionRequired(event: string): event is MedplumCore.FhircastEventVersionRequired;
|
|
167
|
+
isCreated(outcome: import("@medplum/fhirtypes").OperationOutcome): boolean;
|
|
168
|
+
isDataTypeLoaded(type: string): boolean;
|
|
169
|
+
isDateString(input: unknown): input is string;
|
|
170
|
+
isDateTimeString(input: unknown): input is string;
|
|
171
|
+
isEmpty(v: unknown): boolean;
|
|
172
|
+
isFhircastResourceType(resourceType: MedplumCore.FhircastResourceType): boolean;
|
|
173
|
+
isFhirCriteriaMet(subscription: import("@medplum/fhirtypes").Subscription, currentResource: import("@medplum/fhirtypes").Resource, getPreviousResource: (currentResource: import("@medplum/fhirtypes").Resource) => Promise<import("@medplum/fhirtypes").Resource | undefined>): Promise<boolean>;
|
|
174
|
+
isGone(outcome: import("@medplum/fhirtypes").OperationOutcome): boolean;
|
|
175
|
+
isJwt(token: string): boolean;
|
|
176
|
+
isLowerCase(c: string): boolean;
|
|
177
|
+
isMedplumAccessToken(accessToken: string): boolean;
|
|
178
|
+
isNotFound(outcome: import("@medplum/fhirtypes").OperationOutcome): boolean;
|
|
179
|
+
isObject(obj: unknown): obj is Record<string, unknown>;
|
|
180
|
+
isOk(outcome: import("@medplum/fhirtypes").OperationOutcome): boolean;
|
|
181
|
+
isOperationOutcome(value: unknown): value is import("@medplum/fhirtypes").OperationOutcome;
|
|
182
|
+
isPeriod(input: unknown): input is import("@medplum/fhirtypes").Period;
|
|
183
|
+
isPopulated<T extends {
|
|
184
|
+
length: number;
|
|
185
|
+
} | object>(arg: MedplumCore.CanBePopulated | undefined | null): arg is T;
|
|
186
|
+
isPrimitiveType(code: string): boolean;
|
|
187
|
+
isProfileLoaded(profileUrl: string): boolean;
|
|
188
|
+
isProfileResource(resource: import("@medplum/fhirtypes").Resource): resource is MedplumCore.ProfileResource;
|
|
189
|
+
isQuantity(input: unknown): input is import("@medplum/fhirtypes").Quantity;
|
|
190
|
+
isQuantityEquivalent(x: import("@medplum/fhirtypes").Quantity, y: import("@medplum/fhirtypes").Quantity): boolean;
|
|
191
|
+
isRedirect(outcome: import("@medplum/fhirtypes").OperationOutcome): boolean;
|
|
192
|
+
isReference(value: unknown): value is import("@medplum/fhirtypes").Reference & {
|
|
193
|
+
reference: string;
|
|
194
|
+
};
|
|
195
|
+
isResource(value: unknown): value is import("@medplum/fhirtypes").Resource;
|
|
196
|
+
isResourceType(resourceType: string): boolean;
|
|
197
|
+
isResourceTypeSchema(typeSchema: MedplumCore.InternalTypeSchema): boolean;
|
|
198
|
+
isSliceDefinitionWithTypes(slice: MedplumCore.SliceDefinition): slice is MedplumCore.SliceDefinitionWithTypes;
|
|
199
|
+
isString(value: unknown): value is string;
|
|
200
|
+
isStringArray(arr: any[]): arr is string[];
|
|
201
|
+
isTextObject(value: unknown): value is {
|
|
202
|
+
text: string;
|
|
203
|
+
};
|
|
204
|
+
isUnauthenticated(outcome: import("@medplum/fhirtypes").OperationOutcome): boolean;
|
|
205
|
+
isUUID(input: string): input is string;
|
|
206
|
+
isValidDate(date: Date): boolean;
|
|
207
|
+
isValidHostname(input: string): boolean;
|
|
208
|
+
isValidMedplumSemver(version: string): boolean;
|
|
209
|
+
lazy<T>(fn: () => T): () => T;
|
|
210
|
+
loadDataType(sd: import("@medplum/fhirtypes").StructureDefinition): void;
|
|
211
|
+
mapByIdentifier<T extends import("@medplum/fhirtypes").Resource = import("@medplum/fhirtypes").Resource>(resourceBundle: import("@medplum/fhirtypes").Bundle<T>, identifierSystem: string): Map<string, T>;
|
|
212
|
+
matchDiscriminant(value: MedplumCore.TypedValue | MedplumCore.TypedValue[] | undefined, discriminator: MedplumCore.SliceDiscriminator, slice: MedplumCore.SliceDefinition, elements?: Record<string, MedplumCore.InternalSchemaElement>): boolean;
|
|
213
|
+
matchesAccessPolicy(accessPolicy: import("@medplum/fhirtypes").AccessPolicy, resource: import("@medplum/fhirtypes").Resource, readonlyMode: boolean): boolean;
|
|
214
|
+
matchesRange(value: number, range: import("@medplum/fhirtypes").Range, precision?: number): boolean;
|
|
215
|
+
matchesSearchRequest(resource: import("@medplum/fhirtypes").Resource, searchRequest: MedplumCore.SearchRequest): boolean;
|
|
216
|
+
normalizeArrayBufferView(typedArrayOrBuffer: ArrayBufferLike | ArrayBufferView): ArrayBufferLike;
|
|
217
|
+
normalizeCreateBinaryOptions(arg1: MedplumCore.BinarySource | MedplumCore.CreateBinaryOptions, arg2: string | undefined | MedplumCore.MedplumRequestOptions, arg3?: string, arg4?: (e: ProgressEvent) => void): MedplumCore.CreateBinaryOptions;
|
|
218
|
+
normalizeCreatePdfOptions(arg1: TDocumentDefinitions | MedplumCore.CreatePdfOptions, arg2: string | undefined | MedplumCore.MedplumRequestOptions, arg3: Record<string, CustomTableLayout> | undefined, arg4: TFontDictionary | undefined): MedplumCore.CreatePdfOptions;
|
|
219
|
+
normalizeErrorString(error: unknown): string;
|
|
220
|
+
normalizeOperationOutcome(error: unknown): import("@medplum/fhirtypes").OperationOutcome;
|
|
221
|
+
operationOutcomeIssueToString(issue: import("@medplum/fhirtypes").OperationOutcomeIssue): string;
|
|
222
|
+
operationOutcomeToString(outcome: import("@medplum/fhirtypes").OperationOutcome): string;
|
|
223
|
+
parseCriteriaAsSearchRequest<T extends import("@medplum/fhirtypes").Resource = import("@medplum/fhirtypes").Resource>(criteria: string): MedplumCore.SearchRequest<T>;
|
|
224
|
+
parseFhirPath(input: string): MedplumCore.FhirPathAtom;
|
|
225
|
+
parseFilterParameter(input: string): MedplumCore.FhirFilterExpression;
|
|
226
|
+
parseHl7DateTime(hl7DateTime: string | undefined, options?: MedplumCore.Hl7DateParseOptions): string | undefined;
|
|
227
|
+
parseJWTPayload(token: string): Record<string, number | string>;
|
|
228
|
+
parseLogLevel(level: string): MedplumCore.LogLevel;
|
|
229
|
+
parseMappingLanguage(input: string): import("@medplum/fhirtypes").StructureMap;
|
|
230
|
+
parseParameter(searchParam: import("@medplum/fhirtypes").SearchParameter, modifier: string, value: string): MedplumCore.Filter;
|
|
231
|
+
parseReference<T extends import("@medplum/fhirtypes").Resource>(reference: import("@medplum/fhirtypes").Reference<T> | undefined): [T["resourceType"], string];
|
|
232
|
+
parseSearchDefinition<T extends import("@medplum/fhirtypes").Resource = import("@medplum/fhirtypes").Resource>(url: string): MedplumCore.SearchRequest<T>;
|
|
233
|
+
parseSearchRequest<T extends import("@medplum/fhirtypes").Resource = import("@medplum/fhirtypes").Resource>(url: T["resourceType"] | URL | string, query?: Record<string, string[] | string | undefined>): MedplumCore.SearchRequest<T>;
|
|
234
|
+
parseSearchUrl<T extends import("@medplum/fhirtypes").Resource = import("@medplum/fhirtypes").Resource>(url: URL): MedplumCore.SearchRequest<T>;
|
|
235
|
+
parseStructureDefinition(sd: import("@medplum/fhirtypes").StructureDefinition): MedplumCore.InternalTypeSchema;
|
|
236
|
+
parseXFhirQuery(query: string, variables: Record<string, MedplumCore.TypedValue>): MedplumCore.SearchRequest;
|
|
237
|
+
preciseEquals(a: number, b: number, precision?: number): boolean;
|
|
238
|
+
preciseGreaterThan(a: number, b: number, precision?: number): boolean;
|
|
239
|
+
preciseGreaterThanOrEquals(a: number, b: number, precision?: number): boolean;
|
|
240
|
+
preciseLessThan(a: number, b: number, precision?: number): boolean;
|
|
241
|
+
preciseLessThanOrEquals(a: number, b: number, precision?: number): boolean;
|
|
242
|
+
preciseRound(a: number, precision: number): number;
|
|
243
|
+
redirect(url: URL): import("@medplum/fhirtypes").OperationOutcome;
|
|
244
|
+
removeDuplicates(arr: MedplumCore.TypedValue[]): MedplumCore.TypedValue[];
|
|
245
|
+
removeProfileFromResource<T extends import("@medplum/fhirtypes").Resource = import("@medplum/fhirtypes").Resource>(resource: T, profileUrl: string): T;
|
|
246
|
+
reorderBundle(bundle: import("@medplum/fhirtypes").Bundle): import("@medplum/fhirtypes").Bundle;
|
|
247
|
+
resolveId(input: import("@medplum/fhirtypes").Reference | import("@medplum/fhirtypes").Resource | undefined): string | undefined;
|
|
248
|
+
resourceMatchesSubscriptionCriteria({ resource, subscription, context, getPreviousResource, logger, }: MedplumCore.ResourceMatchesSubscriptionCriteria): Promise<boolean>;
|
|
249
|
+
satisfiedAccessPolicy(resource: import("@medplum/fhirtypes").Resource, interaction: MedplumCore.AccessPolicyInteraction, accessPolicy: import("@medplum/fhirtypes").AccessPolicy | undefined): import("@medplum/fhirtypes").AccessPolicyResource | undefined;
|
|
250
|
+
serializeFhircastSubscriptionRequest(subscriptionRequest: MedplumCore.SubscriptionRequest | MedplumCore.PendingSubscriptionRequest): string;
|
|
251
|
+
serverError(err: Error): import("@medplum/fhirtypes").OperationOutcome;
|
|
252
|
+
serverTimeout(msg?: string): import("@medplum/fhirtypes").OperationOutcome;
|
|
253
|
+
setCodeBySystem(concept: import("@medplum/fhirtypes").CodeableConcept, system: string, code: string): void;
|
|
254
|
+
setIdentifier(resource: import("@medplum/fhirtypes").Resource & {
|
|
255
|
+
identifier?: import("@medplum/fhirtypes").Identifier[];
|
|
256
|
+
}, system: string, value: string): void;
|
|
257
|
+
singleton(collection: MedplumCore.TypedValue[], type?: string): MedplumCore.TypedValue | undefined;
|
|
258
|
+
singularize<T>(value: T | T[] | undefined): T | undefined;
|
|
259
|
+
sortStringArray(array: string[]): string[];
|
|
260
|
+
splitN(str: string, delim: string, n: number): string[];
|
|
261
|
+
splitSearchOnComma(input: string): string[];
|
|
262
|
+
streamToBuffer(stream: import("stream").Readable): Promise<Buffer>;
|
|
263
|
+
stringify(value: any, pretty?: boolean): string;
|
|
264
|
+
stringifyTypedValue(v: MedplumCore.TypedValue): string;
|
|
265
|
+
structureMapTransform(structureMap: import("@medplum/fhirtypes").StructureMap, input: MedplumCore.TypedValue[], transformMaps?: MedplumCore.TransformMapCollection): MedplumCore.TypedValue[];
|
|
266
|
+
subsetResource<T extends import("@medplum/fhirtypes").Resource>(resource: T | undefined, properties: string[]): T | undefined;
|
|
267
|
+
toJsBoolean(obj: MedplumCore.TypedValue[]): boolean;
|
|
268
|
+
toPeriod(input: unknown): import("@medplum/fhirtypes").Period | undefined;
|
|
269
|
+
toTypedValue(value: unknown): MedplumCore.TypedValue;
|
|
270
|
+
tryGetDataType(type: string, profileUrl?: string): MedplumCore.InternalTypeSchema | undefined;
|
|
271
|
+
tryGetJwtExpiration(token: string): number | undefined;
|
|
272
|
+
tryGetProfile(profileUrl: string): MedplumCore.InternalTypeSchema | undefined;
|
|
273
|
+
typedValueToString(typedValue: MedplumCore.TypedValue | undefined): string;
|
|
274
|
+
validateFhircastSubscriptionRequest(subscriptionRequest: MedplumCore.SubscriptionRequest | MedplumCore.PendingSubscriptionRequest): boolean;
|
|
275
|
+
validateResource(resource: import("@medplum/fhirtypes").Resource, options?: MedplumCore.ValidatorOptions): import("@medplum/fhirtypes").OperationOutcomeIssue[];
|
|
276
|
+
validateResourceType(resourceType: string): void;
|
|
277
|
+
validateTypedValue(typedValue: MedplumCore.TypedValue, options?: MedplumCore.ValidatorOptions): import("@medplum/fhirtypes").OperationOutcomeIssue[];
|
|
278
|
+
validationError(details: string): import("@medplum/fhirtypes").OperationOutcome;
|
|
279
|
+
warnIfNewerVersionAvailable(appName: string, params?: Record<string, string>): Promise<void>;
|
|
280
|
+
wordWrap(text: string, maxLength: number): string[];
|
|
281
|
+
AccessPolicyInteraction: typeof MedplumCore.AccessPolicyInteraction;
|
|
282
|
+
allOk: import("@medplum/fhirtypes").OperationOutcome;
|
|
283
|
+
AndAtom: typeof MedplumCore.AndAtom;
|
|
284
|
+
ArithemticOperatorAtom: typeof MedplumCore.ArithemticOperatorAtom;
|
|
285
|
+
AsAtom: typeof MedplumCore.AsAtom;
|
|
286
|
+
BooleanInfixOperatorAtom: typeof MedplumCore.BooleanInfixOperatorAtom;
|
|
287
|
+
ClientStorage: typeof MedplumCore.ClientStorage;
|
|
288
|
+
ConcatAtom: typeof MedplumCore.ConcatAtom;
|
|
289
|
+
ContainsAtom: typeof MedplumCore.ContainsAtom;
|
|
290
|
+
ContentType: {
|
|
291
|
+
readonly CSS: "text/css";
|
|
292
|
+
readonly DICOM: "application/dicom";
|
|
293
|
+
readonly FAVICON: "image/vnd.microsoft.icon";
|
|
294
|
+
readonly FHIR_JSON: "application/fhir+json";
|
|
295
|
+
readonly FORM_URL_ENCODED: "application/x-www-form-urlencoded";
|
|
296
|
+
readonly HL7_V2: "x-application/hl7-v2+er7";
|
|
297
|
+
readonly HTML: "text/html";
|
|
298
|
+
readonly JAVASCRIPT: "text/javascript";
|
|
299
|
+
readonly JSON: "application/json";
|
|
300
|
+
readonly JSON_PATCH: "application/json-patch+json";
|
|
301
|
+
readonly PNG: "image/png";
|
|
302
|
+
readonly SCIM_JSON: "application/scim+json";
|
|
303
|
+
readonly SVG: "image/svg+xml";
|
|
304
|
+
readonly TEXT: "text/plain";
|
|
305
|
+
readonly TYPESCRIPT: "text/typescript";
|
|
306
|
+
readonly PING: "x-application/ping";
|
|
307
|
+
readonly XML: "text/xml";
|
|
308
|
+
readonly CDA_XML: "application/cda+xml";
|
|
309
|
+
};
|
|
310
|
+
CPT: "http://www.ama-assn.org/go/cpt";
|
|
311
|
+
created: import("@medplum/fhirtypes").OperationOutcome;
|
|
312
|
+
DEFAULT_ACCEPT: string;
|
|
313
|
+
DEFAULT_MAX_SEARCH_COUNT: 1000;
|
|
314
|
+
DEFAULT_SEARCH_COUNT: 20;
|
|
315
|
+
DotAtom: typeof MedplumCore.DotAtom;
|
|
316
|
+
EmptySetAtom: typeof MedplumCore.EmptySetAtom;
|
|
317
|
+
EqualsAtom: typeof MedplumCore.EqualsAtom;
|
|
318
|
+
EquivalentAtom: typeof MedplumCore.EquivalentAtom;
|
|
319
|
+
EventTarget: typeof MedplumCore.EventTarget;
|
|
320
|
+
ExternalSecretSystems: {
|
|
321
|
+
readonly aws_ssm_parameter_store: "aws_ssm_parameter_store";
|
|
322
|
+
};
|
|
323
|
+
FHIRCAST_EVENT_NAMES: {
|
|
324
|
+
readonly "Patient-open": "Patient-open";
|
|
325
|
+
readonly "Patient-close": "Patient-close";
|
|
326
|
+
readonly "ImagingStudy-open": "ImagingStudy-open";
|
|
327
|
+
readonly "ImagingStudy-close": "ImagingStudy-close";
|
|
328
|
+
readonly "Encounter-open": "Encounter-open";
|
|
329
|
+
readonly "Encounter-close": "Encounter-close";
|
|
330
|
+
readonly "DiagnosticReport-open": "DiagnosticReport-open";
|
|
331
|
+
readonly "DiagnosticReport-close": "DiagnosticReport-close";
|
|
332
|
+
readonly "DiagnosticReport-select": "DiagnosticReport-select";
|
|
333
|
+
readonly "DiagnosticReport-update": "DiagnosticReport-update";
|
|
334
|
+
readonly syncerror: "syncerror";
|
|
335
|
+
};
|
|
336
|
+
FHIRCAST_EVENT_RESOURCES: {
|
|
337
|
+
readonly "Patient-open": {
|
|
338
|
+
readonly patient: {
|
|
339
|
+
readonly resourceType: "Patient";
|
|
340
|
+
};
|
|
341
|
+
readonly encounter: {
|
|
342
|
+
readonly resourceType: "Encounter";
|
|
343
|
+
readonly optional: true;
|
|
344
|
+
};
|
|
345
|
+
};
|
|
346
|
+
readonly "Patient-close": {
|
|
347
|
+
readonly patient: {
|
|
348
|
+
readonly resourceType: "Patient";
|
|
349
|
+
};
|
|
350
|
+
readonly encounter: {
|
|
351
|
+
readonly resourceType: "Encounter";
|
|
352
|
+
readonly optional: true;
|
|
353
|
+
};
|
|
354
|
+
};
|
|
355
|
+
readonly "ImagingStudy-open": {
|
|
356
|
+
readonly study: {
|
|
357
|
+
readonly resourceType: "ImagingStudy";
|
|
358
|
+
};
|
|
359
|
+
readonly encounter: {
|
|
360
|
+
readonly resourceType: "Encounter";
|
|
361
|
+
readonly optional: true;
|
|
362
|
+
};
|
|
363
|
+
readonly patient: {
|
|
364
|
+
readonly resourceType: "Patient";
|
|
365
|
+
readonly optional: true;
|
|
366
|
+
};
|
|
367
|
+
};
|
|
368
|
+
readonly "ImagingStudy-close": {
|
|
369
|
+
readonly study: {
|
|
370
|
+
readonly resourceType: "ImagingStudy";
|
|
371
|
+
};
|
|
372
|
+
readonly encounter: {
|
|
373
|
+
readonly resourceType: "Encounter";
|
|
374
|
+
readonly optional: true;
|
|
375
|
+
};
|
|
376
|
+
readonly patient: {
|
|
377
|
+
readonly resourceType: "Patient";
|
|
378
|
+
readonly optional: true;
|
|
379
|
+
};
|
|
380
|
+
};
|
|
381
|
+
readonly "Encounter-open": {
|
|
382
|
+
readonly encounter: {
|
|
383
|
+
readonly resourceType: "Encounter";
|
|
384
|
+
};
|
|
385
|
+
readonly patient: {
|
|
386
|
+
readonly resourceType: "Patient";
|
|
387
|
+
};
|
|
388
|
+
};
|
|
389
|
+
readonly "Encounter-close": {
|
|
390
|
+
readonly encounter: {
|
|
391
|
+
readonly resourceType: "Encounter";
|
|
392
|
+
};
|
|
393
|
+
readonly patient: {
|
|
394
|
+
readonly resourceType: "Patient";
|
|
395
|
+
};
|
|
396
|
+
};
|
|
397
|
+
readonly "DiagnosticReport-open": {
|
|
398
|
+
readonly report: {
|
|
399
|
+
readonly resourceType: "DiagnosticReport";
|
|
400
|
+
};
|
|
401
|
+
readonly encounter: {
|
|
402
|
+
readonly resourceType: "Encounter";
|
|
403
|
+
readonly optional: true;
|
|
404
|
+
};
|
|
405
|
+
readonly study: {
|
|
406
|
+
readonly resourceType: "ImagingStudy";
|
|
407
|
+
readonly optional: true;
|
|
408
|
+
readonly manyAllowed: true;
|
|
409
|
+
};
|
|
410
|
+
readonly patient: {
|
|
411
|
+
readonly resourceType: "Patient";
|
|
412
|
+
};
|
|
413
|
+
};
|
|
414
|
+
readonly "DiagnosticReport-close": {
|
|
415
|
+
readonly report: {
|
|
416
|
+
readonly resourceType: "DiagnosticReport";
|
|
417
|
+
};
|
|
418
|
+
readonly encounter: {
|
|
419
|
+
readonly resourceType: "Encounter";
|
|
420
|
+
readonly optional: true;
|
|
421
|
+
};
|
|
422
|
+
readonly study: {
|
|
423
|
+
readonly resourceType: "ImagingStudy";
|
|
424
|
+
readonly optional: true;
|
|
425
|
+
readonly manyAllowed: true;
|
|
426
|
+
};
|
|
427
|
+
readonly patient: {
|
|
428
|
+
readonly resourceType: "Patient";
|
|
429
|
+
};
|
|
430
|
+
};
|
|
431
|
+
readonly "DiagnosticReport-select": {
|
|
432
|
+
readonly report: {
|
|
433
|
+
readonly resourceType: "DiagnosticReport";
|
|
434
|
+
readonly reference: true;
|
|
435
|
+
};
|
|
436
|
+
readonly patient: {
|
|
437
|
+
readonly resourceType: "Patient";
|
|
438
|
+
readonly optional: true;
|
|
439
|
+
readonly reference: true;
|
|
440
|
+
};
|
|
441
|
+
readonly select: {
|
|
442
|
+
readonly resourceType: "*";
|
|
443
|
+
readonly array: true;
|
|
444
|
+
readonly reference: true;
|
|
445
|
+
};
|
|
446
|
+
};
|
|
447
|
+
readonly "DiagnosticReport-update": {
|
|
448
|
+
readonly report: {
|
|
449
|
+
readonly resourceType: "DiagnosticReport";
|
|
450
|
+
readonly reference: true;
|
|
451
|
+
};
|
|
452
|
+
readonly patient: {
|
|
453
|
+
readonly resourceType: "Patient";
|
|
454
|
+
readonly optional: true;
|
|
455
|
+
readonly reference: true;
|
|
456
|
+
};
|
|
457
|
+
readonly updates: {
|
|
458
|
+
readonly resourceType: "Bundle";
|
|
459
|
+
};
|
|
460
|
+
};
|
|
461
|
+
readonly syncerror: {
|
|
462
|
+
readonly operationoutcome: {
|
|
463
|
+
readonly resourceType: "OperationOutcome";
|
|
464
|
+
};
|
|
465
|
+
};
|
|
466
|
+
};
|
|
467
|
+
FHIRCAST_EVENT_VERSION_REQUIRED: readonly ["DiagnosticReport-update"];
|
|
468
|
+
FHIRCAST_RESOURCE_TYPES: readonly ["Patient", "Encounter", "ImagingStudy", "DiagnosticReport", "OperationOutcome", "Bundle"];
|
|
469
|
+
FhircastConnection: typeof MedplumCore.FhircastConnection;
|
|
470
|
+
FhirFilterComparison: typeof MedplumCore.FhirFilterComparison;
|
|
471
|
+
FhirFilterConnective: typeof MedplumCore.FhirFilterConnective;
|
|
472
|
+
FhirFilterNegation: typeof MedplumCore.FhirFilterNegation;
|
|
473
|
+
FhirPathAtom: typeof MedplumCore.FhirPathAtom;
|
|
474
|
+
fhirTypeToJsType: {
|
|
475
|
+
readonly base64Binary: "string";
|
|
476
|
+
readonly boolean: "boolean";
|
|
477
|
+
readonly canonical: "string";
|
|
478
|
+
readonly code: "string";
|
|
479
|
+
readonly date: "string";
|
|
480
|
+
readonly dateTime: "string";
|
|
481
|
+
readonly decimal: "number";
|
|
482
|
+
readonly id: "string";
|
|
483
|
+
readonly instant: "string";
|
|
484
|
+
readonly integer: "number";
|
|
485
|
+
readonly integer64: "string";
|
|
486
|
+
readonly markdown: "string";
|
|
487
|
+
readonly oid: "string";
|
|
488
|
+
readonly positiveInt: "number";
|
|
489
|
+
readonly string: "string";
|
|
490
|
+
readonly time: "string";
|
|
491
|
+
readonly unsignedInt: "number";
|
|
492
|
+
readonly uri: "string";
|
|
493
|
+
readonly url: "string";
|
|
494
|
+
readonly uuid: "string";
|
|
495
|
+
readonly xhtml: "string";
|
|
496
|
+
readonly "http://hl7.org/fhirpath/System.String": "string";
|
|
497
|
+
};
|
|
498
|
+
FileBuilder: typeof MedplumCore.FileBuilder;
|
|
499
|
+
forbidden: import("@medplum/fhirtypes").OperationOutcome;
|
|
500
|
+
FunctionAtom: typeof MedplumCore.FunctionAtom;
|
|
501
|
+
globalSchema: MedplumCore.IndexedStructureDefinition;
|
|
502
|
+
gone: import("@medplum/fhirtypes").OperationOutcome;
|
|
503
|
+
Hl7Context: typeof MedplumCore.Hl7Context;
|
|
504
|
+
Hl7Field: typeof MedplumCore.Hl7Field;
|
|
505
|
+
Hl7Message: typeof MedplumCore.Hl7Message;
|
|
506
|
+
Hl7Segment: typeof MedplumCore.Hl7Segment;
|
|
507
|
+
HTTP_HL7_ORG: "http://hl7.org";
|
|
508
|
+
HTTP_TERMINOLOGY_HL7_ORG: "http://terminology.hl7.org";
|
|
509
|
+
ICD10: "http://hl7.org/fhir/sid/icd-10";
|
|
510
|
+
ImpliesAtom: typeof MedplumCore.ImpliesAtom;
|
|
511
|
+
InAtom: typeof MedplumCore.InAtom;
|
|
512
|
+
IndexerAtom: typeof MedplumCore.IndexerAtom;
|
|
513
|
+
InfixOperatorAtom: typeof MedplumCore.InfixOperatorAtom;
|
|
514
|
+
IsAtom: typeof MedplumCore.IsAtom;
|
|
515
|
+
LiteralAtom: typeof MedplumCore.LiteralAtom;
|
|
516
|
+
Logger: typeof MedplumCore.Logger;
|
|
517
|
+
LogLevel: typeof MedplumCore.LogLevel;
|
|
518
|
+
LOINC: "http://loinc.org";
|
|
519
|
+
LRUCache: typeof MedplumCore.LRUCache;
|
|
520
|
+
MEDPLUM_CLI_CLIENT_ID: "medplum-cli";
|
|
521
|
+
MEDPLUM_RELEASES_URL: "https://meta.medplum.com/releases";
|
|
522
|
+
MEDPLUM_VERSION: string;
|
|
523
|
+
MedplumKeyValueClient: typeof MedplumCore.MedplumKeyValueClient;
|
|
524
|
+
MemoryStorage: typeof MedplumCore.MemoryStorage;
|
|
525
|
+
MockAsyncClientStorage: typeof MedplumCore.MockAsyncClientStorage;
|
|
526
|
+
multipleMatches: import("@medplum/fhirtypes").OperationOutcome;
|
|
527
|
+
NDC: "http://hl7.org/fhir/sid/ndc";
|
|
528
|
+
NotEqualsAtom: typeof MedplumCore.NotEqualsAtom;
|
|
529
|
+
NotEquivalentAtom: typeof MedplumCore.NotEquivalentAtom;
|
|
530
|
+
notFound: import("@medplum/fhirtypes").OperationOutcome;
|
|
531
|
+
notModified: import("@medplum/fhirtypes").OperationOutcome;
|
|
532
|
+
OAuthClientAssertionType: typeof MedplumCore.OAuthClientAssertionType;
|
|
533
|
+
OAuthGrantType: typeof MedplumCore.OAuthGrantType;
|
|
534
|
+
OAuthTokenAuthMethod: typeof MedplumCore.OAuthTokenAuthMethod;
|
|
535
|
+
OAuthTokenType: typeof MedplumCore.OAuthTokenType;
|
|
536
|
+
OperationOutcomeError: typeof MedplumCore.OperationOutcomeError;
|
|
537
|
+
Operator: typeof MedplumCore.Operator;
|
|
538
|
+
OperatorPrecedence: {
|
|
539
|
+
FunctionCall: number;
|
|
540
|
+
Dot: number;
|
|
541
|
+
Indexer: number;
|
|
542
|
+
UnaryAdd: number;
|
|
543
|
+
UnarySubtract: number;
|
|
544
|
+
Multiply: number;
|
|
545
|
+
Divide: number;
|
|
546
|
+
IntegerDivide: number;
|
|
547
|
+
Modulo: number;
|
|
548
|
+
Add: number;
|
|
549
|
+
Subtract: number;
|
|
550
|
+
Ampersand: number;
|
|
551
|
+
Is: number;
|
|
552
|
+
As: number;
|
|
553
|
+
Union: number;
|
|
554
|
+
GreaterThan: number;
|
|
555
|
+
GreaterThanOrEquals: number;
|
|
556
|
+
LessThan: number;
|
|
557
|
+
LessThanOrEquals: number;
|
|
558
|
+
Equals: number;
|
|
559
|
+
Equivalent: number;
|
|
560
|
+
NotEquals: number;
|
|
561
|
+
NotEquivalent: number;
|
|
562
|
+
In: number;
|
|
563
|
+
Contains: number;
|
|
564
|
+
And: number;
|
|
565
|
+
Xor: number;
|
|
566
|
+
Or: number;
|
|
567
|
+
Implies: number;
|
|
568
|
+
Arrow: number;
|
|
569
|
+
Semicolon: number;
|
|
570
|
+
};
|
|
571
|
+
OrAtom: typeof MedplumCore.OrAtom;
|
|
572
|
+
Parser: typeof MedplumCore.Parser;
|
|
573
|
+
ParserBuilder: typeof MedplumCore.ParserBuilder;
|
|
574
|
+
preconditionFailed: import("@medplum/fhirtypes").OperationOutcome;
|
|
575
|
+
PrefixOperatorAtom: typeof MedplumCore.PrefixOperatorAtom;
|
|
576
|
+
projectAdminResourceTypes: string[];
|
|
577
|
+
PropertyType: {
|
|
578
|
+
readonly Address: "Address";
|
|
579
|
+
readonly Age: "Age";
|
|
580
|
+
readonly Annotation: "Annotation";
|
|
581
|
+
readonly Attachment: "Attachment";
|
|
582
|
+
readonly BackboneElement: "BackboneElement";
|
|
583
|
+
readonly CodeableConcept: "CodeableConcept";
|
|
584
|
+
readonly Coding: "Coding";
|
|
585
|
+
readonly ContactDetail: "ContactDetail";
|
|
586
|
+
readonly ContactPoint: "ContactPoint";
|
|
587
|
+
readonly Contributor: "Contributor";
|
|
588
|
+
readonly Count: "Count";
|
|
589
|
+
readonly DataRequirement: "DataRequirement";
|
|
590
|
+
readonly Distance: "Distance";
|
|
591
|
+
readonly Dosage: "Dosage";
|
|
592
|
+
readonly Duration: "Duration";
|
|
593
|
+
readonly Expression: "Expression";
|
|
594
|
+
readonly Extension: "Extension";
|
|
595
|
+
readonly HumanName: "HumanName";
|
|
596
|
+
readonly Identifier: "Identifier";
|
|
597
|
+
readonly MarketingStatus: "MarketingStatus";
|
|
598
|
+
readonly Meta: "Meta";
|
|
599
|
+
readonly Money: "Money";
|
|
600
|
+
readonly Narrative: "Narrative";
|
|
601
|
+
readonly ParameterDefinition: "ParameterDefinition";
|
|
602
|
+
readonly Period: "Period";
|
|
603
|
+
readonly Population: "Population";
|
|
604
|
+
readonly ProdCharacteristic: "ProdCharacteristic";
|
|
605
|
+
readonly ProductShelfLife: "ProductShelfLife";
|
|
606
|
+
readonly Quantity: "Quantity";
|
|
607
|
+
readonly Range: "Range";
|
|
608
|
+
readonly Ratio: "Ratio";
|
|
609
|
+
readonly Reference: "Reference";
|
|
610
|
+
readonly RelatedArtifact: "RelatedArtifact";
|
|
611
|
+
readonly SampledData: "SampledData";
|
|
612
|
+
readonly Signature: "Signature";
|
|
613
|
+
readonly SubstanceAmount: "SubstanceAmount";
|
|
614
|
+
readonly SystemString: "http://hl7.org/fhirpath/System.String";
|
|
615
|
+
readonly Timing: "Timing";
|
|
616
|
+
readonly TriggerDefinition: "TriggerDefinition";
|
|
617
|
+
readonly UsageContext: "UsageContext";
|
|
618
|
+
readonly base64Binary: "base64Binary";
|
|
619
|
+
readonly boolean: "boolean";
|
|
620
|
+
readonly canonical: "canonical";
|
|
621
|
+
readonly code: "code";
|
|
622
|
+
readonly date: "date";
|
|
623
|
+
readonly dateTime: "dateTime";
|
|
624
|
+
readonly decimal: "decimal";
|
|
625
|
+
readonly id: "id";
|
|
626
|
+
readonly instant: "instant";
|
|
627
|
+
readonly integer: "integer";
|
|
628
|
+
readonly markdown: "markdown";
|
|
629
|
+
readonly oid: "oid";
|
|
630
|
+
readonly positiveInt: "positiveInt";
|
|
631
|
+
readonly string: "string";
|
|
632
|
+
readonly time: "time";
|
|
633
|
+
readonly unsignedInt: "unsignedInt";
|
|
634
|
+
readonly uri: "uri";
|
|
635
|
+
readonly url: "url";
|
|
636
|
+
readonly uuid: "uuid";
|
|
637
|
+
};
|
|
638
|
+
protectedResourceTypes: string[];
|
|
639
|
+
ReadablePromise: typeof MedplumCore.ReadablePromise;
|
|
640
|
+
ReconnectingWebSocket: typeof MedplumCore.ReconnectingWebSocket;
|
|
641
|
+
RXNORM: "http://www.nlm.nih.gov/research/umls/rxnorm";
|
|
642
|
+
SearchParameterType: typeof MedplumCore.SearchParameterType;
|
|
643
|
+
sleep: (ms: number) => Promise<void>;
|
|
644
|
+
SNOMED: "http://snomed.info/sct";
|
|
645
|
+
SubscriptionEmitter: typeof MedplumCore.SubscriptionEmitter;
|
|
646
|
+
SubscriptionManager: typeof MedplumCore.SubscriptionManager;
|
|
647
|
+
SymbolAtom: typeof MedplumCore.SymbolAtom;
|
|
648
|
+
Tokenizer: typeof MedplumCore.Tokenizer;
|
|
649
|
+
tooManyRequests: import("@medplum/fhirtypes").OperationOutcome;
|
|
650
|
+
TransformMapCollection: typeof MedplumCore.TransformMapCollection;
|
|
651
|
+
TypedEventTarget: typeof MedplumCore.TypedEventTarget;
|
|
652
|
+
UCUM: "http://unitsofmeasure.org";
|
|
653
|
+
UnaryOperatorAtom: typeof MedplumCore.UnaryOperatorAtom;
|
|
654
|
+
unauthorized: import("@medplum/fhirtypes").OperationOutcome;
|
|
655
|
+
unauthorizedTokenAudience: import("@medplum/fhirtypes").OperationOutcome;
|
|
656
|
+
unauthorizedTokenExpired: import("@medplum/fhirtypes").OperationOutcome;
|
|
657
|
+
UnionAtom: typeof MedplumCore.UnionAtom;
|
|
658
|
+
VALID_HOSTNAME_REGEX: RegExp;
|
|
659
|
+
validationRegexes: Record<string, RegExp>;
|
|
660
|
+
XorAtom: typeof MedplumCore.XorAtom;
|
|
661
|
+
};
|
|
662
|
+
export { Medplum };
|
|
663
|
+
export { OvokClient } from "./client/ovok-client";
|
|
664
|
+
export * from "./hooks";
|
|
665
|
+
export * from "./utils";
|
|
666
|
+
export * from "./client/observation/services";
|