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 V3RoleCodeEnumFactory implements EnumFactory<V3RoleCode> {
041
042  public V3RoleCode fromCode(String codeString) throws IllegalArgumentException {
043    if (codeString == null || "".equals(codeString))
044      return null;
045    if ("_AffiliationRoleType".equals(codeString))
046      return V3RoleCode._AFFILIATIONROLETYPE;
047    if ("_AgentRoleType".equals(codeString))
048      return V3RoleCode._AGENTROLETYPE;
049    if ("AMENDER".equals(codeString))
050      return V3RoleCode.AMENDER;
051    if ("CLASSIFIER".equals(codeString))
052      return V3RoleCode.CLASSIFIER;
053    if ("CONSENTER".equals(codeString))
054      return V3RoleCode.CONSENTER;
055    if ("CONSWIT".equals(codeString))
056      return V3RoleCode.CONSWIT;
057    if ("COPART".equals(codeString))
058      return V3RoleCode.COPART;
059    if ("DECLASSIFIER".equals(codeString))
060      return V3RoleCode.DECLASSIFIER;
061    if ("DELEGATEE".equals(codeString))
062      return V3RoleCode.DELEGATEE;
063    if ("DELEGATOR".equals(codeString))
064      return V3RoleCode.DELEGATOR;
065    if ("DOWNGRDER".equals(codeString))
066      return V3RoleCode.DOWNGRDER;
067    if ("DRIVCLASSIFIER".equals(codeString))
068      return V3RoleCode.DRIVCLASSIFIER;
069    if ("GRANTEE".equals(codeString))
070      return V3RoleCode.GRANTEE;
071    if ("GRANTOR".equals(codeString))
072      return V3RoleCode.GRANTOR;
073    if ("INTPRTER".equals(codeString))
074      return V3RoleCode.INTPRTER;
075    if ("REVIEWER".equals(codeString))
076      return V3RoleCode.REVIEWER;
077    if ("VALIDATOR".equals(codeString))
078      return V3RoleCode.VALIDATOR;
079    if ("_CoverageSponsorRoleType".equals(codeString))
080      return V3RoleCode._COVERAGESPONSORROLETYPE;
081    if ("FULLINS".equals(codeString))
082      return V3RoleCode.FULLINS;
083    if ("SELFINS".equals(codeString))
084      return V3RoleCode.SELFINS;
085    if ("_PayorRoleType".equals(codeString))
086      return V3RoleCode._PAYORROLETYPE;
087    if ("ENROLBKR".equals(codeString))
088      return V3RoleCode.ENROLBKR;
089    if ("TPA".equals(codeString))
090      return V3RoleCode.TPA;
091    if ("UMO".equals(codeString))
092      return V3RoleCode.UMO;
093    if ("RESPRSN".equals(codeString))
094      return V3RoleCode.RESPRSN;
095    if ("EXCEST".equals(codeString))
096      return V3RoleCode.EXCEST;
097    if ("GUADLTM".equals(codeString))
098      return V3RoleCode.GUADLTM;
099    if ("GUARD".equals(codeString))
100      return V3RoleCode.GUARD;
101    if ("POWATT".equals(codeString))
102      return V3RoleCode.POWATT;
103    if ("DPOWATT".equals(codeString))
104      return V3RoleCode.DPOWATT;
105    if ("HPOWATT".equals(codeString))
106      return V3RoleCode.HPOWATT;
107    if ("SPOWATT".equals(codeString))
108      return V3RoleCode.SPOWATT;
109    if ("_AssignedRoleType".equals(codeString))
110      return V3RoleCode._ASSIGNEDROLETYPE;
111    if ("_AssignedNonPersonLivingSubjectRoleType".equals(codeString))
112      return V3RoleCode._ASSIGNEDNONPERSONLIVINGSUBJECTROLETYPE;
113    if ("ASSIST".equals(codeString))
114      return V3RoleCode.ASSIST;
115    if ("BIOTH".equals(codeString))
116      return V3RoleCode.BIOTH;
117    if ("ANTIBIOT".equals(codeString))
118      return V3RoleCode.ANTIBIOT;
119    if ("DEBR".equals(codeString))
120      return V3RoleCode.DEBR;
121    if ("CCO".equals(codeString))
122      return V3RoleCode.CCO;
123    if ("SEE".equals(codeString))
124      return V3RoleCode.SEE;
125    if ("SNIFF".equals(codeString))
126      return V3RoleCode.SNIFF;
127    if ("_CertifiedEntityType".equals(codeString))
128      return V3RoleCode._CERTIFIEDENTITYTYPE;
129    if ("_CitizenRoleType".equals(codeString))
130      return V3RoleCode._CITIZENROLETYPE;
131    if ("CAS".equals(codeString))
132      return V3RoleCode.CAS;
133    if ("CASM".equals(codeString))
134      return V3RoleCode.CASM;
135    if ("CN".equals(codeString))
136      return V3RoleCode.CN;
137    if ("CNRP".equals(codeString))
138      return V3RoleCode.CNRP;
139    if ("CNRPM".equals(codeString))
140      return V3RoleCode.CNRPM;
141    if ("CPCA".equals(codeString))
142      return V3RoleCode.CPCA;
143    if ("CRP".equals(codeString))
144      return V3RoleCode.CRP;
145    if ("CRPM".equals(codeString))
146      return V3RoleCode.CRPM;
147    if ("_ContactRoleType".equals(codeString))
148      return V3RoleCode._CONTACTROLETYPE;
149    if ("_AdministrativeContactRoleType".equals(codeString))
150      return V3RoleCode._ADMINISTRATIVECONTACTROLETYPE;
151    if ("BILL".equals(codeString))
152      return V3RoleCode.BILL;
153    if ("ORG".equals(codeString))
154      return V3RoleCode.ORG;
155    if ("PAYOR".equals(codeString))
156      return V3RoleCode.PAYOR;
157    if ("ECON".equals(codeString))
158      return V3RoleCode.ECON;
159    if ("NOK".equals(codeString))
160      return V3RoleCode.NOK;
161    if ("_IdentifiedEntityType".equals(codeString))
162      return V3RoleCode._IDENTIFIEDENTITYTYPE;
163    if ("_LocationIdentifiedEntityRoleCode".equals(codeString))
164      return V3RoleCode._LOCATIONIDENTIFIEDENTITYROLECODE;
165    if ("ACHFID".equals(codeString))
166      return V3RoleCode.ACHFID;
167    if ("JURID".equals(codeString))
168      return V3RoleCode.JURID;
169    if ("LOCHFID".equals(codeString))
170      return V3RoleCode.LOCHFID;
171    if ("_LivingSubjectProductionClass".equals(codeString))
172      return V3RoleCode._LIVINGSUBJECTPRODUCTIONCLASS;
173    if ("BF".equals(codeString))
174      return V3RoleCode.BF;
175    if ("BL".equals(codeString))
176      return V3RoleCode.BL;
177    if ("BR".equals(codeString))
178      return V3RoleCode.BR;
179    if ("CO".equals(codeString))
180      return V3RoleCode.CO;
181    if ("DA".equals(codeString))
182      return V3RoleCode.DA;
183    if ("DR".equals(codeString))
184      return V3RoleCode.DR;
185    if ("DU".equals(codeString))
186      return V3RoleCode.DU;
187    if ("FI".equals(codeString))
188      return V3RoleCode.FI;
189    if ("LY".equals(codeString))
190      return V3RoleCode.LY;
191    if ("MT".equals(codeString))
192      return V3RoleCode.MT;
193    if ("MU".equals(codeString))
194      return V3RoleCode.MU;
195    if ("PL".equals(codeString))
196      return V3RoleCode.PL;
197    if ("RC".equals(codeString))
198      return V3RoleCode.RC;
199    if ("SH".equals(codeString))
200      return V3RoleCode.SH;
201    if ("VL".equals(codeString))
202      return V3RoleCode.VL;
203    if ("WL".equals(codeString))
204      return V3RoleCode.WL;
205    if ("WO".equals(codeString))
206      return V3RoleCode.WO;
207    if ("_MedicationGeneralizationRoleType".equals(codeString))
208      return V3RoleCode._MEDICATIONGENERALIZATIONROLETYPE;
209    if ("DC".equals(codeString))
210      return V3RoleCode.DC;
211    if ("GD".equals(codeString))
212      return V3RoleCode.GD;
213    if ("GDF".equals(codeString))
214      return V3RoleCode.GDF;
215    if ("GDS".equals(codeString))
216      return V3RoleCode.GDS;
217    if ("GDSF".equals(codeString))
218      return V3RoleCode.GDSF;
219    if ("MGDSF".equals(codeString))
220      return V3RoleCode.MGDSF;
221    if ("_MemberRoleType".equals(codeString))
222      return V3RoleCode._MEMBERROLETYPE;
223    if ("TRB".equals(codeString))
224      return V3RoleCode.TRB;
225    if ("_PersonalRelationshipRoleType".equals(codeString))
226      return V3RoleCode._PERSONALRELATIONSHIPROLETYPE;
227    if ("FAMMEMB".equals(codeString))
228      return V3RoleCode.FAMMEMB;
229    if ("CHILD".equals(codeString))
230      return V3RoleCode.CHILD;
231    if ("CHLDADOPT".equals(codeString))
232      return V3RoleCode.CHLDADOPT;
233    if ("DAUADOPT".equals(codeString))
234      return V3RoleCode.DAUADOPT;
235    if ("SONADOPT".equals(codeString))
236      return V3RoleCode.SONADOPT;
237    if ("CHLDFOST".equals(codeString))
238      return V3RoleCode.CHLDFOST;
239    if ("DAUFOST".equals(codeString))
240      return V3RoleCode.DAUFOST;
241    if ("SONFOST".equals(codeString))
242      return V3RoleCode.SONFOST;
243    if ("DAUC".equals(codeString))
244      return V3RoleCode.DAUC;
245    if ("DAU".equals(codeString))
246      return V3RoleCode.DAU;
247    if ("STPDAU".equals(codeString))
248      return V3RoleCode.STPDAU;
249    if ("NCHILD".equals(codeString))
250      return V3RoleCode.NCHILD;
251    if ("SON".equals(codeString))
252      return V3RoleCode.SON;
253    if ("SONC".equals(codeString))
254      return V3RoleCode.SONC;
255    if ("STPSON".equals(codeString))
256      return V3RoleCode.STPSON;
257    if ("STPCHLD".equals(codeString))
258      return V3RoleCode.STPCHLD;
259    if ("EXT".equals(codeString))
260      return V3RoleCode.EXT;
261    if ("AUNT".equals(codeString))
262      return V3RoleCode.AUNT;
263    if ("MAUNT".equals(codeString))
264      return V3RoleCode.MAUNT;
265    if ("PAUNT".equals(codeString))
266      return V3RoleCode.PAUNT;
267    if ("COUSN".equals(codeString))
268      return V3RoleCode.COUSN;
269    if ("MCOUSN".equals(codeString))
270      return V3RoleCode.MCOUSN;
271    if ("PCOUSN".equals(codeString))
272      return V3RoleCode.PCOUSN;
273    if ("GGRPRN".equals(codeString))
274      return V3RoleCode.GGRPRN;
275    if ("GGRFTH".equals(codeString))
276      return V3RoleCode.GGRFTH;
277    if ("MGGRFTH".equals(codeString))
278      return V3RoleCode.MGGRFTH;
279    if ("PGGRFTH".equals(codeString))
280      return V3RoleCode.PGGRFTH;
281    if ("GGRMTH".equals(codeString))
282      return V3RoleCode.GGRMTH;
283    if ("MGGRMTH".equals(codeString))
284      return V3RoleCode.MGGRMTH;
285    if ("PGGRMTH".equals(codeString))
286      return V3RoleCode.PGGRMTH;
287    if ("MGGRPRN".equals(codeString))
288      return V3RoleCode.MGGRPRN;
289    if ("PGGRPRN".equals(codeString))
290      return V3RoleCode.PGGRPRN;
291    if ("GRNDCHILD".equals(codeString))
292      return V3RoleCode.GRNDCHILD;
293    if ("GRNDDAU".equals(codeString))
294      return V3RoleCode.GRNDDAU;
295    if ("GRNDSON".equals(codeString))
296      return V3RoleCode.GRNDSON;
297    if ("GRPRN".equals(codeString))
298      return V3RoleCode.GRPRN;
299    if ("GRFTH".equals(codeString))
300      return V3RoleCode.GRFTH;
301    if ("MGRFTH".equals(codeString))
302      return V3RoleCode.MGRFTH;
303    if ("PGRFTH".equals(codeString))
304      return V3RoleCode.PGRFTH;
305    if ("GRMTH".equals(codeString))
306      return V3RoleCode.GRMTH;
307    if ("MGRMTH".equals(codeString))
308      return V3RoleCode.MGRMTH;
309    if ("PGRMTH".equals(codeString))
310      return V3RoleCode.PGRMTH;
311    if ("MGRPRN".equals(codeString))
312      return V3RoleCode.MGRPRN;
313    if ("PGRPRN".equals(codeString))
314      return V3RoleCode.PGRPRN;
315    if ("INLAW".equals(codeString))
316      return V3RoleCode.INLAW;
317    if ("CHLDINLAW".equals(codeString))
318      return V3RoleCode.CHLDINLAW;
319    if ("DAUINLAW".equals(codeString))
320      return V3RoleCode.DAUINLAW;
321    if ("SONINLAW".equals(codeString))
322      return V3RoleCode.SONINLAW;
323    if ("PRNINLAW".equals(codeString))
324      return V3RoleCode.PRNINLAW;
325    if ("FTHINLAW".equals(codeString))
326      return V3RoleCode.FTHINLAW;
327    if ("MTHINLAW".equals(codeString))
328      return V3RoleCode.MTHINLAW;
329    if ("SIBINLAW".equals(codeString))
330      return V3RoleCode.SIBINLAW;
331    if ("BROINLAW".equals(codeString))
332      return V3RoleCode.BROINLAW;
333    if ("SISINLAW".equals(codeString))
334      return V3RoleCode.SISINLAW;
335    if ("NIENEPH".equals(codeString))
336      return V3RoleCode.NIENEPH;
337    if ("NEPHEW".equals(codeString))
338      return V3RoleCode.NEPHEW;
339    if ("NIECE".equals(codeString))
340      return V3RoleCode.NIECE;
341    if ("UNCLE".equals(codeString))
342      return V3RoleCode.UNCLE;
343    if ("MUNCLE".equals(codeString))
344      return V3RoleCode.MUNCLE;
345    if ("PUNCLE".equals(codeString))
346      return V3RoleCode.PUNCLE;
347    if ("PRN".equals(codeString))
348      return V3RoleCode.PRN;
349    if ("ADOPTP".equals(codeString))
350      return V3RoleCode.ADOPTP;
351    if ("ADOPTF".equals(codeString))
352      return V3RoleCode.ADOPTF;
353    if ("ADOPTM".equals(codeString))
354      return V3RoleCode.ADOPTM;
355    if ("FTH".equals(codeString))
356      return V3RoleCode.FTH;
357    if ("FTHFOST".equals(codeString))
358      return V3RoleCode.FTHFOST;
359    if ("NFTH".equals(codeString))
360      return V3RoleCode.NFTH;
361    if ("NFTHF".equals(codeString))
362      return V3RoleCode.NFTHF;
363    if ("STPFTH".equals(codeString))
364      return V3RoleCode.STPFTH;
365    if ("MTH".equals(codeString))
366      return V3RoleCode.MTH;
367    if ("GESTM".equals(codeString))
368      return V3RoleCode.GESTM;
369    if ("MTHFOST".equals(codeString))
370      return V3RoleCode.MTHFOST;
371    if ("NMTH".equals(codeString))
372      return V3RoleCode.NMTH;
373    if ("NMTHF".equals(codeString))
374      return V3RoleCode.NMTHF;
375    if ("STPMTH".equals(codeString))
376      return V3RoleCode.STPMTH;
377    if ("NPRN".equals(codeString))
378      return V3RoleCode.NPRN;
379    if ("PRNFOST".equals(codeString))
380      return V3RoleCode.PRNFOST;
381    if ("STPPRN".equals(codeString))
382      return V3RoleCode.STPPRN;
383    if ("SIB".equals(codeString))
384      return V3RoleCode.SIB;
385    if ("BRO".equals(codeString))
386      return V3RoleCode.BRO;
387    if ("HBRO".equals(codeString))
388      return V3RoleCode.HBRO;
389    if ("NBRO".equals(codeString))
390      return V3RoleCode.NBRO;
391    if ("TWINBRO".equals(codeString))
392      return V3RoleCode.TWINBRO;
393    if ("FTWINBRO".equals(codeString))
394      return V3RoleCode.FTWINBRO;
395    if ("ITWINBRO".equals(codeString))
396      return V3RoleCode.ITWINBRO;
397    if ("STPBRO".equals(codeString))
398      return V3RoleCode.STPBRO;
399    if ("HSIB".equals(codeString))
400      return V3RoleCode.HSIB;
401    if ("HSIS".equals(codeString))
402      return V3RoleCode.HSIS;
403    if ("NSIB".equals(codeString))
404      return V3RoleCode.NSIB;
405    if ("NSIS".equals(codeString))
406      return V3RoleCode.NSIS;
407    if ("TWINSIS".equals(codeString))
408      return V3RoleCode.TWINSIS;
409    if ("FTWINSIS".equals(codeString))
410      return V3RoleCode.FTWINSIS;
411    if ("ITWINSIS".equals(codeString))
412      return V3RoleCode.ITWINSIS;
413    if ("TWIN".equals(codeString))
414      return V3RoleCode.TWIN;
415    if ("FTWIN".equals(codeString))
416      return V3RoleCode.FTWIN;
417    if ("ITWIN".equals(codeString))
418      return V3RoleCode.ITWIN;
419    if ("SIS".equals(codeString))
420      return V3RoleCode.SIS;
421    if ("STPSIS".equals(codeString))
422      return V3RoleCode.STPSIS;
423    if ("STPSIB".equals(codeString))
424      return V3RoleCode.STPSIB;
425    if ("SIGOTHR".equals(codeString))
426      return V3RoleCode.SIGOTHR;
427    if ("DOMPART".equals(codeString))
428      return V3RoleCode.DOMPART;
429    if ("FMRSPS".equals(codeString))
430      return V3RoleCode.FMRSPS;
431    if ("SPS".equals(codeString))
432      return V3RoleCode.SPS;
433    if ("HUSB".equals(codeString))
434      return V3RoleCode.HUSB;
435    if ("WIFE".equals(codeString))
436      return V3RoleCode.WIFE;
437    if ("FRND".equals(codeString))
438      return V3RoleCode.FRND;
439    if ("NBOR".equals(codeString))
440      return V3RoleCode.NBOR;
441    if ("ONESELF".equals(codeString))
442      return V3RoleCode.ONESELF;
443    if ("ROOM".equals(codeString))
444      return V3RoleCode.ROOM;
445    if ("_PolicyOrProgramCoverageRoleType".equals(codeString))
446      return V3RoleCode._POLICYORPROGRAMCOVERAGEROLETYPE;
447    if ("_CoverageRoleType".equals(codeString))
448      return V3RoleCode._COVERAGEROLETYPE;
449    if ("FAMDEP".equals(codeString))
450      return V3RoleCode.FAMDEP;
451    if ("HANDIC".equals(codeString))
452      return V3RoleCode.HANDIC;
453    if ("INJ".equals(codeString))
454      return V3RoleCode.INJ;
455    if ("SELF".equals(codeString))
456      return V3RoleCode.SELF;
457    if ("SPON".equals(codeString))
458      return V3RoleCode.SPON;
459    if ("STUD".equals(codeString))
460      return V3RoleCode.STUD;
461    if ("FSTUD".equals(codeString))
462      return V3RoleCode.FSTUD;
463    if ("PSTUD".equals(codeString))
464      return V3RoleCode.PSTUD;
465    if ("ADOPT".equals(codeString))
466      return V3RoleCode.ADOPT;
467    if ("GCHILD".equals(codeString))
468      return V3RoleCode.GCHILD;
469    if ("GPARNT".equals(codeString))
470      return V3RoleCode.GPARNT;
471    if ("NAT".equals(codeString))
472      return V3RoleCode.NAT;
473    if ("NIENE".equals(codeString))
474      return V3RoleCode.NIENE;
475    if ("PARNT".equals(codeString))
476      return V3RoleCode.PARNT;
477    if ("SPSE".equals(codeString))
478      return V3RoleCode.SPSE;
479    if ("STEP".equals(codeString))
480      return V3RoleCode.STEP;
481    if ("_CoveredPartyRoleType".equals(codeString))
482      return V3RoleCode._COVEREDPARTYROLETYPE;
483    if ("_ClaimantCoveredPartyRoleType".equals(codeString))
484      return V3RoleCode._CLAIMANTCOVEREDPARTYROLETYPE;
485    if ("CRIMEVIC".equals(codeString))
486      return V3RoleCode.CRIMEVIC;
487    if ("INJWKR".equals(codeString))
488      return V3RoleCode.INJWKR;
489    if ("_DependentCoveredPartyRoleType".equals(codeString))
490      return V3RoleCode._DEPENDENTCOVEREDPARTYROLETYPE;
491    if ("COCBEN".equals(codeString))
492      return V3RoleCode.COCBEN;
493    if ("DIFFABL".equals(codeString))
494      return V3RoleCode.DIFFABL;
495    if ("WARD".equals(codeString))
496      return V3RoleCode.WARD;
497    if ("_IndividualInsuredPartyRoleType".equals(codeString))
498      return V3RoleCode._INDIVIDUALINSUREDPARTYROLETYPE;
499    if ("RETIREE".equals(codeString))
500      return V3RoleCode.RETIREE;
501    if ("_ProgramEligiblePartyRoleType".equals(codeString))
502      return V3RoleCode._PROGRAMELIGIBLEPARTYROLETYPE;
503    if ("INDIG".equals(codeString))
504      return V3RoleCode.INDIG;
505    if ("MIL".equals(codeString))
506      return V3RoleCode.MIL;
507    if ("ACTMIL".equals(codeString))
508      return V3RoleCode.ACTMIL;
509    if ("RETMIL".equals(codeString))
510      return V3RoleCode.RETMIL;
511    if ("VET".equals(codeString))
512      return V3RoleCode.VET;
513    if ("_SubscriberCoveredPartyRoleType".equals(codeString))
514      return V3RoleCode._SUBSCRIBERCOVEREDPARTYROLETYPE;
515    if ("_ResearchSubjectRoleBasis".equals(codeString))
516      return V3RoleCode._RESEARCHSUBJECTROLEBASIS;
517    if ("ERL".equals(codeString))
518      return V3RoleCode.ERL;
519    if ("SCN".equals(codeString))
520      return V3RoleCode.SCN;
521    if ("_ServiceDeliveryLocationRoleType".equals(codeString))
522      return V3RoleCode._SERVICEDELIVERYLOCATIONROLETYPE;
523    if ("_DedicatedServiceDeliveryLocationRoleType".equals(codeString))
524      return V3RoleCode._DEDICATEDSERVICEDELIVERYLOCATIONROLETYPE;
525    if ("_DedicatedClinicalLocationRoleType".equals(codeString))
526      return V3RoleCode._DEDICATEDCLINICALLOCATIONROLETYPE;
527    if ("DX".equals(codeString))
528      return V3RoleCode.DX;
529    if ("CVDX".equals(codeString))
530      return V3RoleCode.CVDX;
531    if ("CATH".equals(codeString))
532      return V3RoleCode.CATH;
533    if ("ECHO".equals(codeString))
534      return V3RoleCode.ECHO;
535    if ("GIDX".equals(codeString))
536      return V3RoleCode.GIDX;
537    if ("ENDOS".equals(codeString))
538      return V3RoleCode.ENDOS;
539    if ("RADDX".equals(codeString))
540      return V3RoleCode.RADDX;
541    if ("RADO".equals(codeString))
542      return V3RoleCode.RADO;
543    if ("RNEU".equals(codeString))
544      return V3RoleCode.RNEU;
545    if ("HOSP".equals(codeString))
546      return V3RoleCode.HOSP;
547    if ("CHR".equals(codeString))
548      return V3RoleCode.CHR;
549    if ("GACH".equals(codeString))
550      return V3RoleCode.GACH;
551    if ("MHSP".equals(codeString))
552      return V3RoleCode.MHSP;
553    if ("PSYCHF".equals(codeString))
554      return V3RoleCode.PSYCHF;
555    if ("RH".equals(codeString))
556      return V3RoleCode.RH;
557    if ("RHAT".equals(codeString))
558      return V3RoleCode.RHAT;
559    if ("RHII".equals(codeString))
560      return V3RoleCode.RHII;
561    if ("RHMAD".equals(codeString))
562      return V3RoleCode.RHMAD;
563    if ("RHPI".equals(codeString))
564      return V3RoleCode.RHPI;
565    if ("RHPIH".equals(codeString))
566      return V3RoleCode.RHPIH;
567    if ("RHPIMS".equals(codeString))
568      return V3RoleCode.RHPIMS;
569    if ("RHPIVS".equals(codeString))
570      return V3RoleCode.RHPIVS;
571    if ("RHYAD".equals(codeString))
572      return V3RoleCode.RHYAD;
573    if ("HU".equals(codeString))
574      return V3RoleCode.HU;
575    if ("BMTU".equals(codeString))
576      return V3RoleCode.BMTU;
577    if ("CCU".equals(codeString))
578      return V3RoleCode.CCU;
579    if ("CHEST".equals(codeString))
580      return V3RoleCode.CHEST;
581    if ("EPIL".equals(codeString))
582      return V3RoleCode.EPIL;
583    if ("ER".equals(codeString))
584      return V3RoleCode.ER;
585    if ("ETU".equals(codeString))
586      return V3RoleCode.ETU;
587    if ("HD".equals(codeString))
588      return V3RoleCode.HD;
589    if ("HLAB".equals(codeString))
590      return V3RoleCode.HLAB;
591    if ("INLAB".equals(codeString))
592      return V3RoleCode.INLAB;
593    if ("OUTLAB".equals(codeString))
594      return V3RoleCode.OUTLAB;
595    if ("HRAD".equals(codeString))
596      return V3RoleCode.HRAD;
597    if ("HUSCS".equals(codeString))
598      return V3RoleCode.HUSCS;
599    if ("ICU".equals(codeString))
600      return V3RoleCode.ICU;
601    if ("PEDICU".equals(codeString))
602      return V3RoleCode.PEDICU;
603    if ("PEDNICU".equals(codeString))
604      return V3RoleCode.PEDNICU;
605    if ("INPHARM".equals(codeString))
606      return V3RoleCode.INPHARM;
607    if ("MBL".equals(codeString))
608      return V3RoleCode.MBL;
609    if ("NCCS".equals(codeString))
610      return V3RoleCode.NCCS;
611    if ("NS".equals(codeString))
612      return V3RoleCode.NS;
613    if ("OUTPHARM".equals(codeString))
614      return V3RoleCode.OUTPHARM;
615    if ("PEDU".equals(codeString))
616      return V3RoleCode.PEDU;
617    if ("PHU".equals(codeString))
618      return V3RoleCode.PHU;
619    if ("RHU".equals(codeString))
620      return V3RoleCode.RHU;
621    if ("SLEEP".equals(codeString))
622      return V3RoleCode.SLEEP;
623    if ("NCCF".equals(codeString))
624      return V3RoleCode.NCCF;
625    if ("SNF".equals(codeString))
626      return V3RoleCode.SNF;
627    if ("OF".equals(codeString))
628      return V3RoleCode.OF;
629    if ("ALL".equals(codeString))
630      return V3RoleCode.ALL;
631    if ("AMPUT".equals(codeString))
632      return V3RoleCode.AMPUT;
633    if ("BMTC".equals(codeString))
634      return V3RoleCode.BMTC;
635    if ("BREAST".equals(codeString))
636      return V3RoleCode.BREAST;
637    if ("CANC".equals(codeString))
638      return V3RoleCode.CANC;
639    if ("CAPC".equals(codeString))
640      return V3RoleCode.CAPC;
641    if ("CARD".equals(codeString))
642      return V3RoleCode.CARD;
643    if ("PEDCARD".equals(codeString))
644      return V3RoleCode.PEDCARD;
645    if ("COAG".equals(codeString))
646      return V3RoleCode.COAG;
647    if ("CRS".equals(codeString))
648      return V3RoleCode.CRS;
649    if ("DERM".equals(codeString))
650      return V3RoleCode.DERM;
651    if ("ENDO".equals(codeString))
652      return V3RoleCode.ENDO;
653    if ("PEDE".equals(codeString))
654      return V3RoleCode.PEDE;
655    if ("ENT".equals(codeString))
656      return V3RoleCode.ENT;
657    if ("FMC".equals(codeString))
658      return V3RoleCode.FMC;
659    if ("GI".equals(codeString))
660      return V3RoleCode.GI;
661    if ("PEDGI".equals(codeString))
662      return V3RoleCode.PEDGI;
663    if ("GIM".equals(codeString))
664      return V3RoleCode.GIM;
665    if ("GYN".equals(codeString))
666      return V3RoleCode.GYN;
667    if ("HEM".equals(codeString))
668      return V3RoleCode.HEM;
669    if ("PEDHEM".equals(codeString))
670      return V3RoleCode.PEDHEM;
671    if ("HTN".equals(codeString))
672      return V3RoleCode.HTN;
673    if ("IEC".equals(codeString))
674      return V3RoleCode.IEC;
675    if ("INFD".equals(codeString))
676      return V3RoleCode.INFD;
677    if ("PEDID".equals(codeString))
678      return V3RoleCode.PEDID;
679    if ("INV".equals(codeString))
680      return V3RoleCode.INV;
681    if ("LYMPH".equals(codeString))
682      return V3RoleCode.LYMPH;
683    if ("MGEN".equals(codeString))
684      return V3RoleCode.MGEN;
685    if ("NEPH".equals(codeString))
686      return V3RoleCode.NEPH;
687    if ("PEDNEPH".equals(codeString))
688      return V3RoleCode.PEDNEPH;
689    if ("NEUR".equals(codeString))
690      return V3RoleCode.NEUR;
691    if ("OB".equals(codeString))
692      return V3RoleCode.OB;
693    if ("OMS".equals(codeString))
694      return V3RoleCode.OMS;
695    if ("ONCL".equals(codeString))
696      return V3RoleCode.ONCL;
697    if ("PEDHO".equals(codeString))
698      return V3RoleCode.PEDHO;
699    if ("OPH".equals(codeString))
700      return V3RoleCode.OPH;
701    if ("OPTC".equals(codeString))
702      return V3RoleCode.OPTC;
703    if ("ORTHO".equals(codeString))
704      return V3RoleCode.ORTHO;
705    if ("HAND".equals(codeString))
706      return V3RoleCode.HAND;
707    if ("PAINCL".equals(codeString))
708      return V3RoleCode.PAINCL;
709    if ("PC".equals(codeString))
710      return V3RoleCode.PC;
711    if ("PEDC".equals(codeString))
712      return V3RoleCode.PEDC;
713    if ("PEDRHEUM".equals(codeString))
714      return V3RoleCode.PEDRHEUM;
715    if ("POD".equals(codeString))
716      return V3RoleCode.POD;
717    if ("PREV".equals(codeString))
718      return V3RoleCode.PREV;
719    if ("PROCTO".equals(codeString))
720      return V3RoleCode.PROCTO;
721    if ("PROFF".equals(codeString))
722      return V3RoleCode.PROFF;
723    if ("PROS".equals(codeString))
724      return V3RoleCode.PROS;
725    if ("PSI".equals(codeString))
726      return V3RoleCode.PSI;
727    if ("PSY".equals(codeString))
728      return V3RoleCode.PSY;
729    if ("RHEUM".equals(codeString))
730      return V3RoleCode.RHEUM;
731    if ("SPMED".equals(codeString))
732      return V3RoleCode.SPMED;
733    if ("SU".equals(codeString))
734      return V3RoleCode.SU;
735    if ("PLS".equals(codeString))
736      return V3RoleCode.PLS;
737    if ("URO".equals(codeString))
738      return V3RoleCode.URO;
739    if ("TR".equals(codeString))
740      return V3RoleCode.TR;
741    if ("TRAVEL".equals(codeString))
742      return V3RoleCode.TRAVEL;
743    if ("WND".equals(codeString))
744      return V3RoleCode.WND;
745    if ("RTF".equals(codeString))
746      return V3RoleCode.RTF;
747    if ("PRC".equals(codeString))
748      return V3RoleCode.PRC;
749    if ("SURF".equals(codeString))
750      return V3RoleCode.SURF;
751    if ("_DedicatedNonClinicalLocationRoleType".equals(codeString))
752      return V3RoleCode._DEDICATEDNONCLINICALLOCATIONROLETYPE;
753    if ("DADDR".equals(codeString))
754      return V3RoleCode.DADDR;
755    if ("MOBL".equals(codeString))
756      return V3RoleCode.MOBL;
757    if ("AMB".equals(codeString))
758      return V3RoleCode.AMB;
759    if ("PHARM".equals(codeString))
760      return V3RoleCode.PHARM;
761    if ("_IncidentalServiceDeliveryLocationRoleType".equals(codeString))
762      return V3RoleCode._INCIDENTALSERVICEDELIVERYLOCATIONROLETYPE;
763    if ("ACC".equals(codeString))
764      return V3RoleCode.ACC;
765    if ("COMM".equals(codeString))
766      return V3RoleCode.COMM;
767    if ("CSC".equals(codeString))
768      return V3RoleCode.CSC;
769    if ("PTRES".equals(codeString))
770      return V3RoleCode.PTRES;
771    if ("SCHOOL".equals(codeString))
772      return V3RoleCode.SCHOOL;
773    if ("UPC".equals(codeString))
774      return V3RoleCode.UPC;
775    if ("WORK".equals(codeString))
776      return V3RoleCode.WORK;
777    if ("_SpecimenRoleType".equals(codeString))
778      return V3RoleCode._SPECIMENROLETYPE;
779    if ("C".equals(codeString))
780      return V3RoleCode.C;
781    if ("G".equals(codeString))
782      return V3RoleCode.G;
783    if ("L".equals(codeString))
784      return V3RoleCode.L;
785    if ("P".equals(codeString))
786      return V3RoleCode.P;
787    if ("Q".equals(codeString))
788      return V3RoleCode.Q;
789    if ("B".equals(codeString))
790      return V3RoleCode.B;
791    if ("E".equals(codeString))
792      return V3RoleCode.E;
793    if ("F".equals(codeString))
794      return V3RoleCode.F;
795    if ("O".equals(codeString))
796      return V3RoleCode.O;
797    if ("V".equals(codeString))
798      return V3RoleCode.V;
799    if ("R".equals(codeString))
800      return V3RoleCode.R;
801    if ("CLAIM".equals(codeString))
802      return V3RoleCode.CLAIM;
803    if ("communityLaboratory".equals(codeString))
804      return V3RoleCode.COMMUNITYLABORATORY;
805    if ("GT".equals(codeString))
806      return V3RoleCode.GT;
807    if ("homeHealth".equals(codeString))
808      return V3RoleCode.HOMEHEALTH;
809    if ("laboratory".equals(codeString))
810      return V3RoleCode.LABORATORY;
811    if ("pathologist".equals(codeString))
812      return V3RoleCode.PATHOLOGIST;
813    if ("PH".equals(codeString))
814      return V3RoleCode.PH;
815    if ("phlebotomist".equals(codeString))
816      return V3RoleCode.PHLEBOTOMIST;
817    if ("PROG".equals(codeString))
818      return V3RoleCode.PROG;
819    if ("PT".equals(codeString))
820      return V3RoleCode.PT;
821    if ("subject".equals(codeString))
822      return V3RoleCode.SUBJECT;
823    if ("thirdParty".equals(codeString))
824      return V3RoleCode.THIRDPARTY;
825    if ("DEP".equals(codeString))
826      return V3RoleCode.DEP;
827    if ("DEPEN".equals(codeString))
828      return V3RoleCode.DEPEN;
829    if ("FM".equals(codeString))
830      return V3RoleCode.FM;
831    if ("INDIV".equals(codeString))
832      return V3RoleCode.INDIV;
833    if ("NAMED".equals(codeString))
834      return V3RoleCode.NAMED;
835    if ("PSYCHCF".equals(codeString))
836      return V3RoleCode.PSYCHCF;
837    if ("SUBSCR".equals(codeString))
838      return V3RoleCode.SUBSCR;
839    throw new IllegalArgumentException("Unknown V3RoleCode code '"+codeString+"'");
840  }
841
842  public String toCode(V3RoleCode code) {
843       if (code == V3RoleCode.NULL)
844           return null;
845       if (code == V3RoleCode._AFFILIATIONROLETYPE)
846      return "_AffiliationRoleType";
847    if (code == V3RoleCode._AGENTROLETYPE)
848      return "_AgentRoleType";
849    if (code == V3RoleCode.AMENDER)
850      return "AMENDER";
851    if (code == V3RoleCode.CLASSIFIER)
852      return "CLASSIFIER";
853    if (code == V3RoleCode.CONSENTER)
854      return "CONSENTER";
855    if (code == V3RoleCode.CONSWIT)
856      return "CONSWIT";
857    if (code == V3RoleCode.COPART)
858      return "COPART";
859    if (code == V3RoleCode.DECLASSIFIER)
860      return "DECLASSIFIER";
861    if (code == V3RoleCode.DELEGATEE)
862      return "DELEGATEE";
863    if (code == V3RoleCode.DELEGATOR)
864      return "DELEGATOR";
865    if (code == V3RoleCode.DOWNGRDER)
866      return "DOWNGRDER";
867    if (code == V3RoleCode.DRIVCLASSIFIER)
868      return "DRIVCLASSIFIER";
869    if (code == V3RoleCode.GRANTEE)
870      return "GRANTEE";
871    if (code == V3RoleCode.GRANTOR)
872      return "GRANTOR";
873    if (code == V3RoleCode.INTPRTER)
874      return "INTPRTER";
875    if (code == V3RoleCode.REVIEWER)
876      return "REVIEWER";
877    if (code == V3RoleCode.VALIDATOR)
878      return "VALIDATOR";
879    if (code == V3RoleCode._COVERAGESPONSORROLETYPE)
880      return "_CoverageSponsorRoleType";
881    if (code == V3RoleCode.FULLINS)
882      return "FULLINS";
883    if (code == V3RoleCode.SELFINS)
884      return "SELFINS";
885    if (code == V3RoleCode._PAYORROLETYPE)
886      return "_PayorRoleType";
887    if (code == V3RoleCode.ENROLBKR)
888      return "ENROLBKR";
889    if (code == V3RoleCode.TPA)
890      return "TPA";
891    if (code == V3RoleCode.UMO)
892      return "UMO";
893    if (code == V3RoleCode.RESPRSN)
894      return "RESPRSN";
895    if (code == V3RoleCode.EXCEST)
896      return "EXCEST";
897    if (code == V3RoleCode.GUADLTM)
898      return "GUADLTM";
899    if (code == V3RoleCode.GUARD)
900      return "GUARD";
901    if (code == V3RoleCode.POWATT)
902      return "POWATT";
903    if (code == V3RoleCode.DPOWATT)
904      return "DPOWATT";
905    if (code == V3RoleCode.HPOWATT)
906      return "HPOWATT";
907    if (code == V3RoleCode.SPOWATT)
908      return "SPOWATT";
909    if (code == V3RoleCode._ASSIGNEDROLETYPE)
910      return "_AssignedRoleType";
911    if (code == V3RoleCode._ASSIGNEDNONPERSONLIVINGSUBJECTROLETYPE)
912      return "_AssignedNonPersonLivingSubjectRoleType";
913    if (code == V3RoleCode.ASSIST)
914      return "ASSIST";
915    if (code == V3RoleCode.BIOTH)
916      return "BIOTH";
917    if (code == V3RoleCode.ANTIBIOT)
918      return "ANTIBIOT";
919    if (code == V3RoleCode.DEBR)
920      return "DEBR";
921    if (code == V3RoleCode.CCO)
922      return "CCO";
923    if (code == V3RoleCode.SEE)
924      return "SEE";
925    if (code == V3RoleCode.SNIFF)
926      return "SNIFF";
927    if (code == V3RoleCode._CERTIFIEDENTITYTYPE)
928      return "_CertifiedEntityType";
929    if (code == V3RoleCode._CITIZENROLETYPE)
930      return "_CitizenRoleType";
931    if (code == V3RoleCode.CAS)
932      return "CAS";
933    if (code == V3RoleCode.CASM)
934      return "CASM";
935    if (code == V3RoleCode.CN)
936      return "CN";
937    if (code == V3RoleCode.CNRP)
938      return "CNRP";
939    if (code == V3RoleCode.CNRPM)
940      return "CNRPM";
941    if (code == V3RoleCode.CPCA)
942      return "CPCA";
943    if (code == V3RoleCode.CRP)
944      return "CRP";
945    if (code == V3RoleCode.CRPM)
946      return "CRPM";
947    if (code == V3RoleCode._CONTACTROLETYPE)
948      return "_ContactRoleType";
949    if (code == V3RoleCode._ADMINISTRATIVECONTACTROLETYPE)
950      return "_AdministrativeContactRoleType";
951    if (code == V3RoleCode.BILL)
952      return "BILL";
953    if (code == V3RoleCode.ORG)
954      return "ORG";
955    if (code == V3RoleCode.PAYOR)
956      return "PAYOR";
957    if (code == V3RoleCode.ECON)
958      return "ECON";
959    if (code == V3RoleCode.NOK)
960      return "NOK";
961    if (code == V3RoleCode._IDENTIFIEDENTITYTYPE)
962      return "_IdentifiedEntityType";
963    if (code == V3RoleCode._LOCATIONIDENTIFIEDENTITYROLECODE)
964      return "_LocationIdentifiedEntityRoleCode";
965    if (code == V3RoleCode.ACHFID)
966      return "ACHFID";
967    if (code == V3RoleCode.JURID)
968      return "JURID";
969    if (code == V3RoleCode.LOCHFID)
970      return "LOCHFID";
971    if (code == V3RoleCode._LIVINGSUBJECTPRODUCTIONCLASS)
972      return "_LivingSubjectProductionClass";
973    if (code == V3RoleCode.BF)
974      return "BF";
975    if (code == V3RoleCode.BL)
976      return "BL";
977    if (code == V3RoleCode.BR)
978      return "BR";
979    if (code == V3RoleCode.CO)
980      return "CO";
981    if (code == V3RoleCode.DA)
982      return "DA";
983    if (code == V3RoleCode.DR)
984      return "DR";
985    if (code == V3RoleCode.DU)
986      return "DU";
987    if (code == V3RoleCode.FI)
988      return "FI";
989    if (code == V3RoleCode.LY)
990      return "LY";
991    if (code == V3RoleCode.MT)
992      return "MT";
993    if (code == V3RoleCode.MU)
994      return "MU";
995    if (code == V3RoleCode.PL)
996      return "PL";
997    if (code == V3RoleCode.RC)
998      return "RC";
999    if (code == V3RoleCode.SH)
1000      return "SH";
1001    if (code == V3RoleCode.VL)
1002      return "VL";
1003    if (code == V3RoleCode.WL)
1004      return "WL";
1005    if (code == V3RoleCode.WO)
1006      return "WO";
1007    if (code == V3RoleCode._MEDICATIONGENERALIZATIONROLETYPE)
1008      return "_MedicationGeneralizationRoleType";
1009    if (code == V3RoleCode.DC)
1010      return "DC";
1011    if (code == V3RoleCode.GD)
1012      return "GD";
1013    if (code == V3RoleCode.GDF)
1014      return "GDF";
1015    if (code == V3RoleCode.GDS)
1016      return "GDS";
1017    if (code == V3RoleCode.GDSF)
1018      return "GDSF";
1019    if (code == V3RoleCode.MGDSF)
1020      return "MGDSF";
1021    if (code == V3RoleCode._MEMBERROLETYPE)
1022      return "_MemberRoleType";
1023    if (code == V3RoleCode.TRB)
1024      return "TRB";
1025    if (code == V3RoleCode._PERSONALRELATIONSHIPROLETYPE)
1026      return "_PersonalRelationshipRoleType";
1027    if (code == V3RoleCode.FAMMEMB)
1028      return "FAMMEMB";
1029    if (code == V3RoleCode.CHILD)
1030      return "CHILD";
1031    if (code == V3RoleCode.CHLDADOPT)
1032      return "CHLDADOPT";
1033    if (code == V3RoleCode.DAUADOPT)
1034      return "DAUADOPT";
1035    if (code == V3RoleCode.SONADOPT)
1036      return "SONADOPT";
1037    if (code == V3RoleCode.CHLDFOST)
1038      return "CHLDFOST";
1039    if (code == V3RoleCode.DAUFOST)
1040      return "DAUFOST";
1041    if (code == V3RoleCode.SONFOST)
1042      return "SONFOST";
1043    if (code == V3RoleCode.DAUC)
1044      return "DAUC";
1045    if (code == V3RoleCode.DAU)
1046      return "DAU";
1047    if (code == V3RoleCode.STPDAU)
1048      return "STPDAU";
1049    if (code == V3RoleCode.NCHILD)
1050      return "NCHILD";
1051    if (code == V3RoleCode.SON)
1052      return "SON";
1053    if (code == V3RoleCode.SONC)
1054      return "SONC";
1055    if (code == V3RoleCode.STPSON)
1056      return "STPSON";
1057    if (code == V3RoleCode.STPCHLD)
1058      return "STPCHLD";
1059    if (code == V3RoleCode.EXT)
1060      return "EXT";
1061    if (code == V3RoleCode.AUNT)
1062      return "AUNT";
1063    if (code == V3RoleCode.MAUNT)
1064      return "MAUNT";
1065    if (code == V3RoleCode.PAUNT)
1066      return "PAUNT";
1067    if (code == V3RoleCode.COUSN)
1068      return "COUSN";
1069    if (code == V3RoleCode.MCOUSN)
1070      return "MCOUSN";
1071    if (code == V3RoleCode.PCOUSN)
1072      return "PCOUSN";
1073    if (code == V3RoleCode.GGRPRN)
1074      return "GGRPRN";
1075    if (code == V3RoleCode.GGRFTH)
1076      return "GGRFTH";
1077    if (code == V3RoleCode.MGGRFTH)
1078      return "MGGRFTH";
1079    if (code == V3RoleCode.PGGRFTH)
1080      return "PGGRFTH";
1081    if (code == V3RoleCode.GGRMTH)
1082      return "GGRMTH";
1083    if (code == V3RoleCode.MGGRMTH)
1084      return "MGGRMTH";
1085    if (code == V3RoleCode.PGGRMTH)
1086      return "PGGRMTH";
1087    if (code == V3RoleCode.MGGRPRN)
1088      return "MGGRPRN";
1089    if (code == V3RoleCode.PGGRPRN)
1090      return "PGGRPRN";
1091    if (code == V3RoleCode.GRNDCHILD)
1092      return "GRNDCHILD";
1093    if (code == V3RoleCode.GRNDDAU)
1094      return "GRNDDAU";
1095    if (code == V3RoleCode.GRNDSON)
1096      return "GRNDSON";
1097    if (code == V3RoleCode.GRPRN)
1098      return "GRPRN";
1099    if (code == V3RoleCode.GRFTH)
1100      return "GRFTH";
1101    if (code == V3RoleCode.MGRFTH)
1102      return "MGRFTH";
1103    if (code == V3RoleCode.PGRFTH)
1104      return "PGRFTH";
1105    if (code == V3RoleCode.GRMTH)
1106      return "GRMTH";
1107    if (code == V3RoleCode.MGRMTH)
1108      return "MGRMTH";
1109    if (code == V3RoleCode.PGRMTH)
1110      return "PGRMTH";
1111    if (code == V3RoleCode.MGRPRN)
1112      return "MGRPRN";
1113    if (code == V3RoleCode.PGRPRN)
1114      return "PGRPRN";
1115    if (code == V3RoleCode.INLAW)
1116      return "INLAW";
1117    if (code == V3RoleCode.CHLDINLAW)
1118      return "CHLDINLAW";
1119    if (code == V3RoleCode.DAUINLAW)
1120      return "DAUINLAW";
1121    if (code == V3RoleCode.SONINLAW)
1122      return "SONINLAW";
1123    if (code == V3RoleCode.PRNINLAW)
1124      return "PRNINLAW";
1125    if (code == V3RoleCode.FTHINLAW)
1126      return "FTHINLAW";
1127    if (code == V3RoleCode.MTHINLAW)
1128      return "MTHINLAW";
1129    if (code == V3RoleCode.SIBINLAW)
1130      return "SIBINLAW";
1131    if (code == V3RoleCode.BROINLAW)
1132      return "BROINLAW";
1133    if (code == V3RoleCode.SISINLAW)
1134      return "SISINLAW";
1135    if (code == V3RoleCode.NIENEPH)
1136      return "NIENEPH";
1137    if (code == V3RoleCode.NEPHEW)
1138      return "NEPHEW";
1139    if (code == V3RoleCode.NIECE)
1140      return "NIECE";
1141    if (code == V3RoleCode.UNCLE)
1142      return "UNCLE";
1143    if (code == V3RoleCode.MUNCLE)
1144      return "MUNCLE";
1145    if (code == V3RoleCode.PUNCLE)
1146      return "PUNCLE";
1147    if (code == V3RoleCode.PRN)
1148      return "PRN";
1149    if (code == V3RoleCode.ADOPTP)
1150      return "ADOPTP";
1151    if (code == V3RoleCode.ADOPTF)
1152      return "ADOPTF";
1153    if (code == V3RoleCode.ADOPTM)
1154      return "ADOPTM";
1155    if (code == V3RoleCode.FTH)
1156      return "FTH";
1157    if (code == V3RoleCode.FTHFOST)
1158      return "FTHFOST";
1159    if (code == V3RoleCode.NFTH)
1160      return "NFTH";
1161    if (code == V3RoleCode.NFTHF)
1162      return "NFTHF";
1163    if (code == V3RoleCode.STPFTH)
1164      return "STPFTH";
1165    if (code == V3RoleCode.MTH)
1166      return "MTH";
1167    if (code == V3RoleCode.GESTM)
1168      return "GESTM";
1169    if (code == V3RoleCode.MTHFOST)
1170      return "MTHFOST";
1171    if (code == V3RoleCode.NMTH)
1172      return "NMTH";
1173    if (code == V3RoleCode.NMTHF)
1174      return "NMTHF";
1175    if (code == V3RoleCode.STPMTH)
1176      return "STPMTH";
1177    if (code == V3RoleCode.NPRN)
1178      return "NPRN";
1179    if (code == V3RoleCode.PRNFOST)
1180      return "PRNFOST";
1181    if (code == V3RoleCode.STPPRN)
1182      return "STPPRN";
1183    if (code == V3RoleCode.SIB)
1184      return "SIB";
1185    if (code == V3RoleCode.BRO)
1186      return "BRO";
1187    if (code == V3RoleCode.HBRO)
1188      return "HBRO";
1189    if (code == V3RoleCode.NBRO)
1190      return "NBRO";
1191    if (code == V3RoleCode.TWINBRO)
1192      return "TWINBRO";
1193    if (code == V3RoleCode.FTWINBRO)
1194      return "FTWINBRO";
1195    if (code == V3RoleCode.ITWINBRO)
1196      return "ITWINBRO";
1197    if (code == V3RoleCode.STPBRO)
1198      return "STPBRO";
1199    if (code == V3RoleCode.HSIB)
1200      return "HSIB";
1201    if (code == V3RoleCode.HSIS)
1202      return "HSIS";
1203    if (code == V3RoleCode.NSIB)
1204      return "NSIB";
1205    if (code == V3RoleCode.NSIS)
1206      return "NSIS";
1207    if (code == V3RoleCode.TWINSIS)
1208      return "TWINSIS";
1209    if (code == V3RoleCode.FTWINSIS)
1210      return "FTWINSIS";
1211    if (code == V3RoleCode.ITWINSIS)
1212      return "ITWINSIS";
1213    if (code == V3RoleCode.TWIN)
1214      return "TWIN";
1215    if (code == V3RoleCode.FTWIN)
1216      return "FTWIN";
1217    if (code == V3RoleCode.ITWIN)
1218      return "ITWIN";
1219    if (code == V3RoleCode.SIS)
1220      return "SIS";
1221    if (code == V3RoleCode.STPSIS)
1222      return "STPSIS";
1223    if (code == V3RoleCode.STPSIB)
1224      return "STPSIB";
1225    if (code == V3RoleCode.SIGOTHR)
1226      return "SIGOTHR";
1227    if (code == V3RoleCode.DOMPART)
1228      return "DOMPART";
1229    if (code == V3RoleCode.FMRSPS)
1230      return "FMRSPS";
1231    if (code == V3RoleCode.SPS)
1232      return "SPS";
1233    if (code == V3RoleCode.HUSB)
1234      return "HUSB";
1235    if (code == V3RoleCode.WIFE)
1236      return "WIFE";
1237    if (code == V3RoleCode.FRND)
1238      return "FRND";
1239    if (code == V3RoleCode.NBOR)
1240      return "NBOR";
1241    if (code == V3RoleCode.ONESELF)
1242      return "ONESELF";
1243    if (code == V3RoleCode.ROOM)
1244      return "ROOM";
1245    if (code == V3RoleCode._POLICYORPROGRAMCOVERAGEROLETYPE)
1246      return "_PolicyOrProgramCoverageRoleType";
1247    if (code == V3RoleCode._COVERAGEROLETYPE)
1248      return "_CoverageRoleType";
1249    if (code == V3RoleCode.FAMDEP)
1250      return "FAMDEP";
1251    if (code == V3RoleCode.HANDIC)
1252      return "HANDIC";
1253    if (code == V3RoleCode.INJ)
1254      return "INJ";
1255    if (code == V3RoleCode.SELF)
1256      return "SELF";
1257    if (code == V3RoleCode.SPON)
1258      return "SPON";
1259    if (code == V3RoleCode.STUD)
1260      return "STUD";
1261    if (code == V3RoleCode.FSTUD)
1262      return "FSTUD";
1263    if (code == V3RoleCode.PSTUD)
1264      return "PSTUD";
1265    if (code == V3RoleCode.ADOPT)
1266      return "ADOPT";
1267    if (code == V3RoleCode.GCHILD)
1268      return "GCHILD";
1269    if (code == V3RoleCode.GPARNT)
1270      return "GPARNT";
1271    if (code == V3RoleCode.NAT)
1272      return "NAT";
1273    if (code == V3RoleCode.NIENE)
1274      return "NIENE";
1275    if (code == V3RoleCode.PARNT)
1276      return "PARNT";
1277    if (code == V3RoleCode.SPSE)
1278      return "SPSE";
1279    if (code == V3RoleCode.STEP)
1280      return "STEP";
1281    if (code == V3RoleCode._COVEREDPARTYROLETYPE)
1282      return "_CoveredPartyRoleType";
1283    if (code == V3RoleCode._CLAIMANTCOVEREDPARTYROLETYPE)
1284      return "_ClaimantCoveredPartyRoleType";
1285    if (code == V3RoleCode.CRIMEVIC)
1286      return "CRIMEVIC";
1287    if (code == V3RoleCode.INJWKR)
1288      return "INJWKR";
1289    if (code == V3RoleCode._DEPENDENTCOVEREDPARTYROLETYPE)
1290      return "_DependentCoveredPartyRoleType";
1291    if (code == V3RoleCode.COCBEN)
1292      return "COCBEN";
1293    if (code == V3RoleCode.DIFFABL)
1294      return "DIFFABL";
1295    if (code == V3RoleCode.WARD)
1296      return "WARD";
1297    if (code == V3RoleCode._INDIVIDUALINSUREDPARTYROLETYPE)
1298      return "_IndividualInsuredPartyRoleType";
1299    if (code == V3RoleCode.RETIREE)
1300      return "RETIREE";
1301    if (code == V3RoleCode._PROGRAMELIGIBLEPARTYROLETYPE)
1302      return "_ProgramEligiblePartyRoleType";
1303    if (code == V3RoleCode.INDIG)
1304      return "INDIG";
1305    if (code == V3RoleCode.MIL)
1306      return "MIL";
1307    if (code == V3RoleCode.ACTMIL)
1308      return "ACTMIL";
1309    if (code == V3RoleCode.RETMIL)
1310      return "RETMIL";
1311    if (code == V3RoleCode.VET)
1312      return "VET";
1313    if (code == V3RoleCode._SUBSCRIBERCOVEREDPARTYROLETYPE)
1314      return "_SubscriberCoveredPartyRoleType";
1315    if (code == V3RoleCode._RESEARCHSUBJECTROLEBASIS)
1316      return "_ResearchSubjectRoleBasis";
1317    if (code == V3RoleCode.ERL)
1318      return "ERL";
1319    if (code == V3RoleCode.SCN)
1320      return "SCN";
1321    if (code == V3RoleCode._SERVICEDELIVERYLOCATIONROLETYPE)
1322      return "_ServiceDeliveryLocationRoleType";
1323    if (code == V3RoleCode._DEDICATEDSERVICEDELIVERYLOCATIONROLETYPE)
1324      return "_DedicatedServiceDeliveryLocationRoleType";
1325    if (code == V3RoleCode._DEDICATEDCLINICALLOCATIONROLETYPE)
1326      return "_DedicatedClinicalLocationRoleType";
1327    if (code == V3RoleCode.DX)
1328      return "DX";
1329    if (code == V3RoleCode.CVDX)
1330      return "CVDX";
1331    if (code == V3RoleCode.CATH)
1332      return "CATH";
1333    if (code == V3RoleCode.ECHO)
1334      return "ECHO";
1335    if (code == V3RoleCode.GIDX)
1336      return "GIDX";
1337    if (code == V3RoleCode.ENDOS)
1338      return "ENDOS";
1339    if (code == V3RoleCode.RADDX)
1340      return "RADDX";
1341    if (code == V3RoleCode.RADO)
1342      return "RADO";
1343    if (code == V3RoleCode.RNEU)
1344      return "RNEU";
1345    if (code == V3RoleCode.HOSP)
1346      return "HOSP";
1347    if (code == V3RoleCode.CHR)
1348      return "CHR";
1349    if (code == V3RoleCode.GACH)
1350      return "GACH";
1351    if (code == V3RoleCode.MHSP)
1352      return "MHSP";
1353    if (code == V3RoleCode.PSYCHF)
1354      return "PSYCHF";
1355    if (code == V3RoleCode.RH)
1356      return "RH";
1357    if (code == V3RoleCode.RHAT)
1358      return "RHAT";
1359    if (code == V3RoleCode.RHII)
1360      return "RHII";
1361    if (code == V3RoleCode.RHMAD)
1362      return "RHMAD";
1363    if (code == V3RoleCode.RHPI)
1364      return "RHPI";
1365    if (code == V3RoleCode.RHPIH)
1366      return "RHPIH";
1367    if (code == V3RoleCode.RHPIMS)
1368      return "RHPIMS";
1369    if (code == V3RoleCode.RHPIVS)
1370      return "RHPIVS";
1371    if (code == V3RoleCode.RHYAD)
1372      return "RHYAD";
1373    if (code == V3RoleCode.HU)
1374      return "HU";
1375    if (code == V3RoleCode.BMTU)
1376      return "BMTU";
1377    if (code == V3RoleCode.CCU)
1378      return "CCU";
1379    if (code == V3RoleCode.CHEST)
1380      return "CHEST";
1381    if (code == V3RoleCode.EPIL)
1382      return "EPIL";
1383    if (code == V3RoleCode.ER)
1384      return "ER";
1385    if (code == V3RoleCode.ETU)
1386      return "ETU";
1387    if (code == V3RoleCode.HD)
1388      return "HD";
1389    if (code == V3RoleCode.HLAB)
1390      return "HLAB";
1391    if (code == V3RoleCode.INLAB)
1392      return "INLAB";
1393    if (code == V3RoleCode.OUTLAB)
1394      return "OUTLAB";
1395    if (code == V3RoleCode.HRAD)
1396      return "HRAD";
1397    if (code == V3RoleCode.HUSCS)
1398      return "HUSCS";
1399    if (code == V3RoleCode.ICU)
1400      return "ICU";
1401    if (code == V3RoleCode.PEDICU)
1402      return "PEDICU";
1403    if (code == V3RoleCode.PEDNICU)
1404      return "PEDNICU";
1405    if (code == V3RoleCode.INPHARM)
1406      return "INPHARM";
1407    if (code == V3RoleCode.MBL)
1408      return "MBL";
1409    if (code == V3RoleCode.NCCS)
1410      return "NCCS";
1411    if (code == V3RoleCode.NS)
1412      return "NS";
1413    if (code == V3RoleCode.OUTPHARM)
1414      return "OUTPHARM";
1415    if (code == V3RoleCode.PEDU)
1416      return "PEDU";
1417    if (code == V3RoleCode.PHU)
1418      return "PHU";
1419    if (code == V3RoleCode.RHU)
1420      return "RHU";
1421    if (code == V3RoleCode.SLEEP)
1422      return "SLEEP";
1423    if (code == V3RoleCode.NCCF)
1424      return "NCCF";
1425    if (code == V3RoleCode.SNF)
1426      return "SNF";
1427    if (code == V3RoleCode.OF)
1428      return "OF";
1429    if (code == V3RoleCode.ALL)
1430      return "ALL";
1431    if (code == V3RoleCode.AMPUT)
1432      return "AMPUT";
1433    if (code == V3RoleCode.BMTC)
1434      return "BMTC";
1435    if (code == V3RoleCode.BREAST)
1436      return "BREAST";
1437    if (code == V3RoleCode.CANC)
1438      return "CANC";
1439    if (code == V3RoleCode.CAPC)
1440      return "CAPC";
1441    if (code == V3RoleCode.CARD)
1442      return "CARD";
1443    if (code == V3RoleCode.PEDCARD)
1444      return "PEDCARD";
1445    if (code == V3RoleCode.COAG)
1446      return "COAG";
1447    if (code == V3RoleCode.CRS)
1448      return "CRS";
1449    if (code == V3RoleCode.DERM)
1450      return "DERM";
1451    if (code == V3RoleCode.ENDO)
1452      return "ENDO";
1453    if (code == V3RoleCode.PEDE)
1454      return "PEDE";
1455    if (code == V3RoleCode.ENT)
1456      return "ENT";
1457    if (code == V3RoleCode.FMC)
1458      return "FMC";
1459    if (code == V3RoleCode.GI)
1460      return "GI";
1461    if (code == V3RoleCode.PEDGI)
1462      return "PEDGI";
1463    if (code == V3RoleCode.GIM)
1464      return "GIM";
1465    if (code == V3RoleCode.GYN)
1466      return "GYN";
1467    if (code == V3RoleCode.HEM)
1468      return "HEM";
1469    if (code == V3RoleCode.PEDHEM)
1470      return "PEDHEM";
1471    if (code == V3RoleCode.HTN)
1472      return "HTN";
1473    if (code == V3RoleCode.IEC)
1474      return "IEC";
1475    if (code == V3RoleCode.INFD)
1476      return "INFD";
1477    if (code == V3RoleCode.PEDID)
1478      return "PEDID";
1479    if (code == V3RoleCode.INV)
1480      return "INV";
1481    if (code == V3RoleCode.LYMPH)
1482      return "LYMPH";
1483    if (code == V3RoleCode.MGEN)
1484      return "MGEN";
1485    if (code == V3RoleCode.NEPH)
1486      return "NEPH";
1487    if (code == V3RoleCode.PEDNEPH)
1488      return "PEDNEPH";
1489    if (code == V3RoleCode.NEUR)
1490      return "NEUR";
1491    if (code == V3RoleCode.OB)
1492      return "OB";
1493    if (code == V3RoleCode.OMS)
1494      return "OMS";
1495    if (code == V3RoleCode.ONCL)
1496      return "ONCL";
1497    if (code == V3RoleCode.PEDHO)
1498      return "PEDHO";
1499    if (code == V3RoleCode.OPH)
1500      return "OPH";
1501    if (code == V3RoleCode.OPTC)
1502      return "OPTC";
1503    if (code == V3RoleCode.ORTHO)
1504      return "ORTHO";
1505    if (code == V3RoleCode.HAND)
1506      return "HAND";
1507    if (code == V3RoleCode.PAINCL)
1508      return "PAINCL";
1509    if (code == V3RoleCode.PC)
1510      return "PC";
1511    if (code == V3RoleCode.PEDC)
1512      return "PEDC";
1513    if (code == V3RoleCode.PEDRHEUM)
1514      return "PEDRHEUM";
1515    if (code == V3RoleCode.POD)
1516      return "POD";
1517    if (code == V3RoleCode.PREV)
1518      return "PREV";
1519    if (code == V3RoleCode.PROCTO)
1520      return "PROCTO";
1521    if (code == V3RoleCode.PROFF)
1522      return "PROFF";
1523    if (code == V3RoleCode.PROS)
1524      return "PROS";
1525    if (code == V3RoleCode.PSI)
1526      return "PSI";
1527    if (code == V3RoleCode.PSY)
1528      return "PSY";
1529    if (code == V3RoleCode.RHEUM)
1530      return "RHEUM";
1531    if (code == V3RoleCode.SPMED)
1532      return "SPMED";
1533    if (code == V3RoleCode.SU)
1534      return "SU";
1535    if (code == V3RoleCode.PLS)
1536      return "PLS";
1537    if (code == V3RoleCode.URO)
1538      return "URO";
1539    if (code == V3RoleCode.TR)
1540      return "TR";
1541    if (code == V3RoleCode.TRAVEL)
1542      return "TRAVEL";
1543    if (code == V3RoleCode.WND)
1544      return "WND";
1545    if (code == V3RoleCode.RTF)
1546      return "RTF";
1547    if (code == V3RoleCode.PRC)
1548      return "PRC";
1549    if (code == V3RoleCode.SURF)
1550      return "SURF";
1551    if (code == V3RoleCode._DEDICATEDNONCLINICALLOCATIONROLETYPE)
1552      return "_DedicatedNonClinicalLocationRoleType";
1553    if (code == V3RoleCode.DADDR)
1554      return "DADDR";
1555    if (code == V3RoleCode.MOBL)
1556      return "MOBL";
1557    if (code == V3RoleCode.AMB)
1558      return "AMB";
1559    if (code == V3RoleCode.PHARM)
1560      return "PHARM";
1561    if (code == V3RoleCode._INCIDENTALSERVICEDELIVERYLOCATIONROLETYPE)
1562      return "_IncidentalServiceDeliveryLocationRoleType";
1563    if (code == V3RoleCode.ACC)
1564      return "ACC";
1565    if (code == V3RoleCode.COMM)
1566      return "COMM";
1567    if (code == V3RoleCode.CSC)
1568      return "CSC";
1569    if (code == V3RoleCode.PTRES)
1570      return "PTRES";
1571    if (code == V3RoleCode.SCHOOL)
1572      return "SCHOOL";
1573    if (code == V3RoleCode.UPC)
1574      return "UPC";
1575    if (code == V3RoleCode.WORK)
1576      return "WORK";
1577    if (code == V3RoleCode._SPECIMENROLETYPE)
1578      return "_SpecimenRoleType";
1579    if (code == V3RoleCode.C)
1580      return "C";
1581    if (code == V3RoleCode.G)
1582      return "G";
1583    if (code == V3RoleCode.L)
1584      return "L";
1585    if (code == V3RoleCode.P)
1586      return "P";
1587    if (code == V3RoleCode.Q)
1588      return "Q";
1589    if (code == V3RoleCode.B)
1590      return "B";
1591    if (code == V3RoleCode.E)
1592      return "E";
1593    if (code == V3RoleCode.F)
1594      return "F";
1595    if (code == V3RoleCode.O)
1596      return "O";
1597    if (code == V3RoleCode.V)
1598      return "V";
1599    if (code == V3RoleCode.R)
1600      return "R";
1601    if (code == V3RoleCode.CLAIM)
1602      return "CLAIM";
1603    if (code == V3RoleCode.COMMUNITYLABORATORY)
1604      return "communityLaboratory";
1605    if (code == V3RoleCode.GT)
1606      return "GT";
1607    if (code == V3RoleCode.HOMEHEALTH)
1608      return "homeHealth";
1609    if (code == V3RoleCode.LABORATORY)
1610      return "laboratory";
1611    if (code == V3RoleCode.PATHOLOGIST)
1612      return "pathologist";
1613    if (code == V3RoleCode.PH)
1614      return "PH";
1615    if (code == V3RoleCode.PHLEBOTOMIST)
1616      return "phlebotomist";
1617    if (code == V3RoleCode.PROG)
1618      return "PROG";
1619    if (code == V3RoleCode.PT)
1620      return "PT";
1621    if (code == V3RoleCode.SUBJECT)
1622      return "subject";
1623    if (code == V3RoleCode.THIRDPARTY)
1624      return "thirdParty";
1625    if (code == V3RoleCode.DEP)
1626      return "DEP";
1627    if (code == V3RoleCode.DEPEN)
1628      return "DEPEN";
1629    if (code == V3RoleCode.FM)
1630      return "FM";
1631    if (code == V3RoleCode.INDIV)
1632      return "INDIV";
1633    if (code == V3RoleCode.NAMED)
1634      return "NAMED";
1635    if (code == V3RoleCode.PSYCHCF)
1636      return "PSYCHCF";
1637    if (code == V3RoleCode.SUBSCR)
1638      return "SUBSCR";
1639    return "?";
1640   }
1641
1642    public String toSystem(V3RoleCode code) {
1643      return code.getSystem();
1644      }
1645
1646}