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 V3ActClassEnumFactory implements EnumFactory<V3ActClass> {
037
038  public V3ActClass fromCode(String codeString) throws IllegalArgumentException {
039    if (codeString == null || "".equals(codeString))
040      return null;
041    if ("ACT".equals(codeString))
042      return V3ActClass.ACT;
043    if ("_ActClassRecordOrganizer".equals(codeString))
044      return V3ActClass._ACTCLASSRECORDORGANIZER;
045    if ("COMPOSITION".equals(codeString))
046      return V3ActClass.COMPOSITION;
047    if ("DOC".equals(codeString))
048      return V3ActClass.DOC;
049    if ("DOCCLIN".equals(codeString))
050      return V3ActClass.DOCCLIN;
051    if ("CDALVLONE".equals(codeString))
052      return V3ActClass.CDALVLONE;
053    if ("CONTAINER".equals(codeString))
054      return V3ActClass.CONTAINER;
055    if ("CATEGORY".equals(codeString))
056      return V3ActClass.CATEGORY;
057    if ("DOCBODY".equals(codeString))
058      return V3ActClass.DOCBODY;
059    if ("DOCSECT".equals(codeString))
060      return V3ActClass.DOCSECT;
061    if ("TOPIC".equals(codeString))
062      return V3ActClass.TOPIC;
063    if ("EXTRACT".equals(codeString))
064      return V3ActClass.EXTRACT;
065    if ("EHR".equals(codeString))
066      return V3ActClass.EHR;
067    if ("FOLDER".equals(codeString))
068      return V3ActClass.FOLDER;
069    if ("GROUPER".equals(codeString))
070      return V3ActClass.GROUPER;
071    if ("CLUSTER".equals(codeString))
072      return V3ActClass.CLUSTER;
073    if ("ACCM".equals(codeString))
074      return V3ActClass.ACCM;
075    if ("ACCT".equals(codeString))
076      return V3ActClass.ACCT;
077    if ("ACSN".equals(codeString))
078      return V3ActClass.ACSN;
079    if ("ADJUD".equals(codeString))
080      return V3ActClass.ADJUD;
081    if ("CACT".equals(codeString))
082      return V3ActClass.CACT;
083    if ("ACTN".equals(codeString))
084      return V3ActClass.ACTN;
085    if ("INFO".equals(codeString))
086      return V3ActClass.INFO;
087    if ("STC".equals(codeString))
088      return V3ActClass.STC;
089    if ("CNTRCT".equals(codeString))
090      return V3ActClass.CNTRCT;
091    if ("FCNTRCT".equals(codeString))
092      return V3ActClass.FCNTRCT;
093    if ("COV".equals(codeString))
094      return V3ActClass.COV;
095    if ("CONC".equals(codeString))
096      return V3ActClass.CONC;
097    if ("HCASE".equals(codeString))
098      return V3ActClass.HCASE;
099    if ("OUTBR".equals(codeString))
100      return V3ActClass.OUTBR;
101    if ("CONS".equals(codeString))
102      return V3ActClass.CONS;
103    if ("CONTREG".equals(codeString))
104      return V3ActClass.CONTREG;
105    if ("CTTEVENT".equals(codeString))
106      return V3ActClass.CTTEVENT;
107    if ("DISPACT".equals(codeString))
108      return V3ActClass.DISPACT;
109    if ("EXPOS".equals(codeString))
110      return V3ActClass.EXPOS;
111    if ("AEXPOS".equals(codeString))
112      return V3ActClass.AEXPOS;
113    if ("TEXPOS".equals(codeString))
114      return V3ActClass.TEXPOS;
115    if ("INC".equals(codeString))
116      return V3ActClass.INC;
117    if ("INFRM".equals(codeString))
118      return V3ActClass.INFRM;
119    if ("INVE".equals(codeString))
120      return V3ActClass.INVE;
121    if ("LIST".equals(codeString))
122      return V3ActClass.LIST;
123    if ("MPROT".equals(codeString))
124      return V3ActClass.MPROT;
125    if ("OBS".equals(codeString))
126      return V3ActClass.OBS;
127    if ("_ActClassROI".equals(codeString))
128      return V3ActClass._ACTCLASSROI;
129    if ("ROIBND".equals(codeString))
130      return V3ActClass.ROIBND;
131    if ("ROIOVL".equals(codeString))
132      return V3ActClass.ROIOVL;
133    if ("_SubjectPhysicalPosition".equals(codeString))
134      return V3ActClass._SUBJECTPHYSICALPOSITION;
135    if ("_SubjectBodyPosition".equals(codeString))
136      return V3ActClass._SUBJECTBODYPOSITION;
137    if ("LLD".equals(codeString))
138      return V3ActClass.LLD;
139    if ("PRN".equals(codeString))
140      return V3ActClass.PRN;
141    if ("RLD".equals(codeString))
142      return V3ActClass.RLD;
143    if ("SFWL".equals(codeString))
144      return V3ActClass.SFWL;
145    if ("SIT".equals(codeString))
146      return V3ActClass.SIT;
147    if ("STN".equals(codeString))
148      return V3ActClass.STN;
149    if ("SUP".equals(codeString))
150      return V3ActClass.SUP;
151    if ("RTRD".equals(codeString))
152      return V3ActClass.RTRD;
153    if ("TRD".equals(codeString))
154      return V3ActClass.TRD;
155    if ("ALRT".equals(codeString))
156      return V3ActClass.ALRT;
157    if ("BATTERY".equals(codeString))
158      return V3ActClass.BATTERY;
159    if ("CLNTRL".equals(codeString))
160      return V3ActClass.CLNTRL;
161    if ("CNOD".equals(codeString))
162      return V3ActClass.CNOD;
163    if ("COND".equals(codeString))
164      return V3ActClass.COND;
165    if ("CASE".equals(codeString))
166      return V3ActClass.CASE;
167    if ("OUTB".equals(codeString))
168      return V3ActClass.OUTB;
169    if ("DGIMG".equals(codeString))
170      return V3ActClass.DGIMG;
171    if ("GEN".equals(codeString))
172      return V3ActClass.GEN;
173    if ("DETPOL".equals(codeString))
174      return V3ActClass.DETPOL;
175    if ("EXP".equals(codeString))
176      return V3ActClass.EXP;
177    if ("LOC".equals(codeString))
178      return V3ActClass.LOC;
179    if ("PHN".equals(codeString))
180      return V3ActClass.PHN;
181    if ("POL".equals(codeString))
182      return V3ActClass.POL;
183    if ("SEQ".equals(codeString))
184      return V3ActClass.SEQ;
185    if ("SEQVAR".equals(codeString))
186      return V3ActClass.SEQVAR;
187    if ("INVSTG".equals(codeString))
188      return V3ActClass.INVSTG;
189    if ("OBSSER".equals(codeString))
190      return V3ActClass.OBSSER;
191    if ("OBSCOR".equals(codeString))
192      return V3ActClass.OBSCOR;
193    if ("POS".equals(codeString))
194      return V3ActClass.POS;
195    if ("POSACC".equals(codeString))
196      return V3ActClass.POSACC;
197    if ("POSCOORD".equals(codeString))
198      return V3ActClass.POSCOORD;
199    if ("SPCOBS".equals(codeString))
200      return V3ActClass.SPCOBS;
201    if ("VERIF".equals(codeString))
202      return V3ActClass.VERIF;
203    if ("PCPR".equals(codeString))
204      return V3ActClass.PCPR;
205    if ("ENC".equals(codeString))
206      return V3ActClass.ENC;
207    if ("POLICY".equals(codeString))
208      return V3ActClass.POLICY;
209    if ("JURISPOL".equals(codeString))
210      return V3ActClass.JURISPOL;
211    if ("ORGPOL".equals(codeString))
212      return V3ActClass.ORGPOL;
213    if ("SCOPOL".equals(codeString))
214      return V3ActClass.SCOPOL;
215    if ("STDPOL".equals(codeString))
216      return V3ActClass.STDPOL;
217    if ("PROC".equals(codeString))
218      return V3ActClass.PROC;
219    if ("SBADM".equals(codeString))
220      return V3ActClass.SBADM;
221    if ("SBEXT".equals(codeString))
222      return V3ActClass.SBEXT;
223    if ("SPECCOLLECT".equals(codeString))
224      return V3ActClass.SPECCOLLECT;
225    if ("REG".equals(codeString))
226      return V3ActClass.REG;
227    if ("REV".equals(codeString))
228      return V3ActClass.REV;
229    if ("SPCTRT".equals(codeString))
230      return V3ActClass.SPCTRT;
231    if ("SPLY".equals(codeString))
232      return V3ActClass.SPLY;
233    if ("DIET".equals(codeString))
234      return V3ActClass.DIET;
235    if ("STORE".equals(codeString))
236      return V3ActClass.STORE;
237    if ("SUBST".equals(codeString))
238      return V3ActClass.SUBST;
239    if ("TRFR".equals(codeString))
240      return V3ActClass.TRFR;
241    if ("TRNS".equals(codeString))
242      return V3ActClass.TRNS;
243    if ("XACT".equals(codeString))
244      return V3ActClass.XACT;
245    if ("_ActClassContainer".equals(codeString))
246      return V3ActClass._ACTCLASSCONTAINER;
247    if ("ENTRY".equals(codeString))
248      return V3ActClass.ENTRY;
249    if ("ORGANIZER".equals(codeString))
250      return V3ActClass.ORGANIZER;
251    if ("DOCCNTNT".equals(codeString))
252      return V3ActClass.DOCCNTNT;
253    if ("DOCLIST".equals(codeString))
254      return V3ActClass.DOCLIST;
255    if ("DOCLSTITM".equals(codeString))
256      return V3ActClass.DOCLSTITM;
257    if ("DOCPARA".equals(codeString))
258      return V3ActClass.DOCPARA;
259    if ("DOCTBL".equals(codeString))
260      return V3ActClass.DOCTBL;
261    if ("LINKHTML".equals(codeString))
262      return V3ActClass.LINKHTML;
263    if ("LOCALATTR".equals(codeString))
264      return V3ActClass.LOCALATTR;
265    if ("LOCALMRKP".equals(codeString))
266      return V3ActClass.LOCALMRKP;
267    if ("ordered".equals(codeString))
268      return V3ActClass.ORDERED;
269    if ("REFR".equals(codeString))
270      return V3ActClass.REFR;
271    if ("TBLCOL".equals(codeString))
272      return V3ActClass.TBLCOL;
273    if ("TBLCOLGP".equals(codeString))
274      return V3ActClass.TBLCOLGP;
275    if ("TBLDATA".equals(codeString))
276      return V3ActClass.TBLDATA;
277    if ("TBLHDR".equals(codeString))
278      return V3ActClass.TBLHDR;
279    if ("TBLROW".equals(codeString))
280      return V3ActClass.TBLROW;
281    if ("tbody".equals(codeString))
282      return V3ActClass.TBODY;
283    if ("tfoot".equals(codeString))
284      return V3ActClass.TFOOT;
285    if ("thead".equals(codeString))
286      return V3ActClass.THEAD;
287    if ("unordered".equals(codeString))
288      return V3ActClass.UNORDERED;
289    throw new IllegalArgumentException("Unknown V3ActClass code '" + codeString + "'");
290  }
291
292  public String toCode(V3ActClass code) {
293       if (code == V3ActClass.NULL)
294           return null;
295       if (code == V3ActClass.ACT)
296      return "ACT";
297    if (code == V3ActClass._ACTCLASSRECORDORGANIZER)
298      return "_ActClassRecordOrganizer";
299    if (code == V3ActClass.COMPOSITION)
300      return "COMPOSITION";
301    if (code == V3ActClass.DOC)
302      return "DOC";
303    if (code == V3ActClass.DOCCLIN)
304      return "DOCCLIN";
305    if (code == V3ActClass.CDALVLONE)
306      return "CDALVLONE";
307    if (code == V3ActClass.CONTAINER)
308      return "CONTAINER";
309    if (code == V3ActClass.CATEGORY)
310      return "CATEGORY";
311    if (code == V3ActClass.DOCBODY)
312      return "DOCBODY";
313    if (code == V3ActClass.DOCSECT)
314      return "DOCSECT";
315    if (code == V3ActClass.TOPIC)
316      return "TOPIC";
317    if (code == V3ActClass.EXTRACT)
318      return "EXTRACT";
319    if (code == V3ActClass.EHR)
320      return "EHR";
321    if (code == V3ActClass.FOLDER)
322      return "FOLDER";
323    if (code == V3ActClass.GROUPER)
324      return "GROUPER";
325    if (code == V3ActClass.CLUSTER)
326      return "CLUSTER";
327    if (code == V3ActClass.ACCM)
328      return "ACCM";
329    if (code == V3ActClass.ACCT)
330      return "ACCT";
331    if (code == V3ActClass.ACSN)
332      return "ACSN";
333    if (code == V3ActClass.ADJUD)
334      return "ADJUD";
335    if (code == V3ActClass.CACT)
336      return "CACT";
337    if (code == V3ActClass.ACTN)
338      return "ACTN";
339    if (code == V3ActClass.INFO)
340      return "INFO";
341    if (code == V3ActClass.STC)
342      return "STC";
343    if (code == V3ActClass.CNTRCT)
344      return "CNTRCT";
345    if (code == V3ActClass.FCNTRCT)
346      return "FCNTRCT";
347    if (code == V3ActClass.COV)
348      return "COV";
349    if (code == V3ActClass.CONC)
350      return "CONC";
351    if (code == V3ActClass.HCASE)
352      return "HCASE";
353    if (code == V3ActClass.OUTBR)
354      return "OUTBR";
355    if (code == V3ActClass.CONS)
356      return "CONS";
357    if (code == V3ActClass.CONTREG)
358      return "CONTREG";
359    if (code == V3ActClass.CTTEVENT)
360      return "CTTEVENT";
361    if (code == V3ActClass.DISPACT)
362      return "DISPACT";
363    if (code == V3ActClass.EXPOS)
364      return "EXPOS";
365    if (code == V3ActClass.AEXPOS)
366      return "AEXPOS";
367    if (code == V3ActClass.TEXPOS)
368      return "TEXPOS";
369    if (code == V3ActClass.INC)
370      return "INC";
371    if (code == V3ActClass.INFRM)
372      return "INFRM";
373    if (code == V3ActClass.INVE)
374      return "INVE";
375    if (code == V3ActClass.LIST)
376      return "LIST";
377    if (code == V3ActClass.MPROT)
378      return "MPROT";
379    if (code == V3ActClass.OBS)
380      return "OBS";
381    if (code == V3ActClass._ACTCLASSROI)
382      return "_ActClassROI";
383    if (code == V3ActClass.ROIBND)
384      return "ROIBND";
385    if (code == V3ActClass.ROIOVL)
386      return "ROIOVL";
387    if (code == V3ActClass._SUBJECTPHYSICALPOSITION)
388      return "_SubjectPhysicalPosition";
389    if (code == V3ActClass._SUBJECTBODYPOSITION)
390      return "_SubjectBodyPosition";
391    if (code == V3ActClass.LLD)
392      return "LLD";
393    if (code == V3ActClass.PRN)
394      return "PRN";
395    if (code == V3ActClass.RLD)
396      return "RLD";
397    if (code == V3ActClass.SFWL)
398      return "SFWL";
399    if (code == V3ActClass.SIT)
400      return "SIT";
401    if (code == V3ActClass.STN)
402      return "STN";
403    if (code == V3ActClass.SUP)
404      return "SUP";
405    if (code == V3ActClass.RTRD)
406      return "RTRD";
407    if (code == V3ActClass.TRD)
408      return "TRD";
409    if (code == V3ActClass.ALRT)
410      return "ALRT";
411    if (code == V3ActClass.BATTERY)
412      return "BATTERY";
413    if (code == V3ActClass.CLNTRL)
414      return "CLNTRL";
415    if (code == V3ActClass.CNOD)
416      return "CNOD";
417    if (code == V3ActClass.COND)
418      return "COND";
419    if (code == V3ActClass.CASE)
420      return "CASE";
421    if (code == V3ActClass.OUTB)
422      return "OUTB";
423    if (code == V3ActClass.DGIMG)
424      return "DGIMG";
425    if (code == V3ActClass.GEN)
426      return "GEN";
427    if (code == V3ActClass.DETPOL)
428      return "DETPOL";
429    if (code == V3ActClass.EXP)
430      return "EXP";
431    if (code == V3ActClass.LOC)
432      return "LOC";
433    if (code == V3ActClass.PHN)
434      return "PHN";
435    if (code == V3ActClass.POL)
436      return "POL";
437    if (code == V3ActClass.SEQ)
438      return "SEQ";
439    if (code == V3ActClass.SEQVAR)
440      return "SEQVAR";
441    if (code == V3ActClass.INVSTG)
442      return "INVSTG";
443    if (code == V3ActClass.OBSSER)
444      return "OBSSER";
445    if (code == V3ActClass.OBSCOR)
446      return "OBSCOR";
447    if (code == V3ActClass.POS)
448      return "POS";
449    if (code == V3ActClass.POSACC)
450      return "POSACC";
451    if (code == V3ActClass.POSCOORD)
452      return "POSCOORD";
453    if (code == V3ActClass.SPCOBS)
454      return "SPCOBS";
455    if (code == V3ActClass.VERIF)
456      return "VERIF";
457    if (code == V3ActClass.PCPR)
458      return "PCPR";
459    if (code == V3ActClass.ENC)
460      return "ENC";
461    if (code == V3ActClass.POLICY)
462      return "POLICY";
463    if (code == V3ActClass.JURISPOL)
464      return "JURISPOL";
465    if (code == V3ActClass.ORGPOL)
466      return "ORGPOL";
467    if (code == V3ActClass.SCOPOL)
468      return "SCOPOL";
469    if (code == V3ActClass.STDPOL)
470      return "STDPOL";
471    if (code == V3ActClass.PROC)
472      return "PROC";
473    if (code == V3ActClass.SBADM)
474      return "SBADM";
475    if (code == V3ActClass.SBEXT)
476      return "SBEXT";
477    if (code == V3ActClass.SPECCOLLECT)
478      return "SPECCOLLECT";
479    if (code == V3ActClass.REG)
480      return "REG";
481    if (code == V3ActClass.REV)
482      return "REV";
483    if (code == V3ActClass.SPCTRT)
484      return "SPCTRT";
485    if (code == V3ActClass.SPLY)
486      return "SPLY";
487    if (code == V3ActClass.DIET)
488      return "DIET";
489    if (code == V3ActClass.STORE)
490      return "STORE";
491    if (code == V3ActClass.SUBST)
492      return "SUBST";
493    if (code == V3ActClass.TRFR)
494      return "TRFR";
495    if (code == V3ActClass.TRNS)
496      return "TRNS";
497    if (code == V3ActClass.XACT)
498      return "XACT";
499    if (code == V3ActClass._ACTCLASSCONTAINER)
500      return "_ActClassContainer";
501    if (code == V3ActClass.ENTRY)
502      return "ENTRY";
503    if (code == V3ActClass.ORGANIZER)
504      return "ORGANIZER";
505    if (code == V3ActClass.DOCCNTNT)
506      return "DOCCNTNT";
507    if (code == V3ActClass.DOCLIST)
508      return "DOCLIST";
509    if (code == V3ActClass.DOCLSTITM)
510      return "DOCLSTITM";
511    if (code == V3ActClass.DOCPARA)
512      return "DOCPARA";
513    if (code == V3ActClass.DOCTBL)
514      return "DOCTBL";
515    if (code == V3ActClass.LINKHTML)
516      return "LINKHTML";
517    if (code == V3ActClass.LOCALATTR)
518      return "LOCALATTR";
519    if (code == V3ActClass.LOCALMRKP)
520      return "LOCALMRKP";
521    if (code == V3ActClass.ORDERED)
522      return "ordered";
523    if (code == V3ActClass.REFR)
524      return "REFR";
525    if (code == V3ActClass.TBLCOL)
526      return "TBLCOL";
527    if (code == V3ActClass.TBLCOLGP)
528      return "TBLCOLGP";
529    if (code == V3ActClass.TBLDATA)
530      return "TBLDATA";
531    if (code == V3ActClass.TBLHDR)
532      return "TBLHDR";
533    if (code == V3ActClass.TBLROW)
534      return "TBLROW";
535    if (code == V3ActClass.TBODY)
536      return "tbody";
537    if (code == V3ActClass.TFOOT)
538      return "tfoot";
539    if (code == V3ActClass.THEAD)
540      return "thead";
541    if (code == V3ActClass.UNORDERED)
542      return "unordered";
543    return "?";
544   }
545
546  public String toSystem(V3ActClass code) {
547    return code.getSystem();
548  }
549
550}