public UDPSendingProcess(string patientID, ECGData[] ECGDataArray)
        {
            patientID = "P20120001";
            serverIPString = "";
            readySendMsg = "ReadySend|" + patientID;
            stopSendMsg = "StopSend|" + patientID;

            this.ECGDataArray = ECGDataArray;
            this.patientID = patientID;
            subDataToSend = new ECGData[12];
        }
 public KamaAcquisitionReadOnlyFile(string filename)
 {
     FileName             = filename;
     ProcedureInformation = new ProcedureInformation();
     SystemInformation    = new SystemInformation();
     PatientInformation   = new Patient();
     ECG    = new ECGData();
     EITs   = new List <EITEntry>();
     Events = new List <SystemEvent>();
     Hdf5.Settings.LowerCaseNaming = true;
     Hdf5.Settings.DateTimeType    = DateTimeType.UnixTimeMilliseconds;
     fileId = Hdf5.OpenFile(filename);
 }
示例#3
0
        public void Execute(CreateECGDataCommand command)
        {
            var ecgDataRepository = Ioc.Instance.Resolve <IECGDataRepository>();

            var ecgData = ecgDataRepository.GetById(command.Id);

            if (ecgData != null)
            {
                throw new Exception("ECG data was added.");
            }

            var ecgDataInstance = new ECGData(command.Id, command.UserId, command.RawData, command.ImpedanceData, command.CreateTime);

            ecgDataRepository.Save(ecgDataInstance, ecgDataInstance.Version);

            var userRepository = Ioc.Instance.Resolve <IUserRepository>();
            var user           = userRepository.GetById(command.UserId);
        }
 public MeasureECGControl()
 {
     ecgData   = new ECGData();
     maalingID = new int();
 }