@medplum/mock 2.0.3 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs +296 -463
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.min.cjs +1 -1
- package/dist/cjs/index.min.cjs.map +1 -1
- package/dist/esm/index.min.mjs +1 -1
- package/dist/esm/index.min.mjs.map +1 -1
- package/dist/esm/index.mjs +295 -461
- package/dist/esm/index.mjs.map +1 -1
- package/dist/types/client.d.ts +30 -0
- package/dist/types/mocks/index.d.ts +0 -1
- package/package.json +6 -4
- package/tsconfig.build.json +9 -0
- package/dist/cjs/client.d.ts +0 -16
- package/dist/cjs/index.d.ts +0 -2
- package/dist/cjs/mocks/accesspolicy.d.ts +0 -4
- package/dist/cjs/mocks/alice.d.ts +0 -7
- package/dist/cjs/mocks/bot.d.ts +0 -3
- package/dist/cjs/mocks/index.d.ts +0 -9
- package/dist/cjs/mocks/questionnaire.d.ts +0 -3
- package/dist/cjs/mocks/simpsons.d.ts +0 -23
- package/dist/cjs/mocks/smart.d.ts +0 -2
- package/dist/cjs/mocks/subscription.d.ts +0 -3
- package/dist/cjs/mocks/types.d.ts +0 -81
- package/dist/cjs/mocks/valueset.d.ts +0 -2
- package/dist/cjs/mocks/workflow.d.ts +0 -10
- package/dist/cjs/repo.d.ts +0 -16
- package/dist/esm/client.d.ts +0 -16
- package/dist/esm/index.d.ts +0 -2
- package/dist/esm/mocks/accesspolicy.d.ts +0 -4
- package/dist/esm/mocks/alice.d.ts +0 -7
- package/dist/esm/mocks/bot.d.ts +0 -3
- package/dist/esm/mocks/index.d.ts +0 -9
- package/dist/esm/mocks/questionnaire.d.ts +0 -3
- package/dist/esm/mocks/simpsons.d.ts +0 -23
- package/dist/esm/mocks/smart.d.ts +0 -2
- package/dist/esm/mocks/subscription.d.ts +0 -3
- package/dist/esm/mocks/types.d.ts +0 -81
- package/dist/esm/mocks/valueset.d.ts +0 -2
- package/dist/esm/mocks/workflow.d.ts +0 -10
- package/dist/esm/repo.d.ts +0 -16
- package/dist/types/mocks/types.d.ts +0 -81
- package/dist/types/repo.d.ts +0 -16
package/dist/cjs/client.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { LoginState, MedplumClient, ProfileResource } from '@medplum/core';
|
|
2
|
-
import { Binary, UserConfiguration } from '@medplum/fhirtypes';
|
|
3
|
-
export interface MockClientOptions {
|
|
4
|
-
readonly debug?: boolean;
|
|
5
|
-
}
|
|
6
|
-
export declare class MockClient extends MedplumClient {
|
|
7
|
-
readonly debug: boolean;
|
|
8
|
-
activeLoginOverride?: LoginState;
|
|
9
|
-
constructor(clientOptions?: MockClientOptions);
|
|
10
|
-
clear(): void;
|
|
11
|
-
getProfile(): ProfileResource;
|
|
12
|
-
getUserConfiguration(): UserConfiguration | undefined;
|
|
13
|
-
setActiveLoginOverride(activeLoginOverride: LoginState): void;
|
|
14
|
-
getActiveLogin(): LoginState | undefined;
|
|
15
|
-
createBinary(data: string | File | Blob | Uint8Array, filename: string | undefined, contentType: string, onProgress?: (e: ProgressEvent) => void): Promise<Binary>;
|
|
16
|
-
}
|
package/dist/cjs/index.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Organization, Practitioner, Schedule, Slot } from '@medplum/fhirtypes';
|
|
2
|
-
export declare const TestOrganization: Organization;
|
|
3
|
-
export declare const DifferentOrganization: Organization;
|
|
4
|
-
export declare const DrAliceSmith: Practitioner;
|
|
5
|
-
export declare const DrAliceSmithPreviousVersion: Practitioner;
|
|
6
|
-
export declare const DrAliceSmithSchedule: Schedule;
|
|
7
|
-
export declare const DrAliceSmithSlots: Slot[];
|
package/dist/cjs/mocks/bot.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export * from './accesspolicy';
|
|
2
|
-
export * from './alice';
|
|
3
|
-
export * from './bot';
|
|
4
|
-
export * from './questionnaire';
|
|
5
|
-
export * from './simpsons';
|
|
6
|
-
export * from './subscription';
|
|
7
|
-
export * from './types';
|
|
8
|
-
export * from './valueset';
|
|
9
|
-
export * from './workflow';
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Communication, DiagnosticReport, Encounter, Group, Media, Observation, Patient, RelatedPerson, ServiceRequest, Specimen } from '@medplum/fhirtypes';
|
|
2
|
-
export declare const LisaSimpson: Patient;
|
|
3
|
-
export declare const BartSimpson: Patient;
|
|
4
|
-
export declare const HomerLisaRelatedPerson: RelatedPerson;
|
|
5
|
-
export declare const HomerBartRelatedPerson: RelatedPerson;
|
|
6
|
-
export declare const HomerSimpson: Patient;
|
|
7
|
-
export declare const MargeSimpson: Patient;
|
|
8
|
-
export declare const HomerSimpsonPreviousVersion: Patient;
|
|
9
|
-
export declare const HomerEncounter: Encounter;
|
|
10
|
-
export declare const HomerCommunication: Communication;
|
|
11
|
-
export declare const HomerMedia: Media;
|
|
12
|
-
export declare const HomerObservation1: Observation;
|
|
13
|
-
export declare const HomerObservation2: Observation;
|
|
14
|
-
export declare const HomerObservation3: Observation;
|
|
15
|
-
export declare const HomerObservation4: Observation;
|
|
16
|
-
export declare const HomerObservation5: Observation;
|
|
17
|
-
export declare const HomerObservation6: Observation;
|
|
18
|
-
export declare const HomerObservation7: Observation;
|
|
19
|
-
export declare const HomerObservation8: Observation;
|
|
20
|
-
export declare const HomerSimpsonSpecimen: Specimen;
|
|
21
|
-
export declare const HomerServiceRequest: ServiceRequest;
|
|
22
|
-
export declare const HomerDiagnosticReport: DiagnosticReport;
|
|
23
|
-
export declare const SimpsonsFamily: Group;
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
export declare const GraphQLSchemaResponse: {
|
|
2
|
-
data: {
|
|
3
|
-
StructureDefinitionList: ({
|
|
4
|
-
resourceType: string;
|
|
5
|
-
id: string;
|
|
6
|
-
name: string;
|
|
7
|
-
type: string;
|
|
8
|
-
snapshot: {
|
|
9
|
-
element: ({
|
|
10
|
-
id: string;
|
|
11
|
-
path: string;
|
|
12
|
-
min: number;
|
|
13
|
-
max: string;
|
|
14
|
-
base: {
|
|
15
|
-
path: string;
|
|
16
|
-
min: number;
|
|
17
|
-
max: string;
|
|
18
|
-
};
|
|
19
|
-
type?: undefined;
|
|
20
|
-
} | {
|
|
21
|
-
id: string;
|
|
22
|
-
path: string;
|
|
23
|
-
min: number;
|
|
24
|
-
max: string;
|
|
25
|
-
base: {
|
|
26
|
-
path: string;
|
|
27
|
-
min: number;
|
|
28
|
-
max: string;
|
|
29
|
-
};
|
|
30
|
-
type: ({
|
|
31
|
-
code: string;
|
|
32
|
-
targetProfile?: undefined;
|
|
33
|
-
} | {
|
|
34
|
-
code: string;
|
|
35
|
-
targetProfile: string[];
|
|
36
|
-
})[];
|
|
37
|
-
})[];
|
|
38
|
-
};
|
|
39
|
-
} | {
|
|
40
|
-
resourceType: string;
|
|
41
|
-
id: string;
|
|
42
|
-
name: string;
|
|
43
|
-
type: string;
|
|
44
|
-
snapshot: {
|
|
45
|
-
element: ({
|
|
46
|
-
id: string;
|
|
47
|
-
path: string;
|
|
48
|
-
min: number;
|
|
49
|
-
max: string;
|
|
50
|
-
type?: undefined;
|
|
51
|
-
} | {
|
|
52
|
-
id: string;
|
|
53
|
-
path: string;
|
|
54
|
-
min: number;
|
|
55
|
-
max: string;
|
|
56
|
-
type: {
|
|
57
|
-
code: string;
|
|
58
|
-
}[];
|
|
59
|
-
} | {
|
|
60
|
-
id: string;
|
|
61
|
-
path: string;
|
|
62
|
-
min: number;
|
|
63
|
-
max: string;
|
|
64
|
-
type: {
|
|
65
|
-
code: string;
|
|
66
|
-
targetProfile: string[];
|
|
67
|
-
}[];
|
|
68
|
-
})[];
|
|
69
|
-
};
|
|
70
|
-
})[];
|
|
71
|
-
SearchParameterList: {
|
|
72
|
-
resourceType: string;
|
|
73
|
-
id: string;
|
|
74
|
-
name: string;
|
|
75
|
-
code: string;
|
|
76
|
-
base: string[];
|
|
77
|
-
type: string;
|
|
78
|
-
expression: string;
|
|
79
|
-
}[];
|
|
80
|
-
};
|
|
81
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { PlanDefinition, Questionnaire, QuestionnaireResponse, RequestGroup, Task } from '@medplum/fhirtypes';
|
|
2
|
-
export declare const ExampleWorkflowQuestionnaire1: Questionnaire;
|
|
3
|
-
export declare const ExampleWorkflowQuestionnaire2: Questionnaire;
|
|
4
|
-
export declare const ExampleWorkflowQuestionnaire3: Questionnaire;
|
|
5
|
-
export declare const ExampleWorkflowPlanDefinition: PlanDefinition;
|
|
6
|
-
export declare const ExampleWorkflowQuestionnaireResponse1: QuestionnaireResponse;
|
|
7
|
-
export declare const ExampleWorkflowTask1: Task;
|
|
8
|
-
export declare const ExampleWorkflowTask2: Task;
|
|
9
|
-
export declare const ExampleWorkflowTask3: Task;
|
|
10
|
-
export declare const ExampleWorkflowRequestGroup: RequestGroup;
|
package/dist/cjs/repo.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { SearchRequest } from '@medplum/core';
|
|
2
|
-
import { Bundle, Resource } from '@medplum/fhirtypes';
|
|
3
|
-
import { Operation } from 'rfc6902';
|
|
4
|
-
export declare class MemoryRepository {
|
|
5
|
-
#private;
|
|
6
|
-
constructor();
|
|
7
|
-
createResource<T extends Resource>(resource: T): T;
|
|
8
|
-
updateResource<T extends Resource>(resource: T): T;
|
|
9
|
-
patchResource(resourceType: string, id: string, patch: Operation[]): Promise<Resource>;
|
|
10
|
-
readResource<T extends Resource>(resourceType: string, id: string): T;
|
|
11
|
-
readHistory<T extends Resource>(resourceType: string, id: string): Bundle<T>;
|
|
12
|
-
readVersion<T extends Resource>(resourceType: string, id: string, versionId: string): T;
|
|
13
|
-
search<T extends Resource>(searchRequest: SearchRequest): Bundle<T>;
|
|
14
|
-
deleteResource(resourceType: string, id: string): void;
|
|
15
|
-
private generateId;
|
|
16
|
-
}
|
package/dist/esm/client.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { LoginState, MedplumClient, ProfileResource } from '@medplum/core';
|
|
2
|
-
import { Binary, UserConfiguration } from '@medplum/fhirtypes';
|
|
3
|
-
export interface MockClientOptions {
|
|
4
|
-
readonly debug?: boolean;
|
|
5
|
-
}
|
|
6
|
-
export declare class MockClient extends MedplumClient {
|
|
7
|
-
readonly debug: boolean;
|
|
8
|
-
activeLoginOverride?: LoginState;
|
|
9
|
-
constructor(clientOptions?: MockClientOptions);
|
|
10
|
-
clear(): void;
|
|
11
|
-
getProfile(): ProfileResource;
|
|
12
|
-
getUserConfiguration(): UserConfiguration | undefined;
|
|
13
|
-
setActiveLoginOverride(activeLoginOverride: LoginState): void;
|
|
14
|
-
getActiveLogin(): LoginState | undefined;
|
|
15
|
-
createBinary(data: string | File | Blob | Uint8Array, filename: string | undefined, contentType: string, onProgress?: (e: ProgressEvent) => void): Promise<Binary>;
|
|
16
|
-
}
|
package/dist/esm/index.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Organization, Practitioner, Schedule, Slot } from '@medplum/fhirtypes';
|
|
2
|
-
export declare const TestOrganization: Organization;
|
|
3
|
-
export declare const DifferentOrganization: Organization;
|
|
4
|
-
export declare const DrAliceSmith: Practitioner;
|
|
5
|
-
export declare const DrAliceSmithPreviousVersion: Practitioner;
|
|
6
|
-
export declare const DrAliceSmithSchedule: Schedule;
|
|
7
|
-
export declare const DrAliceSmithSlots: Slot[];
|
package/dist/esm/mocks/bot.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export * from './accesspolicy';
|
|
2
|
-
export * from './alice';
|
|
3
|
-
export * from './bot';
|
|
4
|
-
export * from './questionnaire';
|
|
5
|
-
export * from './simpsons';
|
|
6
|
-
export * from './subscription';
|
|
7
|
-
export * from './types';
|
|
8
|
-
export * from './valueset';
|
|
9
|
-
export * from './workflow';
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Communication, DiagnosticReport, Encounter, Group, Media, Observation, Patient, RelatedPerson, ServiceRequest, Specimen } from '@medplum/fhirtypes';
|
|
2
|
-
export declare const LisaSimpson: Patient;
|
|
3
|
-
export declare const BartSimpson: Patient;
|
|
4
|
-
export declare const HomerLisaRelatedPerson: RelatedPerson;
|
|
5
|
-
export declare const HomerBartRelatedPerson: RelatedPerson;
|
|
6
|
-
export declare const HomerSimpson: Patient;
|
|
7
|
-
export declare const MargeSimpson: Patient;
|
|
8
|
-
export declare const HomerSimpsonPreviousVersion: Patient;
|
|
9
|
-
export declare const HomerEncounter: Encounter;
|
|
10
|
-
export declare const HomerCommunication: Communication;
|
|
11
|
-
export declare const HomerMedia: Media;
|
|
12
|
-
export declare const HomerObservation1: Observation;
|
|
13
|
-
export declare const HomerObservation2: Observation;
|
|
14
|
-
export declare const HomerObservation3: Observation;
|
|
15
|
-
export declare const HomerObservation4: Observation;
|
|
16
|
-
export declare const HomerObservation5: Observation;
|
|
17
|
-
export declare const HomerObservation6: Observation;
|
|
18
|
-
export declare const HomerObservation7: Observation;
|
|
19
|
-
export declare const HomerObservation8: Observation;
|
|
20
|
-
export declare const HomerSimpsonSpecimen: Specimen;
|
|
21
|
-
export declare const HomerServiceRequest: ServiceRequest;
|
|
22
|
-
export declare const HomerDiagnosticReport: DiagnosticReport;
|
|
23
|
-
export declare const SimpsonsFamily: Group;
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
export declare const GraphQLSchemaResponse: {
|
|
2
|
-
data: {
|
|
3
|
-
StructureDefinitionList: ({
|
|
4
|
-
resourceType: string;
|
|
5
|
-
id: string;
|
|
6
|
-
name: string;
|
|
7
|
-
type: string;
|
|
8
|
-
snapshot: {
|
|
9
|
-
element: ({
|
|
10
|
-
id: string;
|
|
11
|
-
path: string;
|
|
12
|
-
min: number;
|
|
13
|
-
max: string;
|
|
14
|
-
base: {
|
|
15
|
-
path: string;
|
|
16
|
-
min: number;
|
|
17
|
-
max: string;
|
|
18
|
-
};
|
|
19
|
-
type?: undefined;
|
|
20
|
-
} | {
|
|
21
|
-
id: string;
|
|
22
|
-
path: string;
|
|
23
|
-
min: number;
|
|
24
|
-
max: string;
|
|
25
|
-
base: {
|
|
26
|
-
path: string;
|
|
27
|
-
min: number;
|
|
28
|
-
max: string;
|
|
29
|
-
};
|
|
30
|
-
type: ({
|
|
31
|
-
code: string;
|
|
32
|
-
targetProfile?: undefined;
|
|
33
|
-
} | {
|
|
34
|
-
code: string;
|
|
35
|
-
targetProfile: string[];
|
|
36
|
-
})[];
|
|
37
|
-
})[];
|
|
38
|
-
};
|
|
39
|
-
} | {
|
|
40
|
-
resourceType: string;
|
|
41
|
-
id: string;
|
|
42
|
-
name: string;
|
|
43
|
-
type: string;
|
|
44
|
-
snapshot: {
|
|
45
|
-
element: ({
|
|
46
|
-
id: string;
|
|
47
|
-
path: string;
|
|
48
|
-
min: number;
|
|
49
|
-
max: string;
|
|
50
|
-
type?: undefined;
|
|
51
|
-
} | {
|
|
52
|
-
id: string;
|
|
53
|
-
path: string;
|
|
54
|
-
min: number;
|
|
55
|
-
max: string;
|
|
56
|
-
type: {
|
|
57
|
-
code: string;
|
|
58
|
-
}[];
|
|
59
|
-
} | {
|
|
60
|
-
id: string;
|
|
61
|
-
path: string;
|
|
62
|
-
min: number;
|
|
63
|
-
max: string;
|
|
64
|
-
type: {
|
|
65
|
-
code: string;
|
|
66
|
-
targetProfile: string[];
|
|
67
|
-
}[];
|
|
68
|
-
})[];
|
|
69
|
-
};
|
|
70
|
-
})[];
|
|
71
|
-
SearchParameterList: {
|
|
72
|
-
resourceType: string;
|
|
73
|
-
id: string;
|
|
74
|
-
name: string;
|
|
75
|
-
code: string;
|
|
76
|
-
base: string[];
|
|
77
|
-
type: string;
|
|
78
|
-
expression: string;
|
|
79
|
-
}[];
|
|
80
|
-
};
|
|
81
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { PlanDefinition, Questionnaire, QuestionnaireResponse, RequestGroup, Task } from '@medplum/fhirtypes';
|
|
2
|
-
export declare const ExampleWorkflowQuestionnaire1: Questionnaire;
|
|
3
|
-
export declare const ExampleWorkflowQuestionnaire2: Questionnaire;
|
|
4
|
-
export declare const ExampleWorkflowQuestionnaire3: Questionnaire;
|
|
5
|
-
export declare const ExampleWorkflowPlanDefinition: PlanDefinition;
|
|
6
|
-
export declare const ExampleWorkflowQuestionnaireResponse1: QuestionnaireResponse;
|
|
7
|
-
export declare const ExampleWorkflowTask1: Task;
|
|
8
|
-
export declare const ExampleWorkflowTask2: Task;
|
|
9
|
-
export declare const ExampleWorkflowTask3: Task;
|
|
10
|
-
export declare const ExampleWorkflowRequestGroup: RequestGroup;
|
package/dist/esm/repo.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { SearchRequest } from '@medplum/core';
|
|
2
|
-
import { Bundle, Resource } from '@medplum/fhirtypes';
|
|
3
|
-
import { Operation } from 'rfc6902';
|
|
4
|
-
export declare class MemoryRepository {
|
|
5
|
-
#private;
|
|
6
|
-
constructor();
|
|
7
|
-
createResource<T extends Resource>(resource: T): T;
|
|
8
|
-
updateResource<T extends Resource>(resource: T): T;
|
|
9
|
-
patchResource(resourceType: string, id: string, patch: Operation[]): Promise<Resource>;
|
|
10
|
-
readResource<T extends Resource>(resourceType: string, id: string): T;
|
|
11
|
-
readHistory<T extends Resource>(resourceType: string, id: string): Bundle<T>;
|
|
12
|
-
readVersion<T extends Resource>(resourceType: string, id: string, versionId: string): T;
|
|
13
|
-
search<T extends Resource>(searchRequest: SearchRequest): Bundle<T>;
|
|
14
|
-
deleteResource(resourceType: string, id: string): void;
|
|
15
|
-
private generateId;
|
|
16
|
-
}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
export declare const GraphQLSchemaResponse: {
|
|
2
|
-
data: {
|
|
3
|
-
StructureDefinitionList: ({
|
|
4
|
-
resourceType: string;
|
|
5
|
-
id: string;
|
|
6
|
-
name: string;
|
|
7
|
-
type: string;
|
|
8
|
-
snapshot: {
|
|
9
|
-
element: ({
|
|
10
|
-
id: string;
|
|
11
|
-
path: string;
|
|
12
|
-
min: number;
|
|
13
|
-
max: string;
|
|
14
|
-
base: {
|
|
15
|
-
path: string;
|
|
16
|
-
min: number;
|
|
17
|
-
max: string;
|
|
18
|
-
};
|
|
19
|
-
type?: undefined;
|
|
20
|
-
} | {
|
|
21
|
-
id: string;
|
|
22
|
-
path: string;
|
|
23
|
-
min: number;
|
|
24
|
-
max: string;
|
|
25
|
-
base: {
|
|
26
|
-
path: string;
|
|
27
|
-
min: number;
|
|
28
|
-
max: string;
|
|
29
|
-
};
|
|
30
|
-
type: ({
|
|
31
|
-
code: string;
|
|
32
|
-
targetProfile?: undefined;
|
|
33
|
-
} | {
|
|
34
|
-
code: string;
|
|
35
|
-
targetProfile: string[];
|
|
36
|
-
})[];
|
|
37
|
-
})[];
|
|
38
|
-
};
|
|
39
|
-
} | {
|
|
40
|
-
resourceType: string;
|
|
41
|
-
id: string;
|
|
42
|
-
name: string;
|
|
43
|
-
type: string;
|
|
44
|
-
snapshot: {
|
|
45
|
-
element: ({
|
|
46
|
-
id: string;
|
|
47
|
-
path: string;
|
|
48
|
-
min: number;
|
|
49
|
-
max: string;
|
|
50
|
-
type?: undefined;
|
|
51
|
-
} | {
|
|
52
|
-
id: string;
|
|
53
|
-
path: string;
|
|
54
|
-
min: number;
|
|
55
|
-
max: string;
|
|
56
|
-
type: {
|
|
57
|
-
code: string;
|
|
58
|
-
}[];
|
|
59
|
-
} | {
|
|
60
|
-
id: string;
|
|
61
|
-
path: string;
|
|
62
|
-
min: number;
|
|
63
|
-
max: string;
|
|
64
|
-
type: {
|
|
65
|
-
code: string;
|
|
66
|
-
targetProfile: string[];
|
|
67
|
-
}[];
|
|
68
|
-
})[];
|
|
69
|
-
};
|
|
70
|
-
})[];
|
|
71
|
-
SearchParameterList: {
|
|
72
|
-
resourceType: string;
|
|
73
|
-
id: string;
|
|
74
|
-
name: string;
|
|
75
|
-
code: string;
|
|
76
|
-
base: string[];
|
|
77
|
-
type: string;
|
|
78
|
-
expression: string;
|
|
79
|
-
}[];
|
|
80
|
-
};
|
|
81
|
-
};
|
package/dist/types/repo.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { SearchRequest } from '@medplum/core';
|
|
2
|
-
import { Bundle, Resource } from '@medplum/fhirtypes';
|
|
3
|
-
import { Operation } from 'rfc6902';
|
|
4
|
-
export declare class MemoryRepository {
|
|
5
|
-
#private;
|
|
6
|
-
constructor();
|
|
7
|
-
createResource<T extends Resource>(resource: T): T;
|
|
8
|
-
updateResource<T extends Resource>(resource: T): T;
|
|
9
|
-
patchResource(resourceType: string, id: string, patch: Operation[]): Promise<Resource>;
|
|
10
|
-
readResource<T extends Resource>(resourceType: string, id: string): T;
|
|
11
|
-
readHistory<T extends Resource>(resourceType: string, id: string): Bundle<T>;
|
|
12
|
-
readVersion<T extends Resource>(resourceType: string, id: string, versionId: string): T;
|
|
13
|
-
search<T extends Resource>(searchRequest: SearchRequest): Bundle<T>;
|
|
14
|
-
deleteResource(resourceType: string, id: string): void;
|
|
15
|
-
private generateId;
|
|
16
|
-
}
|