Presence (not non-emptiness) is the check. Type-2 DICOM tags may be intentionally empty; if Validate insisted on non-empty values, the "set to empty on purpose" pattern would be impossible to express and Complete would silently overwrite intentional emptiness with "UNKNOWN".
| 51 | // "set to empty on purpose" pattern would be impossible to express and |
| 52 | // Complete would silently overwrite intentional emptiness with "UNKNOWN". |
| 53 | bool HasProperty(const mitk::MultiLabelSegmentation* seg, |
| 54 | const std::string& key) |
| 55 | { |
| 56 | return seg->GetConstProperty(key).IsNotNull(); |
| 57 | } |
| 58 | |
| 59 | void AddSegmentationLevelMissing(std::vector<mitk::DICOMSegmentationPropertyHelper::MissingItem>& out, |
| 60 | const std::string& description) |
no test coverage detected