snomed_classify/
skipped.rs1use std::fmt;
6
7use snomed_core::sctid::SctId;
8
9#[derive(Debug, Clone, Copy, PartialEq, Eq)]
10pub enum SkippedConstruct {
11 ReflexiveProperty(SctId),
13 DataProperty(SctId),
16 ConcreteValue { attribute: SctId },
19}
20
21impl fmt::Display for SkippedConstruct {
22 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
23 match self {
24 SkippedConstruct::ReflexiveProperty(id) => {
25 write!(f, "ReflexiveObjectProperty(:{id}) is not modeled")
26 }
27 SkippedConstruct::DataProperty(id) => {
28 write!(f, "SubDataPropertyOf involving :{id} is not modeled")
29 }
30 SkippedConstruct::ConcreteValue { attribute } => {
31 write!(
32 f,
33 "DataHasValue on attribute :{attribute} was dropped (concrete values aren't classified)"
34 )
35 }
36 }
37 }
38}