@medplum/mock 2.2.3 → 2.2.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.
@@ -3,14 +3,12 @@ import { AuditEvent } from '@medplum/fhirtypes';
3
3
  import { Binary } from '@medplum/fhirtypes';
4
4
  import { Bot } from '@medplum/fhirtypes';
5
5
  import { ClientApplication } from '@medplum/fhirtypes';
6
- import { ClientStorage } from '@medplum/core';
7
6
  import { Communication } from '@medplum/fhirtypes';
8
7
  import type { CustomTableLayout } from 'pdfmake/interfaces';
9
8
  import { DiagnosticReport } from '@medplum/fhirtypes';
10
9
  import { Encounter } from '@medplum/fhirtypes';
11
10
  import { FhirRouter } from '@medplum/fhir-router';
12
11
  import { Group } from '@medplum/fhirtypes';
13
- import { IClientStorage } from '@medplum/core';
14
12
  import { LoginState } from '@medplum/core';
15
13
  import { Media } from '@medplum/fhirtypes';
16
14
  import { MedplumClient } from '@medplum/core';
@@ -30,6 +28,7 @@ import { Schedule } from '@medplum/fhirtypes';
30
28
  import { ServiceRequest } from '@medplum/fhirtypes';
31
29
  import { Slot } from '@medplum/fhirtypes';
32
30
  import { Specimen } from '@medplum/fhirtypes';
31
+ import { StructureDefinition } from '@medplum/fhirtypes';
33
32
  import { Subscription } from '@medplum/fhirtypes';
34
33
  import { Task } from '@medplum/fhirtypes';
35
34
  import type { TDocumentDefinitions } from 'pdfmake/interfaces';
@@ -39,6 +38,8 @@ import { ValueSet } from '@medplum/fhirtypes';
39
38
 
40
39
  export declare const BartSimpson: Patient;
41
40
 
41
+ export declare const BlinkyTheFish: Patient;
42
+
42
43
  export declare const DifferentOrganization: Organization;
43
44
 
44
45
  export declare const DrAliceSmith: Practitioner;
@@ -89,6 +90,13 @@ export declare const ExampleWorkflowTask2: Task;
89
90
 
90
91
  export declare const ExampleWorkflowTask3: Task;
91
92
 
93
+ export declare const FishPatientResources: {
94
+ getFishPatientProfileSD: () => ProfileStructureDefinition;
95
+ getFishSpeciesExtensionSD: () => ProfileStructureDefinition;
96
+ getSampleFishPatient: () => Patient;
97
+ getBlinkyTheFish: () => Patient;
98
+ };
99
+
92
100
  export declare const HomerBartRelatedPerson: RelatedPerson;
93
101
 
94
102
  export declare const HomerCommunication: Communication;
@@ -129,14 +137,6 @@ export declare const LisaSimpson: Patient;
129
137
 
130
138
  export declare const MargeSimpson: Patient;
131
139
 
132
- export declare class MockAsyncClientStorage extends ClientStorage implements IClientStorage {
133
- #private;
134
- constructor();
135
- setInitialized(): void;
136
- getInitPromise(): Promise<void>;
137
- get isInitialized(): boolean;
138
- }
139
-
140
140
  export declare class MockClient extends MedplumClient {
141
141
  readonly router: FhirRouter;
142
142
  readonly repo: MemoryRepository;
@@ -187,6 +187,11 @@ export declare class MockFetchClient {
187
187
  private mockFhirHandler;
188
188
  }
189
189
 
190
+ export declare type ProfileStructureDefinition = StructureDefinition & {
191
+ url: string;
192
+ name: string;
193
+ };
194
+
190
195
  export declare const SimpsonsFamily: Group;
191
196
 
192
197
  export declare const TestOrganization: Organization;
@@ -3,14 +3,12 @@ import { AuditEvent } from '@medplum/fhirtypes';
3
3
  import { Binary } from '@medplum/fhirtypes';
4
4
  import { Bot } from '@medplum/fhirtypes';
5
5
  import { ClientApplication } from '@medplum/fhirtypes';
6
- import { ClientStorage } from '@medplum/core';
7
6
  import { Communication } from '@medplum/fhirtypes';
8
7
  import type { CustomTableLayout } from 'pdfmake/interfaces';
9
8
  import { DiagnosticReport } from '@medplum/fhirtypes';
10
9
  import { Encounter } from '@medplum/fhirtypes';
11
10
  import { FhirRouter } from '@medplum/fhir-router';
12
11
  import { Group } from '@medplum/fhirtypes';
13
- import { IClientStorage } from '@medplum/core';
14
12
  import { LoginState } from '@medplum/core';
15
13
  import { Media } from '@medplum/fhirtypes';
16
14
  import { MedplumClient } from '@medplum/core';
@@ -30,6 +28,7 @@ import { Schedule } from '@medplum/fhirtypes';
30
28
  import { ServiceRequest } from '@medplum/fhirtypes';
31
29
  import { Slot } from '@medplum/fhirtypes';
32
30
  import { Specimen } from '@medplum/fhirtypes';
31
+ import { StructureDefinition } from '@medplum/fhirtypes';
33
32
  import { Subscription } from '@medplum/fhirtypes';
34
33
  import { Task } from '@medplum/fhirtypes';
35
34
  import type { TDocumentDefinitions } from 'pdfmake/interfaces';
@@ -39,6 +38,8 @@ import { ValueSet } from '@medplum/fhirtypes';
39
38
 
40
39
  export declare const BartSimpson: Patient;
41
40
 
41
+ export declare const BlinkyTheFish: Patient;
42
+
42
43
  export declare const DifferentOrganization: Organization;
43
44
 
44
45
  export declare const DrAliceSmith: Practitioner;
@@ -89,6 +90,13 @@ export declare const ExampleWorkflowTask2: Task;
89
90
 
90
91
  export declare const ExampleWorkflowTask3: Task;
91
92
 
93
+ export declare const FishPatientResources: {
94
+ getFishPatientProfileSD: () => ProfileStructureDefinition;
95
+ getFishSpeciesExtensionSD: () => ProfileStructureDefinition;
96
+ getSampleFishPatient: () => Patient;
97
+ getBlinkyTheFish: () => Patient;
98
+ };
99
+
92
100
  export declare const HomerBartRelatedPerson: RelatedPerson;
93
101
 
94
102
  export declare const HomerCommunication: Communication;
@@ -129,14 +137,6 @@ export declare const LisaSimpson: Patient;
129
137
 
130
138
  export declare const MargeSimpson: Patient;
131
139
 
132
- export declare class MockAsyncClientStorage extends ClientStorage implements IClientStorage {
133
- #private;
134
- constructor();
135
- setInitialized(): void;
136
- getInitPromise(): Promise<void>;
137
- get isInitialized(): boolean;
138
- }
139
-
140
140
  export declare class MockClient extends MedplumClient {
141
141
  readonly router: FhirRouter;
142
142
  readonly repo: MemoryRepository;
@@ -187,6 +187,11 @@ export declare class MockFetchClient {
187
187
  private mockFhirHandler;
188
188
  }
189
189
 
190
+ export declare type ProfileStructureDefinition = StructureDefinition & {
191
+ url: string;
192
+ name: string;
193
+ };
194
+
190
195
  export declare const SimpsonsFamily: Group;
191
196
 
192
197
  export declare const TestOrganization: Organization;