module-package-comp 1.2.3 → 1.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.
- package/dist/util/type.d.ts +14 -3
- package/package.json +1 -1
- package/src/util/type.ts +16 -3
package/dist/util/type.d.ts
CHANGED
|
@@ -66,7 +66,7 @@ export interface Component {
|
|
|
66
66
|
attributes: Attribute[];
|
|
67
67
|
conditions: Condition[][];
|
|
68
68
|
settings?: SettingsComponent;
|
|
69
|
-
filter?:
|
|
69
|
+
filter?: PrescriptionFilterType;
|
|
70
70
|
createdAt?: DateTime;
|
|
71
71
|
updatedAt?: DateTime;
|
|
72
72
|
}
|
|
@@ -78,9 +78,9 @@ export interface ComponentResult {
|
|
|
78
78
|
}
|
|
79
79
|
export interface Data {
|
|
80
80
|
_id: string;
|
|
81
|
-
|
|
81
|
+
patientDmi: string;
|
|
82
82
|
from: string;
|
|
83
|
-
|
|
83
|
+
componentId: Component;
|
|
84
84
|
value: DataJSON;
|
|
85
85
|
extra: DataJSON;
|
|
86
86
|
createdAt: DateTime;
|
|
@@ -92,3 +92,14 @@ export interface DataResult {
|
|
|
92
92
|
lastPage: number;
|
|
93
93
|
data: Data[];
|
|
94
94
|
}
|
|
95
|
+
export type PrescriptionFilterType = {
|
|
96
|
+
protocol: string | null;
|
|
97
|
+
cure: string | null;
|
|
98
|
+
molecule: string | null;
|
|
99
|
+
dose: Filter | null;
|
|
100
|
+
validation: Filter | null;
|
|
101
|
+
};
|
|
102
|
+
export type Filter = {
|
|
103
|
+
op: ConditionEnum | "";
|
|
104
|
+
value: string;
|
|
105
|
+
};
|
package/package.json
CHANGED
package/src/util/type.ts
CHANGED
|
@@ -78,7 +78,7 @@ export interface Component {
|
|
|
78
78
|
attributes: Attribute[];
|
|
79
79
|
conditions: Condition[][];
|
|
80
80
|
settings?: SettingsComponent;
|
|
81
|
-
filter?:
|
|
81
|
+
filter?: PrescriptionFilterType;
|
|
82
82
|
createdAt?: DateTime;
|
|
83
83
|
updatedAt?: DateTime;
|
|
84
84
|
}
|
|
@@ -92,9 +92,9 @@ export interface ComponentResult {
|
|
|
92
92
|
|
|
93
93
|
export interface Data {
|
|
94
94
|
_id: string;
|
|
95
|
-
|
|
95
|
+
patientDmi: string;
|
|
96
96
|
from: string;
|
|
97
|
-
|
|
97
|
+
componentId: Component;
|
|
98
98
|
value: DataJSON;
|
|
99
99
|
extra: DataJSON;
|
|
100
100
|
createdAt: DateTime;
|
|
@@ -107,3 +107,16 @@ export interface DataResult {
|
|
|
107
107
|
lastPage: number;
|
|
108
108
|
data: Data[];
|
|
109
109
|
}
|
|
110
|
+
|
|
111
|
+
export type PrescriptionFilterType = {
|
|
112
|
+
protocol: string | null;
|
|
113
|
+
cure: string | null;
|
|
114
|
+
molecule: string | null;
|
|
115
|
+
dose: Filter | null;
|
|
116
|
+
validation: Filter | null;
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
export type Filter = {
|
|
120
|
+
op: ConditionEnum | "";
|
|
121
|
+
value: string;
|
|
122
|
+
};
|