feat(STOW-RS) Save DICOM Structured Reports from Measurement Table back to archive (#236)
* Small refactor into Table Class setting events as static object into class * feature(STOW-SR) : Initial changes to stow when we have Server. * Improvements into requests and small fix into style * Small fix for jumpToRow without refheshing page * Handling STOW-SR once we don't have server * feature(STOW-SR) Refactor * Merge request with makeRequest and delete old file * Expose wadoproxy to client and update measurement-table to start using wadoproxy.getServerUrl * Move WADOProxy.getServerUrl to Measurement-table package. Fix querystring issue. * Remove proxy:enabled in favour of requestOptions.requestFromBrowser * Bcrypt 2.0.0 to fix Travis
This commit is contained in:
1 parent
13e4dc25e1
commit
26b14f1dab
26 files changed
+1079
-179
No files matched your search
@@ -1,5 +1,6 @@
|
||||
import { OHIF } from 'meteor/ohif:core';
|
||||
import { handleSR, getLatestSRSeries } from "../utils/handleSR";
|
||||
import { retrieveMeasurementFromSR, stowSRFromMeasurements } from '../utils/handleSR';
|
||||
import { getLatestSRSeries } from '../utils/srUtils';
|
||||
|
||||
export const retrieveMeasurements = (patientId, timepointIds) => {
|
||||
OHIF.log.info('retrieveMeasurements');
|
||||
@@ -8,7 +9,7 @@ export const retrieveMeasurements = (patientId, timepointIds) => {
|
||||
|
||||
if(!latestSeries) return Promise.resolve({});
|
||||
|
||||
return handleSR(latestSeries).then((value) => {
|
||||
return retrieveMeasurementFromSR(latestSeries).then((value) => {
|
||||
return {
|
||||
length: value
|
||||
}
|
||||
@@ -17,11 +18,17 @@ export const retrieveMeasurements = (patientId, timepointIds) => {
|
||||
|
||||
export const storeMeasurements = (measurementData, timepointIds) => {
|
||||
OHIF.log.info('storeMeasurements');
|
||||
|
||||
const server = OHIF.servers.getCurrentServer();
|
||||
if (!server || server.type !== 'dicomWeb') {
|
||||
return Promise.resolve({});
|
||||
}
|
||||
|
||||
// Here is where we should do any required data transformation and API calls
|
||||
const studyInstanceUid = measurementData[Object.keys(measurementData)[0]][0].studyInstanceUid
|
||||
|
||||
// TODO: Write SR, STOW back to PACS
|
||||
return Promise.resolve();
|
||||
return stowSRFromMeasurements(measurementData).then( () => {
|
||||
OHIF.studies.deleteStudyMetadataPromise(studyInstanceUid);
|
||||
});
|
||||
};
|
||||
|
||||
export const retrieveTimepoints = filter => {
|
||||
|
||||
Reference in new issue
Block a user