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

org.opencds.cqf.cds.builders.r4.ExtensionBuilder Maven / Gradle / Ivy

package org.opencds.cqf.cds.builders.r4;

import org.opencds.cqf.cds.builders.BaseBuilder;
import org.hl7.fhir.r4.model.Extension;
import org.hl7.fhir.r4.model.StringType;
import org.hl7.fhir.r4.model.Type;

public class ExtensionBuilder extends BaseBuilder {

    public ExtensionBuilder() {
        super(new Extension());
    }

    public ExtensionBuilder buildUrl(String url) {
        complexProperty.setUrl(url);
        return this;
    }

    public ExtensionBuilder buildValue(Type value) {
        complexProperty.setValue(value);
        return this;
    }

    public ExtensionBuilder buildValue(String value) {
        complexProperty.setValue(new StringType(value));
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy