@photonhealth/elements 0.14.11 → 0.14.12
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/index.js +359 -358
- package/dist/index.mjs +17874 -17287
- package/dist/photon-multirx-form/components/PatientCard.d.ts +1 -1
- package/dist/stores/patient.d.ts +1 -1
- package/package.json +5 -5
- package/dist/context.d.ts +0 -3
- package/dist/store.d.ts +0 -99
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { PhotonClientStore } from '@photonhealth/components';
|
|
1
2
|
import { Treatment } from '@photonhealth/sdk/dist/types';
|
|
2
|
-
import { PhotonClientStore } from '../../store';
|
|
3
3
|
import type { Address } from '../photon-prescribe-workflow';
|
|
4
4
|
import { MedHistoryPrescription } from '@photonhealth/components/dist/packages/components/src/systems/PatientMedHistory';
|
|
5
5
|
interface PatientCardStoreProp {
|
package/dist/stores/patient.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export declare const PatientStore: {
|
|
|
19
19
|
getPatients: (client: PhotonClient, args?: {
|
|
20
20
|
first?: number;
|
|
21
21
|
name?: string;
|
|
22
|
-
}) => Promise<(() => Promise<(() => Promise
|
|
22
|
+
}) => Promise<(() => Promise<(() => Promise</*elided*/ any | undefined>) | undefined>) | undefined>;
|
|
23
23
|
getSelectedPatient: (client: PhotonClient, id: string) => Promise<void>;
|
|
24
24
|
clearSelectedPatient: () => Promise<void>;
|
|
25
25
|
reset: () => Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@photonhealth/elements",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.12",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -54,15 +54,15 @@
|
|
|
54
54
|
"@photonhealth/components": "*",
|
|
55
55
|
"@photonhealth/sdk": "*",
|
|
56
56
|
"@shoelace-style/shoelace": "^2.4.0",
|
|
57
|
-
"@solid-primitives/scheduled": "^1.
|
|
58
|
-
"@solid-primitives/timer": "^1.
|
|
59
|
-
"@tanstack/solid-virtual": "^3.
|
|
57
|
+
"@solid-primitives/scheduled": "^1.5.0",
|
|
58
|
+
"@solid-primitives/timer": "^1.4.0",
|
|
59
|
+
"@tanstack/solid-virtual": "^3.13.6",
|
|
60
60
|
"date-fns": "^2.29.3",
|
|
61
61
|
"graphql": "^16.6.0",
|
|
62
62
|
"graphql-tag": "^2.12.6",
|
|
63
63
|
"jwt-decode": "^3.1.2",
|
|
64
64
|
"libphonenumber-js": "^1.10.14",
|
|
65
|
-
"solid-element": "^1.
|
|
65
|
+
"solid-element": "^1.9.1",
|
|
66
66
|
"superstruct": "^1.0.3"
|
|
67
67
|
},
|
|
68
68
|
"exports": {
|
package/dist/context.d.ts
DELETED
package/dist/store.d.ts
DELETED
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { PhotonClient } from '@photonhealth/sdk';
|
|
2
|
-
import { Catalog, DispenseUnit, MutationCreatePrescriptionArgs, Patient, Permission, Prescription, PrescriptionTemplate, Treatment } from '@photonhealth/sdk/dist/types';
|
|
3
|
-
import { GraphQLFormattedError } from 'graphql';
|
|
4
|
-
export declare class PhotonClientStore {
|
|
5
|
-
readonly sdk: PhotonClient;
|
|
6
|
-
private setStore;
|
|
7
|
-
private store;
|
|
8
|
-
authentication: {
|
|
9
|
-
state: {
|
|
10
|
-
user: any;
|
|
11
|
-
isAuthenticated: boolean;
|
|
12
|
-
isInOrg: boolean;
|
|
13
|
-
permissions: Permission[];
|
|
14
|
-
error?: string;
|
|
15
|
-
isLoading: boolean;
|
|
16
|
-
};
|
|
17
|
-
handleRedirect: (url?: string) => Promise<void>;
|
|
18
|
-
checkSession: () => Promise<void>;
|
|
19
|
-
login: (args?: object) => Promise<void>;
|
|
20
|
-
logout: () => void;
|
|
21
|
-
};
|
|
22
|
-
getSDK: () => PhotonClient;
|
|
23
|
-
clinical: {
|
|
24
|
-
catalog: {
|
|
25
|
-
state: {
|
|
26
|
-
isLoading: boolean;
|
|
27
|
-
treatments: Treatment[];
|
|
28
|
-
templates: PrescriptionTemplate[];
|
|
29
|
-
};
|
|
30
|
-
getCatalog: (args: {
|
|
31
|
-
id: string;
|
|
32
|
-
}) => void;
|
|
33
|
-
};
|
|
34
|
-
catalogs: {
|
|
35
|
-
state: {
|
|
36
|
-
isLoading: boolean;
|
|
37
|
-
catalogs: Catalog[];
|
|
38
|
-
};
|
|
39
|
-
getCatalogs: () => void;
|
|
40
|
-
};
|
|
41
|
-
dispenseUnits: {
|
|
42
|
-
state: {
|
|
43
|
-
isLoading: boolean;
|
|
44
|
-
dispenseUnits: Array<DispenseUnit & {
|
|
45
|
-
id: string;
|
|
46
|
-
}>;
|
|
47
|
-
};
|
|
48
|
-
getDispenseUnits: () => void;
|
|
49
|
-
};
|
|
50
|
-
patients: {
|
|
51
|
-
state: {
|
|
52
|
-
isLoading: boolean;
|
|
53
|
-
patients: Patient[];
|
|
54
|
-
finished: boolean;
|
|
55
|
-
};
|
|
56
|
-
getPatients: (args?: {
|
|
57
|
-
after?: string;
|
|
58
|
-
first?: number;
|
|
59
|
-
name?: string;
|
|
60
|
-
clear?: boolean;
|
|
61
|
-
}) => void;
|
|
62
|
-
};
|
|
63
|
-
patient: {
|
|
64
|
-
state: {
|
|
65
|
-
isLoading: boolean;
|
|
66
|
-
patient?: Patient;
|
|
67
|
-
};
|
|
68
|
-
getPatient: (args: {
|
|
69
|
-
id: string;
|
|
70
|
-
}) => Promise<Patient>;
|
|
71
|
-
};
|
|
72
|
-
prescription: {
|
|
73
|
-
state: {
|
|
74
|
-
isLoading: boolean;
|
|
75
|
-
data?: Prescription;
|
|
76
|
-
errors: readonly GraphQLFormattedError[];
|
|
77
|
-
error?: any;
|
|
78
|
-
};
|
|
79
|
-
createPrescription: (args: MutationCreatePrescriptionArgs) => Promise<{
|
|
80
|
-
data: {
|
|
81
|
-
createPrescription: Prescription;
|
|
82
|
-
} | null | undefined;
|
|
83
|
-
errors: readonly GraphQLFormattedError[] | undefined;
|
|
84
|
-
}>;
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
autoLogin: boolean;
|
|
88
|
-
constructor(sdk: PhotonClient, autoLogin?: boolean);
|
|
89
|
-
private _getSDK;
|
|
90
|
-
private checkSession;
|
|
91
|
-
private login;
|
|
92
|
-
private logout;
|
|
93
|
-
private getPatients;
|
|
94
|
-
private getPatient;
|
|
95
|
-
private getCatalog;
|
|
96
|
-
private getCatalogs;
|
|
97
|
-
private getDispenseUnits;
|
|
98
|
-
private createPrescription;
|
|
99
|
-
}
|