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

ca.uhn.hapi.fhir.cdshooks.api.json.CdsServiceResponseCardJson 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;

/**
 * Represents a CDS Hooks Service Response Card
 */
public class CdsServiceResponseCardJson extends BaseCdsServiceJson implements IModelJson {
	@JsonProperty("uuid")
	String myUuid;

	@JsonProperty(value = "summary", required = true)
	String mySummary;

	@JsonProperty("detail")
	String myDetail;

	@JsonProperty(value = "indicator", required = true)
	CdsServiceIndicatorEnum myIndicator;

	@JsonProperty(value = "source", required = true)
	CdsServiceResponseCardSourceJson mySource;

	@JsonProperty("suggestions")
	List mySuggestions;

	@JsonProperty("selectionBehavior")
	String mySelectionBehaviour;

	@JsonProperty("overrideReasons")
	List myOverrideReasons;

	@JsonProperty("links")
	List myLinks;

	public String getSummary() {
		return mySummary;
	}

	public CdsServiceResponseCardJson setSummary(String theSummary) {
		mySummary = theSummary;
		return this;
	}

	public CdsServiceIndicatorEnum getIndicator() {
		return myIndicator;
	}

	public CdsServiceResponseCardJson setIndicator(CdsServiceIndicatorEnum theIndicator) {
		myIndicator = theIndicator;
		return this;
	}

	public CdsServiceResponseCardSourceJson getSource() {
		return mySource;
	}

	public CdsServiceResponseCardJson setSource(CdsServiceResponseCardSourceJson theSource) {
		mySource = theSource;
		return this;
	}

	public String getDetail() {
		return myDetail;
	}

	public CdsServiceResponseCardJson setDetail(String theDetail) {
		myDetail = theDetail;
		return this;
	}

	public String getUuid() {
		return myUuid;
	}

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

	public List getSuggestions() {
		return mySuggestions;
	}

	public void addSuggestion(CdsServiceResponseSuggestionJson theSuggestion) {
		if (mySuggestions == null) {
			mySuggestions = new ArrayList<>();
		}
		mySuggestions.add(theSuggestion);
	}

	public String getSelectionBehaviour() {
		return mySelectionBehaviour;
	}

	public CdsServiceResponseCardJson setSelectionBehaviour(String theSelectionBehaviour) {
		mySelectionBehaviour = theSelectionBehaviour;
		return this;
	}

	public List getOverrideReasons() {
		return myOverrideReasons;
	}

	public CdsServiceResponseCardJson setOverrideReasons(List theOverrideReasons) {
		myOverrideReasons = theOverrideReasons;
		return this;
	}

	public List getLinks() {
		return myLinks;
	}

	public CdsServiceResponseCardJson setLinks(List theLinks) {
		myLinks = theLinks;
		return this;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy