org.cqframework.cql.elm.tracking.Trackable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of elm Show documentation
Show all versions of elm Show documentation
The elm library for the Clinical Quality Language Java reference implementation
package org.cqframework.cql.elm.tracking;
import jakarta.xml.bind.annotation.XmlTransient;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
import org.hl7.cql.model.DataType;
public class Trackable {
private final UUID trackerId;
private final List trackbacks;
private DataType resultType;
public Trackable() {
this.trackerId = UUID.randomUUID();
this.trackbacks = new ArrayList<>();
}
@XmlTransient
public UUID getTrackerId() {
return trackerId;
}
@XmlTransient
public List getTrackbacks() {
return trackbacks;
}
@XmlTransient
public DataType getResultType() {
return resultType;
}
public void setResultType(DataType resultType) {
this.resultType = resultType;
}
public Trackable withResultType(DataType resultType) {
setResultType(resultType);
return this;
}
}