DICOM Attribute Coercion Parameters - dcm4che/dcm4chee-arc-light GitHub Wiki
{AttributeTagOrKeyword}={value}{SequenceTagOrKeyword.AttributeTagOrKeyword}={value}-
{value}may contain anAttributeTagOrKeyword. In this case theAttributeTagOrKeywordinside{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 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} |
Some examples :
-
PatientID=JMS{PatientID}: IfPatientIDin original dataset isP123, resultantPatientIDwill beJMSP123 -
PatientID={PatientID,slice,3}: IfPatientIDin original dataset isJMSP456, resultantPatientIDwill beP456 -
IssuerOfPatientID=pdgen-{00100010,hash}-{00100030}: ResultantIssuerOfPatientIDwill bepdgensuffixed withhash valuesofPatientNameand suffixed withPatientBirthDate -
00321034.00080100=ReqSrvCV01: ResultantCode ValueinRequestingServiceCodeSequencewill beReqSrvCV01 -
StudyDescription=/IssuerOfAccessionNumberSequence.LocalNamespaceEntityID=: Resultant dataset will haveno valuesforStudyDescriptionattribute andLocalNamespaceEntityIDattribute withinIssuerOfAccessionNumberSequence -
StudyDescription!/IssuerOfAccessionNumberSequence.LocalNamespaceEntityID!: Resultant dataset will haveno attributes-StudyDescriptionandLocalNamespaceEntityIDattribute withinIssuerOfAccessionNumberSequencein it