- {fetchingResults.status &&
}
- {queryResult.length > 0 && (
-
- : }
- onClick={() => exportAsCSV()}
- style={{ marginLeft: 0 }}
- >
- {exporting ? "Exporting as CSV..." : "Export as CSV"}
-
-
- )}
- {queryResult.length > 0 &&
- queryResult.map((result: any, index: number) => {
- if (result && result.data.length > 0) {
- return (
-
- index
- }`}
- className="result-grid"
- >
-
-
- );
- }
- return (
-
- index
- }`}
- title={`No results found for : ${result.args.PatientID} ${result.args.PatientName} ${result.args.AccessionNumber}`}
- />
- );
- })}
- {!fetchingResults.status && queryResult.length === 0 && (
-
- )}
-
- );
-};
+import ChrisAPIClient from "../../api/chrisapiclient.ts";
+import PacsApp from "./PacsController.tsx";
+import { InfoSection } from "../Common";
/**
- * Selects the default PACS service (which is usually not the PACS service literally called "default").
- *
- * 1. Selects the hard-coded "PACSDCM"
- * 2. Attempts to select the first value which is not "default" (a useless, legacy pfdcm behavior)
- * 3. Selects the first value
+ * Get a PFDCM client for the URL specified by the environment variable
+ * `VITE_PFDCM_URL`.
*/
-function getDefaultPacsService(services: ReadonlyArray