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