Esempio n. 1
1
 public StudyDeleteRecord(
      String _studyInstanceUid_
     ,DateTime _timestamp_
     ,String _serverPartitionAE_
     ,ServerEntityKey _filesystemKey_
     ,String _backupPath_
     ,String _reason_
     ,String _accessionNumber_
     ,String _patientId_
     ,String _patientsName_
     ,String _studyId_
     ,String _studyDescription_
     ,String _studyDate_
     ,String _studyTime_
     ,XmlDocument _archiveInfo_
     ,String _extendedInfo_
     ):base("StudyDeleteRecord")
 {
     StudyInstanceUid = _studyInstanceUid_;
     Timestamp = _timestamp_;
     ServerPartitionAE = _serverPartitionAE_;
     FilesystemKey = _filesystemKey_;
     BackupPath = _backupPath_;
     Reason = _reason_;
     AccessionNumber = _accessionNumber_;
     PatientId = _patientId_;
     PatientsName = _patientsName_;
     StudyId = _studyId_;
     StudyDescription = _studyDescription_;
     StudyDate = _studyDate_;
     StudyTime = _studyTime_;
     ArchiveInfo = _archiveInfo_;
     ExtendedInfo = _extendedInfo_;
 }
 static public FilesystemStudyStorage Load(ServerEntityKey key)
 {
     using (var context = new ServerExecutionContext())
     {
         return Load(context.ReadContext, key);
     }
 }
 static public StudyIntegrityQueueUid Load(ServerEntityKey key)
 {
     using (var context = new ServerExecutionContext())
     {
         return Load(context.ReadContext, key);
     }
 }
Esempio n. 4
0
 static public ProcedureCode Load(ServerEntityKey key)
 {
     using (var context = new ServerExecutionContext())
     {
         return Load(context.ReadContext, key);
     }
 }
 static public RequestAttributes Load(ServerEntityKey key)
 {
     using (var context = new ServerExecutionContext())
     {
         return Load(context.ReadContext, key);
     }
 }
 static public RequestAttributes Load(ServerEntityKey key)
 {
     using (var read = PersistentStoreRegistry.GetDefaultStore().OpenReadContext())
     {
         return Load(read, key);
     }
 }
Esempio n. 7
0
 static public DatabaseVersion Load(ServerEntityKey key)
 {
     using (var read = PersistentStoreRegistry.GetDefaultStore().OpenReadContext())
     {
         return Load(read, key);
     }
 }
 static public PartitionTransferSyntax Load(ServerEntityKey key)
 {
     using (var context = new ServerExecutionContext())
     {
         return Load(context.ReadContext, key);
     }
 }
 static public ServerSopClass Load(ServerEntityKey key)
 {
     using (var context = new ServerExecutionContext())
     {
         return Load(context.ReadContext, key);
     }
 }
Esempio n. 10
0
 public Device(
      Boolean _dhcp_
     ,Boolean _enabled_
     ,Boolean _allowStorage_
     ,Boolean _acceptKOPR_
     ,Boolean _allowRetrieve_
     ,Boolean _allowQuery_
     ,Boolean _allowAutoRoute_
     ,Int16 _throttleMaxConnections_
     ,DateTime _lastAccessedTime_
     ,DeviceTypeEnum _deviceTypeEnum_
     ,ServerEntityKey _serverPartitionKey_
     ,String _aeTitle_
     ,Int32 _port_
     ,String _description_
     ,String _ipAddress_
     ):base("Device")
 {
     Dhcp = _dhcp_;
     Enabled = _enabled_;
     AllowStorage = _allowStorage_;
     AcceptKOPR = _acceptKOPR_;
     AllowRetrieve = _allowRetrieve_;
     AllowQuery = _allowQuery_;
     AllowAutoRoute = _allowAutoRoute_;
     ThrottleMaxConnections = _throttleMaxConnections_;
     LastAccessedTime = _lastAccessedTime_;
     DeviceTypeEnum = _deviceTypeEnum_;
     ServerPartitionKey = _serverPartitionKey_;
     AeTitle = _aeTitle_;
     Port = _port_;
     Description = _description_;
     IpAddress = _ipAddress_;
 }
Esempio n. 11
0
 static public StudyIntegrityQueueUid Load(ServerEntityKey key)
 {
     using (var read = PersistentStoreRegistry.GetDefaultStore().OpenReadContext())
     {
         return Load(read, key);
     }
 }
Esempio n. 12
0
 static public ArchiveQueue Load(ServerEntityKey key)
 {
     using (var context = new ServerExecutionContext())
     {
         return Load(context.ReadContext, key);
     }
 }
Esempio n. 13
0
 static public FilesystemQueue Load(ServerEntityKey key)
 {
     using (var read = PersistentStoreRegistry.GetDefaultStore().OpenReadContext())
     {
         return Load(read, key);
     }
 }
Esempio n. 14
0
 static public ArchiveStudyStorage Load(ServerEntityKey key)
 {
     using (var read = PersistentStoreRegistry.GetDefaultStore().OpenReadContext())
     {
         return Load(read, key);
     }
 }
Esempio n. 15
0
 static public DataAccessGroup Load(ServerEntityKey key)
 {
     using (var context = new ServerExecutionContext())
     {
         return Load(context.ReadContext, key);
     }
 }
 static public ServerTransferSyntax Load(ServerEntityKey key)
 {
     using (var read = PersistentStoreRegistry.GetDefaultStore().OpenReadContext())
     {
         return Load(read, key);
     }
 }
Esempio n. 17
0
 static public StudyHistory Load(ServerEntityKey key)
 {
     using (var context = new ServerExecutionContext())
     {
         return Load(context.ReadContext, key);
     }
 }
        /// <summary>
        /// Inserts a move request to move one or more series in a study.
        /// </summary>
        /// <param name="context">The persistence context used for database connection.</param>
        /// <param name="partition">The <see cref="ServerPartition"/> where the study resides</param>
        /// <param name="studyInstanceUid">The Study Instance Uid of the study</param>
        /// <param name="deviceKey">The Key of the device to move the series to.</param> 
        /// <param name="seriesInstanceUids">The Series Instance Uid of the series to be move.</param>
        /// <param name="externalRequest">Optional <see cref="ExternalRequestQueue"/> entry that triggered this move</param>
        /// <returns>A MoveSeries <see cref="WorkQueue"/> entry inserted into the system.</returns>
        /// <exception cref="InvalidStudyStateOperationException"></exception>
        public static IList<WorkQueue> MoveSeries(IUpdateContext context, ServerPartition partition, string studyInstanceUid, ServerEntityKey deviceKey, List<string> seriesInstanceUids, ExternalRequestQueue externalRequest=null)
        {
            // Find all location of the study in the system and insert series delete request
			IList<StudyStorageLocation> storageLocations = StudyStorageLocation.FindStorageLocations(partition.Key, studyInstanceUid);
			IList<WorkQueue> entries = new List<WorkQueue>();

            foreach (StudyStorageLocation location in storageLocations)
            {
                try
                {
                    // insert a move series request
                    WorkQueue request = InsertMoveSeriesRequest(context, location, seriesInstanceUids, deviceKey, externalRequest);
                    Debug.Assert(request.WorkQueueTypeEnum.Equals(WorkQueueTypeEnum.WebMoveStudy));
                    entries.Add(request);
                }
                catch (Exception ex)
                {
                    Platform.Log(LogLevel.Error, ex, "Errors occurred when trying to insert move request");
                    if (!ServerHelper.UnlockStudy(location.Key))
                        throw new ApplicationException("Unable to unlock the study");
                }
            }

            return entries;
        }
Esempio n. 19
0
 static public PartitionSopClass Load(ServerEntityKey key)
 {
     using (var read = PersistentStoreRegistry.GetDefaultStore().OpenReadContext())
     {
         return Load(read, key);
     }
 }
Esempio n. 20
0
		public LockStudyCommand(ServerEntityKey studyStorageKey, bool writeLock, bool readLock)
			: base("LockStudy")
		{
			_studyStorageKey = studyStorageKey;
			_readLock = readLock;
			_writeLock = writeLock;
		}
Esempio n. 21
0
 public StudyDataAccess(
      ServerEntityKey _studyStorageKey_
     ,ServerEntityKey _dataAccessGroupKey_
     ):base("StudyDataAccess")
 {
     StudyStorageKey = _studyStorageKey_;
     DataAccessGroupKey = _dataAccessGroupKey_;
 }
Esempio n. 22
0
 public DataAccessGroup(
      ServerEntityKey _authorityGroupOID_
     ,Boolean _deleted_
     ):base("DataAccessGroup")
 {
     AuthorityGroupOID = _authorityGroupOID_;
     Deleted = _deleted_;
 }
		public InsertArchiveQueueCommand(ServerEntityKey serverPartitionKey, ServerEntityKey studyStorageKey)
			: base("Insert ArchiveQueue record")
		{
			_serverPartitionKey = serverPartitionKey;

			_studyStorageKey = studyStorageKey;

		}
 public ServerPartitionDataAccess(
      ServerEntityKey _serverPartitionKey_
     ,ServerEntityKey _dataAccessGroupKey_
     ):base("ServerPartitionDataAccess")
 {
     ServerPartitionKey = _serverPartitionKey_;
     DataAccessGroupKey = _dataAccessGroupKey_;
 }
Esempio n. 25
0
 public Study(
      String _studyInstanceUid_
     ,ServerEntityKey _serverPartitionKey_
     ,ServerEntityKey _patientKey_
     ,Int32 _numberOfStudyRelatedSeries_
     ,Int32 _numberOfStudyRelatedInstances_
     ,QCStatusEnum _qCStatusEnum_
     ,String _qCOutput_
     ,DateTime? _qCUpdateTimeUtc_
     ,ServerEntityKey _orderKey_
     ,Decimal _studySizeInKB_
     ,String _responsiblePerson_
     ,String _responsibleOrganization_
     ,XmlDocument _queryXml_
     ,String _specificCharacterSet_
     ,ServerEntityKey _studyStorageKey_
     ,String _patientsName_
     ,String _patientId_
     ,String _issuerOfPatientId_
     ,String _patientsBirthDate_
     ,String _patientsAge_
     ,String _patientsSex_
     ,String _studyDate_
     ,String _studyTime_
     ,String _accessionNumber_
     ,String _studyId_
     ,String _studyDescription_
     ,String _referringPhysiciansName_
     ):base("Study")
 {
     StudyInstanceUid = _studyInstanceUid_;
     ServerPartitionKey = _serverPartitionKey_;
     PatientKey = _patientKey_;
     NumberOfStudyRelatedSeries = _numberOfStudyRelatedSeries_;
     NumberOfStudyRelatedInstances = _numberOfStudyRelatedInstances_;
     QCStatusEnum = _qCStatusEnum_;
     QCOutput = _qCOutput_;
     QCUpdateTimeUtc = _qCUpdateTimeUtc_;
     OrderKey = _orderKey_;
     StudySizeInKB = _studySizeInKB_;
     ResponsiblePerson = _responsiblePerson_;
     ResponsibleOrganization = _responsibleOrganization_;
     QueryXml = _queryXml_;
     SpecificCharacterSet = _specificCharacterSet_;
     StudyStorageKey = _studyStorageKey_;
     PatientsName = _patientsName_;
     PatientId = _patientId_;
     IssuerOfPatientId = _issuerOfPatientId_;
     PatientsBirthDate = _patientsBirthDate_;
     PatientsAge = _patientsAge_;
     PatientsSex = _patientsSex_;
     StudyDate = _studyDate_;
     StudyTime = _studyTime_;
     AccessionNumber = _accessionNumber_;
     StudyId = _studyId_;
     StudyDescription = _studyDescription_;
     ReferringPhysiciansName = _referringPhysiciansName_;
 }
Esempio n. 26
0
 public ServerActionContext(DicomMessageBase msg, ServerEntityKey filesystemKey,
                            ServerPartition partition, ServerEntityKey studyLocationKey)
 {
     Message = msg;
     ServerPartitionKey = partition.Key;
     StudyLocationKey = studyLocationKey;
     FilesystemKey = filesystemKey;
 	ServerPartition = partition;
 }
Esempio n. 27
0
 public Staff(
      ServerEntityKey _serverPartitionKey_
     ,String _identifier_
     ,String _name_
     ):base("Staff")
 {
     ServerPartitionKey = _serverPartitionKey_;
     Identifier = _identifier_;
     Name = _name_;
 }
 public DevicePreferredTransferSyntax(
      ServerEntityKey _deviceKey_
     ,ServerEntityKey _serverSopClassKey_
     ,ServerEntityKey _serverTransferSyntaxKey_
     ):base("DevicePreferredTransferSyntax")
 {
     DeviceKey = _deviceKey_;
     ServerSopClassKey = _serverSopClassKey_;
     ServerTransferSyntaxKey = _serverTransferSyntaxKey_;
 }
 public PartitionTransferSyntax(
      ServerEntityKey _serverPartitionKey_
     ,ServerEntityKey _serverTransferSyntaxKey_
     ,Boolean _enabled_
     ):base("PartitionTransferSyntax")
 {
     ServerPartitionKey = _serverPartitionKey_;
     ServerTransferSyntaxKey = _serverTransferSyntaxKey_;
     Enabled = _enabled_;
 }
Esempio n. 30
0
 public PartitionSopClass(
      ServerEntityKey _serverPartitionKey_
     ,ServerEntityKey _serverSopClassKey_
     ,Boolean _enabled_
     ):base("PartitionSopClass")
 {
     ServerPartitionKey = _serverPartitionKey_;
     ServerSopClassKey = _serverSopClassKey_;
     Enabled = _enabled_;
 }
Esempio n. 31
0
 /// <summary>
 /// Set the primary key of the ServerEntity object.
 /// </summary>
 /// <param name="key"></param>
 public void SetKey(ServerEntityKey key)
 {
     _key = key;
 }