Mercurial > hg > orthanc
comparison OrthancServer/Sources/Database/StatelessDatabaseOperations.cpp @ 4932:b7ce2bb6b881 more-tags
refactored the list of MainDicomTags to be able to change it dynamicaly. Unit tests and Integration tests ok
author | Alain Mazy <am@osimis.io> |
---|---|
date | Wed, 09 Mar 2022 11:17:08 +0100 |
parents | 6eff25f70121 |
children | 94a7b681b340 |
comparison
equal
deleted
inserted
replaced
4930:1ce32c1ec4cf | 4932:b7ce2bb6b881 |
---|---|
360 } | 360 } |
361 } | 361 } |
362 } | 362 } |
363 | 363 |
364 { | 364 { |
365 std::set<DicomTag> tags; | 365 const std::set<DicomTag>& tags = DicomMap::GetMainDicomTags(level); |
366 DicomMap::GetMainDicomTags(tags, level); | |
367 | 366 |
368 for (std::set<DicomTag>::const_iterator | 367 for (std::set<DicomTag>::const_iterator |
369 tag = tags.begin(); tag != tags.end(); ++tag) | 368 tag = tags.begin(); tag != tags.end(); ++tag) |
370 { | 369 { |
371 if (registry_.find(*tag) == registry_.end()) | 370 if (registry_.find(*tag) == registry_.end()) |
3098 content.AddResource(status.patientId_, ResourceType_Patient, dicomSummary_); | 3097 content.AddResource(status.patientId_, ResourceType_Patient, dicomSummary_); |
3099 } | 3098 } |
3100 | 3099 |
3101 | 3100 |
3102 // Attach the user-specified metadata | 3101 // Attach the user-specified metadata |
3102 // MORE_TAGS: TODO store the mainDicomTags list in metadata | |
3103 | 3103 |
3104 for (MetadataMap::const_iterator | 3104 for (MetadataMap::const_iterator |
3105 it = metadata_.begin(); it != metadata_.end(); ++it) | 3105 it = metadata_.begin(); it != metadata_.end(); ++it) |
3106 { | 3106 { |
3107 switch (it->first.first) | 3107 switch (it->first.first) |