View Javadoc
1   package ca.uhn.fhir.jpa.util;
2   
3   /*-
4    * #%L
5    * HAPI FHIR JPA Server
6    * %%
7    * Copyright (C) 2014 - 2019 University Health Network
8    * %%
9    * Licensed under the Apache License, Version 2.0 (the "License");
10   * you may not use this file except in compliance with the License.
11   * You may obtain a copy of the License at
12   * 
13   *      http://www.apache.org/licenses/LICENSE-2.0
14   * 
15   * Unless required by applicable law or agreed to in writing, software
16   * distributed under the License is distributed on an "AS IS" BASIS,
17   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18   * See the License for the specific language governing permissions and
19   * limitations under the License.
20   * #L%
21   */
22  
23  import ca.uhn.fhir.rest.api.Constants;
24  
25  public class JpaConstants {
26  	/**
27  	 * Operation name for the $expunge operation
28  	 */
29  	public static final String OPERATION_EXPUNGE = "$expunge";
30  
31  	/**
32  	 * @deprecated Replace with {@link #OPERATION_EXPUNGE}
33  	 */
34  	@Deprecated
35  	public static final String OPERATION_NAME_EXPUNGE = OPERATION_EXPUNGE;
36  
37  	/**
38  	 * Parameter name for the $expunge operation
39  	 */
40  	public static final String OPERATION_EXPUNGE_PARAM_LIMIT = "limit";
41  	/**
42  	 * Parameter name for the $expunge operation
43  	 */
44  	public static final String OPERATION_EXPUNGE_PARAM_EXPUNGE_DELETED_RESOURCES = "expungeDeletedResources";
45  	/**
46  	 * Parameter name for the $expunge operation
47  	 */
48  	public static final String OPERATION_EXPUNGE_PARAM_EXPUNGE_PREVIOUS_VERSIONS = "expungePreviousVersions";
49  	/**
50  	 * Parameter name for the $expunge operation
51  	 */
52  	public static final String OPERATION_EXPUNGE_PARAM_EXPUNGE_EVERYTHING = "expungeEverything";
53  	/**
54  	 * Output parameter name for the $expunge operation
55  	 */
56  	public static final String OPERATION_EXPUNGE_OUT_PARAM_EXPUNGE_COUNT = "count";
57  	/**
58  	 * Header name for the "X-Meta-Snapshot-Mode" header, which
59  	 * specifies that properties in meta (tags, profiles, security labels)
60  	 * should be treated as a snapshot, meaning that these things will
61  	 * be removed if they are nt explicitly included in updates
62  	 */
63  	public static final String HEADER_META_SNAPSHOT_MODE = "X-Meta-Snapshot-Mode";
64  
65  	/**
66  	 * Operation name for the $lookup operation
67  	 */
68  	public static final String OPERATION_LOOKUP = "$lookup";
69  
70  	/**
71  	 * Operation name for the $expand operation
72  	 */
73  	public static final String OPERATION_EXPAND = "$expand";
74  
75  	/**
76  	 * Operation name for the $validate-code operation
77  	 */
78  	public static final String OPERATION_VALIDATE_CODE = "$validate-code";
79  
80  	/**
81  	 * Operation name for the $get-resource-counts operation
82  	 */
83  	public static final String OPERATION_GET_RESOURCE_COUNTS = "$get-resource-counts";
84  
85  	/**
86  	 * Operation name for the $meta operation
87  	 */
88  	public static final String OPERATION_META = "$meta";
89  
90  	/**
91  	 * Operation name for the $validate operation
92  	 */
93  	// NB don't delete this, it's used in Smile as well, even though hapi-fhir-server uses the version from Constants.java
94  	public static final String OPERATION_VALIDATE = Constants.EXTOP_VALIDATE;
95  
96  	/**
97  	 * Operation name for the $suggest-keywords operation
98  	 */
99  	public static final String OPERATION_SUGGEST_KEYWORDS = "$suggest-keywords";
100 
101 	/**
102 	 * Operation name for the $everything operation
103 	 */
104 	public static final String OPERATION_EVERYTHING = "$everything";
105 
106 	/**
107 	 * Operation name for the $process-message operation
108 	 */
109 	public static final String OPERATION_PROCESS_MESSAGE = "$process-message";
110 
111 	/**
112 	 * Operation name for the $meta-delete operation
113 	 */
114 	public static final String OPERATION_META_DELETE = "$meta-delete";
115 
116 	/**
117 	 * Operation name for the $meta-add operation
118 	 */
119 	public static final String OPERATION_META_ADD = "$meta-add";
120 
121 	/**
122 	 * Operation name for the $translate operation
123 	 */
124 	public static final String OPERATION_TRANSLATE = "$translate";
125 
126 	/**
127 	 * Operation name for the $document operation
128 	 */
129 	public static final String OPERATION_DOCUMENT = "$document";
130 
131 	/**
132 	 * Trigger a subscription manually for a given resource
133 	 */
134 	public static final String OPERATION_TRIGGER_SUBSCRIPTION = "$trigger-subscription";
135 }