2015-10-13 14:14:50 +02:00
|
|
|
Meteor.methods({
|
2015-11-16 17:49:35 +01:00
|
|
|
/**
|
|
|
|
|
* Retrieves Study metadata given a Study Instance UID
|
|
|
|
|
* This Meteor method is available from both the client and the server
|
|
|
|
|
*/
|
2016-01-13 16:17:32 +01:00
|
|
|
GetStudyMetadata: function(studyInstanceUid) {
|
2015-11-16 17:49:35 +01:00
|
|
|
log.info('GetStudyMetadata(%s)', studyInstanceUid);
|
2015-10-13 14:14:50 +02:00
|
|
|
|
2016-01-13 16:17:32 +01:00
|
|
|
if (!Meteor.settings.dicomWeb) {
|
|
|
|
|
throw 'No properly configured server was available over DICOMWeb';
|
|
|
|
|
}
|
|
|
|
|
|
2015-11-16 17:49:35 +01:00
|
|
|
// Get the server data. This is user-defined in the
|
|
|
|
|
// config.json files used to run the Meteor server
|
|
|
|
|
var server = Meteor.settings.dicomWeb.endpoints[0];
|
2015-10-13 14:14:50 +02:00
|
|
|
|
2015-11-16 17:49:35 +01:00
|
|
|
return Services.WADO.RetrieveMetadata(server, studyInstanceUid);
|
|
|
|
|
}
|
2016-01-13 16:17:32 +01:00
|
|
|
});
|