View Javadoc
1   package org.hl7.fhir.instance.model.api;
2   
3   import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
4   import ca.uhn.fhir.rest.gclient.TokenClientParam;
5   
6   /*
7    * #%L
8    * HAPI FHIR - Core Library
9    * %%
10   * Copyright (C) 2014 - 2018 University Health Network
11   * %%
12   * Licensed under the Apache License, Version 2.0 (the "License");
13   * you may not use this file except in compliance with the License.
14   * You may obtain a copy of the License at
15   * 
16   *      http://www.apache.org/licenses/LICENSE-2.0
17   * 
18   * Unless required by applicable law or agreed to in writing, software
19   * distributed under the License is distributed on an "AS IS" BASIS,
20   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21   * See the License for the specific language governing permissions and
22   * limitations under the License.
23   * #L%
24   */
25  
26  public interface IAnyResource extends IBaseResource {
27  
28  	/**
29  	 * Search parameter constant for <b>_language</b>
30  	 */
31  	@SearchParamDefinition(name="_language", path="", description="The language of the resource", type="string"  )
32  	public static final String SP_RES_LANGUAGE = "_language";
33  
34  
35  	/**
36  	 * Search parameter constant for <b>_id</b>
37  	 */
38  	@SearchParamDefinition(name="_id", path="", description="The ID of the resource", type="token"  )
39  	public static final String SP_RES_ID = "_id";
40  
41  	/**
42  	 * <b>Fluent Client</b> search parameter constant for <b>_id</b>
43  	 * <p>
44  	 * Description: <b>the _id of a resource</b><br>
45  	 * Type: <b>string</b><br>
46  	 * Path: <b>Resource._id</b><br>
47  	 * </p>
48  	 */
49  	public static final TokenClientParam RES_ID = new TokenClientParam(IAnyResource.SP_RES_ID);
50  
51  	String getId();
52  
53  	@Override
54  	IIdType getIdElement();
55  
56  	IPrimitiveType<String> getLanguageElement();
57  
58  	public Object getUserData(String name);
59  
60  	@Override
61  	IAnyResource setId(String theId);
62  
63  	public void setUserData(String name, Object value);
64  
65  }