Skip to content

Commit

Permalink
Merge pull request #22 from palladiumkenya/breaking-changes
Browse files Browse the repository at this point in the history
(fix) temporarily remove reaking references to procedures object
  • Loading branch information
ojwanganto authored Apr 8, 2024
2 parents 5142388 + 4929d50 commit 7c3f8fd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/completed-list/completed-list.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ export const CompletedList: React.FC<CompletedListProps> = ({

// eslint-disable-next-line prefer-const
let { workListEntries, isLoading } = useOrdersWorklist("", fulfillerStatus);
// console.log("workListEntries ", workListEntries);
workListEntries = workListEntries.filter(
(order) => order?.procedures[0]?.status == "COMPLETED"
);
// temporarily remove procedures references
// workListEntries = workListEntries.filter(
// (order) => order?.procedures[0]?.status == "COMPLETED"
// );
const [activatedOnOrAfterDate, setActivatedOnOrAfterDate] = useState("");
const pageSizes = [10, 20, 30, 40, 50];
const [currentPageSize, setPageSize] = useState(10);
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useOrdersWorklist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function useOrdersWorklist(
const config = useConfig() as ConfigObject;

const responseFormat =
"custom:(uuid,orderNumber,patient:ref,concept:(uuid,display,conceptClass:(uuid)),action,careSetting,orderer:ref,urgency,instructions,commentToFulfiller,display,fulfillerStatus,dateStopped,scheduledDate,dateActivated,procedures)";
"custom:(uuid,orderNumber,patient:ref,concept:(uuid,display,conceptClass:(uuid)),action,careSetting,orderer:ref,urgency,instructions,commentToFulfiller,display,fulfillerStatus,dateStopped,scheduledDate,dateActivated)";
const orderTypeParam = `orderTypes=${config.procedureOrderTypeUuid}&activatedOnOrAfterDate=${activatedOnOrAfterDate}&isStopped=false&fulfillerStatus=${fulfillerStatus}&v=${responseFormat}`;
const apiUrl = `/ws/rest/v1/order?${orderTypeParam}`;

Expand Down
6 changes: 3 additions & 3 deletions src/work-list/work-list.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ const WorkList: React.FC<WorklistProps> = ({ fulfillerStatus }) => {

// eslint-disable-next-line prefer-const
let { workListEntries, isLoading } = useOrdersWorklist("", fulfillerStatus);
workListEntries = workListEntries.filter(
(order) => order?.procedures?.length == 0
);
// workListEntries = workListEntries.filter(
// (order) => order?.procedures?.length == 0
// );
const [activatedOnOrAfterDate, setActivatedOnOrAfterDate] = useState("");
const pageSizes = [10, 20, 30, 40, 50];
const [currentPageSize, setPageSize] = useState(10);
Expand Down

0 comments on commit 7c3f8fd

Please sign in to comment.