diff --git a/pom.xml b/pom.xml index 5449da3..b39a516 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ gov.cms.madie madie-java-models - 0.6.6 + 0.6.7 madie-java-models Java based models for MADiE microservices diff --git a/src/main/java/gov/cms/madie/models/common/ModelType.java b/src/main/java/gov/cms/madie/models/common/ModelType.java index ac929ff..d6485bd 100644 --- a/src/main/java/gov/cms/madie/models/common/ModelType.java +++ b/src/main/java/gov/cms/madie/models/common/ModelType.java @@ -7,10 +7,11 @@ @Getter public enum ModelType { - QI_CORE("QI-Core v4.1.1"), - QDM_5_6("QDM v5.6"); + QI_CORE("QI-Core v4.1.1", "qicore"), + QDM_5_6("QDM v5.6", "qdm"); private String value; + private String shortValue; private static final Map MODEL_TYPE_BY_VALUE = new HashMap<>(); static { @@ -19,9 +20,17 @@ public enum ModelType { } } - ModelType(String value) { - this.value = value; - } + /** + * Value is the string that appears in the UI to identify the model being used + * ShortValue is the string that will be appended to classes to dynamically reference classes + * + * @param value + * @param shortValue + */ + ModelType(String value, String shortValue) { + this.value = value; + this.shortValue = shortValue; + } @Override public String toString() {