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