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

ca.uhn.hapi.fhir.cdshooks.api.json.CdsServiceResponseSuggestionJson Maven / Gradle / Ivy

The newest version!
/*-
 * #%L
 * HAPI FHIR - CDS Hooks
 * %%
 * Copyright (C) 2014 - 2024 Smile CDR, Inc.
 * %%
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * #L%
 */
package ca.uhn.hapi.fhir.cdshooks.api.json;

import ca.uhn.fhir.model.api.IModelJson;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.ArrayList;
import java.util.List;

/**
 * Allows a service to suggest a set of changes in the context of the current activity
 */
public class CdsServiceResponseSuggestionJson implements IModelJson {
	@JsonProperty(value = "label", required = true)
	String myLabel;

	@JsonProperty("uuid")
	String myUuid;

	@JsonProperty("isRecommended")
	Boolean myRecommended;

	@JsonProperty("actions")
	List myActions;

	public String getLabel() {
		return myLabel;
	}

	public CdsServiceResponseSuggestionJson setLabel(String theLabel) {
		myLabel = theLabel;
		return this;
	}

	public String getUuid() {
		return myUuid;
	}

	public CdsServiceResponseSuggestionJson setUuid(String theUuid) {
		myUuid = theUuid;
		return this;
	}

	public Boolean getRecommended() {
		return myRecommended;
	}

	public CdsServiceResponseSuggestionJson setRecommended(Boolean theRecommended) {
		myRecommended = theRecommended;
		return this;
	}

	public List getActions() {
		return myActions;
	}

	public void addAction(CdsServiceResponseSuggestionActionJson theAction) {
		if (myActions == null) {
			myActions = new ArrayList<>();
		}
		myActions.add(theAction);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy