@ovok/core 0.2.53 → 0.2.55
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/dist/hooks/index.js +14 -0
- package/dist/index.d.ts +305 -43
- package/package.json +9 -9
package/dist/hooks/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
"use client";
|
|
2
3
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
4
|
if (k2 === undefined) k2 = k;
|
|
4
5
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -34,6 +35,19 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
35
|
})();
|
|
35
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
37
|
exports.OvokProvider = exports.useClient = exports.useCachedBinaryUrl = exports.reactContext = exports.useSubscription = exports.useSearchResources = exports.useSearchOne = exports.useSearch = exports.useResource = exports.usePrevious = exports.useMedplumProfile = exports.useMedplumNavigate = exports.useMedplumContext = void 0;
|
|
38
|
+
/*
|
|
39
|
+
* The only React-dependent module in the package.
|
|
40
|
+
*
|
|
41
|
+
* `@medplum/react-hooks` calls `createContext` at module scope, which does not
|
|
42
|
+
* exist in React's server build — so without this directive, importing
|
|
43
|
+
* anything from the package barrel crashes a React Server Component with
|
|
44
|
+
* `createContext is not a function`, including the plain, React-free
|
|
45
|
+
* `OvokClient` that most server-side callers actually want.
|
|
46
|
+
*
|
|
47
|
+
* The directive moves this module into the client graph. A server component
|
|
48
|
+
* may then import the barrel freely; only the hooks and provider below
|
|
49
|
+
* require a client component, which is where they were always usable.
|
|
50
|
+
*/
|
|
37
51
|
const react_hooks_1 = require("@medplum/react-hooks");
|
|
38
52
|
const React = __importStar(require("react"));
|
|
39
53
|
var react_hooks_2 = require("@medplum/react-hooks");
|
package/dist/index.d.ts
CHANGED
|
@@ -2,20 +2,28 @@ import * as MedplumCore from "@medplum/core";
|
|
|
2
2
|
export * from "./types";
|
|
3
3
|
declare const Medplum: {
|
|
4
4
|
accepted(location: string): import("@medplum/fhirtypes").OperationOutcome;
|
|
5
|
+
accessPolicySupportsInteraction(accessPolicy: import("@medplum/fhirtypes").AccessPolicy, interaction: MedplumCore.AccessPolicyInteraction, resourceType: import("@medplum/fhirtypes").ResourceType): boolean;
|
|
6
|
+
add(object: any, operation: MedplumCore.AddOperation, options?: MedplumCore.PatchOptions): MedplumCore.MissingError | null;
|
|
7
|
+
addPreferredPharmacyToPatient(patient: import("@medplum/fhirtypes").Patient, orgRef: import("@medplum/fhirtypes").Reference<import("@medplum/fhirtypes").Organization>, isPrimary: boolean, preferenceTypeSystem?: string): import("@medplum/fhirtypes").Patient;
|
|
5
8
|
addProfileToResource<T extends import("@medplum/fhirtypes").Resource = import("@medplum/fhirtypes").Resource>(resource: T, profileUrl: string): T;
|
|
6
9
|
append<T>(array: T[] | undefined, value: T): T[];
|
|
10
|
+
apply(object: any, operation: MedplumCore.Operation, options?: MedplumCore.PatchOptions): MedplumCore.MissingError | MedplumCore.InvalidOperationError | MedplumCore.TestError | null;
|
|
7
11
|
applyDefaultValuesToElement(existingValue: object, elements: Record<string, MedplumCore.InternalSchemaElement>, key?: string): object;
|
|
8
12
|
applyDefaultValuesToResource(resource: import("@medplum/fhirtypes").Resource, schema: MedplumCore.InternalTypeSchema): import("@medplum/fhirtypes").Resource;
|
|
9
13
|
applyFixedOrPatternValue(inputValue: any, key: string, element: MedplumCore.InternalSchemaElement, elements: Record<string, MedplumCore.InternalSchemaElement>): any;
|
|
14
|
+
applyPatch(object: any, patch: MedplumCore.Operation[], options?: MedplumCore.PatchOptions): (null | MedplumCore.MissingError | MedplumCore.InvalidOperationError | MedplumCore.TestError)[];
|
|
10
15
|
arrayBufferToBase64(arrayBuffer: ArrayBufferLike | ArrayBufferView): string;
|
|
11
16
|
arrayBufferToHex(arrayBuffer: ArrayBufferLike | ArrayBufferView): string;
|
|
17
|
+
arrayify<T>(value: NonNullable<T> | NonNullable<T>[]): T[];
|
|
12
18
|
arrayify<T>(value: T | T[] | undefined): T[] | undefined;
|
|
13
|
-
assert(condition: unknown, msg?: string): asserts condition;
|
|
14
19
|
assertContextVersionOptional(event: string): asserts event is MedplumCore.FhircastEventVersionOptional;
|
|
20
|
+
assertNever(value: never): never;
|
|
15
21
|
assertOk<T>(outcome: import("@medplum/fhirtypes").OperationOutcome, resource: T | undefined): asserts resource is T;
|
|
16
22
|
assertReleaseManifest(candidate: unknown): asserts candidate is MedplumCore.ReleaseManifest;
|
|
17
|
-
|
|
23
|
+
assertValidMedplumSemver(version: string): asserts version is MedplumCore.MedplumSemver;
|
|
24
|
+
badRequest(details: string, expression?: string | string[]): import("@medplum/fhirtypes").OperationOutcome;
|
|
18
25
|
booleanToTypedValue(value: boolean): [MedplumCore.TypedValue];
|
|
26
|
+
buildCdsRequest(medplum: MedplumCore.MedplumClient, user: MedplumCore.CdsUserResource, service: MedplumCore.CdsService, context: Record<string, unknown>): Promise<MedplumCore.CdsRequest>;
|
|
19
27
|
buildElementsContext({ parentContext, path, elements, profileUrl, debugMode, accessPolicyResource, }: {
|
|
20
28
|
parentContext: MedplumCore.ElementsContextType | undefined;
|
|
21
29
|
path: string;
|
|
@@ -24,7 +32,9 @@ declare const Medplum: {
|
|
|
24
32
|
debugMode?: boolean;
|
|
25
33
|
accessPolicyResource?: import("@medplum/fhirtypes").AccessPolicyResource;
|
|
26
34
|
}): MedplumCore.ElementsContextType | undefined;
|
|
35
|
+
buildMedicationRequestResponseLostStatusReason(): import("@medplum/fhirtypes").CodeableConcept;
|
|
27
36
|
buildTypeName(components: string[]): string;
|
|
37
|
+
businessRule(key: string, message: string): import("@medplum/fhirtypes").OperationOutcome;
|
|
28
38
|
calculateAge(birthDateStr: string, endDateStr?: string): {
|
|
29
39
|
years: number;
|
|
30
40
|
months: number;
|
|
@@ -38,41 +48,68 @@ declare const Medplum: {
|
|
|
38
48
|
checkForNull(value: unknown, path: string, issues: import("@medplum/fhirtypes").OperationOutcomeIssue[]): void;
|
|
39
49
|
checkIfValidMedplumVersion(appName: string, version: string): Promise<boolean>;
|
|
40
50
|
clearReleaseCache(): void;
|
|
51
|
+
clearScheduleParameter(schedule: import("@medplum/fhirtypes").Schedule, service: MedplumCore.WithId<import("@medplum/fhirtypes").HealthcareService>, url: string): import("@medplum/fhirtypes").Schedule;
|
|
52
|
+
codeableConceptMatchesToken(codeableConcept: import("@medplum/fhirtypes").CodeableConcept, token: string): boolean;
|
|
53
|
+
codingMatchesToken(coding: import("@medplum/fhirtypes").Coding, token: string): boolean;
|
|
54
|
+
compareVersions(a: MedplumCore.MedplumSemver, b: MedplumCore.MedplumSemver): number;
|
|
41
55
|
compressElement(element: MedplumCore.InternalSchemaElement): Partial<MedplumCore.InternalSchemaElement>;
|
|
42
56
|
concatUrls(baseUrl: string | URL, path: string): string;
|
|
43
57
|
conceptMapTranslate(map: import("@medplum/fhirtypes").ConceptMap, params: MedplumCore.ConceptMapTranslateParameters): MedplumCore.ConceptMapTranslateOutput;
|
|
44
58
|
conflict(details: string, code?: string): import("@medplum/fhirtypes").OperationOutcome;
|
|
59
|
+
contentTooLarge(text: string): import("@medplum/fhirtypes").OperationOutcome;
|
|
45
60
|
convertContainedResourcesToBundle(resource: import("@medplum/fhirtypes").Resource & {
|
|
46
61
|
contained?: import("@medplum/fhirtypes").Resource[];
|
|
47
62
|
}): import("@medplum/fhirtypes").Bundle;
|
|
63
|
+
convertToSearchableDates(typedValues: MedplumCore.TypedValue[]): import("@medplum/fhirtypes").Period[];
|
|
64
|
+
convertToSearchableNumbers(typedValues: MedplumCore.TypedValue[]): [number | undefined, number | undefined][];
|
|
65
|
+
convertToSearchableQuantities(typedValues: MedplumCore.TypedValue[]): import("@medplum/fhirtypes").Quantity[];
|
|
66
|
+
convertToSearchableReferences(typedValues: MedplumCore.TypedValue[]): string[];
|
|
67
|
+
convertToSearchableStrings(typedValues: MedplumCore.TypedValue[]): string[];
|
|
68
|
+
convertToSearchableTokens(typedValues: MedplumCore.TypedValue[], context?: MedplumCore.TokensContext): MedplumCore.SearchableToken[];
|
|
69
|
+
convertToSearchableUris(typedValues: MedplumCore.TypedValue[]): string[];
|
|
48
70
|
convertToTransactionBundle(bundle: import("@medplum/fhirtypes").Bundle): import("@medplum/fhirtypes").Bundle;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
crawlResourceAsync(resource: import("@medplum/fhirtypes").Resource, visitor: MedplumCore.AsyncCrawlerVisitor, options: MedplumCore.CrawlerOptions): Promise<void>;
|
|
71
|
+
copy(object: any, operation: MedplumCore.CopyOperation, _options?: MedplumCore.PatchOptions): MedplumCore.MissingError | null;
|
|
72
|
+
countBy<T, K extends keyof any>(items: Iterable<T>, keyFn: (value: T) => K): Partial<Record<K, number>>;
|
|
73
|
+
countWhere<T>(items: Iterable<T>, fn: (value: T) => boolean): number;
|
|
53
74
|
crawlTypedValue(typedValue: MedplumCore.TypedValue, visitor: MedplumCore.CrawlerVisitor, options?: MedplumCore.CrawlerOptions): void;
|
|
54
75
|
crawlTypedValueAsync(typedValue: MedplumCore.TypedValue, visitor: MedplumCore.AsyncCrawlerVisitor, options?: MedplumCore.CrawlerOptions): Promise<void>;
|
|
55
76
|
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?:
|
|
57
|
-
createFhircastMessagePayload<EventName extends MedplumCore.FhircastEventVersionRequired>(topic: string, event: EventName, context: MedplumCore.FhircastEventContext<EventName> | MedplumCore.FhircastEventContext<EventName>[], versionId: string): MedplumCore.FhircastMessagePayload<EventName>;
|
|
77
|
+
createFhircastMessagePayload<EventName extends MedplumCore.FhircastEventVersionOptional | MedplumCore.FhircastEventVersionRequired>(topic: string, event: EventName, context: MedplumCore.FhircastEventContext<EventName> | MedplumCore.FhircastEventContext<EventName>[], versionId?: string): MedplumCore.FhircastMessagePayload<EventName>;
|
|
58
78
|
createOperationOutcomeIssue(severity: MedplumCore.IssueSeverity, code: MedplumCore.IssueType, message: string, path: string, data?: Record<string, any>): import("@medplum/fhirtypes").OperationOutcomeIssue;
|
|
79
|
+
createPatch(input: any, output: any, diff?: MedplumCore.VoidableDiff): MedplumCore.Operation[];
|
|
80
|
+
createPreferredPharmacyExtension(orgRef: import("@medplum/fhirtypes").Reference<import("@medplum/fhirtypes").Organization>, isPrimary: boolean, preferenceTypeSystem?: string): import("@medplum/fhirtypes").Extension;
|
|
59
81
|
createProcessingIssue(expression: string, message: string, err: Error, data?: Record<string, any>): import("@medplum/fhirtypes").OperationOutcomeIssue;
|
|
60
82
|
createReference<T extends import("@medplum/fhirtypes").Resource>(resource: T): import("@medplum/fhirtypes").Reference<T> & {
|
|
61
83
|
reference: string;
|
|
62
84
|
};
|
|
63
85
|
createStructureIssue(expression: string, details: string): import("@medplum/fhirtypes").OperationOutcomeIssue;
|
|
86
|
+
createTests(input: any, patch: MedplumCore.Operation[]): MedplumCore.TestOperation[];
|
|
64
87
|
decodeBase64(data: string): string;
|
|
88
|
+
decodeBase64Url(data: string): string;
|
|
65
89
|
deepClone<T>(input: T): T;
|
|
66
90
|
deepEquals(object1: unknown, object2: unknown, path?: string): boolean;
|
|
67
91
|
deepIncludes(value: any, pattern: any): boolean;
|
|
92
|
+
deriveIdentifierSearchParameter(inputParam: import("@medplum/fhirtypes").SearchParameter): import("@medplum/fhirtypes").SearchParameter;
|
|
93
|
+
diffAny(input: any, output: any, ptr: MedplumCore.Pointer, diff?: MedplumCore.Diff): MedplumCore.Operation[];
|
|
94
|
+
diffArrays<T>(input: T[], output: T[], ptr: MedplumCore.Pointer, diff?: MedplumCore.Diff): MedplumCore.Operation[];
|
|
95
|
+
diffObjects(input: any, output: any, ptr: MedplumCore.Pointer, diff?: MedplumCore.Diff): MedplumCore.Operation[];
|
|
68
96
|
encodeBase64(data: string): string;
|
|
97
|
+
encodeBase64Url(data: string): string;
|
|
98
|
+
encodeSmartHealthLink(payload: MedplumCore.SmartHealthLinkPayload): string;
|
|
69
99
|
encryptSHA256(str: string): Promise<ArrayBuffer>;
|
|
70
100
|
ensureNoLeadingSlash(url: string): string;
|
|
71
101
|
ensureTrailingSlash(url: string): string;
|
|
72
|
-
|
|
73
|
-
|
|
102
|
+
escapeHtml(unsafe: string): string;
|
|
103
|
+
escapeToken(token: string): string;
|
|
104
|
+
evalFhirPath(expression: string | MedplumCore.FhirPathAtom, input: unknown, variables?: Record<string, MedplumCore.TypedValue>, cache?: MedplumCore.LRUCache<MedplumCore.FhirPathAtom> | undefined): unknown[];
|
|
105
|
+
evalFhirPathTyped(expression: string | MedplumCore.FhirPathAtom, input: MedplumCore.TypedValue[], variables?: Record<string, MedplumCore.TypedValue>, cache?: MedplumCore.LRUCache<MedplumCore.FhirPathAtom> | undefined): (MedplumCore.TypedValue | MedplumCore.TypedValueWithPath)[];
|
|
74
106
|
evalSqlOnFhir(view: import("@medplum/fhirtypes").ViewDefinition, resources: import("@medplum/fhirtypes").Resource[]): MedplumCore.OutputRow[];
|
|
75
|
-
|
|
107
|
+
expandSampledData(sample: import("@medplum/fhirtypes").SampledData): number[];
|
|
108
|
+
expandSampledObservation(obs: import("@medplum/fhirtypes").Observation): import("@medplum/fhirtypes").Observation[];
|
|
109
|
+
extractAccountReferences(meta: import("@medplum/fhirtypes").Meta | undefined): import("@medplum/fhirtypes").Reference[] | undefined;
|
|
110
|
+
extractServiceTypeReferences(serviceType: import("@medplum/fhirtypes").CodeableConcept[] | undefined): import("@medplum/fhirtypes").Reference<import("@medplum/fhirtypes").HealthcareService>[];
|
|
111
|
+
fetchAllVersionStrings(appName: string, params?: Record<string, string>): Promise<MedplumCore.MedplumSemver[]>;
|
|
112
|
+
fetchLatestVersionString(appName: string): Promise<MedplumCore.MedplumSemver>;
|
|
76
113
|
fetchVersionManifest(appName: string, version?: string, params?: Record<string, string>): Promise<MedplumCore.ReleaseManifest>;
|
|
77
114
|
fhirPathArrayEquals(x: MedplumCore.TypedValue[], y: MedplumCore.TypedValue[]): MedplumCore.TypedValue[];
|
|
78
115
|
fhirPathArrayEquivalent(x: MedplumCore.TypedValue[], y: MedplumCore.TypedValue[]): MedplumCore.TypedValue[];
|
|
@@ -81,11 +118,15 @@ declare const Medplum: {
|
|
|
81
118
|
fhirPathEquivalent(x: MedplumCore.TypedValue, y: MedplumCore.TypedValue): MedplumCore.TypedValue[];
|
|
82
119
|
fhirPathIs(typedValue: MedplumCore.TypedValue, desiredType: string): boolean;
|
|
83
120
|
fhirPathNot(input: MedplumCore.TypedValue[]): MedplumCore.TypedValue[];
|
|
121
|
+
fhirpathPatchTypedValue(original: MedplumCore.TypedValue, patch: MedplumCore.FhirPathPatch[]): void;
|
|
122
|
+
findCodeBySystem(categories: import("@medplum/fhirtypes").CodeableConcept[] | undefined, system: string): string | undefined;
|
|
84
123
|
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
|
|
124
|
+
findObservationReferenceRange(definition: import("@medplum/fhirtypes").ObservationDefinition, patient: import("@medplum/fhirtypes").Patient, names?: string[]): import("@medplum/fhirtypes").ObservationDefinitionQualifiedInterval | undefined;
|
|
125
|
+
findObservationReferenceRanges(definition: import("@medplum/fhirtypes").ObservationDefinition, patient: import("@medplum/fhirtypes").Patient, names?: string[]): import("@medplum/fhirtypes").ObservationDefinitionQualifiedInterval[];
|
|
86
126
|
findResourceByCode(resources: MedplumCore.ResourceWithCode[], code: import("@medplum/fhirtypes").CodeableConcept | string, system: string): MedplumCore.ResourceWithCode | undefined;
|
|
87
|
-
|
|
88
|
-
|
|
127
|
+
findResourceInBundle<K extends import("@medplum/fhirtypes").ResourceType>(bundle: import("@medplum/fhirtypes").Bundle, resourceType: K, id: string): import("@medplum/fhirtypes").ExtractResource<K>;
|
|
128
|
+
flatMapFilter<T, U>(arr: T[] | undefined, fn: (value: T, idx: number) => U | U[] | undefined): U[];
|
|
129
|
+
formatAddress(address: import("@medplum/fhirtypes").Address | undefined, options?: MedplumCore.AddressFormatOptions): string;
|
|
89
130
|
formatCodeableConcept(codeableConcept: import("@medplum/fhirtypes").CodeableConcept | undefined): string;
|
|
90
131
|
formatCoding(coding: import("@medplum/fhirtypes").Coding | undefined, includeCode?: boolean): string;
|
|
91
132
|
formatDate(date: string | undefined, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
|
|
@@ -93,7 +134,7 @@ declare const Medplum: {
|
|
|
93
134
|
formatFamilyName(name: import("@medplum/fhirtypes").HumanName): string;
|
|
94
135
|
formatGivenName(name: import("@medplum/fhirtypes").HumanName): string;
|
|
95
136
|
formatHl7DateTime(isoDate: Date | string): string;
|
|
96
|
-
formatHumanName(name: import("@medplum/fhirtypes").HumanName, options?: MedplumCore.HumanNameFormatOptions): string;
|
|
137
|
+
formatHumanName(name: import("@medplum/fhirtypes").HumanName | undefined, options?: MedplumCore.HumanNameFormatOptions): string;
|
|
97
138
|
formatMoney(money: import("@medplum/fhirtypes").Money | undefined): string;
|
|
98
139
|
formatObservationValue(obs: import("@medplum/fhirtypes").Observation | import("@medplum/fhirtypes").ObservationComponent | undefined): string;
|
|
99
140
|
formatPeriod(period: import("@medplum/fhirtypes").Period | undefined, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
|
|
@@ -103,23 +144,30 @@ declare const Medplum: {
|
|
|
103
144
|
formatSearchQuery(definition: MedplumCore.SearchRequest): string;
|
|
104
145
|
formatTime(time: string | undefined, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
|
|
105
146
|
formatTiming(timing: import("@medplum/fhirtypes").Timing | undefined): string;
|
|
147
|
+
formatWallTime(time: string | undefined, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
|
|
106
148
|
generateId(): string;
|
|
107
149
|
getAllDataTypes(): MedplumCore.DataTypesMap;
|
|
108
150
|
getAllQuestionnaireAnswers(response: import("@medplum/fhirtypes").QuestionnaireResponse): Record<string, import("@medplum/fhirtypes").QuestionnaireResponseItemAnswer[]>;
|
|
151
|
+
getBuffer(): typeof Buffer | undefined;
|
|
109
152
|
getCodeBySystem(concept: import("@medplum/fhirtypes").CodeableConcept, system: string): string | undefined;
|
|
110
153
|
getDataType(type: string, profileUrl?: string): MedplumCore.InternalTypeSchema;
|
|
111
154
|
getDateProperty(date: string | undefined): Date | undefined;
|
|
112
155
|
getDefaultValuesForNewSliceEntry(key: string, slice: MedplumCore.SliceDefinition, slicing: MedplumCore.SlicingRules, schema: MedplumCore.InternalTypeSchema): import("@medplum/fhirtypes").Resource;
|
|
113
156
|
getDisplayString(resource: import("@medplum/fhirtypes").Resource): string;
|
|
114
157
|
getElementDefinition(typeName: string, propertyName: string, profileUrl?: string): MedplumCore.InternalSchemaElement | undefined;
|
|
158
|
+
getElementDefinitionForPath(typeName: string, path: string, profileUrl?: string): MedplumCore.InternalSchemaElement | undefined;
|
|
115
159
|
getElementDefinitionFromElements(elements: MedplumCore.InternalTypeSchema["elements"], propertyName: string): MedplumCore.InternalSchemaElement | undefined;
|
|
116
160
|
getElementDefinitionTypeName(elementDefinition: import("@medplum/fhirtypes").ElementDefinition): string;
|
|
117
161
|
getExpressionForResourceType(resourceType: string, expression: string): string | undefined;
|
|
118
162
|
getExpressionsForResourceType(resourceType: string, expression: string): MedplumCore.Atom[];
|
|
119
163
|
getExtension(resource: any, ...urls: string[]): import("@medplum/fhirtypes").Extension | undefined;
|
|
164
|
+
getExtensions(extensible: MedplumCore.Extensible | undefined, urlOrUrls: string | string[]): import("@medplum/fhirtypes").Extension[];
|
|
120
165
|
getExtensionValue(resource: any, ...urls: string[]): import("@medplum/fhirtypes").ExtensionValue | undefined;
|
|
121
166
|
getIdentifier(resource: import("@medplum/fhirtypes").Resource, system: string): string | undefined;
|
|
167
|
+
getIdentifierByType(resource: import("@medplum/fhirtypes").Resource, type: import("@medplum/fhirtypes").Coding): string | undefined;
|
|
122
168
|
getImageSrc(resource: import("@medplum/fhirtypes").Resource): string | undefined;
|
|
169
|
+
getInnerDerivedIdentifierExpression(expression: string): string | undefined;
|
|
170
|
+
getMedicationOrderIframeUrl(medicationRequest: import("@medplum/fhirtypes").MedicationRequest, ext: MedplumCore.MedicationOrderExtensions): string | undefined;
|
|
123
171
|
getNestedProperty(value: MedplumCore.TypedValueWithPath | undefined, key: string, options: {
|
|
124
172
|
profileUrl?: string;
|
|
125
173
|
withPath: true;
|
|
@@ -128,17 +176,31 @@ declare const Medplum: {
|
|
|
128
176
|
profileUrl?: string;
|
|
129
177
|
withPath?: false;
|
|
130
178
|
}): (MedplumCore.TypedValue | MedplumCore.TypedValue[] | undefined)[];
|
|
179
|
+
getOutcomeRedirectUrl(outcome: import("@medplum/fhirtypes").OperationOutcome | undefined): string | undefined;
|
|
180
|
+
getParsedDerivedIdentifierExpression(originalExpression: string, atom: MedplumCore.FhirPathAtom): MedplumCore.FhirPathAtom;
|
|
181
|
+
getParsedExpressionForResourceType(resourceType: string, expression: string): MedplumCore.FhirPathAtom;
|
|
131
182
|
getPathDifference(parentPath: string, path: string): string | undefined;
|
|
132
183
|
getPathDisplayName(path: string): string;
|
|
184
|
+
getPendingMedicationOrderId(medicationRequest: import("@medplum/fhirtypes").MedicationRequest, ext: MedplumCore.MedicationOrderExtensions): string | undefined;
|
|
185
|
+
getPendingMedicationOrderStatus(medicationRequest: import("@medplum/fhirtypes").MedicationRequest, ext: MedplumCore.MedicationOrderExtensions): string | undefined;
|
|
186
|
+
getPreferredPharmaciesFromPatient(patient: import("@medplum/fhirtypes").Patient, preferenceTypeSystem?: string): MedplumCore.PreferredPharmacy[];
|
|
133
187
|
getPropertyDisplayName(propertyName: string): string;
|
|
134
188
|
getQueryString(query: MedplumCore.QueryTypes): string;
|
|
135
189
|
getQuestionnaireAnswers(response: import("@medplum/fhirtypes").QuestionnaireResponse): Record<string, import("@medplum/fhirtypes").QuestionnaireResponseItemAnswer>;
|
|
136
190
|
getRandomString(): string;
|
|
137
|
-
|
|
191
|
+
getRateLimitReset(outcome: import("@medplum/fhirtypes").OperationOutcome): number | undefined;
|
|
192
|
+
getReferenceString(input: (import("@medplum/fhirtypes").Reference & {
|
|
193
|
+
reference: string;
|
|
194
|
+
}) | MedplumCore.WithId<import("@medplum/fhirtypes").Resource>): string;
|
|
195
|
+
getReferenceString(input: import("@medplum/fhirtypes").Reference | import("@medplum/fhirtypes").Resource): string | undefined;
|
|
138
196
|
getResourceTypes(): import("@medplum/fhirtypes").ResourceType[];
|
|
197
|
+
getScheduleParameters(schedule: import("@medplum/fhirtypes").Schedule, service: MedplumCore.WithId<import("@medplum/fhirtypes").HealthcareService>, url: string): import("@medplum/fhirtypes").Extension[];
|
|
198
|
+
getSchedulingTimezone(service: MedplumCore.WithId<import("@medplum/fhirtypes").HealthcareService>, schedule?: import("@medplum/fhirtypes").Schedule, actor?: import("@medplum/fhirtypes").Resource): string | undefined;
|
|
139
199
|
getSearchParameter(resourceType: string, code: string): import("@medplum/fhirtypes").SearchParameter | undefined;
|
|
140
200
|
getSearchParameterDetails(resourceType: string, searchParam: import("@medplum/fhirtypes").SearchParameter): MedplumCore.SearchParameterDetails;
|
|
141
201
|
getSearchParameters(resourceType: string): Record<string, import("@medplum/fhirtypes").SearchParameter> | undefined;
|
|
202
|
+
getSearchResourceTypes(searchRequest: MedplumCore.SearchRequest): import("@medplum/fhirtypes").ResourceType[];
|
|
203
|
+
getSmartHealthLinkId(manifestUrl: string): string | undefined;
|
|
142
204
|
getStatus(outcome: import("@medplum/fhirtypes").OperationOutcome): number;
|
|
143
205
|
getTypedPropertyValue(input: MedplumCore.TypedValue, path: string, options?: MedplumCore.GetTypedPropertyValueOptions): MedplumCore.TypedValue[] | MedplumCore.TypedValue | undefined;
|
|
144
206
|
getTypedPropertyValueWithoutSchema(typedValue: MedplumCore.TypedValue, path: string): MedplumCore.TypedValue[] | MedplumCore.TypedValue | undefined;
|
|
@@ -146,6 +208,9 @@ declare const Medplum: {
|
|
|
146
208
|
getTypedPropertyValueWithSchema(typedValue: MedplumCore.TypedValue, path: string, element: MedplumCore.InternalSchemaElement): MedplumCore.TypedValue[] | MedplumCore.TypedValue | undefined;
|
|
147
209
|
getValueSliceName(value: any, slices: MedplumCore.SliceDefinitionWithTypes[], discriminators: MedplumCore.SliceDiscriminator[], profileUrl: string | undefined): string | undefined;
|
|
148
210
|
getWebSocketUrl(baseUrl: URL | string, path: string): string;
|
|
211
|
+
getWindow(): Window | undefined;
|
|
212
|
+
hasSchedulingParameters(resource: import("@medplum/fhirtypes").Schedule | import("@medplum/fhirtypes").HealthcareService): boolean;
|
|
213
|
+
indexConceptMapCodings(params: MedplumCore.ConceptMapTranslateParameters): Record<string, string[]>;
|
|
149
214
|
indexDefaultSearchParameters(bundle: import("@medplum/fhirtypes").StructureDefinition[] | import("@medplum/fhirtypes").Bundle): void;
|
|
150
215
|
indexSearchParameter(searchParam: import("@medplum/fhirtypes").SearchParameter): void;
|
|
151
216
|
indexSearchParameterBundle(bundle: import("@medplum/fhirtypes").Bundle<import("@medplum/fhirtypes").SearchParameter>): void;
|
|
@@ -153,7 +218,14 @@ declare const Medplum: {
|
|
|
153
218
|
inflateBaseSchema(base: MedplumCore.BaseSchema): MedplumCore.DataTypesMap;
|
|
154
219
|
inflateElement(path: string, partial: Partial<MedplumCore.InternalSchemaElement>): MedplumCore.InternalSchemaElement;
|
|
155
220
|
initFhirPathParserBuilder(): MedplumCore.ParserBuilder;
|
|
221
|
+
intersection(objects: ArrayLike<{
|
|
222
|
+
[index: string]: any;
|
|
223
|
+
}>): string[];
|
|
224
|
+
invalidSearchOperator(operator: MedplumCore.Operator, searchParameterCodeOrId: string): import("@medplum/fhirtypes").OperationOutcome;
|
|
156
225
|
isAccepted(outcome: import("@medplum/fhirtypes").OperationOutcome): boolean;
|
|
226
|
+
isAckCode(value: string | undefined): value is MedplumCore.AckCode;
|
|
227
|
+
isAddPharmacyResponse(value: unknown): value is MedplumCore.AddPharmacyResponse;
|
|
228
|
+
isBrowserEnvironment(): boolean;
|
|
157
229
|
isCodeableConcept(value: unknown): value is import("@medplum/fhirtypes").CodeableConcept & {
|
|
158
230
|
coding: import("@medplum/fhirtypes").Coding[];
|
|
159
231
|
};
|
|
@@ -168,72 +240,97 @@ declare const Medplum: {
|
|
|
168
240
|
isDataTypeLoaded(type: string): boolean;
|
|
169
241
|
isDateString(input: unknown): input is string;
|
|
170
242
|
isDateTimeString(input: unknown): input is string;
|
|
243
|
+
isDayOfWeek(value: string | undefined): value is MedplumCore.DayOfWeek;
|
|
244
|
+
isDefined<T>(value: T | undefined | null): value is T;
|
|
245
|
+
isDestructive({ op }: MedplumCore.Operation): boolean;
|
|
171
246
|
isEmpty(v: unknown): boolean;
|
|
247
|
+
isError(value: unknown): value is Error;
|
|
172
248
|
isFhircastResourceType(resourceType: MedplumCore.FhircastResourceType): boolean;
|
|
173
249
|
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
250
|
isGone(outcome: import("@medplum/fhirtypes").OperationOutcome): boolean;
|
|
175
251
|
isJwt(token: string): boolean;
|
|
176
252
|
isLowerCase(c: string): boolean;
|
|
253
|
+
isMedicationArray(value: unknown): value is import("@medplum/fhirtypes").Medication[];
|
|
254
|
+
isMedicationCartManageResponse(value: unknown): value is MedplumCore.MedicationCartManageResponse;
|
|
255
|
+
isMedicationCheckoutResponse(value: unknown): value is MedplumCore.MedicationCheckoutResponse;
|
|
256
|
+
isMedicationOrderResponse(value: unknown): value is MedplumCore.MedicationOrderResponse;
|
|
257
|
+
isMedicationOrderSetResponse(value: unknown): value is MedplumCore.MedicationOrderSetResponse;
|
|
177
258
|
isMedplumAccessToken(accessToken: string): boolean;
|
|
259
|
+
isNodeEnvironment(): boolean;
|
|
178
260
|
isNotFound(outcome: import("@medplum/fhirtypes").OperationOutcome): boolean;
|
|
179
261
|
isObject(obj: unknown): obj is Record<string, unknown>;
|
|
180
262
|
isOk(outcome: import("@medplum/fhirtypes").OperationOutcome): boolean;
|
|
181
263
|
isOperationOutcome(value: unknown): value is import("@medplum/fhirtypes").OperationOutcome;
|
|
264
|
+
isOrganizationArray(value: unknown): value is import("@medplum/fhirtypes").Organization[];
|
|
182
265
|
isPeriod(input: unknown): input is import("@medplum/fhirtypes").Period;
|
|
183
266
|
isPopulated<T extends {
|
|
184
267
|
length: number;
|
|
185
|
-
} |
|
|
268
|
+
} | Record<string, any>>(arg: MedplumCore.CanBePopulated | undefined | null): arg is T;
|
|
186
269
|
isPrimitiveType(code: string): boolean;
|
|
187
270
|
isProfileLoaded(profileUrl: string): boolean;
|
|
188
271
|
isProfileResource(resource: import("@medplum/fhirtypes").Resource): resource is MedplumCore.ProfileResource;
|
|
189
272
|
isQuantity(input: unknown): input is import("@medplum/fhirtypes").Quantity;
|
|
190
273
|
isQuantityEquivalent(x: import("@medplum/fhirtypes").Quantity, y: import("@medplum/fhirtypes").Quantity): boolean;
|
|
191
274
|
isRedirect(outcome: import("@medplum/fhirtypes").OperationOutcome): boolean;
|
|
192
|
-
isReference(value: unknown): value is import("@medplum/fhirtypes").Reference & {
|
|
275
|
+
isReference<T extends import("@medplum/fhirtypes").Resource = import("@medplum/fhirtypes").Resource>(value: unknown, resourceType?: T["resourceType"]): value is import("@medplum/fhirtypes").Reference<T> & {
|
|
193
276
|
reference: string;
|
|
194
277
|
};
|
|
195
|
-
isResource
|
|
196
|
-
isResourceType(resourceType: string):
|
|
278
|
+
isResource<T extends import("@medplum/fhirtypes").Resource>(value: unknown, resourceType?: T["resourceType"]): value is T;
|
|
279
|
+
isResourceType(resourceType: string): resourceType is import("@medplum/fhirtypes").ResourceType;
|
|
197
280
|
isResourceTypeSchema(typeSchema: MedplumCore.InternalTypeSchema): boolean;
|
|
281
|
+
isResourceWithId<T extends import("@medplum/fhirtypes").Resource>(resource: unknown, resourceType?: T["resourceType"]): resource is MedplumCore.WithId<T>;
|
|
198
282
|
isSliceDefinitionWithTypes(slice: MedplumCore.SliceDefinition): slice is MedplumCore.SliceDefinitionWithTypes;
|
|
199
283
|
isString(value: unknown): value is string;
|
|
200
284
|
isStringArray(arr: any[]): arr is string[];
|
|
201
285
|
isTextObject(value: unknown): value is {
|
|
202
286
|
text: string;
|
|
203
287
|
};
|
|
288
|
+
isTypedValue(value: unknown): value is MedplumCore.TypedValue;
|
|
204
289
|
isUnauthenticated(outcome: import("@medplum/fhirtypes").OperationOutcome): boolean;
|
|
205
290
|
isUUID(input: string): input is string;
|
|
206
291
|
isValidDate(date: Date): boolean;
|
|
207
292
|
isValidHostname(input: string): boolean;
|
|
208
|
-
isValidMedplumSemver(version: string):
|
|
293
|
+
isValidMedplumSemver(version: string): version is MedplumCore.MedplumSemver;
|
|
209
294
|
lazy<T>(fn: () => T): () => T;
|
|
210
295
|
loadDataType(sd: import("@medplum/fhirtypes").StructureDefinition): void;
|
|
211
296
|
mapByIdentifier<T extends import("@medplum/fhirtypes").Resource = import("@medplum/fhirtypes").Resource>(resourceBundle: import("@medplum/fhirtypes").Bundle<T>, identifierSystem: string): Map<string, T>;
|
|
212
297
|
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
298
|
matchesRange(value: number, range: import("@medplum/fhirtypes").Range, precision?: number): boolean;
|
|
215
299
|
matchesSearchRequest(resource: import("@medplum/fhirtypes").Resource, searchRequest: MedplumCore.SearchRequest): boolean;
|
|
300
|
+
medicationCartClearRequestToParameters(req: MedplumCore.MedicationCartClearRequest): import("@medplum/fhirtypes").Parameters;
|
|
301
|
+
medicationCartRemoveRequestToParameters(req: MedplumCore.MedicationCartRemoveRequest): import("@medplum/fhirtypes").Parameters;
|
|
302
|
+
medicationCheckoutRequestToParameters(req: MedplumCore.MedicationCheckoutRequest): import("@medplum/fhirtypes").Parameters;
|
|
303
|
+
medicationOrderRequestToParameters(req: MedplumCore.MedicationOrderRequest): import("@medplum/fhirtypes").Parameters;
|
|
304
|
+
medicationOrderSetRequestToParameters(req: MedplumCore.MedicationOrderSetRequest): import("@medplum/fhirtypes").Parameters;
|
|
305
|
+
medicationSearchParamsToParameters(params: MedplumCore.MedicationSearchParams): import("@medplum/fhirtypes").Parameters;
|
|
306
|
+
move(object: any, operation: MedplumCore.MoveOperation, _options?: MedplumCore.PatchOptions): MedplumCore.MissingError | null;
|
|
216
307
|
normalizeArrayBufferView(typedArrayOrBuffer: ArrayBufferLike | ArrayBufferView): ArrayBufferLike;
|
|
217
308
|
normalizeCreateBinaryOptions(arg1: MedplumCore.BinarySource | MedplumCore.CreateBinaryOptions, arg2: string | undefined | MedplumCore.MedplumRequestOptions, arg3?: string, arg4?: (e: ProgressEvent) => void): MedplumCore.CreateBinaryOptions;
|
|
218
309
|
normalizeCreatePdfOptions(arg1: TDocumentDefinitions | MedplumCore.CreatePdfOptions, arg2: string | undefined | MedplumCore.MedplumRequestOptions, arg3: Record<string, CustomTableLayout> | undefined, arg4: TFontDictionary | undefined): MedplumCore.CreatePdfOptions;
|
|
310
|
+
normalizeErrorEvent(event: Event | MedplumCore.ErrorEvent, target: unknown): MedplumCore.ErrorEvent;
|
|
219
311
|
normalizeErrorString(error: unknown): string;
|
|
220
312
|
normalizeOperationOutcome(error: unknown): import("@medplum/fhirtypes").OperationOutcome;
|
|
221
313
|
operationOutcomeIssueToString(issue: import("@medplum/fhirtypes").OperationOutcomeIssue): string;
|
|
222
314
|
operationOutcomeToString(outcome: import("@medplum/fhirtypes").OperationOutcome): string;
|
|
223
|
-
|
|
315
|
+
parametersToMedicationCartManageResponse(params: import("@medplum/fhirtypes").Parameters): MedplumCore.MedicationCartManageResponse;
|
|
316
|
+
parametersToMedicationCheckoutResponse(params: import("@medplum/fhirtypes").Parameters): MedplumCore.MedicationCheckoutResponse;
|
|
317
|
+
parametersToMedicationOrderResponse(params: import("@medplum/fhirtypes").Parameters): MedplumCore.MedicationOrderResponse;
|
|
318
|
+
parametersToMedicationOrderSetResponse(params: import("@medplum/fhirtypes").Parameters): MedplumCore.MedicationOrderSetResponse;
|
|
319
|
+
parametersToOrderSetSyncResponse(params: import("@medplum/fhirtypes").Parameters): MedplumCore.OrderSetSyncResponse;
|
|
224
320
|
parseFhirPath(input: string): MedplumCore.FhirPathAtom;
|
|
321
|
+
parseFhirPathPatchParameters(parameters: import("@medplum/fhirtypes").Parameters): MedplumCore.FhirPathPatch[];
|
|
225
322
|
parseFilterParameter(input: string): MedplumCore.FhirFilterExpression;
|
|
226
323
|
parseHl7DateTime(hl7DateTime: string | undefined, options?: MedplumCore.Hl7DateParseOptions): string | undefined;
|
|
227
|
-
parseJWTPayload(token: string):
|
|
324
|
+
parseJWTPayload(token: string): MedplumCore.JWTPayload;
|
|
228
325
|
parseLogLevel(level: string): MedplumCore.LogLevel;
|
|
229
326
|
parseMappingLanguage(input: string): import("@medplum/fhirtypes").StructureMap;
|
|
230
|
-
parseParameter(searchParam: import("@medplum/fhirtypes").SearchParameter, modifier: string, value: string): MedplumCore.Filter;
|
|
327
|
+
parseParameter(searchParam: import("@medplum/fhirtypes").SearchParameter, operator: MedplumCore.Operator, modifier: string, value: string): MedplumCore.Filter;
|
|
231
328
|
parseReference<T extends import("@medplum/fhirtypes").Resource>(reference: import("@medplum/fhirtypes").Reference<T> | undefined): [T["resourceType"], string];
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
parseSearchUrl<T extends import("@medplum/fhirtypes").Resource = import("@medplum/fhirtypes").Resource>(url: URL): MedplumCore.SearchRequest<T>;
|
|
329
|
+
parseSearchRequest<T extends import("@medplum/fhirtypes").Resource = import("@medplum/fhirtypes").Resource>(url: URL | string, query?: Record<string, string[] | string | undefined>): MedplumCore.SearchRequest<T>;
|
|
330
|
+
parseSmartHealthLink(input: string): MedplumCore.SmartHealthLinkPayload;
|
|
235
331
|
parseStructureDefinition(sd: import("@medplum/fhirtypes").StructureDefinition): MedplumCore.InternalTypeSchema;
|
|
236
|
-
parseXFhirQuery(query: string, variables: Record<string, MedplumCore.TypedValue
|
|
332
|
+
parseXFhirQuery(query: string, variables: Record<string, MedplumCore.TypedValue>, context?: MedplumCore.TypedValue[]): MedplumCore.SearchRequest;
|
|
333
|
+
pathToJSONPointer(path: string): string;
|
|
237
334
|
preciseEquals(a: number, b: number, precision?: number): boolean;
|
|
238
335
|
preciseGreaterThan(a: number, b: number, precision?: number): boolean;
|
|
239
336
|
preciseGreaterThanOrEquals(a: number, b: number, precision?: number): boolean;
|
|
@@ -241,19 +338,31 @@ declare const Medplum: {
|
|
|
241
338
|
preciseLessThanOrEquals(a: number, b: number, precision?: number): boolean;
|
|
242
339
|
preciseRound(a: number, precision: number): number;
|
|
243
340
|
redirect(url: URL): import("@medplum/fhirtypes").OperationOutcome;
|
|
341
|
+
redirectOk(url: URL): import("@medplum/fhirtypes").OperationOutcome;
|
|
342
|
+
remove(object: any, operation: MedplumCore.RemoveOperation, _options?: MedplumCore.PatchOptions): MedplumCore.MissingError | null;
|
|
244
343
|
removeDuplicates(arr: MedplumCore.TypedValue[]): MedplumCore.TypedValue[];
|
|
344
|
+
removePreferredPharmacyFromPatient(patient: import("@medplum/fhirtypes").Patient, orgRef: import("@medplum/fhirtypes").Reference<import("@medplum/fhirtypes").Organization>): import("@medplum/fhirtypes").Patient;
|
|
245
345
|
removeProfileFromResource<T extends import("@medplum/fhirtypes").Resource = import("@medplum/fhirtypes").Resource>(resource: T, profileUrl: string): T;
|
|
246
346
|
reorderBundle(bundle: import("@medplum/fhirtypes").Bundle): import("@medplum/fhirtypes").Bundle;
|
|
347
|
+
replace(object: any, operation: MedplumCore.ReplaceOperation, _options?: MedplumCore.PatchOptions): MedplumCore.MissingError | null;
|
|
348
|
+
replaceQueryVariables(user: MedplumCore.CdsUserResource, context: Record<string, unknown>, query: string): string;
|
|
247
349
|
resolveId(input: import("@medplum/fhirtypes").Reference | import("@medplum/fhirtypes").Resource | undefined): string | undefined;
|
|
248
350
|
resourceMatchesSubscriptionCriteria({ resource, subscription, context, getPreviousResource, logger, }: MedplumCore.ResourceMatchesSubscriptionCriteria): Promise<boolean>;
|
|
249
351
|
satisfiedAccessPolicy(resource: import("@medplum/fhirtypes").Resource, interaction: MedplumCore.AccessPolicyInteraction, accessPolicy: import("@medplum/fhirtypes").AccessPolicy | undefined): import("@medplum/fhirtypes").AccessPolicyResource | undefined;
|
|
352
|
+
schedulingDurationToMinutes(duration: import("@medplum/fhirtypes").Duration | undefined): number | undefined;
|
|
353
|
+
serializeError(error: Error, depth?: number, maxDepth?: number): Record<string, any>;
|
|
250
354
|
serializeFhircastSubscriptionRequest(subscriptionRequest: MedplumCore.SubscriptionRequest | MedplumCore.PendingSubscriptionRequest): string;
|
|
251
355
|
serverError(err: Error): import("@medplum/fhirtypes").OperationOutcome;
|
|
252
356
|
serverTimeout(msg?: string): import("@medplum/fhirtypes").OperationOutcome;
|
|
357
|
+
serviceTypeIncludesService(serviceType: import("@medplum/fhirtypes").CodeableConcept[] | undefined, service: MedplumCore.WithId<import("@medplum/fhirtypes").HealthcareService> | (import("@medplum/fhirtypes").Reference<import("@medplum/fhirtypes").HealthcareService> & {
|
|
358
|
+
reference: string;
|
|
359
|
+
})): boolean;
|
|
253
360
|
setCodeBySystem(concept: import("@medplum/fhirtypes").CodeableConcept, system: string, code: string): void;
|
|
254
361
|
setIdentifier(resource: import("@medplum/fhirtypes").Resource & {
|
|
255
362
|
identifier?: import("@medplum/fhirtypes").Identifier[];
|
|
256
|
-
}, system: string, value: string): void;
|
|
363
|
+
}, system: string, value: string, options?: MedplumCore.SetIdentifierOptions): void;
|
|
364
|
+
setRateLimitReset(outcome: import("@medplum/fhirtypes").OperationOutcome, msBeforeNext: number): void;
|
|
365
|
+
setScheduleParameter(schedule: import("@medplum/fhirtypes").Schedule, service: MedplumCore.WithId<import("@medplum/fhirtypes").HealthcareService>, subextension: import("@medplum/fhirtypes").Extension): import("@medplum/fhirtypes").Schedule;
|
|
257
366
|
singleton(collection: MedplumCore.TypedValue[], type?: string): MedplumCore.TypedValue | undefined;
|
|
258
367
|
singularize<T>(value: T | T[] | undefined): T | undefined;
|
|
259
368
|
sortStringArray(array: string[]): string[];
|
|
@@ -264,40 +373,71 @@ declare const Medplum: {
|
|
|
264
373
|
stringifyTypedValue(v: MedplumCore.TypedValue): string;
|
|
265
374
|
structureMapTransform(structureMap: import("@medplum/fhirtypes").StructureMap, input: MedplumCore.TypedValue[], transformMaps?: MedplumCore.TransformMapCollection): MedplumCore.TypedValue[];
|
|
266
375
|
subsetResource<T extends import("@medplum/fhirtypes").Resource>(resource: T | undefined, properties: string[]): T | undefined;
|
|
376
|
+
subtract(minuend: {
|
|
377
|
+
[index: string]: any;
|
|
378
|
+
}, subtrahend: {
|
|
379
|
+
[index: string]: any;
|
|
380
|
+
}): string[];
|
|
381
|
+
sumBy<T>(items: Iterable<T>, fn: (value: T) => number): number;
|
|
382
|
+
summarizeObservations(observations: import("@medplum/fhirtypes").Observation[] | import("@medplum/fhirtypes").Bundle<import("@medplum/fhirtypes").Observation>, summaryCode: import("@medplum/fhirtypes").CodeableConcept, summarizeFn: MedplumCore.StatsFn): import("@medplum/fhirtypes").Observation;
|
|
267
383
|
toJsBoolean(obj: MedplumCore.TypedValue[]): boolean;
|
|
268
384
|
toPeriod(input: unknown): import("@medplum/fhirtypes").Period | undefined;
|
|
385
|
+
toServiceTypeCodeableConcepts(service: MedplumCore.WithId<import("@medplum/fhirtypes").HealthcareService>): import("@medplum/fhirtypes").CodeableConcept[];
|
|
269
386
|
toTypedValue(value: unknown): MedplumCore.TypedValue;
|
|
387
|
+
trimTrailingEmptyElements<T>(arr: T[] | undefined): T[] | undefined;
|
|
270
388
|
tryGetDataType(type: string, profileUrl?: string): MedplumCore.InternalTypeSchema | undefined;
|
|
271
389
|
tryGetJwtExpiration(token: string): number | undefined;
|
|
272
390
|
tryGetProfile(profileUrl: string): MedplumCore.InternalTypeSchema | undefined;
|
|
273
391
|
typedValueToString(typedValue: MedplumCore.TypedValue | undefined): string;
|
|
392
|
+
unescapeToken(token: string): string;
|
|
274
393
|
validateFhircastSubscriptionRequest(subscriptionRequest: MedplumCore.SubscriptionRequest | MedplumCore.PendingSubscriptionRequest): boolean;
|
|
275
394
|
validateResource(resource: import("@medplum/fhirtypes").Resource, options?: MedplumCore.ValidatorOptions): import("@medplum/fhirtypes").OperationOutcomeIssue[];
|
|
276
395
|
validateResourceType(resourceType: string): void;
|
|
277
396
|
validateTypedValue(typedValue: MedplumCore.TypedValue, options?: MedplumCore.ValidatorOptions): import("@medplum/fhirtypes").OperationOutcomeIssue[];
|
|
278
|
-
validationError(details: string): import("@medplum/fhirtypes").OperationOutcome;
|
|
397
|
+
validationError(details: string, expressions?: string[], code?: MedplumCore.IssueType, diagnostics?: string): import("@medplum/fhirtypes").OperationOutcome;
|
|
279
398
|
warnIfNewerVersionAvailable(appName: string, params?: Record<string, string>): Promise<void>;
|
|
280
399
|
wordWrap(text: string, maxLength: number): string[];
|
|
281
|
-
AccessPolicyInteraction:
|
|
400
|
+
AccessPolicyInteraction: {
|
|
401
|
+
readonly READ: "read";
|
|
402
|
+
readonly VREAD: "vread";
|
|
403
|
+
readonly UPDATE: "update";
|
|
404
|
+
readonly DELETE: "delete";
|
|
405
|
+
readonly HISTORY: "history";
|
|
406
|
+
readonly CREATE: "create";
|
|
407
|
+
readonly SEARCH: "search";
|
|
408
|
+
};
|
|
409
|
+
AckCode: {
|
|
410
|
+
readonly AA: "AA";
|
|
411
|
+
readonly AE: "AE";
|
|
412
|
+
readonly AR: "AR";
|
|
413
|
+
readonly CA: "CA";
|
|
414
|
+
readonly CE: "CE";
|
|
415
|
+
readonly CR: "CR";
|
|
416
|
+
};
|
|
282
417
|
allOk: import("@medplum/fhirtypes").OperationOutcome;
|
|
283
418
|
AndAtom: typeof MedplumCore.AndAtom;
|
|
284
|
-
|
|
419
|
+
ArithmeticOperatorAtom: typeof MedplumCore.ArithmeticOperatorAtom;
|
|
285
420
|
AsAtom: typeof MedplumCore.AsAtom;
|
|
286
|
-
|
|
421
|
+
assert: typeof MedplumCore.assert;
|
|
287
422
|
ClientStorage: typeof MedplumCore.ClientStorage;
|
|
288
423
|
ConcatAtom: typeof MedplumCore.ConcatAtom;
|
|
289
424
|
ContainsAtom: typeof MedplumCore.ContainsAtom;
|
|
290
425
|
ContentType: {
|
|
291
426
|
readonly CSS: "text/css";
|
|
292
427
|
readonly DICOM: "application/dicom";
|
|
428
|
+
readonly DICOM_JSON: "application/dicom+json";
|
|
429
|
+
readonly EVENT_STREAM: "text/event-stream";
|
|
293
430
|
readonly FAVICON: "image/vnd.microsoft.icon";
|
|
294
431
|
readonly FHIR_JSON: "application/fhir+json";
|
|
295
432
|
readonly FORM_URL_ENCODED: "application/x-www-form-urlencoded";
|
|
296
433
|
readonly HL7_V2: "x-application/hl7-v2+er7";
|
|
297
434
|
readonly HTML: "text/html";
|
|
298
435
|
readonly JAVASCRIPT: "text/javascript";
|
|
436
|
+
readonly JOSE: "application/jose";
|
|
299
437
|
readonly JSON: "application/json";
|
|
300
438
|
readonly JSON_PATCH: "application/json-patch+json";
|
|
439
|
+
readonly JWT: "application/jwt";
|
|
440
|
+
readonly MULTIPART_FORM_DATA: "multipart/form-data";
|
|
301
441
|
readonly PNG: "image/png";
|
|
302
442
|
readonly SCIM_JSON: "application/scim+json";
|
|
303
443
|
readonly SVG: "image/svg+xml";
|
|
@@ -306,13 +446,17 @@ declare const Medplum: {
|
|
|
306
446
|
readonly PING: "x-application/ping";
|
|
307
447
|
readonly XML: "text/xml";
|
|
308
448
|
readonly CDA_XML: "application/cda+xml";
|
|
449
|
+
readonly OCTET_STREAM: "application/octet-stream";
|
|
309
450
|
};
|
|
310
451
|
CPT: "http://www.ama-assn.org/go/cpt";
|
|
311
452
|
created: import("@medplum/fhirtypes").OperationOutcome;
|
|
453
|
+
DataSampler: typeof MedplumCore.DataSampler;
|
|
454
|
+
DAYS_OF_WEEK: readonly ["mon", "tue", "wed", "thu", "fri", "sat", "sun"];
|
|
312
455
|
DEFAULT_ACCEPT: string;
|
|
313
456
|
DEFAULT_MAX_SEARCH_COUNT: 1000;
|
|
314
457
|
DEFAULT_SEARCH_COUNT: 20;
|
|
315
458
|
DotAtom: typeof MedplumCore.DotAtom;
|
|
459
|
+
EMPTY: readonly [];
|
|
316
460
|
EmptySetAtom: typeof MedplumCore.EmptySetAtom;
|
|
317
461
|
EqualsAtom: typeof MedplumCore.EqualsAtom;
|
|
318
462
|
EquivalentAtom: typeof MedplumCore.EquivalentAtom;
|
|
@@ -440,8 +584,8 @@ declare const Medplum: {
|
|
|
440
584
|
};
|
|
441
585
|
readonly select: {
|
|
442
586
|
readonly resourceType: "*";
|
|
443
|
-
readonly array: true;
|
|
444
587
|
readonly reference: true;
|
|
588
|
+
readonly manyAllowed: true;
|
|
445
589
|
};
|
|
446
590
|
};
|
|
447
591
|
readonly "DiagnosticReport-update": {
|
|
@@ -500,6 +644,7 @@ declare const Medplum: {
|
|
|
500
644
|
FunctionAtom: typeof MedplumCore.FunctionAtom;
|
|
501
645
|
globalSchema: MedplumCore.IndexedStructureDefinition;
|
|
502
646
|
gone: import("@medplum/fhirtypes").OperationOutcome;
|
|
647
|
+
HL7_V2_0203: "http://terminology.hl7.org/CodeSystem/v2-0203";
|
|
503
648
|
Hl7Context: typeof MedplumCore.Hl7Context;
|
|
504
649
|
Hl7Field: typeof MedplumCore.Hl7Field;
|
|
505
650
|
Hl7Message: typeof MedplumCore.Hl7Message;
|
|
@@ -511,30 +656,111 @@ declare const Medplum: {
|
|
|
511
656
|
InAtom: typeof MedplumCore.InAtom;
|
|
512
657
|
IndexerAtom: typeof MedplumCore.IndexerAtom;
|
|
513
658
|
InfixOperatorAtom: typeof MedplumCore.InfixOperatorAtom;
|
|
659
|
+
INVALID_MEDICATION_CART_RESPONSE: "Invalid response from cart-management bot";
|
|
660
|
+
INVALID_MEDICATION_CHECKOUT_RESPONSE: "Invalid response from checkout-medications bot";
|
|
661
|
+
INVALID_MEDICATION_ORDER_RESPONSE: "Invalid response from order medication bot";
|
|
662
|
+
INVALID_MEDICATION_ORDER_SET_RESPONSE: "Invalid response from order-set bot";
|
|
663
|
+
INVALID_MEDICATION_SEARCH_RESPONSE: "Invalid response from medication search bot";
|
|
664
|
+
InvalidOperationError: typeof MedplumCore.InvalidOperationError;
|
|
514
665
|
IsAtom: typeof MedplumCore.IsAtom;
|
|
515
666
|
LiteralAtom: typeof MedplumCore.LiteralAtom;
|
|
667
|
+
locationUtils: {
|
|
668
|
+
assign(url: string): void;
|
|
669
|
+
reload(): void;
|
|
670
|
+
getSearch(): string;
|
|
671
|
+
getPathname(): string;
|
|
672
|
+
getLocation(): string;
|
|
673
|
+
getOrigin(): string;
|
|
674
|
+
};
|
|
516
675
|
Logger: typeof MedplumCore.Logger;
|
|
517
|
-
LogLevel:
|
|
676
|
+
LogLevel: {
|
|
677
|
+
NONE: number;
|
|
678
|
+
ERROR: number;
|
|
679
|
+
WARN: number;
|
|
680
|
+
INFO: number;
|
|
681
|
+
DEBUG: number;
|
|
682
|
+
};
|
|
683
|
+
LogLevelNames: readonly ["NONE", "ERROR", "WARN", "INFO", "DEBUG"];
|
|
518
684
|
LOINC: "http://loinc.org";
|
|
519
685
|
LRUCache: typeof MedplumCore.LRUCache;
|
|
686
|
+
MEDICATION_REQUEST_STATUS_REASON_RESPONSE_NOT_RECEIVED: "response-not-received";
|
|
687
|
+
MEDICATION_REQUEST_STATUS_REASON_SYSTEM: "https://medplum.com/fhir/CodeSystem/medication-request-status-reason";
|
|
520
688
|
MEDPLUM_CLI_CLIENT_ID: "medplum-cli";
|
|
521
689
|
MEDPLUM_RELEASES_URL: "https://meta.medplum.com/releases";
|
|
690
|
+
MEDPLUM_SEMVER_REGEX: RegExp;
|
|
522
691
|
MEDPLUM_VERSION: string;
|
|
523
692
|
MedplumKeyValueClient: typeof MedplumCore.MedplumKeyValueClient;
|
|
524
693
|
MemoryStorage: typeof MedplumCore.MemoryStorage;
|
|
694
|
+
MissingError: typeof MedplumCore.MissingError;
|
|
525
695
|
MockAsyncClientStorage: typeof MedplumCore.MockAsyncClientStorage;
|
|
696
|
+
MRN_IDENTIFIER_TYPE: import("@medplum/fhirtypes").Coding;
|
|
526
697
|
multipleMatches: import("@medplum/fhirtypes").OperationOutcome;
|
|
527
698
|
NDC: "http://hl7.org/fhir/sid/ndc";
|
|
699
|
+
NOOP: () => void;
|
|
528
700
|
NotEqualsAtom: typeof MedplumCore.NotEqualsAtom;
|
|
529
701
|
NotEquivalentAtom: typeof MedplumCore.NotEquivalentAtom;
|
|
530
702
|
notFound: import("@medplum/fhirtypes").OperationOutcome;
|
|
531
703
|
notModified: import("@medplum/fhirtypes").OperationOutcome;
|
|
532
|
-
OAuthClientAssertionType:
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
704
|
+
OAuthClientAssertionType: {
|
|
705
|
+
readonly JwtBearer: "urn:ietf:params:oauth:client-assertion-type:jwt-bearer";
|
|
706
|
+
};
|
|
707
|
+
OAuthGrantType: {
|
|
708
|
+
readonly ClientCredentials: "client_credentials";
|
|
709
|
+
readonly AuthorizationCode: "authorization_code";
|
|
710
|
+
readonly RefreshToken: "refresh_token";
|
|
711
|
+
readonly JwtBearer: "urn:ietf:params:oauth:grant-type:jwt-bearer";
|
|
712
|
+
readonly TokenExchange: "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
713
|
+
readonly PreAuthorizedCode: "urn:ietf:params:oauth:grant-type:pre-authorized_code";
|
|
714
|
+
};
|
|
715
|
+
OAuthSigningAlgorithm: {
|
|
716
|
+
readonly ES256: "ES256";
|
|
717
|
+
readonly ES384: "ES384";
|
|
718
|
+
readonly ES512: "ES512";
|
|
719
|
+
readonly HS256: "HS256";
|
|
720
|
+
readonly RS256: "RS256";
|
|
721
|
+
readonly RS384: "RS384";
|
|
722
|
+
readonly RS512: "RS512";
|
|
723
|
+
};
|
|
724
|
+
OAuthTokenAuthMethod: {
|
|
725
|
+
readonly ClientSecretBasic: "client_secret_basic";
|
|
726
|
+
readonly ClientSecretPost: "client_secret_post";
|
|
727
|
+
readonly ClientSecretJwt: "client_secret_jwt";
|
|
728
|
+
readonly PrivateKeyJwt: "private_key_jwt";
|
|
729
|
+
readonly None: "none";
|
|
730
|
+
};
|
|
731
|
+
OAuthTokenType: {
|
|
732
|
+
readonly AccessToken: "urn:ietf:params:oauth:token-type:access_token";
|
|
733
|
+
readonly RefreshToken: "urn:ietf:params:oauth:token-type:refresh_token";
|
|
734
|
+
readonly IdToken: "urn:ietf:params:oauth:token-type:id_token";
|
|
735
|
+
readonly Saml1Token: "urn:ietf:params:oauth:token-type:saml1";
|
|
736
|
+
readonly Saml2Token: "urn:ietf:params:oauth:token-type:saml2";
|
|
737
|
+
};
|
|
536
738
|
OperationOutcomeError: typeof MedplumCore.OperationOutcomeError;
|
|
537
|
-
Operator:
|
|
739
|
+
Operator: {
|
|
740
|
+
readonly EQUALS: "eq";
|
|
741
|
+
readonly NOT_EQUALS: "ne";
|
|
742
|
+
readonly GREATER_THAN: "gt";
|
|
743
|
+
readonly LESS_THAN: "lt";
|
|
744
|
+
readonly GREATER_THAN_OR_EQUALS: "ge";
|
|
745
|
+
readonly LESS_THAN_OR_EQUALS: "le";
|
|
746
|
+
readonly STARTS_AFTER: "sa";
|
|
747
|
+
readonly ENDS_BEFORE: "eb";
|
|
748
|
+
readonly APPROXIMATELY: "ap";
|
|
749
|
+
readonly CONTAINS: "contains";
|
|
750
|
+
readonly STARTS_WITH: "sw";
|
|
751
|
+
readonly EXACT: "exact";
|
|
752
|
+
readonly TEXT: "text";
|
|
753
|
+
readonly NOT: "not";
|
|
754
|
+
readonly ABOVE: "above";
|
|
755
|
+
readonly BELOW: "below";
|
|
756
|
+
readonly IN: "in";
|
|
757
|
+
readonly NOT_IN: "not-in";
|
|
758
|
+
readonly OF_TYPE: "of-type";
|
|
759
|
+
readonly MISSING: "missing";
|
|
760
|
+
readonly PRESENT: "present";
|
|
761
|
+
readonly IDENTIFIER: "identifier";
|
|
762
|
+
readonly ITERATE: "iterate";
|
|
763
|
+
};
|
|
538
764
|
OperatorPrecedence: {
|
|
539
765
|
FunctionCall: number;
|
|
540
766
|
Dot: number;
|
|
@@ -571,6 +797,11 @@ declare const Medplum: {
|
|
|
571
797
|
OrAtom: typeof MedplumCore.OrAtom;
|
|
572
798
|
Parser: typeof MedplumCore.Parser;
|
|
573
799
|
ParserBuilder: typeof MedplumCore.ParserBuilder;
|
|
800
|
+
PATIENT_PREFERRED_PHARMACY_URL: "http://hl7.org/fhir/StructureDefinition/patient-preferredPharmacy";
|
|
801
|
+
PHARMACY_PREFERENCE_TYPE_SYSTEM: "https://medplum.com/fhir/CodeSystem/pharmacy-preference-type";
|
|
802
|
+
PHARMACY_TYPE_PREFERRED: "preferred";
|
|
803
|
+
PHARMACY_TYPE_PRIMARY: "primary";
|
|
804
|
+
Pointer: typeof MedplumCore.Pointer;
|
|
574
805
|
preconditionFailed: import("@medplum/fhirtypes").OperationOutcome;
|
|
575
806
|
PrefixOperatorAtom: typeof MedplumCore.PrefixOperatorAtom;
|
|
576
807
|
projectAdminResourceTypes: string[];
|
|
@@ -590,6 +821,8 @@ declare const Medplum: {
|
|
|
590
821
|
readonly Distance: "Distance";
|
|
591
822
|
readonly Dosage: "Dosage";
|
|
592
823
|
readonly Duration: "Duration";
|
|
824
|
+
readonly Element: "Element";
|
|
825
|
+
readonly ElementDefinition: "ElementDefinition";
|
|
593
826
|
readonly Expression: "Expression";
|
|
594
827
|
readonly Extension: "Extension";
|
|
595
828
|
readonly HumanName: "HumanName";
|
|
@@ -597,6 +830,7 @@ declare const Medplum: {
|
|
|
597
830
|
readonly MarketingStatus: "MarketingStatus";
|
|
598
831
|
readonly Meta: "Meta";
|
|
599
832
|
readonly Money: "Money";
|
|
833
|
+
readonly MoneyQuantity: "MoneyQuantity";
|
|
600
834
|
readonly Narrative: "Narrative";
|
|
601
835
|
readonly ParameterDefinition: "ParameterDefinition";
|
|
602
836
|
readonly Period: "Period";
|
|
@@ -610,6 +844,7 @@ declare const Medplum: {
|
|
|
610
844
|
readonly RelatedArtifact: "RelatedArtifact";
|
|
611
845
|
readonly SampledData: "SampledData";
|
|
612
846
|
readonly Signature: "Signature";
|
|
847
|
+
readonly SimpleQuantity: "SimpleQuantity";
|
|
613
848
|
readonly SubstanceAmount: "SubstanceAmount";
|
|
614
849
|
readonly SystemString: "http://hl7.org/fhirpath/System.String";
|
|
615
850
|
readonly Timing: "Timing";
|
|
@@ -634,17 +869,43 @@ declare const Medplum: {
|
|
|
634
869
|
readonly uri: "uri";
|
|
635
870
|
readonly url: "url";
|
|
636
871
|
readonly uuid: "uuid";
|
|
872
|
+
readonly xhtml: "xhtml";
|
|
637
873
|
};
|
|
638
874
|
protectedResourceTypes: string[];
|
|
875
|
+
RATE_LIMIT_RESET_EXTENSION_URL: "https://medplum.com/fhir/StructureDefinition/rate-limit-reset";
|
|
639
876
|
ReadablePromise: typeof MedplumCore.ReadablePromise;
|
|
877
|
+
readInteractions: MedplumCore.AccessPolicyInteraction[];
|
|
640
878
|
ReconnectingWebSocket: typeof MedplumCore.ReconnectingWebSocket;
|
|
879
|
+
ReturnAckCategory: {
|
|
880
|
+
readonly FIRST: "first";
|
|
881
|
+
readonly APPLICATION: "application";
|
|
882
|
+
};
|
|
641
883
|
RXNORM: "http://www.nlm.nih.gov/research/umls/rxnorm";
|
|
642
|
-
|
|
643
|
-
|
|
884
|
+
SchedulingEncounterCodingURI: "https://medplum.com/fhir/StructureDefinition/SchedulingEncounterCoding";
|
|
885
|
+
SchedulingParametersURI: "https://medplum.com/fhir/StructureDefinition/SchedulingParameters";
|
|
886
|
+
SchedulingPlanDefinitionURI: "https://medplum.com/fhir/StructureDefinition/SchedulingPlanDefinition";
|
|
887
|
+
SchedulingScheduleColorURI: "https://medplum.com/fhir/StructureDefinition/SchedulingColor";
|
|
888
|
+
SearchParameterType: {
|
|
889
|
+
readonly BOOLEAN: "BOOLEAN";
|
|
890
|
+
readonly NUMBER: "NUMBER";
|
|
891
|
+
readonly QUANTITY: "QUANTITY";
|
|
892
|
+
readonly TEXT: "TEXT";
|
|
893
|
+
readonly REFERENCE: "REFERENCE";
|
|
894
|
+
readonly CANONICAL: "CANONICAL";
|
|
895
|
+
readonly DATE: "DATE";
|
|
896
|
+
readonly DATETIME: "DATETIME";
|
|
897
|
+
readonly PERIOD: "PERIOD";
|
|
898
|
+
readonly UUID: "UUID";
|
|
899
|
+
};
|
|
900
|
+
ServiceTypeReferenceURI: "https://medplum.com/fhir/service-type-reference";
|
|
901
|
+
sleep: (ms: number, options?: MedplumCore.SleepOptions) => Promise<void>;
|
|
644
902
|
SNOMED: "http://snomed.info/sct";
|
|
645
903
|
SubscriptionEmitter: typeof MedplumCore.SubscriptionEmitter;
|
|
646
904
|
SubscriptionManager: typeof MedplumCore.SubscriptionManager;
|
|
647
905
|
SymbolAtom: typeof MedplumCore.SymbolAtom;
|
|
906
|
+
test: typeof MedplumCore.test;
|
|
907
|
+
TestError: typeof MedplumCore.TestError;
|
|
908
|
+
TimezoneExtensionURI: "http://hl7.org/fhir/StructureDefinition/timezone";
|
|
648
909
|
Tokenizer: typeof MedplumCore.Tokenizer;
|
|
649
910
|
tooManyRequests: import("@medplum/fhirtypes").OperationOutcome;
|
|
650
911
|
TransformMapCollection: typeof MedplumCore.TransformMapCollection;
|
|
@@ -655,6 +916,7 @@ declare const Medplum: {
|
|
|
655
916
|
unauthorizedTokenAudience: import("@medplum/fhirtypes").OperationOutcome;
|
|
656
917
|
unauthorizedTokenExpired: import("@medplum/fhirtypes").OperationOutcome;
|
|
657
918
|
UnionAtom: typeof MedplumCore.UnionAtom;
|
|
919
|
+
unsupportedMediaType: import("@medplum/fhirtypes").OperationOutcome;
|
|
658
920
|
VALID_HOSTNAME_REGEX: RegExp;
|
|
659
921
|
validationRegexes: Record<string, RegExp>;
|
|
660
922
|
XorAtom: typeof MedplumCore.XorAtom;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ovok/core",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.55",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -29,13 +29,9 @@
|
|
|
29
29
|
"type": "git",
|
|
30
30
|
"url": "git+https://github.com/Actimi/ovok-react-sdk.git"
|
|
31
31
|
},
|
|
32
|
-
"dependencies": {
|
|
33
|
-
"@medplum/core": "^3.2.19",
|
|
34
|
-
"@medplum/react-hooks": "^3.2.19"
|
|
35
|
-
},
|
|
36
32
|
"devDependencies": {
|
|
37
33
|
"@eslint/js": "^9.15.0",
|
|
38
|
-
"@medplum/fhirtypes": "^
|
|
34
|
+
"@medplum/fhirtypes": "^5.1.26",
|
|
39
35
|
"@release-it/conventional-changelog": "^5.0.0",
|
|
40
36
|
"@stylistic/eslint-plugin": "^2.12.1",
|
|
41
37
|
"@types/jest": "^29.5.14",
|
|
@@ -53,11 +49,15 @@
|
|
|
53
49
|
"ts-jest": "^29.2.5",
|
|
54
50
|
"ts-node": "^10.9.2",
|
|
55
51
|
"typescript": "^5.3.3",
|
|
56
|
-
"typescript-eslint": "^8.15.0"
|
|
52
|
+
"typescript-eslint": "^8.15.0",
|
|
53
|
+
"@medplum/core": "^5.1.26",
|
|
54
|
+
"@medplum/react-hooks": "^5.1.26"
|
|
57
55
|
},
|
|
58
56
|
"peerDependencies": {
|
|
59
|
-
"@medplum/fhirtypes": "
|
|
60
|
-
"react": "*"
|
|
57
|
+
"@medplum/fhirtypes": ">=3.2.22",
|
|
58
|
+
"react": "*",
|
|
59
|
+
"@medplum/core": ">=3.2.19",
|
|
60
|
+
"@medplum/react-hooks": ">=3.2.19"
|
|
61
61
|
},
|
|
62
62
|
"release-it": {
|
|
63
63
|
"git": {
|