001package org.hl7.fhir.instance.model.api; 002 003import ca.uhn.fhir.model.api.annotation.SearchParamDefinition; 004import ca.uhn.fhir.rest.gclient.TokenClientParam; 005 006/* 007 * #%L 008 * HAPI FHIR - Core Library 009 * %% 010 * Copyright (C) 2014 - 2021 Smile CDR, Inc. 011 * %% 012 * Licensed under the Apache License, Version 2.0 (the "License"); 013 * you may not use this file except in compliance with the License. 014 * You may obtain a copy of the License at 015 * 016 * http://www.apache.org/licenses/LICENSE-2.0 017 * 018 * Unless required by applicable law or agreed to in writing, software 019 * distributed under the License is distributed on an "AS IS" BASIS, 020 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 021 * See the License for the specific language governing permissions and 022 * limitations under the License. 023 * #L% 024 */ 025 026/** 027 * An IBaseResource that has a FHIR version of DSTU3 or higher 028 */ 029public interface IAnyResource extends IBaseResource { 030 031 /** 032 * Search parameter constant for <b>_language</b> 033 */ 034 @SearchParamDefinition(name="_language", path="", description="The language of the resource", type="string" ) 035 String SP_RES_LANGUAGE = "_language"; 036 037 038 /** 039 * Search parameter constant for <b>_id</b> 040 */ 041 @SearchParamDefinition(name="_id", path="", description="The ID of the resource", type="token" ) 042 String SP_RES_ID = "_id"; 043 044 /** 045 * <b>Fluent Client</b> search parameter constant for <b>_id</b> 046 * <p> 047 * Description: <b>the _id of a resource</b><br> 048 * Type: <b>string</b><br> 049 * Path: <b>Resource._id</b><br> 050 * </p> 051 */ 052 TokenClientParam RES_ID = new TokenClientParam(IAnyResource.SP_RES_ID); 053 054 String getId(); 055 056 IIdType getIdElement(); 057 058 IPrimitiveType<String> getLanguageElement(); 059 060 Object getUserData(String name); 061 062 IAnyResource setId(String theId); 063 064 void setUserData(String name, Object value); 065 066}