DICOM Attribute Coercion Parameters - dcm4che/dcm4chee-arc-light GitHub Wiki

Merge Attributes Options

  • {AttributeTagOrKeyword}={value}
  • {SequenceTagOrKeyword.AttributeTagOrKeyword}={value}
  • {value} may contain an AttributeTagOrKeyword. In this case the AttributeTagOrKeyword inside {value} will be replaced by the value of that attribute in the original dataset.
  • Above examples can be combined with various Formatting Options
  • To nullify an attribute value, just specify attribute without any value {AttributeTagOrKeyword}= or {SequenceTagOrKeyword.AttributeTagOrKeyword}=
  • To remove the attribute from the dataset, specify the attribute name/tag followed by !, i.e. {AttributeTagOrKeyword}! or {SequenceTagOrKeyword.AttributeTagOrKeyword}!

Formatting Options

Formatting options available to merge DICOM dataset attributes are :

Attributes format Meaning Example
slice Slice attribute value from a certain index / position
(optionally upto an end index / position)
PatientID={PatientID,slice,3}
PatientID={PatientID,slice,3[,7]}
hash Hash the value of specified attribute IssuerOfPatientID={00100010,hash}-{00100030}
AccessionNumber=ACC-{StudyInstanceUID,hash}
upper Convert specified attribute's value to upper case AccessionNumber={AccessionNumber,upper}

Examples

Some examples :

  • PatientID=JMS{PatientID} : If PatientID in original dataset is P123, resultant PatientID will be JMSP123
  • PatientID={PatientID,slice,3} : If PatientID in original dataset is JMSP456, resultant PatientID will be P456
  • IssuerOfPatientID=pdgen-{00100010,hash}-{00100030} : Resultant IssuerOfPatientID will be pdgen suffixed with hash values of PatientName and suffixed with PatientBirthDate
  • 00321034.00080100=ReqSrvCV01 : Resultant Code Value in RequestingServiceCodeSequence will be ReqSrvCV01
  • StudyDescription= / IssuerOfAccessionNumberSequence.LocalNamespaceEntityID= : Resultant dataset will have no values for StudyDescription attribute and LocalNamespaceEntityID attribute within IssuerOfAccessionNumberSequence
  • StudyDescription! / IssuerOfAccessionNumberSequence.LocalNamespaceEntityID! : Resultant dataset will have no attributes - StudyDescription and LocalNamespaceEntityID attribute within IssuerOfAccessionNumberSequence in it
⚠️ **GitHub.com Fallback** ⚠️