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 V3ActSiteEnumFactory implements EnumFactory<V3ActSite> {
037
038  public V3ActSite fromCode(String codeString) throws IllegalArgumentException {
039    if (codeString == null || "".equals(codeString))
040      return null;
041    if ("_HumanActSite".equals(codeString))
042      return V3ActSite._HUMANACTSITE;
043    if ("_HumanSubstanceAdministrationSite".equals(codeString))
044      return V3ActSite._HUMANSUBSTANCEADMINISTRATIONSITE;
045    if ("BE".equals(codeString))
046      return V3ActSite.BE;
047    if ("BN".equals(codeString))
048      return V3ActSite.BN;
049    if ("BU".equals(codeString))
050      return V3ActSite.BU;
051    if ("LA".equals(codeString))
052      return V3ActSite.LA;
053    if ("LAC".equals(codeString))
054      return V3ActSite.LAC;
055    if ("LACF".equals(codeString))
056      return V3ActSite.LACF;
057    if ("LD".equals(codeString))
058      return V3ActSite.LD;
059    if ("LE".equals(codeString))
060      return V3ActSite.LE;
061    if ("LEJ".equals(codeString))
062      return V3ActSite.LEJ;
063    if ("LF".equals(codeString))
064      return V3ActSite.LF;
065    if ("LG".equals(codeString))
066      return V3ActSite.LG;
067    if ("LH".equals(codeString))
068      return V3ActSite.LH;
069    if ("LIJ".equals(codeString))
070      return V3ActSite.LIJ;
071    if ("LLAQ".equals(codeString))
072      return V3ActSite.LLAQ;
073    if ("LLFA".equals(codeString))
074      return V3ActSite.LLFA;
075    if ("LMFA".equals(codeString))
076      return V3ActSite.LMFA;
077    if ("LN".equals(codeString))
078      return V3ActSite.LN;
079    if ("LPC".equals(codeString))
080      return V3ActSite.LPC;
081    if ("LSC".equals(codeString))
082      return V3ActSite.LSC;
083    if ("LT".equals(codeString))
084      return V3ActSite.LT;
085    if ("LUA".equals(codeString))
086      return V3ActSite.LUA;
087    if ("LUAQ".equals(codeString))
088      return V3ActSite.LUAQ;
089    if ("LUFA".equals(codeString))
090      return V3ActSite.LUFA;
091    if ("LVG".equals(codeString))
092      return V3ActSite.LVG;
093    if ("LVL".equals(codeString))
094      return V3ActSite.LVL;
095    if ("OD".equals(codeString))
096      return V3ActSite.OD;
097    if ("OS".equals(codeString))
098      return V3ActSite.OS;
099    if ("OU".equals(codeString))
100      return V3ActSite.OU;
101    if ("PA".equals(codeString))
102      return V3ActSite.PA;
103    if ("PERIN".equals(codeString))
104      return V3ActSite.PERIN;
105    if ("RA".equals(codeString))
106      return V3ActSite.RA;
107    if ("RAC".equals(codeString))
108      return V3ActSite.RAC;
109    if ("RACF".equals(codeString))
110      return V3ActSite.RACF;
111    if ("RD".equals(codeString))
112      return V3ActSite.RD;
113    if ("RE".equals(codeString))
114      return V3ActSite.RE;
115    if ("REJ".equals(codeString))
116      return V3ActSite.REJ;
117    if ("RF".equals(codeString))
118      return V3ActSite.RF;
119    if ("RG".equals(codeString))
120      return V3ActSite.RG;
121    if ("RH".equals(codeString))
122      return V3ActSite.RH;
123    if ("RIJ".equals(codeString))
124      return V3ActSite.RIJ;
125    if ("RLAQ".equals(codeString))
126      return V3ActSite.RLAQ;
127    if ("RLFA".equals(codeString))
128      return V3ActSite.RLFA;
129    if ("RMFA".equals(codeString))
130      return V3ActSite.RMFA;
131    if ("RN".equals(codeString))
132      return V3ActSite.RN;
133    if ("RPC".equals(codeString))
134      return V3ActSite.RPC;
135    if ("RSC".equals(codeString))
136      return V3ActSite.RSC;
137    if ("RT".equals(codeString))
138      return V3ActSite.RT;
139    if ("RUA".equals(codeString))
140      return V3ActSite.RUA;
141    if ("RUAQ".equals(codeString))
142      return V3ActSite.RUAQ;
143    if ("RUFA".equals(codeString))
144      return V3ActSite.RUFA;
145    if ("RVG".equals(codeString))
146      return V3ActSite.RVG;
147    if ("RVL".equals(codeString))
148      return V3ActSite.RVL;
149    throw new IllegalArgumentException("Unknown V3ActSite code '" + codeString + "'");
150  }
151
152  public String toCode(V3ActSite code) {
153       if (code == V3ActSite.NULL)
154           return null;
155       if (code == V3ActSite._HUMANACTSITE)
156      return "_HumanActSite";
157    if (code == V3ActSite._HUMANSUBSTANCEADMINISTRATIONSITE)
158      return "_HumanSubstanceAdministrationSite";
159    if (code == V3ActSite.BE)
160      return "BE";
161    if (code == V3ActSite.BN)
162      return "BN";
163    if (code == V3ActSite.BU)
164      return "BU";
165    if (code == V3ActSite.LA)
166      return "LA";
167    if (code == V3ActSite.LAC)
168      return "LAC";
169    if (code == V3ActSite.LACF)
170      return "LACF";
171    if (code == V3ActSite.LD)
172      return "LD";
173    if (code == V3ActSite.LE)
174      return "LE";
175    if (code == V3ActSite.LEJ)
176      return "LEJ";
177    if (code == V3ActSite.LF)
178      return "LF";
179    if (code == V3ActSite.LG)
180      return "LG";
181    if (code == V3ActSite.LH)
182      return "LH";
183    if (code == V3ActSite.LIJ)
184      return "LIJ";
185    if (code == V3ActSite.LLAQ)
186      return "LLAQ";
187    if (code == V3ActSite.LLFA)
188      return "LLFA";
189    if (code == V3ActSite.LMFA)
190      return "LMFA";
191    if (code == V3ActSite.LN)
192      return "LN";
193    if (code == V3ActSite.LPC)
194      return "LPC";
195    if (code == V3ActSite.LSC)
196      return "LSC";
197    if (code == V3ActSite.LT)
198      return "LT";
199    if (code == V3ActSite.LUA)
200      return "LUA";
201    if (code == V3ActSite.LUAQ)
202      return "LUAQ";
203    if (code == V3ActSite.LUFA)
204      return "LUFA";
205    if (code == V3ActSite.LVG)
206      return "LVG";
207    if (code == V3ActSite.LVL)
208      return "LVL";
209    if (code == V3ActSite.OD)
210      return "OD";
211    if (code == V3ActSite.OS)
212      return "OS";
213    if (code == V3ActSite.OU)
214      return "OU";
215    if (code == V3ActSite.PA)
216      return "PA";
217    if (code == V3ActSite.PERIN)
218      return "PERIN";
219    if (code == V3ActSite.RA)
220      return "RA";
221    if (code == V3ActSite.RAC)
222      return "RAC";
223    if (code == V3ActSite.RACF)
224      return "RACF";
225    if (code == V3ActSite.RD)
226      return "RD";
227    if (code == V3ActSite.RE)
228      return "RE";
229    if (code == V3ActSite.REJ)
230      return "REJ";
231    if (code == V3ActSite.RF)
232      return "RF";
233    if (code == V3ActSite.RG)
234      return "RG";
235    if (code == V3ActSite.RH)
236      return "RH";
237    if (code == V3ActSite.RIJ)
238      return "RIJ";
239    if (code == V3ActSite.RLAQ)
240      return "RLAQ";
241    if (code == V3ActSite.RLFA)
242      return "RLFA";
243    if (code == V3ActSite.RMFA)
244      return "RMFA";
245    if (code == V3ActSite.RN)
246      return "RN";
247    if (code == V3ActSite.RPC)
248      return "RPC";
249    if (code == V3ActSite.RSC)
250      return "RSC";
251    if (code == V3ActSite.RT)
252      return "RT";
253    if (code == V3ActSite.RUA)
254      return "RUA";
255    if (code == V3ActSite.RUAQ)
256      return "RUAQ";
257    if (code == V3ActSite.RUFA)
258      return "RUFA";
259    if (code == V3ActSite.RVG)
260      return "RVG";
261    if (code == V3ActSite.RVL)
262      return "RVL";
263    return "?";
264   }
265
266  public String toSystem(V3ActSite code) {
267    return code.getSystem();
268  }
269
270}