Anatomizing Modality and scheduled procedure

已查看 15 次
跳至第一个未读帖子

Vetzone India

未读,
2020年6月21日 08:48:402020/6/21
收件人 nanodicom
hi 

I am trying to anatomizing the modality (0008x0060) and schedule ae title (0040x0002) values
but the  example script do not work

$tags = array(
array(0x0008, 0x0050,'567'), // Accession Number
array(0x0010, 0x0010, $_POST[pname]),  // Patient Name
array(0x0010, 0x0020, $_POST[pid]), // Patient ID
array(0x0010, 0x0030, $_POST[pdob]), // DOB
array(0x0010, 0x0040, $_POST[psex]), // Sex
array(0x0032, 0x1060, $_POST[prdescr]), // procedure description
array(0x0040, 0x1001, $_POST[prid]), // Procedure id
array(0x0008, 0x0060, 'US'), // modality
array(0x0040, 0x0002, '$_POST[sdate]}'), // Start Date
array(0x0040, 0x0003, $_POST[stime]), // Start Time
array(0x0040, 0x0004, $_POST[edate]), // End Date
array(0x0040, 0x0005, $_POST[etime]), // End Time
);


$dicom  = Nanodicom::factory($filename, 'anonymizer');
$dicom1 = Nanodicom::factory($dicom->anonymize($tags, $replacements), 'dumper', 'blob');
echo $dicom1->dump();
file_put_contents('orthanc1/newwl.wl', $dicom1->write());
unset($dicom);
unset($dicom1);


the rd marked items are not updated,but the rest of the tags are updating
Is there anything i missing? or any error in the code?

Please help

Regards

Santosh


Vetzone India

未读,
2020年6月21日 11:13:402020/6/21
收件人 nanodicom
By the way  the one highlighted are within a sequence

so how to replace, anonymize tags inside a sequence?

Regards

Santosh
回复全部
回复作者
转发
0 个新帖子