Open liaohongxing opened 1 year ago
Thank you for reaching out. As Source Application Entity Title is in the file meta information group, it is currently not reachable directly through element*
methods. You can call meta()
to reach the file meta table and retrieve source_application_entity_title
from there.
if let Some(source_application_entity_title) = obj.meta().source_application_entity_title.as_ref() {
println!("> {source_application_entity_title}");
} else {
println!("No source application entity title");
}
code test is available, thanks
Just leaving a note that per the plans for the upcoming generic object API (#524), it will be possible to retrieve Source Application Entity Title and other attributes in the meta file group using the same methods as the ones for retrieving attributes from the main data set.
Why element_by_name cannot get SourceApplicationEntityTitle
sample code:
print:
oSuchDataElementAlias { tag: Tag(0x0002, 0x0016), alias: "SourceApplicationEntityTitle", backtrace: Backtrace(()) }
dcm file:
ct-0.zip