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 Wed, Jan 30, 2019 16:19-0500 for FHIR v4.0.0 033 034import org.hl7.fhir.r4.model.EnumFactory; 035 036public class V3ParticipationFunctionEnumFactory implements EnumFactory<V3ParticipationFunction> { 037 038 public V3ParticipationFunction fromCode(String codeString) throws IllegalArgumentException { 039 if (codeString == null || "".equals(codeString)) 040 return null; 041 if ("_AuthorizedParticipationFunction".equals(codeString)) 042 return V3ParticipationFunction._AUTHORIZEDPARTICIPATIONFUNCTION; 043 if ("_AuthorizedReceiverParticipationFunction".equals(codeString)) 044 return V3ParticipationFunction._AUTHORIZEDRECEIVERPARTICIPATIONFUNCTION; 045 if ("AUCG".equals(codeString)) 046 return V3ParticipationFunction.AUCG; 047 if ("AULR".equals(codeString)) 048 return V3ParticipationFunction.AULR; 049 if ("AUTM".equals(codeString)) 050 return V3ParticipationFunction.AUTM; 051 if ("AUWA".equals(codeString)) 052 return V3ParticipationFunction.AUWA; 053 if ("_ConsenterParticipationFunction".equals(codeString)) 054 return V3ParticipationFunction._CONSENTERPARTICIPATIONFUNCTION; 055 if ("GRDCON".equals(codeString)) 056 return V3ParticipationFunction.GRDCON; 057 if ("POACON".equals(codeString)) 058 return V3ParticipationFunction.POACON; 059 if ("PRCON".equals(codeString)) 060 return V3ParticipationFunction.PRCON; 061 if ("PROMSK".equals(codeString)) 062 return V3ParticipationFunction.PROMSK; 063 if ("SUBCON".equals(codeString)) 064 return V3ParticipationFunction.SUBCON; 065 if ("_OverriderParticipationFunction".equals(codeString)) 066 return V3ParticipationFunction._OVERRIDERPARTICIPATIONFUNCTION; 067 if ("AUCOV".equals(codeString)) 068 return V3ParticipationFunction.AUCOV; 069 if ("AUEMROV".equals(codeString)) 070 return V3ParticipationFunction.AUEMROV; 071 if ("_CoverageParticipationFunction".equals(codeString)) 072 return V3ParticipationFunction._COVERAGEPARTICIPATIONFUNCTION; 073 if ("_PayorParticipationFunction".equals(codeString)) 074 return V3ParticipationFunction._PAYORPARTICIPATIONFUNCTION; 075 if ("CLMADJ".equals(codeString)) 076 return V3ParticipationFunction.CLMADJ; 077 if ("ENROLL".equals(codeString)) 078 return V3ParticipationFunction.ENROLL; 079 if ("FFSMGT".equals(codeString)) 080 return V3ParticipationFunction.FFSMGT; 081 if ("MCMGT".equals(codeString)) 082 return V3ParticipationFunction.MCMGT; 083 if ("PROVMGT".equals(codeString)) 084 return V3ParticipationFunction.PROVMGT; 085 if ("UMGT".equals(codeString)) 086 return V3ParticipationFunction.UMGT; 087 if ("_SponsorParticipationFunction".equals(codeString)) 088 return V3ParticipationFunction._SPONSORPARTICIPATIONFUNCTION; 089 if ("FULINRD".equals(codeString)) 090 return V3ParticipationFunction.FULINRD; 091 if ("SELFINRD".equals(codeString)) 092 return V3ParticipationFunction.SELFINRD; 093 if ("_UnderwriterParticipationFunction".equals(codeString)) 094 return V3ParticipationFunction._UNDERWRITERPARTICIPATIONFUNCTION; 095 if ("PAYORCNTR".equals(codeString)) 096 return V3ParticipationFunction.PAYORCNTR; 097 if ("REINS".equals(codeString)) 098 return V3ParticipationFunction.REINS; 099 if ("RETROCES".equals(codeString)) 100 return V3ParticipationFunction.RETROCES; 101 if ("SUBCTRT".equals(codeString)) 102 return V3ParticipationFunction.SUBCTRT; 103 if ("UNDERWRTNG".equals(codeString)) 104 return V3ParticipationFunction.UNDERWRTNG; 105 if ("ADMPHYS".equals(codeString)) 106 return V3ParticipationFunction.ADMPHYS; 107 if ("ANEST".equals(codeString)) 108 return V3ParticipationFunction.ANEST; 109 if ("ANRS".equals(codeString)) 110 return V3ParticipationFunction.ANRS; 111 if ("ASSEMBLER".equals(codeString)) 112 return V3ParticipationFunction.ASSEMBLER; 113 if ("ATTPHYS".equals(codeString)) 114 return V3ParticipationFunction.ATTPHYS; 115 if ("COMPOSER".equals(codeString)) 116 return V3ParticipationFunction.COMPOSER; 117 if ("DISPHYS".equals(codeString)) 118 return V3ParticipationFunction.DISPHYS; 119 if ("FASST".equals(codeString)) 120 return V3ParticipationFunction.FASST; 121 if ("MDWF".equals(codeString)) 122 return V3ParticipationFunction.MDWF; 123 if ("NASST".equals(codeString)) 124 return V3ParticipationFunction.NASST; 125 if ("PCP".equals(codeString)) 126 return V3ParticipationFunction.PCP; 127 if ("PRISURG".equals(codeString)) 128 return V3ParticipationFunction.PRISURG; 129 if ("REVIEWER".equals(codeString)) 130 return V3ParticipationFunction.REVIEWER; 131 if ("RNDPHYS".equals(codeString)) 132 return V3ParticipationFunction.RNDPHYS; 133 if ("SASST".equals(codeString)) 134 return V3ParticipationFunction.SASST; 135 if ("SNRS".equals(codeString)) 136 return V3ParticipationFunction.SNRS; 137 if ("TASST".equals(codeString)) 138 return V3ParticipationFunction.TASST; 139 throw new IllegalArgumentException("Unknown V3ParticipationFunction code '" + codeString + "'"); 140 } 141 142 public String toCode(V3ParticipationFunction code) { 143 if (code == V3ParticipationFunction.NULL) 144 return null; 145 if (code == V3ParticipationFunction._AUTHORIZEDPARTICIPATIONFUNCTION) 146 return "_AuthorizedParticipationFunction"; 147 if (code == V3ParticipationFunction._AUTHORIZEDRECEIVERPARTICIPATIONFUNCTION) 148 return "_AuthorizedReceiverParticipationFunction"; 149 if (code == V3ParticipationFunction.AUCG) 150 return "AUCG"; 151 if (code == V3ParticipationFunction.AULR) 152 return "AULR"; 153 if (code == V3ParticipationFunction.AUTM) 154 return "AUTM"; 155 if (code == V3ParticipationFunction.AUWA) 156 return "AUWA"; 157 if (code == V3ParticipationFunction._CONSENTERPARTICIPATIONFUNCTION) 158 return "_ConsenterParticipationFunction"; 159 if (code == V3ParticipationFunction.GRDCON) 160 return "GRDCON"; 161 if (code == V3ParticipationFunction.POACON) 162 return "POACON"; 163 if (code == V3ParticipationFunction.PRCON) 164 return "PRCON"; 165 if (code == V3ParticipationFunction.PROMSK) 166 return "PROMSK"; 167 if (code == V3ParticipationFunction.SUBCON) 168 return "SUBCON"; 169 if (code == V3ParticipationFunction._OVERRIDERPARTICIPATIONFUNCTION) 170 return "_OverriderParticipationFunction"; 171 if (code == V3ParticipationFunction.AUCOV) 172 return "AUCOV"; 173 if (code == V3ParticipationFunction.AUEMROV) 174 return "AUEMROV"; 175 if (code == V3ParticipationFunction._COVERAGEPARTICIPATIONFUNCTION) 176 return "_CoverageParticipationFunction"; 177 if (code == V3ParticipationFunction._PAYORPARTICIPATIONFUNCTION) 178 return "_PayorParticipationFunction"; 179 if (code == V3ParticipationFunction.CLMADJ) 180 return "CLMADJ"; 181 if (code == V3ParticipationFunction.ENROLL) 182 return "ENROLL"; 183 if (code == V3ParticipationFunction.FFSMGT) 184 return "FFSMGT"; 185 if (code == V3ParticipationFunction.MCMGT) 186 return "MCMGT"; 187 if (code == V3ParticipationFunction.PROVMGT) 188 return "PROVMGT"; 189 if (code == V3ParticipationFunction.UMGT) 190 return "UMGT"; 191 if (code == V3ParticipationFunction._SPONSORPARTICIPATIONFUNCTION) 192 return "_SponsorParticipationFunction"; 193 if (code == V3ParticipationFunction.FULINRD) 194 return "FULINRD"; 195 if (code == V3ParticipationFunction.SELFINRD) 196 return "SELFINRD"; 197 if (code == V3ParticipationFunction._UNDERWRITERPARTICIPATIONFUNCTION) 198 return "_UnderwriterParticipationFunction"; 199 if (code == V3ParticipationFunction.PAYORCNTR) 200 return "PAYORCNTR"; 201 if (code == V3ParticipationFunction.REINS) 202 return "REINS"; 203 if (code == V3ParticipationFunction.RETROCES) 204 return "RETROCES"; 205 if (code == V3ParticipationFunction.SUBCTRT) 206 return "SUBCTRT"; 207 if (code == V3ParticipationFunction.UNDERWRTNG) 208 return "UNDERWRTNG"; 209 if (code == V3ParticipationFunction.ADMPHYS) 210 return "ADMPHYS"; 211 if (code == V3ParticipationFunction.ANEST) 212 return "ANEST"; 213 if (code == V3ParticipationFunction.ANRS) 214 return "ANRS"; 215 if (code == V3ParticipationFunction.ASSEMBLER) 216 return "ASSEMBLER"; 217 if (code == V3ParticipationFunction.ATTPHYS) 218 return "ATTPHYS"; 219 if (code == V3ParticipationFunction.COMPOSER) 220 return "COMPOSER"; 221 if (code == V3ParticipationFunction.DISPHYS) 222 return "DISPHYS"; 223 if (code == V3ParticipationFunction.FASST) 224 return "FASST"; 225 if (code == V3ParticipationFunction.MDWF) 226 return "MDWF"; 227 if (code == V3ParticipationFunction.NASST) 228 return "NASST"; 229 if (code == V3ParticipationFunction.PCP) 230 return "PCP"; 231 if (code == V3ParticipationFunction.PRISURG) 232 return "PRISURG"; 233 if (code == V3ParticipationFunction.REVIEWER) 234 return "REVIEWER"; 235 if (code == V3ParticipationFunction.RNDPHYS) 236 return "RNDPHYS"; 237 if (code == V3ParticipationFunction.SASST) 238 return "SASST"; 239 if (code == V3ParticipationFunction.SNRS) 240 return "SNRS"; 241 if (code == V3ParticipationFunction.TASST) 242 return "TASST"; 243 return "?"; 244 } 245 246 public String toSystem(V3ParticipationFunction code) { 247 return code.getSystem(); 248 } 249 250}