001package org.hl7.fhir.instance.model.valuesets;
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 Wed, Nov 11, 2015 10:54-0500 for FHIR v1.0.2
033
034
035public enum V3QueryParameterValue {
036
037        /**
038         * Description:Filter codes used to manage volume of dispenses returned by  a parameter-based queries.
039         */
040        _DISPENSEQUERYFILTERCODE, 
041        /**
042         * Description:Returns all dispenses to date for a prescription.
043         */
044        ALLDISP, 
045        /**
046         * Description:Returns the most recent dispense for a prescription.
047         */
048        LASTDISP, 
049        /**
050         * Description:Returns no dispense for a prescription.
051         */
052        NODISP, 
053        /**
054         * Filter codes used to manage types of orders being returned by a parameter-based query.
055         */
056        _ORDERFILTERCODE, 
057        /**
058         * Return all orders.
059         */
060        AO, 
061        /**
062         * Return only those orders that do not have results.
063         */
064        ONR, 
065        /**
066         * Return only those orders that have results.
067         */
068        OWR, 
069        /**
070         * A "helper" vocabulary used to construct complex query filters based on how and whether a prescription has been dispensed.
071         */
072        _PRESCRIPTIONDISPENSEFILTERCODE, 
073        /**
074         * Filter to only include SubstanceAdministration orders which have no remaining quantity authorized to be dispensed.
075         */
076        C, 
077        /**
078         * Filter to only include SubstanceAdministration orders which have no fulfilling supply events performed.
079         */
080        N, 
081        /**
082         * 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.
083         */
084        R, 
085        /**
086         * Description:Indicates how result sets should be filtered based on whether they have associated issues.
087         */
088        _QUERYPARAMETERVALUE, 
089        /**
090         * Description:Result set should not be filtered based on the presence of issues.
091         */
092        ISSFA, 
093        /**
094         * Description:Result set should be filtered to only include records with associated issues.
095         */
096        ISSFI, 
097        /**
098         * Description:Result set should be filtered to only include records with associated unmanaged issues.
099         */
100        ISSFU, 
101        /**
102         * added to help the parsers
103         */
104        NULL;
105        public static V3QueryParameterValue fromCode(String codeString) throws Exception {
106            if (codeString == null || "".equals(codeString))
107                return null;
108        if ("_DispenseQueryFilterCode".equals(codeString))
109          return _DISPENSEQUERYFILTERCODE;
110        if ("ALLDISP".equals(codeString))
111          return ALLDISP;
112        if ("LASTDISP".equals(codeString))
113          return LASTDISP;
114        if ("NODISP".equals(codeString))
115          return NODISP;
116        if ("_OrderFilterCode".equals(codeString))
117          return _ORDERFILTERCODE;
118        if ("AO".equals(codeString))
119          return AO;
120        if ("ONR".equals(codeString))
121          return ONR;
122        if ("OWR".equals(codeString))
123          return OWR;
124        if ("_PrescriptionDispenseFilterCode".equals(codeString))
125          return _PRESCRIPTIONDISPENSEFILTERCODE;
126        if ("C".equals(codeString))
127          return C;
128        if ("N".equals(codeString))
129          return N;
130        if ("R".equals(codeString))
131          return R;
132        if ("_QueryParameterValue".equals(codeString))
133          return _QUERYPARAMETERVALUE;
134        if ("ISSFA".equals(codeString))
135          return ISSFA;
136        if ("ISSFI".equals(codeString))
137          return ISSFI;
138        if ("ISSFU".equals(codeString))
139          return ISSFU;
140        throw new Exception("Unknown V3QueryParameterValue code '"+codeString+"'");
141        }
142        public String toCode() {
143          switch (this) {
144            case _DISPENSEQUERYFILTERCODE: return "_DispenseQueryFilterCode";
145            case ALLDISP: return "ALLDISP";
146            case LASTDISP: return "LASTDISP";
147            case NODISP: return "NODISP";
148            case _ORDERFILTERCODE: return "_OrderFilterCode";
149            case AO: return "AO";
150            case ONR: return "ONR";
151            case OWR: return "OWR";
152            case _PRESCRIPTIONDISPENSEFILTERCODE: return "_PrescriptionDispenseFilterCode";
153            case C: return "C";
154            case N: return "N";
155            case R: return "R";
156            case _QUERYPARAMETERVALUE: return "_QueryParameterValue";
157            case ISSFA: return "ISSFA";
158            case ISSFI: return "ISSFI";
159            case ISSFU: return "ISSFU";
160            default: return "?";
161          }
162        }
163        public String getSystem() {
164          return "http://hl7.org/fhir/v3/QueryParameterValue";
165        }
166        public String getDefinition() {
167          switch (this) {
168            case _DISPENSEQUERYFILTERCODE: return "Description:Filter codes used to manage volume of dispenses returned by  a parameter-based queries.";
169            case ALLDISP: return "Description:Returns all dispenses to date for a prescription.";
170            case LASTDISP: return "Description:Returns the most recent dispense for a prescription.";
171            case NODISP: return "Description:Returns no dispense for a prescription.";
172            case _ORDERFILTERCODE: return "Filter codes used to manage types of orders being returned by a parameter-based query.";
173            case AO: return "Return all orders.";
174            case ONR: return "Return only those orders that do not have results.";
175            case OWR: return "Return only those orders that have results.";
176            case _PRESCRIPTIONDISPENSEFILTERCODE: return "A \"helper\" vocabulary used to construct complex query filters based on how and whether a prescription has been dispensed.";
177            case C: return "Filter to only include SubstanceAdministration orders which have no remaining quantity authorized to be dispensed.";
178            case N: return "Filter to only include SubstanceAdministration orders which have no fulfilling supply events performed.";
179            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.";
180            case _QUERYPARAMETERVALUE: return "Description:Indicates how result sets should be filtered based on whether they have associated issues.";
181            case ISSFA: return "Description:Result set should not be filtered based on the presence of issues.";
182            case ISSFI: return "Description:Result set should be filtered to only include records with associated issues.";
183            case ISSFU: return "Description:Result set should be filtered to only include records with associated unmanaged issues.";
184            default: return "?";
185          }
186        }
187        public String getDisplay() {
188          switch (this) {
189            case _DISPENSEQUERYFILTERCODE: return "dispense query filter code";
190            case ALLDISP: return "all dispenses";
191            case LASTDISP: return "last dispense";
192            case NODISP: return "no dispense";
193            case _ORDERFILTERCODE: return "_OrderFilterCode";
194            case AO: return "all orders";
195            case ONR: return "orders without results";
196            case OWR: return "orders with results";
197            case _PRESCRIPTIONDISPENSEFILTERCODE: return "Prescription Dispense Filter Code";
198            case C: return "Completely dispensed";
199            case N: return "Never Dispensed";
200            case R: return "Dispensed with remaining fills";
201            case _QUERYPARAMETERVALUE: return "QueryParameterValue";
202            case ISSFA: return "all";
203            case ISSFI: return "with issues";
204            case ISSFU: return "with unmanaged issues";
205            default: return "?";
206          }
207    }
208
209
210}
211