Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Labs #9260

Draft
wants to merge 46 commits into
base: develop
Choose a base branch
from
Draft

Labs #9260

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
22994f9
Add lab tests translation and sidebar navigation item
yash-learner Nov 26, 2024
e5e36d4
Add Lab Test routes and component for lab orders
yash-learner Nov 26, 2024
2f5f4d6
Get tabs working
yash-learner Nov 26, 2024
77f3368
Add @tanstack/react-table package
yash-learner Nov 27, 2024
a6868ba
Add shadcn Input and Table components
yash-learner Nov 27, 2024
8a8c6f3
WIP get table structure
yash-learner Nov 27, 2024
43b867b
WIP: get a basic structure for filtering
yash-learner Nov 28, 2024
cf8a514
Add shadcn separator
yash-learner Nov 29, 2024
a72e921
Add primary button variant styles
yash-learner Nov 29, 2024
a3a0795
Enhance TableFilter component with separators and clear filters funct…
yash-learner Nov 29, 2024
18c768e
Update OrderPlaced component layout with improved spacing
yash-learner Nov 29, 2024
60ae09c
Add shadcn Badge component
yash-learner Nov 30, 2024
d51bbff
Enhance DataTable component to support badge rendering for specific c…
yash-learner Nov 30, 2024
da56b83
Refactor OrderPlaced component to enhance filtering and add action bu…
yash-learner Nov 30, 2024
f6d6aab
Add shadcn Label and Radio Group components
yash-learner Nov 30, 2024
4c3530a
Add radio button support to TableFilter component
yash-learner Nov 30, 2024
1d08121
Add priority radio filter to OrderPlaced component and update initial…
yash-learner Nov 30, 2024
2c7b06b
WIP: support multi select
yash-learner Dec 1, 2024
9cb2081
Add shadcn Card and Collapsible components
yash-learner Dec 3, 2024
f39490c
WIP: Collect specimen page
yash-learner Dec 3, 2024
462c3ae
Add sample collection UI and refactors
yash-learner Dec 5, 2024
59e18d4
Fix layout alignment
yash-learner Dec 5, 2024
129d3fa
Add barcode SVG icon
yash-learner Dec 8, 2024
7caaa65
Add more UI elements
yash-learner Dec 8, 2024
c245b20
Add SendSpecimen route and enhance SpecimenCollected component
yash-learner Dec 8, 2024
26913b9
Rename page title from "Lab Tests" to "Lab Orders"
yash-learner Dec 8, 2024
cc466a9
Add SendSpecimen component for specimen dispatch functionality
yash-learner Dec 8, 2024
300de49
Add recieve state components
yash-learner Dec 8, 2024
6c0fecd
Remove mock labs data from ReceiveSpecimen component
yash-learner Dec 8, 2024
caf36b7
Get remote button working and move some values
yash-learner Dec 9, 2024
18653e7
Replace Cross2Icon with CrossCircledIcon
yash-learner Dec 9, 2024
8806e57
Add more UI elements in ReceiveSpecimen
yash-learner Dec 9, 2024
0bd7f74
Merge branch 'develop' into issues/8683/lab-orders
yash-learner Dec 10, 2024
4e304d6
Remove duplicate primary button variant
yash-learner Dec 10, 2024
e7ba845
Make input work with changes came from develop remote
yash-learner Dec 10, 2024
60689c9
Update sidebar icon for lab tests to use duotone microscope
yash-learner Dec 10, 2024
200c632
Add SentToLab component
yash-learner Dec 10, 2024
902cac6
Add received badge style to DataTable component
yash-learner Dec 10, 2024
af5d02d
Minor Changes
yash-learner Dec 10, 2024
b91e00e
Add basic Process speciem UI elements
yash-learner Dec 10, 2024
6a8e632
Move buttons to buttom
yash-learner Dec 10, 2024
66a6a0e
added create lab order form, lab order code select and wired them
khavinshankar Dec 10, 2024
b4eb957
Add results table
yash-learner Dec 10, 2024
5802c0a
added list service requests component
khavinshankar Dec 10, 2024
51b3484
Merge branch 'issues/8683/lab-orders' of github.com:yash-learner/care…
khavinshankar Dec 10, 2024
6b813a9
wired labs flow till results entry
khavinshankar Dec 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
204 changes: 204 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,22 @@
"@hello-pangea/dnd": "^17.0.0",
"@pnotify/core": "^5.2.0",
"@pnotify/mobile": "^5.2.0",
"@radix-ui/react-checkbox": "^1.1.2",
"@radix-ui/react-collapsible": "^1.1.1",
"@radix-ui/react-dialog": "^1.1.2",
"@radix-ui/react-dropdown-menu": "^2.1.2",
"@radix-ui/react-icons": "^1.3.2",
"@radix-ui/react-label": "^2.1.0",
"@radix-ui/react-popover": "^1.1.2",
"@radix-ui/react-radio-group": "^1.2.1",
"@radix-ui/react-scroll-area": "^1.2.0",
"@radix-ui/react-icons": "^1.3.2",
"@radix-ui/react-select": "^2.1.2",
"@radix-ui/react-separator": "^1.1.0",
"@radix-ui/react-slot": "^1.1.0",
"@radix-ui/react-toast": "^1.2.2",
"@radix-ui/react-tooltip": "^1.1.4",
"@sentry/browser": "^8.42.0",
"@tanstack/react-table": "^8.20.5",
"@yudiel/react-qr-scanner": "^2.0.8",
"bowser": "^2.11.0",
"browser-image-compression": "^2.0.2",
Expand Down
7 changes: 7 additions & 0 deletions public/images/barcode.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions public/images/filter.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/locale/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -853,6 +853,7 @@
"is_upshift_case": "Is upshift case",
"is_vaccinated": "Whether vaccinated",
"kasp_enabled_date": "{{kasp_string}} enabled date",
"lab_tests": "Lab Tests",
"label": "Label",
"landline": "Indian landline",
"language_selection": "Language Selection",
Expand Down
2 changes: 2 additions & 0 deletions src/Routers/AppRouter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { BLACKLISTED_PATHS } from "@/common/constants";
import AssetRoutes from "@/Routers/routes/AssetRoutes";
import ConsultationRoutes from "@/Routers/routes/ConsultationRoutes";
import FacilityRoutes from "@/Routers/routes/FacilityRoutes";
import LabTestRoutes from "@/Routers/routes/LabTestRoutes";
import PatientRoutes from "@/Routers/routes/PatientRoutes";
import ResourceRoutes from "@/Routers/routes/ResourceRoutes";
import SampleRoutes from "@/Routers/routes/SampleRoutes";
Expand All @@ -48,6 +49,7 @@ const Routes: AppRoutes = {

...AssetRoutes,
...ConsultationRoutes,
...LabTestRoutes,
...FacilityRoutes,
...PatientRoutes,
...ResourceRoutes,
Expand Down
22 changes: 22 additions & 0 deletions src/Routers/routes/LabTestRoutes.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { CollectSpecimen } from "@/components/LabTest/CollectSpecimen";
import { LabTest } from "@/components/LabTest/Index";
import { ProcessSpecimen } from "@/components/LabTest/ProcessSpecimen";
import { ReceiveSpecimen } from "@/components/LabTest/ReceiveSpecimen";
import { SendSpecimen } from "@/components/LabTest/SendSpecimen";

import { AppRoutes } from "@/Routers/AppRouter";

const LabTestRoutes: AppRoutes = {
"/lab_tests/order_placed": () => <LabTest />,
"/lab_tests/process_specimen": () => <ProcessSpecimen />,
"/lab_tests/specimen_collected": () => <LabTest />,
"/lab_tests/sent_to_lab": () => <LabTest />,
"/lab_tests/send_to_lab": () => <SendSpecimen />,
"/lab_tests/receive_at_lab": () => <ReceiveSpecimen />,
"/lab_tests/received_at_lab": () => <LabTest />,
"/lab_tests/:specimenId/collect": ({ specimenId }) => (
<CollectSpecimen specimenId={specimenId} />
),
};

export default LabTestRoutes;
Loading
Loading