001package org.hl7.fhir.r5.model.codesystems; 002 003/* 004 * #%L 005 * org.hl7.fhir.r5 006 * %% 007 * Copyright (C) 2014 - 2019 Health Level 7 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 Copyright (c) 2011+, HL7, Inc. 025 All rights reserved. 026 027 Redistribution and use in source and binary forms, with or without modification, 028 are permitted provided that the following conditions are met: 029 030 * Redistributions of source code must retain the above copyright notice, this 031 list of conditions and the following disclaimer. 032 * Redistributions in binary form must reproduce the above copyright notice, 033 this list of conditions and the following disclaimer in the documentation 034 and/or other materials provided with the distribution. 035 * Neither the name of HL7 nor the names of its contributors may be used to 036 endorse or promote products derived from this software without specific 037 prior written permission. 038 039 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 040 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 041 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 042 IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 043 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 044 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 045 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 046 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 047 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 048 POSSIBILITY OF SUCH DAMAGE. 049 050*/ 051 052// Generated on Thu, Oct 17, 2019 09:42+1100 for FHIR v4.1.0 053 054 055import org.hl7.fhir.exceptions.FHIRException; 056 057public enum V3QueryParameterValue { 058 059 /** 060 * Description:Filter codes used to manage volume of dispenses returned by a parameter-based queries. 061 */ 062 _DISPENSEQUERYFILTERCODE, 063 /** 064 * Description:Returns all dispenses to date for a prescription. 065 */ 066 ALLDISP, 067 /** 068 * Description:Returns the most recent dispense for a prescription. 069 */ 070 LASTDISP, 071 /** 072 * Description:Returns no dispense for a prescription. 073 */ 074 NODISP, 075 /** 076 * Filter codes used to manage types of orders being returned by a parameter-based query. 077 */ 078 _ORDERFILTERCODE, 079 /** 080 * Return all orders. 081 */ 082 AO, 083 /** 084 * Return only those orders that do not have results. 085 */ 086 ONR, 087 /** 088 * Return only those orders that have results. 089 */ 090 OWR, 091 /** 092 * A "helper" vocabulary used to construct complex query filters based on how and whether a prescription has been dispensed. 093 */ 094 _PRESCRIPTIONDISPENSEFILTERCODE, 095 /** 096 * Filter to only include SubstanceAdministration orders which have no remaining quantity authorized to be dispensed. 097 */ 098 C, 099 /** 100 * Filter to only include SubstanceAdministration orders which have no fulfilling supply events performed. 101 */ 102 N, 103 /** 104 * Filter to only include SubstanceAdministration orders which have had at least one fulfilling supply event, but which still have outstanding quantity remaining to be authorized. 105 */ 106 R, 107 /** 108 * Description:Indicates how result sets should be filtered based on whether they have associated issues. 109 */ 110 _QUERYPARAMETERVALUE, 111 /** 112 * Description:Result set should not be filtered based on the presence of issues. 113 */ 114 ISSFA, 115 /** 116 * Description:Result set should be filtered to only include records with associated issues. 117 */ 118 ISSFI, 119 /** 120 * Description:Result set should be filtered to only include records with associated unmanaged issues. 121 */ 122 ISSFU, 123 /** 124 * added to help the parsers 125 */ 126 NULL; 127 public static V3QueryParameterValue fromCode(String codeString) throws FHIRException { 128 if (codeString == null || "".equals(codeString)) 129 return null; 130 if ("_DispenseQueryFilterCode".equals(codeString)) 131 return _DISPENSEQUERYFILTERCODE; 132 if ("ALLDISP".equals(codeString)) 133 return ALLDISP; 134 if ("LASTDISP".equals(codeString)) 135 return LASTDISP; 136 if ("NODISP".equals(codeString)) 137 return NODISP; 138 if ("_OrderFilterCode".equals(codeString)) 139 return _ORDERFILTERCODE; 140 if ("AO".equals(codeString)) 141 return AO; 142 if ("ONR".equals(codeString)) 143 return ONR; 144 if ("OWR".equals(codeString)) 145 return OWR; 146 if ("_PrescriptionDispenseFilterCode".equals(codeString)) 147 return _PRESCRIPTIONDISPENSEFILTERCODE; 148 if ("C".equals(codeString)) 149 return C; 150 if ("N".equals(codeString)) 151 return N; 152 if ("R".equals(codeString)) 153 return R; 154 if ("_QueryParameterValue".equals(codeString)) 155 return _QUERYPARAMETERVALUE; 156 if ("ISSFA".equals(codeString)) 157 return ISSFA; 158 if ("ISSFI".equals(codeString)) 159 return ISSFI; 160 if ("ISSFU".equals(codeString)) 161 return ISSFU; 162 throw new FHIRException("Unknown V3QueryParameterValue code '"+codeString+"'"); 163 } 164 public String toCode() { 165 switch (this) { 166 case _DISPENSEQUERYFILTERCODE: return "_DispenseQueryFilterCode"; 167 case ALLDISP: return "ALLDISP"; 168 case LASTDISP: return "LASTDISP"; 169 case NODISP: return "NODISP"; 170 case _ORDERFILTERCODE: return "_OrderFilterCode"; 171 case AO: return "AO"; 172 case ONR: return "ONR"; 173 case OWR: return "OWR"; 174 case _PRESCRIPTIONDISPENSEFILTERCODE: return "_PrescriptionDispenseFilterCode"; 175 case C: return "C"; 176 case N: return "N"; 177 case R: return "R"; 178 case _QUERYPARAMETERVALUE: return "_QueryParameterValue"; 179 case ISSFA: return "ISSFA"; 180 case ISSFI: return "ISSFI"; 181 case ISSFU: return "ISSFU"; 182 default: return "?"; 183 } 184 } 185 public String getSystem() { 186 return "http://terminology.hl7.org/CodeSystem/v3-QueryParameterValue"; 187 } 188 public String getDefinition() { 189 switch (this) { 190 case _DISPENSEQUERYFILTERCODE: return "Description:Filter codes used to manage volume of dispenses returned by a parameter-based queries."; 191 case ALLDISP: return "Description:Returns all dispenses to date for a prescription."; 192 case LASTDISP: return "Description:Returns the most recent dispense for a prescription."; 193 case NODISP: return "Description:Returns no dispense for a prescription."; 194 case _ORDERFILTERCODE: return "Filter codes used to manage types of orders being returned by a parameter-based query."; 195 case AO: return "Return all orders."; 196 case ONR: return "Return only those orders that do not have results."; 197 case OWR: return "Return only those orders that have results."; 198 case _PRESCRIPTIONDISPENSEFILTERCODE: return "A \"helper\" vocabulary used to construct complex query filters based on how and whether a prescription has been dispensed."; 199 case C: return "Filter to only include SubstanceAdministration orders which have no remaining quantity authorized to be dispensed."; 200 case N: return "Filter to only include SubstanceAdministration orders which have no fulfilling supply events performed."; 201 case R: return "Filter to only include SubstanceAdministration orders which have had at least one fulfilling supply event, but which still have outstanding quantity remaining to be authorized."; 202 case _QUERYPARAMETERVALUE: return "Description:Indicates how result sets should be filtered based on whether they have associated issues."; 203 case ISSFA: return "Description:Result set should not be filtered based on the presence of issues."; 204 case ISSFI: return "Description:Result set should be filtered to only include records with associated issues."; 205 case ISSFU: return "Description:Result set should be filtered to only include records with associated unmanaged issues."; 206 default: return "?"; 207 } 208 } 209 public String getDisplay() { 210 switch (this) { 211 case _DISPENSEQUERYFILTERCODE: return "dispense query filter code"; 212 case ALLDISP: return "all dispenses"; 213 case LASTDISP: return "last dispense"; 214 case NODISP: return "no dispense"; 215 case _ORDERFILTERCODE: return "_OrderFilterCode"; 216 case AO: return "all orders"; 217 case ONR: return "orders without results"; 218 case OWR: return "orders with results"; 219 case _PRESCRIPTIONDISPENSEFILTERCODE: return "Prescription Dispense Filter Code"; 220 case C: return "Completely dispensed"; 221 case N: return "Never Dispensed"; 222 case R: return "Dispensed with remaining fills"; 223 case _QUERYPARAMETERVALUE: return "QueryParameterValue"; 224 case ISSFA: return "all"; 225 case ISSFI: return "with issues"; 226 case ISSFU: return "with unmanaged issues"; 227 default: return "?"; 228 } 229 } 230 231 232} 233