Skip to content

Commit

Permalink
status:adding trnaslation for the order status
Browse files Browse the repository at this point in the history
  • Loading branch information
gitcliff committed Feb 1, 2024
1 parent 3f867c1 commit b44fc0a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 14 deletions.
26 changes: 13 additions & 13 deletions src/queue-list/laboratory-patient-list.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,16 @@ interface RejectOrderProps {
const LaboratoryPatientList: React.FC<LaboratoryPatientListProps> = () => {
const { t } = useTranslation();

const OrderStatuses = [
t("all", "All"),
t("received", "RECEIVED"),
t("inProgressOrder", "IN_PROGRESS"),
t("completedOrder", "COMPLETED"),
t("exception", "EXCEPTION"),
t("on_hold", "ON_HOLD"),
t("decline", "DECLINED"),
];

const [activatedOnOrAfterDate, setActivatedOnOrAfterDate] = useState("");

const [filter, setFilter] = useState<
Expand Down Expand Up @@ -213,21 +223,11 @@ const LaboratoryPatientList: React.FC<LaboratoryPatientListProps> = () => {
initialSelectedItem={"All"}
label=""
titleText={
t(
"filter_orders_by_status",
"Filter Orders by status"
) + ":"
t("filterOrdersByStatus", "Filter Orders by status") +
":"
}
type="inline"
items={[
"All",
"RECEIVED",
"IN_PROGRESS",
"COMPLETED",
"EXCEPTION",
"ON_HOLD",
"DECLINED",
]}
items={OrderStatuses}
onChange={handleOrderStatusChange}
/>
</Layer>
Expand Down
9 changes: 8 additions & 1 deletion translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,12 @@
"worklist": "Worklist",
"rejectOrder": "Reject Order",
"pickLabRequest": "Pick Lab Request",
"filter_orders_by_status": "Filter Orders by status"
"filterOrdersByStatus": "Filter Orders by status",
"inProgressOrder": "IN_PROGRESS",
"received": "RECEIVED",
"all": "All",
"completedOrder": "COMPLETED",
"exception": "EXCEPTION",
"onHold": "ON_HOLD",
"decline": "DECLINED"
}

0 comments on commit b44fc0a

Please sign in to comment.