001package org.hl7.fhir.dstu3.model.codesystems;
002
003
004
005
006/*
007  Copyright (c) 2011+, HL7, Inc.
008  All rights reserved.
009  
010  Redistribution and use in source and binary forms, with or without modification, 
011  are permitted provided that the following conditions are met:
012  
013   * Redistributions of source code must retain the above copyright notice, this 
014     list of conditions and the following disclaimer.
015   * Redistributions in binary form must reproduce the above copyright notice, 
016     this list of conditions and the following disclaimer in the documentation 
017     and/or other materials provided with the distribution.
018   * Neither the name of HL7 nor the names of its contributors may be used to 
019     endorse or promote products derived from this software without specific 
020     prior written permission.
021  
022  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 
023  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
024  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
025  IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 
026  INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 
027  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
028  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
029  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
030  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
031  POSSIBILITY OF SUCH DAMAGE.
032  
033*/
034
035// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
036
037
038import org.hl7.fhir.dstu3.model.EnumFactory;
039
040public class V3ParticipationFunctionEnumFactory implements EnumFactory<V3ParticipationFunction> {
041
042  public V3ParticipationFunction fromCode(String codeString) throws IllegalArgumentException {
043    if (codeString == null || "".equals(codeString))
044      return null;
045    if ("_AuthorizedParticipationFunction".equals(codeString))
046      return V3ParticipationFunction._AUTHORIZEDPARTICIPATIONFUNCTION;
047    if ("_AuthorizedReceiverParticipationFunction".equals(codeString))
048      return V3ParticipationFunction._AUTHORIZEDRECEIVERPARTICIPATIONFUNCTION;
049    if ("AUCG".equals(codeString))
050      return V3ParticipationFunction.AUCG;
051    if ("AULR".equals(codeString))
052      return V3ParticipationFunction.AULR;
053    if ("AUTM".equals(codeString))
054      return V3ParticipationFunction.AUTM;
055    if ("AUWA".equals(codeString))
056      return V3ParticipationFunction.AUWA;
057    if ("_ConsenterParticipationFunction".equals(codeString))
058      return V3ParticipationFunction._CONSENTERPARTICIPATIONFUNCTION;
059    if ("GRDCON".equals(codeString))
060      return V3ParticipationFunction.GRDCON;
061    if ("POACON".equals(codeString))
062      return V3ParticipationFunction.POACON;
063    if ("PRCON".equals(codeString))
064      return V3ParticipationFunction.PRCON;
065    if ("PROMSK".equals(codeString))
066      return V3ParticipationFunction.PROMSK;
067    if ("SUBCON".equals(codeString))
068      return V3ParticipationFunction.SUBCON;
069    if ("_OverriderParticipationFunction".equals(codeString))
070      return V3ParticipationFunction._OVERRIDERPARTICIPATIONFUNCTION;
071    if ("AUCOV".equals(codeString))
072      return V3ParticipationFunction.AUCOV;
073    if ("AUEMROV".equals(codeString))
074      return V3ParticipationFunction.AUEMROV;
075    if ("_CoverageParticipationFunction".equals(codeString))
076      return V3ParticipationFunction._COVERAGEPARTICIPATIONFUNCTION;
077    if ("_PayorParticipationFunction".equals(codeString))
078      return V3ParticipationFunction._PAYORPARTICIPATIONFUNCTION;
079    if ("CLMADJ".equals(codeString))
080      return V3ParticipationFunction.CLMADJ;
081    if ("ENROLL".equals(codeString))
082      return V3ParticipationFunction.ENROLL;
083    if ("FFSMGT".equals(codeString))
084      return V3ParticipationFunction.FFSMGT;
085    if ("MCMGT".equals(codeString))
086      return V3ParticipationFunction.MCMGT;
087    if ("PROVMGT".equals(codeString))
088      return V3ParticipationFunction.PROVMGT;
089    if ("UMGT".equals(codeString))
090      return V3ParticipationFunction.UMGT;
091    if ("_SponsorParticipationFunction".equals(codeString))
092      return V3ParticipationFunction._SPONSORPARTICIPATIONFUNCTION;
093    if ("FULINRD".equals(codeString))
094      return V3ParticipationFunction.FULINRD;
095    if ("SELFINRD".equals(codeString))
096      return V3ParticipationFunction.SELFINRD;
097    if ("_UnderwriterParticipationFunction".equals(codeString))
098      return V3ParticipationFunction._UNDERWRITERPARTICIPATIONFUNCTION;
099    if ("PAYORCNTR".equals(codeString))
100      return V3ParticipationFunction.PAYORCNTR;
101    if ("REINS".equals(codeString))
102      return V3ParticipationFunction.REINS;
103    if ("RETROCES".equals(codeString))
104      return V3ParticipationFunction.RETROCES;
105    if ("SUBCTRT".equals(codeString))
106      return V3ParticipationFunction.SUBCTRT;
107    if ("UNDERWRTNG".equals(codeString))
108      return V3ParticipationFunction.UNDERWRTNG;
109    if ("ADMPHYS".equals(codeString))
110      return V3ParticipationFunction.ADMPHYS;
111    if ("ANEST".equals(codeString))
112      return V3ParticipationFunction.ANEST;
113    if ("ANRS".equals(codeString))
114      return V3ParticipationFunction.ANRS;
115    if ("ASSEMBLER".equals(codeString))
116      return V3ParticipationFunction.ASSEMBLER;
117    if ("ATTPHYS".equals(codeString))
118      return V3ParticipationFunction.ATTPHYS;
119    if ("COMPOSER".equals(codeString))
120      return V3ParticipationFunction.COMPOSER;
121    if ("DISPHYS".equals(codeString))
122      return V3ParticipationFunction.DISPHYS;
123    if ("FASST".equals(codeString))
124      return V3ParticipationFunction.FASST;
125    if ("MDWF".equals(codeString))
126      return V3ParticipationFunction.MDWF;
127    if ("NASST".equals(codeString))
128      return V3ParticipationFunction.NASST;
129    if ("PCP".equals(codeString))
130      return V3ParticipationFunction.PCP;
131    if ("PRISURG".equals(codeString))
132      return V3ParticipationFunction.PRISURG;
133    if ("REVIEWER".equals(codeString))
134      return V3ParticipationFunction.REVIEWER;
135    if ("RNDPHYS".equals(codeString))
136      return V3ParticipationFunction.RNDPHYS;
137    if ("SASST".equals(codeString))
138      return V3ParticipationFunction.SASST;
139    if ("SNRS".equals(codeString))
140      return V3ParticipationFunction.SNRS;
141    if ("TASST".equals(codeString))
142      return V3ParticipationFunction.TASST;
143    throw new IllegalArgumentException("Unknown V3ParticipationFunction code '"+codeString+"'");
144  }
145
146  public String toCode(V3ParticipationFunction code) {
147       if (code == V3ParticipationFunction.NULL)
148           return null;
149       if (code == V3ParticipationFunction._AUTHORIZEDPARTICIPATIONFUNCTION)
150      return "_AuthorizedParticipationFunction";
151    if (code == V3ParticipationFunction._AUTHORIZEDRECEIVERPARTICIPATIONFUNCTION)
152      return "_AuthorizedReceiverParticipationFunction";
153    if (code == V3ParticipationFunction.AUCG)
154      return "AUCG";
155    if (code == V3ParticipationFunction.AULR)
156      return "AULR";
157    if (code == V3ParticipationFunction.AUTM)
158      return "AUTM";
159    if (code == V3ParticipationFunction.AUWA)
160      return "AUWA";
161    if (code == V3ParticipationFunction._CONSENTERPARTICIPATIONFUNCTION)
162      return "_ConsenterParticipationFunction";
163    if (code == V3ParticipationFunction.GRDCON)
164      return "GRDCON";
165    if (code == V3ParticipationFunction.POACON)
166      return "POACON";
167    if (code == V3ParticipationFunction.PRCON)
168      return "PRCON";
169    if (code == V3ParticipationFunction.PROMSK)
170      return "PROMSK";
171    if (code == V3ParticipationFunction.SUBCON)
172      return "SUBCON";
173    if (code == V3ParticipationFunction._OVERRIDERPARTICIPATIONFUNCTION)
174      return "_OverriderParticipationFunction";
175    if (code == V3ParticipationFunction.AUCOV)
176      return "AUCOV";
177    if (code == V3ParticipationFunction.AUEMROV)
178      return "AUEMROV";
179    if (code == V3ParticipationFunction._COVERAGEPARTICIPATIONFUNCTION)
180      return "_CoverageParticipationFunction";
181    if (code == V3ParticipationFunction._PAYORPARTICIPATIONFUNCTION)
182      return "_PayorParticipationFunction";
183    if (code == V3ParticipationFunction.CLMADJ)
184      return "CLMADJ";
185    if (code == V3ParticipationFunction.ENROLL)
186      return "ENROLL";
187    if (code == V3ParticipationFunction.FFSMGT)
188      return "FFSMGT";
189    if (code == V3ParticipationFunction.MCMGT)
190      return "MCMGT";
191    if (code == V3ParticipationFunction.PROVMGT)
192      return "PROVMGT";
193    if (code == V3ParticipationFunction.UMGT)
194      return "UMGT";
195    if (code == V3ParticipationFunction._SPONSORPARTICIPATIONFUNCTION)
196      return "_SponsorParticipationFunction";
197    if (code == V3ParticipationFunction.FULINRD)
198      return "FULINRD";
199    if (code == V3ParticipationFunction.SELFINRD)
200      return "SELFINRD";
201    if (code == V3ParticipationFunction._UNDERWRITERPARTICIPATIONFUNCTION)
202      return "_UnderwriterParticipationFunction";
203    if (code == V3ParticipationFunction.PAYORCNTR)
204      return "PAYORCNTR";
205    if (code == V3ParticipationFunction.REINS)
206      return "REINS";
207    if (code == V3ParticipationFunction.RETROCES)
208      return "RETROCES";
209    if (code == V3ParticipationFunction.SUBCTRT)
210      return "SUBCTRT";
211    if (code == V3ParticipationFunction.UNDERWRTNG)
212      return "UNDERWRTNG";
213    if (code == V3ParticipationFunction.ADMPHYS)
214      return "ADMPHYS";
215    if (code == V3ParticipationFunction.ANEST)
216      return "ANEST";
217    if (code == V3ParticipationFunction.ANRS)
218      return "ANRS";
219    if (code == V3ParticipationFunction.ASSEMBLER)
220      return "ASSEMBLER";
221    if (code == V3ParticipationFunction.ATTPHYS)
222      return "ATTPHYS";
223    if (code == V3ParticipationFunction.COMPOSER)
224      return "COMPOSER";
225    if (code == V3ParticipationFunction.DISPHYS)
226      return "DISPHYS";
227    if (code == V3ParticipationFunction.FASST)
228      return "FASST";
229    if (code == V3ParticipationFunction.MDWF)
230      return "MDWF";
231    if (code == V3ParticipationFunction.NASST)
232      return "NASST";
233    if (code == V3ParticipationFunction.PCP)
234      return "PCP";
235    if (code == V3ParticipationFunction.PRISURG)
236      return "PRISURG";
237    if (code == V3ParticipationFunction.REVIEWER)
238      return "REVIEWER";
239    if (code == V3ParticipationFunction.RNDPHYS)
240      return "RNDPHYS";
241    if (code == V3ParticipationFunction.SASST)
242      return "SASST";
243    if (code == V3ParticipationFunction.SNRS)
244      return "SNRS";
245    if (code == V3ParticipationFunction.TASST)
246      return "TASST";
247    return "?";
248   }
249
250    public String toSystem(V3ParticipationFunction code) {
251      return code.getSystem();
252      }
253
254}