001package ca.uhn.fhir.jpa.model.entity; 002 003/*- 004 * #%L 005 * HAPI FHIR JPA Model 006 * %% 007 * Copyright (C) 2014 - 2022 Smile CDR, Inc. 008 * %% 009 * Licensed under the Apache License, Version 2.0 (the "License"); 010 * you may not use this file except in compliance with the License. 011 * You may obtain a copy of the License at 012 * 013 * http://www.apache.org/licenses/LICENSE-2.0 014 * 015 * Unless required by applicable law or agreed to in writing, software 016 * distributed under the License is distributed on an "AS IS" BASIS, 017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 018 * See the License for the specific language governing permissions and 019 * limitations under the License. 020 * #L% 021 */ 022 023/** 024 * Support different UCUM services level for FHIR Quantity data type. 025 * 026 * @since 5.3.0 027 */ 028 029public enum NormalizedQuantitySearchLevel { 030 031 /** 032 * default, Quantity is stored in {@link ResourceIndexedSearchParamQuantity} only and it is used by searching. 033 */ 034 NORMALIZED_QUANTITY_SEARCH_NOT_SUPPORTED, 035 036 /** 037 * Quantity is stored in both {@link ResourceIndexedSearchParamQuantity} 038 * and {@link ResourceIndexedSearchParamQuantityNormalized}, 039 * but {@link ResourceIndexedSearchParamQuantity} is used by searching. 040 */ 041 NORMALIZED_QUANTITY_STORAGE_SUPPORTED, 042 043 /** 044 * Quantity is stored in both {@link ResourceIndexedSearchParamQuantity} 045 * and {@link ResourceIndexedSearchParamQuantityNormalized}, 046 * {@link ResourceIndexedSearchParamQuantityNormalized} is used by searching. 047 */ 048 NORMALIZED_QUANTITY_SEARCH_SUPPORTED, 049 050 /** 051 * Quantity is stored in only in {@link ResourceIndexedSearchParamQuantityNormalized}, 052 * {@link ResourceIndexedSearchParamQuantityNormalized} is used by searching. 053 * The existing non normalized quantity will be not supported 054 * NOTEļ¼ this option is not supported in this release 055 */ 056 // When this is enabled, we can enable testSortByQuantityWithNormalizedQuantitySearchFullSupported() 057 //NORMALIZED_QUANTITY_SEARCH_FULL_SUPPORTED, 058}