dicom-ecg-plot icon indicating copy to clipboard operation
dicom-ecg-plot copied to clipboard

Can this dicomize ECG raw data?

Open ppazos opened this issue 7 years ago • 3 comments

ppazos avatar Oct 28 '18 00:10 ppazos

No, it actually does the inverse operation: the function _signals extracts the channels' raw data from the dicom file. What you need is a _signals⁻¹ function. Would you please provide me some sample file of ECG raw data?

marcodebe avatar Oct 31 '18 10:10 marcodebe

@marcodebe yes, let me get some data and get back to you. Thanks!

ppazos avatar Nov 05 '18 00:11 ppazos

@marcodebe this file has data from a sensor, it is in mV. The format is timestamp,mV

temp_1540393629742.txt

These are the mV values encoded in 16 bit signed (this is one of the formats accepted by DICOM, it is 16 SS). The separation character is \ (this was a test I did to generate DICOM XML with waveform data for one channel).

66\65477\65457\65\191\153\41\47\203\336\297\175\151\259\328\226\44\65527\96\186\98\65481\65434\0\81\15\65413\65381\65500\72\5\65387\65354\65469\6\65457\65270\65168\65192\65202\65134\65178\35\793\1624\2047\2047\2047\1987\1375\498\65329\65039\65121\65291\65318\65289\65370\28\163\93\65452\65392\65497\60\6\65416\65411\7\122\70\65478\65487\93\219\180\74\87\232\366\333\231\251\410\546\522\426\436\585\719\697\611\625\777\908\861\754\752\877\962\873\687\621\678\710\574\353\257\299\326\190\65522\65431\65493\65534\65436\65252\65187\65276\65350\65269\65102\65072\65182\65262\65182\65034\65006\65125\65233\65173\65032\65014\65149\65245\65185\65064\65044\65177\65290\65244\65114\65096\65220\65310\65262\65122\65113\65251\65362\65311\65170\65154\65283\65394\65325\65190\65172\65298\65409\65358\65220\65203\65331\65437\65376\65239\65222\65357\65452\65392\65268\65249\65367\65476\65419\65286\65271\65396\65494\65427\65292\65259\65396\65513\65453\65300\65281\65397\65507\65460\65326\65307\65424\65525\65461\65333\65326\65452\14\65493\65350\65341\65465\30\65503\65365\65348\65476\48\65528\65386\65368\65486\48\65519\65397\65385\65527\103\71\65479\65470\71\184\155\47\57\199\336\307\178\160\271\340\246\80\27\126\204\116\65495\65458\30\115\42\65435\65406\65521\81

Please check this other repo where we are discussing the same topic in Python and has other details: https://github.com/pydicom/pydicom/issues/766

Hope that helps!

ppazos avatar Nov 13 '18 04:11 ppazos