Skip to content

Commit 186c034

Browse files
authored
(chore) migrate labs to first party package and route adjustments (#99)
* (feat) laboratory esm implementation * (chore) migrates laboratory to third party package * updates yarn.lock
1 parent c1d1cdf commit 186c034

File tree

30 files changed

+452
-813
lines changed

30 files changed

+452
-813
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"@ohri/openmrs-esm-ohri-commons-lib": "next",
3939
"@openmrs/esm-framework": "next",
4040
"@openmrs/esm-patient-common-lib": "next",
41+
"@openmrs/esm-styleguide": "^5.1.0",
4142
"@swc/cli": "^0.1.57",
4243
"@swc/core": "^1.3.6",
4344
"@swc/jest": "^0.2.23",
Lines changed: 193 additions & 97 deletions
Original file line numberDiff line numberDiff line change
@@ -1,104 +1,200 @@
11
{
2-
"$schema": "https://json.openmrs.org/routes.schema.json",
3-
"backendDependencies": {
4-
"fhir2": "^1.2.0",
5-
"webservices.rest": "^2.2.0"
6-
},
7-
"pages": [],
8-
"extensions": [
9-
{
10-
"name": "family-health-clinic-dashboard",
11-
"slot": "patient-chart-dashboard-slot",
12-
"component": "familyHealthClinicDashboard",
13-
"meta": {
14-
"title": "Family Health",
15-
"slotName": "family-health-dashboard-slot"
16-
}
17-
},
18-
{
19-
"name": "mch-dashboard",
20-
"slot": "family-health-dashboard-slot",
21-
"component": "mchDashboard",
22-
"meta": {
23-
"slot": "mch-dashboard-slot",
24-
"title": "Maternal Child Health",
25-
"path": "maternal-child-health",
26-
"columns": 1,
27-
"layoutMode": "anchored"
28-
}
29-
},
30-
{
31-
"name": "mch-dashboard-summary-ext",
2+
"$schema": "https://json.openmrs.org/routes.schema.json",
3+
"backendDependencies": {
4+
"fhir2": "^1.2.0",
5+
"webservices.rest": "^2.2.0"
6+
},
7+
"pages": [],
8+
"extensions": [
9+
{
10+
"name": "family-health-clinic-dashboard",
11+
"slot": "patient-chart-dashboard-slot",
12+
"component": "familyHealthClinicDashboard",
13+
"order": 17,
14+
"meta": {
15+
"title": "Family Health",
16+
"slotName": "family-health-dashboard-slot"
17+
}
18+
},
19+
{
20+
"name": "mch-dashboard",
21+
"slot": "family-health-dashboard-slot",
22+
"component": "mchDashboard",
23+
"meta": {
24+
"slot": "mch-dashboard-slot",
25+
"title": "Maternal Child Health",
26+
"path": "maternal-child-health",
27+
"columns": 1,
28+
"layoutMode": "anchored"
29+
}
30+
},
31+
{
32+
"name": "mch-dashboard-summary-ext",
33+
"slot": "mch-dashboard-slot",
34+
"component": "mchDashboardSummaryExt"
35+
},
36+
{
37+
"name": "child-health-dashboard",
38+
"slot": "family-health-dashboard-slot",
39+
"component": "childHealthDashboard",
40+
"meta": {
41+
"slot": "child-health-dashboard-slot",
42+
"columns": 1,
43+
"title": "Child Health",
44+
"path": "child-health",
45+
"layoutMode": "anchored"
46+
}
47+
},
48+
{
49+
"name": "child-health-summary-ext",
50+
"slot": "child-health-dashboard-slot",
51+
"component": "childHealthSummaryExt"
52+
},
53+
{
54+
"name": "nutrition-dashboard",
55+
"slot": "family-health-dashboard-slot",
56+
"component": "nutritionDashboard",
57+
"meta": {
58+
"slot": "nutrition-dashboard-slot",
59+
"columns": 1,
60+
"title": "Nutrition",
61+
"path": "nutrition",
62+
"layoutMode": "anchored"
63+
}
64+
},
65+
{
66+
"name": "nutrition-summary-ext",
67+
"slot": "nutrition-dashboard-slot",
68+
"component": "nutritionDashboardExt"
69+
},
70+
{
71+
"name": "hiv-exposed-infant-dashboard",
72+
"slot": "family-health-dashboard-slot",
73+
"component": "hivExposedInfantDashboard",
74+
"meta": {
75+
"slot": "hiv-exposed-infant-slot",
76+
"columns": 1,
77+
"title": "HIV Exposed Infant",
78+
"path": "hiv-exposed-infant",
79+
"layoutMode": "anchored"
80+
}
81+
},
82+
{
83+
"name": "hiv-exposed-infant-ext",
84+
"slot": "hiv-exposed-infant-slot",
85+
"component": "hivExposedInfantExt"
86+
},
87+
{
88+
"name": "family-planning-dashboard",
89+
"slot": "family-health-dashboard-slot",
90+
"component": "familyPlanningDashboard",
91+
"meta": {
92+
"slot": "family-planning-dashboard-slot",
93+
"columns": 1,
94+
"title": "Family Planning",
95+
"path": "family-planning",
96+
"layoutMode": "anchored"
97+
}
98+
},
99+
{
100+
"name": "family-planning-dashboard-ext",
101+
"slot": "family-planning-dashboard-slot",
102+
"component": "familyPlanningDashboardExt"
103+
},
104+
{
105+
"name": "mch-dashboard",
106+
"slot": "family-health-dashboard-slot",
107+
"component": "mchDashboard",
108+
"meta": {
32109
"slot": "mch-dashboard-slot",
33-
"component": "mchDashboardSummaryExt"
34-
},
35-
{
36-
"name": "child-health-dashboard",
37-
"slot": "family-health-dashboard-slot",
38-
"component": "childHealthDashboard",
39-
"meta": {
40-
"slot": "child-health-dashboard-slot",
41-
"columns": 1,
42-
"title": "Child Health",
43-
"path": "child-health",
44-
"layoutMode": "anchored"
45-
}
46-
},
47-
{
48-
"name": "child-health-summary-ext",
110+
"title": "Maternal Child Health",
111+
"path": "maternal-child-health",
112+
"columns": 1
113+
}
114+
},
115+
{
116+
"name": "mch-dashboard-summary-ext",
117+
"slot": "mch-dashboard-slot",
118+
"component": "mchDashboardSummaryExt",
119+
"meta": {
120+
"columnSpan": 4
121+
}
122+
},
123+
{
124+
"name": "child-health-dashboard",
125+
"slot": "family-health-dashboard-slot",
126+
"component": "childHealthDashboard",
127+
"meta": {
49128
"slot": "child-health-dashboard-slot",
50-
"component": "childHealthSummaryExt"
51-
},
52-
{
53-
"name": "nutrition-dashboard",
54-
"slot": "family-health-dashboard-slot",
55-
"component": "nutritionDashboard",
56-
"meta": {
57-
"slot": "nutrition-dashboard-slot",
58-
"columns": 1,
59-
"title": "Nutrition",
60-
"path": "nutrition",
61-
"layoutMode": "anchored"
62-
}
63-
},
64-
{
65-
"name": "nutrition-summary-ext",
129+
"columns": 1,
130+
"title": "Child Health",
131+
"path": "child-health"
132+
}
133+
},
134+
{
135+
"name": "child-health-summary-ext",
136+
"slot": "child-health-dashboard-slot",
137+
"component": "childHealthSummaryExt",
138+
"meta": {
139+
"columnSpan": 4
140+
}
141+
},
142+
{
143+
"name": "nutrition-dashboard",
144+
"slot": "family-health-dashboard-slot",
145+
"component": "nutritionDashboard",
146+
"meta": {
66147
"slot": "nutrition-dashboard-slot",
67-
"component": "nutritionDashboardExt"
68-
},
69-
{
70-
"name": "hiv-exposed-infant-dashboard",
71-
"slot": "family-health-dashboard-slot",
72-
"component": "hivExposedInfantDashboard",
73-
"meta": {
74-
"slot": "hiv-exposed-infant-slot",
75-
"columns": 1,
76-
"title": "HIV Exposed Infant",
77-
"path": "hiv-exposed-infant",
78-
"layoutMode": "anchored"
79-
}
80-
},
81-
{
82-
"name": "hiv-exposed-infant-ext",
148+
"columns": 1,
149+
"title": "Nutrition",
150+
"path": "nutrition"
151+
}
152+
},
153+
{
154+
"name": "nutrition-summary-ext",
155+
"slot": "nutrition-dashboard-slot",
156+
"component": "nutritionDashboardExt",
157+
"meta": {
158+
"columnSpan": 4
159+
}
160+
},
161+
{
162+
"name": "hiv-exposed-infant-dashboard",
163+
"slot": "family-health-dashboard-slot",
164+
"component": "hivExposedInfantDashboard",
165+
"meta": {
83166
"slot": "hiv-exposed-infant-slot",
84-
"component": "hivExposedInfantExt"
85-
},
86-
{
87-
"name": "family-planning-dashboard",
88-
"slot": "family-health-dashboard-slot",
89-
"component": "familyPlanningDashboard",
90-
"meta": {
91-
"slot": "family-planning-dashboard-slot",
92-
"columns": 1,
93-
"title": "Family Planning",
94-
"path": "family-planning",
95-
"layoutMode": "anchored"
96-
}
97-
},
98-
{
99-
"name": "family-planning-dashboard-ext",
167+
"columns": 1,
168+
"title": "HIV Exposed Infant",
169+
"path": "hiv-exposed-infant"
170+
}
171+
},
172+
{
173+
"name": "hiv-exposed-infant-ext",
174+
"slot": "hiv-exposed-infant-slot",
175+
"component": "hivExposedInfantExt",
176+
"meta": {
177+
"columnSpan": 4
178+
}
179+
},
180+
{
181+
"name": "family-planning-dashboard",
182+
"slot": "family-health-dashboard-slot",
183+
"component": "familyPlanningDashboard",
184+
"meta": {
100185
"slot": "family-planning-dashboard-slot",
101-
"component": "familyPlanningDashboardExt"
186+
"columns": 1,
187+
"title": "Family Planning",
188+
"path": "family-planning"
189+
}
190+
},
191+
{
192+
"name": "family-planning-dashboard-ext",
193+
"slot": "family-planning-dashboard-slot",
194+
"component": "familyPlanningDashboardExt",
195+
"meta": {
196+
"columnSpan": 4
102197
}
103-
]
104-
}
198+
}
199+
]
200+
}

packages/esm-hiv-app/src/routes.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"component": "hivDashboardGroup",
1111
"name": "hiv-dashboard",
1212
"slot": "patient-chart-dashboard-slot",
13+
"order": 16,
1314
"meta": {
1415
"title": "HIV Clinic",
1516
"slotName": "hiv-dashboard-slot"

0 commit comments

Comments
 (0)