All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.cqframework.cql.elm.tracking.Trackable Maven / Gradle / Ivy

Go to download

The elm library for the Clinical Quality Language Java reference implementation

There is a newer version: 3.18.0
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy