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

org.hl7.fhir.instance.model.api.IAnyResource Maven / Gradle / Ivy

There is a newer version: 7.4.5
Show newest version
/*
 * #%L
 * HAPI FHIR - Core Library
 * %%
 * 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 org.hl7.fhir.instance.model.api;

import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.rest.gclient.DateClientParam;
import ca.uhn.fhir.rest.gclient.TokenClientParam;
import ca.uhn.fhir.rest.gclient.UriClientParam;

/**
 * An IBaseResource that has a FHIR version of DSTU3 or higher
 */
public interface IAnyResource extends IBaseResource {

	String SP_RES_ID = "_id";
	/**
	 * Search parameter constant for _id
	 */
	@SearchParamDefinition(
			name = SP_RES_ID,
			path = "Resource.id",
			description = "The ID of the resource",
			type = "token")

	/**
	 * Fluent Client search parameter constant for _id
	 * 

* Description: the _id of a resource
* Type: string
* Path: Resource.id
*

*/ TokenClientParam RES_ID = new TokenClientParam(IAnyResource.SP_RES_ID); String SP_RES_LAST_UPDATED = "_lastUpdated"; /** * Search parameter constant for _lastUpdated */ @SearchParamDefinition( name = SP_RES_LAST_UPDATED, path = "Resource.meta.lastUpdated", description = "Only return resources which were last updated as specified by the given range", type = "date") /** * Fluent Client search parameter constant for _lastUpdated *

* Description: The last updated date of a resource
* Type: date
* Path: Resource.meta.lastUpdated
*

*/ DateClientParam RES_LAST_UPDATED = new DateClientParam(IAnyResource.SP_RES_LAST_UPDATED); String SP_RES_TAG = "_tag"; /** * Search parameter constant for _tag */ @SearchParamDefinition( name = SP_RES_TAG, path = "Resource.meta.tag", description = "The tag of the resource", type = "token") /** * Fluent Client search parameter constant for _tag *

* Description: The tag of a resource
* Type: token
* Path: Resource.meta.tag
*

*/ TokenClientParam RES_TAG = new TokenClientParam(IAnyResource.SP_RES_TAG); String SP_RES_PROFILE = "_profile"; /** * Search parameter constant for _profile */ @SearchParamDefinition( name = SP_RES_PROFILE, path = "Resource.meta.profile", description = "The profile of the resource", type = "uri") /** * Fluent Client search parameter constant for _profile *

* Description: The profile of a resource
* Type: uri
* Path: Resource.meta.profile
*

*/ UriClientParam RES_PROFILE = new UriClientParam(IAnyResource.SP_RES_PROFILE); String SP_RES_SECURITY = "_security"; /** * Search parameter constant for _security */ @SearchParamDefinition( name = SP_RES_SECURITY, path = "Resource.meta.security", description = "The security of the resource", type = "token") /** * Fluent Client search parameter constant for _security *

* Description: The security of a resource
* Type: token
* Path: Resource.meta.security
*

*/ TokenClientParam RES_SECURITY = new TokenClientParam(IAnyResource.SP_RES_SECURITY); String getId(); IIdType getIdElement(); IPrimitiveType getLanguageElement(); Object getUserData(String name); IAnyResource setId(String theId); void setUserData(String name, Object value); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy