forked from informatici/openhospital-ui
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
SteveGT96
committed
Dec 12, 2024
1 parent
6025c81
commit ce09808
Showing
7 changed files
with
28 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
REACT_APP_USE_MOCK_API=false | ||
REACT_APP_ENABLE_PERMISSIONS=true | ||
REACT_APP_ORTHANC_EXPLORER=https://orthanc.uni2growcameroun.com/app/explorer.html | ||
REACT_APP_ENABLE_PERMISSIONS=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
REACT_APP_USE_MOCK_API=true | ||
REACT_APP_ENABLE_PERMISSIONS=false | ||
REACT_APP_ORTHANC_EXPLORER=https://orthanc.uni2growcameroun.com/app/explorer.html | ||
REACT_APP_ENABLE_PERMISSIONS=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from "./useViewMore"; | ||
export * from "./useViewInOrthanc"; |
17 changes: 17 additions & 0 deletions
17
src/components/accessories/radiology/hooks/useViewInOrthanc.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { useCallback } from "react"; | ||
|
||
export const useViewInOrthanc = (level: "study" | "series" | "instance") => { | ||
/** | ||
* Todo: Use value provided by the backend | ||
*/ | ||
const ORTHANC_EXPLORER = | ||
"https://orthanc.uni2growcameroun.com/app/explorer.html"; | ||
const handleViewInOrthanc = useCallback( | ||
(row: any) => () => { | ||
window.open(`${ORTHANC_EXPLORER}#${level}?uuid=${row.id}`, "_blank"); | ||
}, | ||
[level] | ||
); | ||
|
||
return handleViewInOrthanc; | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters