@openmrs/esm-cohort-builder-app 3.0.0
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/LICENSE +401 -0
- package/README.md +16 -0
- package/dist/130.js +2 -0
- package/dist/130.js.LICENSE.txt +9 -0
- package/dist/139.js +1 -0
- package/dist/247.js +1 -0
- package/dist/294.js +2 -0
- package/dist/294.js.LICENSE.txt +9 -0
- package/dist/434.js +2 -0
- package/dist/434.js.LICENSE.txt +12 -0
- package/dist/480.js +2 -0
- package/dist/480.js.LICENSE.txt +12 -0
- package/dist/484.js +1 -0
- package/dist/574.js +1 -0
- package/dist/595.js +2 -0
- package/dist/595.js.LICENSE.txt +3 -0
- package/dist/690.js +1 -0
- package/dist/873.js +1 -0
- package/dist/935.js +2 -0
- package/dist/935.js.LICENSE.txt +19 -0
- package/dist/964.js +2 -0
- package/dist/964.js.LICENSE.txt +14 -0
- package/dist/main.js +1 -0
- package/dist/openmrs-esm-cohort-builder-app.js +1 -0
- package/dist/openmrs-esm-cohort-builder-app.js.buildmanifest.json +426 -0
- package/dist/openmrs-esm-cohort-builder-app.old +1 -0
- package/package.json +99 -0
- package/src/cohort-builder-app-menu-link.tsx +14 -0
- package/src/cohort-builder.resources.ts +84 -0
- package/src/cohort-builder.scss +126 -0
- package/src/cohort-builder.test.tsx +12 -0
- package/src/cohort-builder.tsx +213 -0
- package/src/cohort-builder.utils.ts +197 -0
- package/src/components/composition/composition.component.tsx +109 -0
- package/src/components/composition/composition.style.css +3 -0
- package/src/components/composition/composition.test.tsx +112 -0
- package/src/components/composition/composition.utils.ts +53 -0
- package/src/components/empty-data/empty-data.component.tsx +25 -0
- package/src/components/empty-data/empty-data.style.scss +19 -0
- package/src/components/saved-cohorts/saved-cohorts-options/saved-cohort-options.test.tsx +49 -0
- package/src/components/saved-cohorts/saved-cohorts-options/saved-cohorts-options.component.tsx +112 -0
- package/src/components/saved-cohorts/saved-cohorts.component.tsx +139 -0
- package/src/components/saved-cohorts/saved-cohorts.resources.ts +39 -0
- package/src/components/saved-cohorts/saved-cohorts.scss +15 -0
- package/src/components/saved-cohorts/saved-cohorts.test.tsx +51 -0
- package/src/components/saved-queries/saved-queries-options/saved-queries-options.component.tsx +112 -0
- package/src/components/saved-queries/saved-queries-options/saved-queries-options.test.tsx +47 -0
- package/src/components/saved-queries/saved-queries.component.tsx +139 -0
- package/src/components/saved-queries/saved-queries.resources.ts +39 -0
- package/src/components/saved-queries/saved-queries.scss +23 -0
- package/src/components/saved-queries/saved-queries.test.tsx +50 -0
- package/src/components/search-button-set/search-button-set.css +9 -0
- package/src/components/search-button-set/search-button-set.test.tsx +26 -0
- package/src/components/search-button-set/search-button-set.tsx +47 -0
- package/src/components/search-by-concepts/search-by-concepts.component.tsx +344 -0
- package/src/components/search-by-concepts/search-by-concepts.style.scss +48 -0
- package/src/components/search-by-concepts/search-by-concepts.test.tsx +129 -0
- package/src/components/search-by-concepts/search-concept/search-concept.component.tsx +130 -0
- package/src/components/search-by-concepts/search-concept/search-concept.resource.ts +53 -0
- package/src/components/search-by-concepts/search-concept/search-concept.style.css +25 -0
- package/src/components/search-by-concepts/search-concept/search-concept.test.tsx +89 -0
- package/src/components/search-by-demographics/search-by-demographics.component.tsx +209 -0
- package/src/components/search-by-demographics/search-by-demographics.style.scss +41 -0
- package/src/components/search-by-demographics/search-by-demographics.test.tsx +92 -0
- package/src/components/search-by-demographics/search-by-demographics.utils.ts +129 -0
- package/src/components/search-by-drug-orders/search-by-drug-orders.component.tsx +185 -0
- package/src/components/search-by-drug-orders/search-by-drug-orders.resources.ts +60 -0
- package/src/components/search-by-drug-orders/search-by-drug-orders.style.scss +4 -0
- package/src/components/search-by-drug-orders/search-by-drug-orders.test.tsx +159 -0
- package/src/components/search-by-drug-orders/search-by-drug-orders.utils.ts +118 -0
- package/src/components/search-by-encounters/search-by-encounters.component.tsx +188 -0
- package/src/components/search-by-encounters/search-by-encounters.resources.ts +51 -0
- package/src/components/search-by-encounters/search-by-encounters.style.scss +12 -0
- package/src/components/search-by-encounters/search-by-encounters.test.tsx +202 -0
- package/src/components/search-by-encounters/search-by-encounters.utils.ts +113 -0
- package/src/components/search-by-enrollments/search-by-enrollments.component.tsx +183 -0
- package/src/components/search-by-enrollments/search-by-enrollments.resources.ts +31 -0
- package/src/components/search-by-enrollments/search-by-enrollments.style.scss +4 -0
- package/src/components/search-by-enrollments/search-by-enrollments.test.tsx +158 -0
- package/src/components/search-by-enrollments/search-by-enrollments.utils.ts +69 -0
- package/src/components/search-by-location/search-by-location.component.tsx +97 -0
- package/src/components/search-by-location/search-by-location.style.scss +4 -0
- package/src/components/search-by-location/search-by-location.test.tsx +110 -0
- package/src/components/search-by-location/search-by-location.utils.ts +40 -0
- package/src/components/search-by-person-attributes/search-by-person-attributes.component.tsx +90 -0
- package/src/components/search-by-person-attributes/search-by-person-attributes.resource.ts +27 -0
- package/src/components/search-by-person-attributes/search-by-person-attributes.style.scss +4 -0
- package/src/components/search-by-person-attributes/search-by-person-attributes.test.tsx +133 -0
- package/src/components/search-by-person-attributes/search-by-person-attributes.utils.ts +42 -0
- package/src/components/search-history/search-history-options/search-history-options.component.tsx +290 -0
- package/src/components/search-history/search-history-options/search-history-options.resources.ts +29 -0
- package/src/components/search-history/search-history-options/search-history-options.test.tsx +144 -0
- package/src/components/search-history/search-history.component.tsx +174 -0
- package/src/components/search-history/search-history.style.scss +12 -0
- package/src/components/search-history/search-history.test.tsx +106 -0
- package/src/components/search-history/search-history.utils.ts +14 -0
- package/src/components/search-results-table/search-results-table.component.tsx +105 -0
- package/src/components/search-results-table/search-results-table.scss +4 -0
- package/src/components/search-results-table/search-results-table.test.tsx +47 -0
- package/src/declarations.d.tsx +2 -0
- package/src/index.ts +47 -0
- package/src/setup-tests.ts +1 -0
- package/src/types/index.ts +120 -0
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
export interface SearchParams {
|
|
2
|
+
query: Query;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
export interface Query {
|
|
6
|
+
type: string;
|
|
7
|
+
columns: Column[];
|
|
8
|
+
rowFilters: RowFilters[];
|
|
9
|
+
customRowFilterCombination: string;
|
|
10
|
+
name?: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface RowFilters {
|
|
15
|
+
key?: string;
|
|
16
|
+
parameterValues?: {};
|
|
17
|
+
livingStatus?: string;
|
|
18
|
+
type?: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface Column {
|
|
22
|
+
name: string;
|
|
23
|
+
key: string;
|
|
24
|
+
type?: string;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface Patient {
|
|
28
|
+
id: string;
|
|
29
|
+
name: string;
|
|
30
|
+
age: number;
|
|
31
|
+
gender: string;
|
|
32
|
+
firstname?: string;
|
|
33
|
+
lastname?: string;
|
|
34
|
+
patientId?: number;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface Concept {
|
|
38
|
+
uuid: string;
|
|
39
|
+
units: string;
|
|
40
|
+
answers: string[];
|
|
41
|
+
hl7Abbrev: string;
|
|
42
|
+
name: string;
|
|
43
|
+
description: string;
|
|
44
|
+
datatype: DataType;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface DataType {
|
|
48
|
+
uuid: string;
|
|
49
|
+
hl7Abbreviation: string;
|
|
50
|
+
description: string;
|
|
51
|
+
name: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export interface Cohort {
|
|
55
|
+
id?: string;
|
|
56
|
+
uuid?: string;
|
|
57
|
+
display?: string;
|
|
58
|
+
name: string;
|
|
59
|
+
description: string;
|
|
60
|
+
memberIds?: number[];
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export interface SearchHistoryItem {
|
|
64
|
+
id: string;
|
|
65
|
+
parameters?: Query;
|
|
66
|
+
results: string;
|
|
67
|
+
description: string;
|
|
68
|
+
patients: Patient[];
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export interface PaginationData {
|
|
72
|
+
page: number;
|
|
73
|
+
pageSize: number;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export interface DropdownValue {
|
|
77
|
+
id: number;
|
|
78
|
+
label: string;
|
|
79
|
+
value: string;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export interface SearchByProps {
|
|
83
|
+
onSubmit: (
|
|
84
|
+
searchParams: SearchParams,
|
|
85
|
+
queryDescription: string
|
|
86
|
+
) => Promise<boolean>;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export interface Response {
|
|
90
|
+
uuid: string;
|
|
91
|
+
display: string;
|
|
92
|
+
description?: string;
|
|
93
|
+
name?: string;
|
|
94
|
+
id?: string;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export interface EncounterDetails {
|
|
98
|
+
onOrAfter: string;
|
|
99
|
+
onOrBefore: string;
|
|
100
|
+
atLeastCount: number;
|
|
101
|
+
atMostCount: number;
|
|
102
|
+
encounterForms: DropdownValue[];
|
|
103
|
+
encounterLocations: DropdownValue[];
|
|
104
|
+
selectedEncounterTypes: DropdownValue[];
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export interface DefinitionDataRow {
|
|
108
|
+
id: string;
|
|
109
|
+
name: string;
|
|
110
|
+
description: string;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export interface DrugOrderDetails {
|
|
114
|
+
selectedDrugs: DropdownValue[];
|
|
115
|
+
selectedCareSetting: DropdownValue;
|
|
116
|
+
activeOnOrBefore: string;
|
|
117
|
+
activeOnOrAfter: string;
|
|
118
|
+
activatedOnOrBefore: string;
|
|
119
|
+
activatedOnOrAfter: string;
|
|
120
|
+
}
|