Browse Source

first commit

wangweiqun 6 years ago
parent
commit
05ab6dc5e6

+ 1 - 1
commons/commons-profile-core/pom.xml

@ -7,7 +7,7 @@
        <groupId>com.yihu.ehr</groupId>
        <artifactId>ehr-lib-parent-pom</artifactId>
        <version>1.2.0</version>
        <relativePath>../../pom.xml</relativePath>
        <relativePath>../../ehr-lib-parent-pom/pom.xml</relativePath>
    </parent>
    <artifactId>commons-profile-core</artifactId>

+ 33 - 0
commons/commons-profile-core/src/main/java/com/yihu/ehr/profile/qualilty/DqDataType.java

@ -0,0 +1,33 @@
package com.yihu.ehr.profile.qualilty;
import com.fasterxml.jackson.annotation.JsonValue;
/**
 *  质控- 数据展示类型
 * @author HZY
 * @created 2018/8/22 13:44
 */
public enum DqDataType {
    complete(0),          // 完整性
    imTime(1),            // 及时性
    correct(2);           // 准确性
    int type;
    DqDataType(int type) {
        this.type = type;
    }
    @JsonValue
    public int getType() {
        return type;
    }
    public static DqDataType create(String ordinal) {
        return create(Integer.parseInt(ordinal));
    }
    public static DqDataType create(int ordinal) {
        return DqDataType.values()[ordinal];
    }
}