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 ServicePharmacy {
038
039        /**
040         * Smoking cessation
041         */
042        SMOKECESS, 
043        /**
044         * Flu Shot
045         */
046        FLUSHOT, 
047        /**
048         * The wholesale price of the medication.
049         */
050        DRUGCOST, 
051        /**
052         * The additional cost assessed on the drug.
053         */
054        MARKUP, 
055        /**
056         * The professional fee charged for dispensing the product or service.
057         */
058        DISPENSEFEE, 
059        /**
060         * The professional fee charged for compounding the medication.
061         */
062        COMPOUNDFEE, 
063        /**
064         * added to help the parsers
065         */
066        NULL;
067        public static ServicePharmacy fromCode(String codeString) throws FHIRException {
068            if (codeString == null || "".equals(codeString))
069                return null;
070        if ("smokecess".equals(codeString))
071          return SMOKECESS;
072        if ("flushot".equals(codeString))
073          return FLUSHOT;
074        if ("drugcost".equals(codeString))
075          return DRUGCOST;
076        if ("markup".equals(codeString))
077          return MARKUP;
078        if ("dispensefee".equals(codeString))
079          return DISPENSEFEE;
080        if ("compoundfee".equals(codeString))
081          return COMPOUNDFEE;
082        throw new FHIRException("Unknown ServicePharmacy code '"+codeString+"'");
083        }
084        public String toCode() {
085          switch (this) {
086            case SMOKECESS: return "smokecess";
087            case FLUSHOT: return "flushot";
088            case DRUGCOST: return "drugcost";
089            case MARKUP: return "markup";
090            case DISPENSEFEE: return "dispensefee";
091            case COMPOUNDFEE: return "compoundfee";
092            default: return "?";
093          }
094        }
095        public String getSystem() {
096          return "http://hl7.org/fhir/ex-pharmaservice";
097        }
098        public String getDefinition() {
099          switch (this) {
100            case SMOKECESS: return "Smoking cessation";
101            case FLUSHOT: return "Flu Shot";
102            case DRUGCOST: return "The wholesale price of the medication.";
103            case MARKUP: return "The additional cost assessed on the drug.";
104            case DISPENSEFEE: return "The professional fee charged for dispensing the product or service.";
105            case COMPOUNDFEE: return "The professional fee charged for compounding the medication.";
106            default: return "?";
107          }
108        }
109        public String getDisplay() {
110          switch (this) {
111            case SMOKECESS: return "Smoking cessation";
112            case FLUSHOT: return "Flu Shot";
113            case DRUGCOST: return "Drug Cost";
114            case MARKUP: return "Markup";
115            case DISPENSEFEE: return "Dispense Fee";
116            case COMPOUNDFEE: return "Compounding Fee";
117            default: return "?";
118          }
119    }
120
121
122}
123