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._AFFILIATIONROLETYPE)
844      return "_AffiliationRoleType";
845    if (code == V3RoleCode._AGENTROLETYPE)
846      return "_AgentRoleType";
847    if (code == V3RoleCode.AMENDER)
848      return "AMENDER";
849    if (code == V3RoleCode.CLASSIFIER)
850      return "CLASSIFIER";
851    if (code == V3RoleCode.CONSENTER)
852      return "CONSENTER";
853    if (code == V3RoleCode.CONSWIT)
854      return "CONSWIT";
855    if (code == V3RoleCode.COPART)
856      return "COPART";
857    if (code == V3RoleCode.DECLASSIFIER)
858      return "DECLASSIFIER";
859    if (code == V3RoleCode.DELEGATEE)
860      return "DELEGATEE";
861    if (code == V3RoleCode.DELEGATOR)
862      return "DELEGATOR";
863    if (code == V3RoleCode.DOWNGRDER)
864      return "DOWNGRDER";
865    if (code == V3RoleCode.DRIVCLASSIFIER)
866      return "DRIVCLASSIFIER";
867    if (code == V3RoleCode.GRANTEE)
868      return "GRANTEE";
869    if (code == V3RoleCode.GRANTOR)
870      return "GRANTOR";
871    if (code == V3RoleCode.INTPRTER)
872      return "INTPRTER";
873    if (code == V3RoleCode.REVIEWER)
874      return "REVIEWER";
875    if (code == V3RoleCode.VALIDATOR)
876      return "VALIDATOR";
877    if (code == V3RoleCode._COVERAGESPONSORROLETYPE)
878      return "_CoverageSponsorRoleType";
879    if (code == V3RoleCode.FULLINS)
880      return "FULLINS";
881    if (code == V3RoleCode.SELFINS)
882      return "SELFINS";
883    if (code == V3RoleCode._PAYORROLETYPE)
884      return "_PayorRoleType";
885    if (code == V3RoleCode.ENROLBKR)
886      return "ENROLBKR";
887    if (code == V3RoleCode.TPA)
888      return "TPA";
889    if (code == V3RoleCode.UMO)
890      return "UMO";
891    if (code == V3RoleCode.RESPRSN)
892      return "RESPRSN";
893    if (code == V3RoleCode.EXCEST)
894      return "EXCEST";
895    if (code == V3RoleCode.GUADLTM)
896      return "GUADLTM";
897    if (code == V3RoleCode.GUARD)
898      return "GUARD";
899    if (code == V3RoleCode.POWATT)
900      return "POWATT";
901    if (code == V3RoleCode.DPOWATT)
902      return "DPOWATT";
903    if (code == V3RoleCode.HPOWATT)
904      return "HPOWATT";
905    if (code == V3RoleCode.SPOWATT)
906      return "SPOWATT";
907    if (code == V3RoleCode._ASSIGNEDROLETYPE)
908      return "_AssignedRoleType";
909    if (code == V3RoleCode._ASSIGNEDNONPERSONLIVINGSUBJECTROLETYPE)
910      return "_AssignedNonPersonLivingSubjectRoleType";
911    if (code == V3RoleCode.ASSIST)
912      return "ASSIST";
913    if (code == V3RoleCode.BIOTH)
914      return "BIOTH";
915    if (code == V3RoleCode.ANTIBIOT)
916      return "ANTIBIOT";
917    if (code == V3RoleCode.DEBR)
918      return "DEBR";
919    if (code == V3RoleCode.CCO)
920      return "CCO";
921    if (code == V3RoleCode.SEE)
922      return "SEE";
923    if (code == V3RoleCode.SNIFF)
924      return "SNIFF";
925    if (code == V3RoleCode._CERTIFIEDENTITYTYPE)
926      return "_CertifiedEntityType";
927    if (code == V3RoleCode._CITIZENROLETYPE)
928      return "_CitizenRoleType";
929    if (code == V3RoleCode.CAS)
930      return "CAS";
931    if (code == V3RoleCode.CASM)
932      return "CASM";
933    if (code == V3RoleCode.CN)
934      return "CN";
935    if (code == V3RoleCode.CNRP)
936      return "CNRP";
937    if (code == V3RoleCode.CNRPM)
938      return "CNRPM";
939    if (code == V3RoleCode.CPCA)
940      return "CPCA";
941    if (code == V3RoleCode.CRP)
942      return "CRP";
943    if (code == V3RoleCode.CRPM)
944      return "CRPM";
945    if (code == V3RoleCode._CONTACTROLETYPE)
946      return "_ContactRoleType";
947    if (code == V3RoleCode._ADMINISTRATIVECONTACTROLETYPE)
948      return "_AdministrativeContactRoleType";
949    if (code == V3RoleCode.BILL)
950      return "BILL";
951    if (code == V3RoleCode.ORG)
952      return "ORG";
953    if (code == V3RoleCode.PAYOR)
954      return "PAYOR";
955    if (code == V3RoleCode.ECON)
956      return "ECON";
957    if (code == V3RoleCode.NOK)
958      return "NOK";
959    if (code == V3RoleCode._IDENTIFIEDENTITYTYPE)
960      return "_IdentifiedEntityType";
961    if (code == V3RoleCode._LOCATIONIDENTIFIEDENTITYROLECODE)
962      return "_LocationIdentifiedEntityRoleCode";
963    if (code == V3RoleCode.ACHFID)
964      return "ACHFID";
965    if (code == V3RoleCode.JURID)
966      return "JURID";
967    if (code == V3RoleCode.LOCHFID)
968      return "LOCHFID";
969    if (code == V3RoleCode._LIVINGSUBJECTPRODUCTIONCLASS)
970      return "_LivingSubjectProductionClass";
971    if (code == V3RoleCode.BF)
972      return "BF";
973    if (code == V3RoleCode.BL)
974      return "BL";
975    if (code == V3RoleCode.BR)
976      return "BR";
977    if (code == V3RoleCode.CO)
978      return "CO";
979    if (code == V3RoleCode.DA)
980      return "DA";
981    if (code == V3RoleCode.DR)
982      return "DR";
983    if (code == V3RoleCode.DU)
984      return "DU";
985    if (code == V3RoleCode.FI)
986      return "FI";
987    if (code == V3RoleCode.LY)
988      return "LY";
989    if (code == V3RoleCode.MT)
990      return "MT";
991    if (code == V3RoleCode.MU)
992      return "MU";
993    if (code == V3RoleCode.PL)
994      return "PL";
995    if (code == V3RoleCode.RC)
996      return "RC";
997    if (code == V3RoleCode.SH)
998      return "SH";
999    if (code == V3RoleCode.VL)
1000      return "VL";
1001    if (code == V3RoleCode.WL)
1002      return "WL";
1003    if (code == V3RoleCode.WO)
1004      return "WO";
1005    if (code == V3RoleCode._MEDICATIONGENERALIZATIONROLETYPE)
1006      return "_MedicationGeneralizationRoleType";
1007    if (code == V3RoleCode.DC)
1008      return "DC";
1009    if (code == V3RoleCode.GD)
1010      return "GD";
1011    if (code == V3RoleCode.GDF)
1012      return "GDF";
1013    if (code == V3RoleCode.GDS)
1014      return "GDS";
1015    if (code == V3RoleCode.GDSF)
1016      return "GDSF";
1017    if (code == V3RoleCode.MGDSF)
1018      return "MGDSF";
1019    if (code == V3RoleCode._MEMBERROLETYPE)
1020      return "_MemberRoleType";
1021    if (code == V3RoleCode.TRB)
1022      return "TRB";
1023    if (code == V3RoleCode._PERSONALRELATIONSHIPROLETYPE)
1024      return "_PersonalRelationshipRoleType";
1025    if (code == V3RoleCode.FAMMEMB)
1026      return "FAMMEMB";
1027    if (code == V3RoleCode.CHILD)
1028      return "CHILD";
1029    if (code == V3RoleCode.CHLDADOPT)
1030      return "CHLDADOPT";
1031    if (code == V3RoleCode.DAUADOPT)
1032      return "DAUADOPT";
1033    if (code == V3RoleCode.SONADOPT)
1034      return "SONADOPT";
1035    if (code == V3RoleCode.CHLDFOST)
1036      return "CHLDFOST";
1037    if (code == V3RoleCode.DAUFOST)
1038      return "DAUFOST";
1039    if (code == V3RoleCode.SONFOST)
1040      return "SONFOST";
1041    if (code == V3RoleCode.DAUC)
1042      return "DAUC";
1043    if (code == V3RoleCode.DAU)
1044      return "DAU";
1045    if (code == V3RoleCode.STPDAU)
1046      return "STPDAU";
1047    if (code == V3RoleCode.NCHILD)
1048      return "NCHILD";
1049    if (code == V3RoleCode.SON)
1050      return "SON";
1051    if (code == V3RoleCode.SONC)
1052      return "SONC";
1053    if (code == V3RoleCode.STPSON)
1054      return "STPSON";
1055    if (code == V3RoleCode.STPCHLD)
1056      return "STPCHLD";
1057    if (code == V3RoleCode.EXT)
1058      return "EXT";
1059    if (code == V3RoleCode.AUNT)
1060      return "AUNT";
1061    if (code == V3RoleCode.MAUNT)
1062      return "MAUNT";
1063    if (code == V3RoleCode.PAUNT)
1064      return "PAUNT";
1065    if (code == V3RoleCode.COUSN)
1066      return "COUSN";
1067    if (code == V3RoleCode.MCOUSN)
1068      return "MCOUSN";
1069    if (code == V3RoleCode.PCOUSN)
1070      return "PCOUSN";
1071    if (code == V3RoleCode.GGRPRN)
1072      return "GGRPRN";
1073    if (code == V3RoleCode.GGRFTH)
1074      return "GGRFTH";
1075    if (code == V3RoleCode.MGGRFTH)
1076      return "MGGRFTH";
1077    if (code == V3RoleCode.PGGRFTH)
1078      return "PGGRFTH";
1079    if (code == V3RoleCode.GGRMTH)
1080      return "GGRMTH";
1081    if (code == V3RoleCode.MGGRMTH)
1082      return "MGGRMTH";
1083    if (code == V3RoleCode.PGGRMTH)
1084      return "PGGRMTH";
1085    if (code == V3RoleCode.MGGRPRN)
1086      return "MGGRPRN";
1087    if (code == V3RoleCode.PGGRPRN)
1088      return "PGGRPRN";
1089    if (code == V3RoleCode.GRNDCHILD)
1090      return "GRNDCHILD";
1091    if (code == V3RoleCode.GRNDDAU)
1092      return "GRNDDAU";
1093    if (code == V3RoleCode.GRNDSON)
1094      return "GRNDSON";
1095    if (code == V3RoleCode.GRPRN)
1096      return "GRPRN";
1097    if (code == V3RoleCode.GRFTH)
1098      return "GRFTH";
1099    if (code == V3RoleCode.MGRFTH)
1100      return "MGRFTH";
1101    if (code == V3RoleCode.PGRFTH)
1102      return "PGRFTH";
1103    if (code == V3RoleCode.GRMTH)
1104      return "GRMTH";
1105    if (code == V3RoleCode.MGRMTH)
1106      return "MGRMTH";
1107    if (code == V3RoleCode.PGRMTH)
1108      return "PGRMTH";
1109    if (code == V3RoleCode.MGRPRN)
1110      return "MGRPRN";
1111    if (code == V3RoleCode.PGRPRN)
1112      return "PGRPRN";
1113    if (code == V3RoleCode.INLAW)
1114      return "INLAW";
1115    if (code == V3RoleCode.CHLDINLAW)
1116      return "CHLDINLAW";
1117    if (code == V3RoleCode.DAUINLAW)
1118      return "DAUINLAW";
1119    if (code == V3RoleCode.SONINLAW)
1120      return "SONINLAW";
1121    if (code == V3RoleCode.PRNINLAW)
1122      return "PRNINLAW";
1123    if (code == V3RoleCode.FTHINLAW)
1124      return "FTHINLAW";
1125    if (code == V3RoleCode.MTHINLAW)
1126      return "MTHINLAW";
1127    if (code == V3RoleCode.SIBINLAW)
1128      return "SIBINLAW";
1129    if (code == V3RoleCode.BROINLAW)
1130      return "BROINLAW";
1131    if (code == V3RoleCode.SISINLAW)
1132      return "SISINLAW";
1133    if (code == V3RoleCode.NIENEPH)
1134      return "NIENEPH";
1135    if (code == V3RoleCode.NEPHEW)
1136      return "NEPHEW";
1137    if (code == V3RoleCode.NIECE)
1138      return "NIECE";
1139    if (code == V3RoleCode.UNCLE)
1140      return "UNCLE";
1141    if (code == V3RoleCode.MUNCLE)
1142      return "MUNCLE";
1143    if (code == V3RoleCode.PUNCLE)
1144      return "PUNCLE";
1145    if (code == V3RoleCode.PRN)
1146      return "PRN";
1147    if (code == V3RoleCode.ADOPTP)
1148      return "ADOPTP";
1149    if (code == V3RoleCode.ADOPTF)
1150      return "ADOPTF";
1151    if (code == V3RoleCode.ADOPTM)
1152      return "ADOPTM";
1153    if (code == V3RoleCode.FTH)
1154      return "FTH";
1155    if (code == V3RoleCode.FTHFOST)
1156      return "FTHFOST";
1157    if (code == V3RoleCode.NFTH)
1158      return "NFTH";
1159    if (code == V3RoleCode.NFTHF)
1160      return "NFTHF";
1161    if (code == V3RoleCode.STPFTH)
1162      return "STPFTH";
1163    if (code == V3RoleCode.MTH)
1164      return "MTH";
1165    if (code == V3RoleCode.GESTM)
1166      return "GESTM";
1167    if (code == V3RoleCode.MTHFOST)
1168      return "MTHFOST";
1169    if (code == V3RoleCode.NMTH)
1170      return "NMTH";
1171    if (code == V3RoleCode.NMTHF)
1172      return "NMTHF";
1173    if (code == V3RoleCode.STPMTH)
1174      return "STPMTH";
1175    if (code == V3RoleCode.NPRN)
1176      return "NPRN";
1177    if (code == V3RoleCode.PRNFOST)
1178      return "PRNFOST";
1179    if (code == V3RoleCode.STPPRN)
1180      return "STPPRN";
1181    if (code == V3RoleCode.SIB)
1182      return "SIB";
1183    if (code == V3RoleCode.BRO)
1184      return "BRO";
1185    if (code == V3RoleCode.HBRO)
1186      return "HBRO";
1187    if (code == V3RoleCode.NBRO)
1188      return "NBRO";
1189    if (code == V3RoleCode.TWINBRO)
1190      return "TWINBRO";
1191    if (code == V3RoleCode.FTWINBRO)
1192      return "FTWINBRO";
1193    if (code == V3RoleCode.ITWINBRO)
1194      return "ITWINBRO";
1195    if (code == V3RoleCode.STPBRO)
1196      return "STPBRO";
1197    if (code == V3RoleCode.HSIB)
1198      return "HSIB";
1199    if (code == V3RoleCode.HSIS)
1200      return "HSIS";
1201    if (code == V3RoleCode.NSIB)
1202      return "NSIB";
1203    if (code == V3RoleCode.NSIS)
1204      return "NSIS";
1205    if (code == V3RoleCode.TWINSIS)
1206      return "TWINSIS";
1207    if (code == V3RoleCode.FTWINSIS)
1208      return "FTWINSIS";
1209    if (code == V3RoleCode.ITWINSIS)
1210      return "ITWINSIS";
1211    if (code == V3RoleCode.TWIN)
1212      return "TWIN";
1213    if (code == V3RoleCode.FTWIN)
1214      return "FTWIN";
1215    if (code == V3RoleCode.ITWIN)
1216      return "ITWIN";
1217    if (code == V3RoleCode.SIS)
1218      return "SIS";
1219    if (code == V3RoleCode.STPSIS)
1220      return "STPSIS";
1221    if (code == V3RoleCode.STPSIB)
1222      return "STPSIB";
1223    if (code == V3RoleCode.SIGOTHR)
1224      return "SIGOTHR";
1225    if (code == V3RoleCode.DOMPART)
1226      return "DOMPART";
1227    if (code == V3RoleCode.FMRSPS)
1228      return "FMRSPS";
1229    if (code == V3RoleCode.SPS)
1230      return "SPS";
1231    if (code == V3RoleCode.HUSB)
1232      return "HUSB";
1233    if (code == V3RoleCode.WIFE)
1234      return "WIFE";
1235    if (code == V3RoleCode.FRND)
1236      return "FRND";
1237    if (code == V3RoleCode.NBOR)
1238      return "NBOR";
1239    if (code == V3RoleCode.ONESELF)
1240      return "ONESELF";
1241    if (code == V3RoleCode.ROOM)
1242      return "ROOM";
1243    if (code == V3RoleCode._POLICYORPROGRAMCOVERAGEROLETYPE)
1244      return "_PolicyOrProgramCoverageRoleType";
1245    if (code == V3RoleCode._COVERAGEROLETYPE)
1246      return "_CoverageRoleType";
1247    if (code == V3RoleCode.FAMDEP)
1248      return "FAMDEP";
1249    if (code == V3RoleCode.HANDIC)
1250      return "HANDIC";
1251    if (code == V3RoleCode.INJ)
1252      return "INJ";
1253    if (code == V3RoleCode.SELF)
1254      return "SELF";
1255    if (code == V3RoleCode.SPON)
1256      return "SPON";
1257    if (code == V3RoleCode.STUD)
1258      return "STUD";
1259    if (code == V3RoleCode.FSTUD)
1260      return "FSTUD";
1261    if (code == V3RoleCode.PSTUD)
1262      return "PSTUD";
1263    if (code == V3RoleCode.ADOPT)
1264      return "ADOPT";
1265    if (code == V3RoleCode.GCHILD)
1266      return "GCHILD";
1267    if (code == V3RoleCode.GPARNT)
1268      return "GPARNT";
1269    if (code == V3RoleCode.NAT)
1270      return "NAT";
1271    if (code == V3RoleCode.NIENE)
1272      return "NIENE";
1273    if (code == V3RoleCode.PARNT)
1274      return "PARNT";
1275    if (code == V3RoleCode.SPSE)
1276      return "SPSE";
1277    if (code == V3RoleCode.STEP)
1278      return "STEP";
1279    if (code == V3RoleCode._COVEREDPARTYROLETYPE)
1280      return "_CoveredPartyRoleType";
1281    if (code == V3RoleCode._CLAIMANTCOVEREDPARTYROLETYPE)
1282      return "_ClaimantCoveredPartyRoleType";
1283    if (code == V3RoleCode.CRIMEVIC)
1284      return "CRIMEVIC";
1285    if (code == V3RoleCode.INJWKR)
1286      return "INJWKR";
1287    if (code == V3RoleCode._DEPENDENTCOVEREDPARTYROLETYPE)
1288      return "_DependentCoveredPartyRoleType";
1289    if (code == V3RoleCode.COCBEN)
1290      return "COCBEN";
1291    if (code == V3RoleCode.DIFFABL)
1292      return "DIFFABL";
1293    if (code == V3RoleCode.WARD)
1294      return "WARD";
1295    if (code == V3RoleCode._INDIVIDUALINSUREDPARTYROLETYPE)
1296      return "_IndividualInsuredPartyRoleType";
1297    if (code == V3RoleCode.RETIREE)
1298      return "RETIREE";
1299    if (code == V3RoleCode._PROGRAMELIGIBLEPARTYROLETYPE)
1300      return "_ProgramEligiblePartyRoleType";
1301    if (code == V3RoleCode.INDIG)
1302      return "INDIG";
1303    if (code == V3RoleCode.MIL)
1304      return "MIL";
1305    if (code == V3RoleCode.ACTMIL)
1306      return "ACTMIL";
1307    if (code == V3RoleCode.RETMIL)
1308      return "RETMIL";
1309    if (code == V3RoleCode.VET)
1310      return "VET";
1311    if (code == V3RoleCode._SUBSCRIBERCOVEREDPARTYROLETYPE)
1312      return "_SubscriberCoveredPartyRoleType";
1313    if (code == V3RoleCode._RESEARCHSUBJECTROLEBASIS)
1314      return "_ResearchSubjectRoleBasis";
1315    if (code == V3RoleCode.ERL)
1316      return "ERL";
1317    if (code == V3RoleCode.SCN)
1318      return "SCN";
1319    if (code == V3RoleCode._SERVICEDELIVERYLOCATIONROLETYPE)
1320      return "_ServiceDeliveryLocationRoleType";
1321    if (code == V3RoleCode._DEDICATEDSERVICEDELIVERYLOCATIONROLETYPE)
1322      return "_DedicatedServiceDeliveryLocationRoleType";
1323    if (code == V3RoleCode._DEDICATEDCLINICALLOCATIONROLETYPE)
1324      return "_DedicatedClinicalLocationRoleType";
1325    if (code == V3RoleCode.DX)
1326      return "DX";
1327    if (code == V3RoleCode.CVDX)
1328      return "CVDX";
1329    if (code == V3RoleCode.CATH)
1330      return "CATH";
1331    if (code == V3RoleCode.ECHO)
1332      return "ECHO";
1333    if (code == V3RoleCode.GIDX)
1334      return "GIDX";
1335    if (code == V3RoleCode.ENDOS)
1336      return "ENDOS";
1337    if (code == V3RoleCode.RADDX)
1338      return "RADDX";
1339    if (code == V3RoleCode.RADO)
1340      return "RADO";
1341    if (code == V3RoleCode.RNEU)
1342      return "RNEU";
1343    if (code == V3RoleCode.HOSP)
1344      return "HOSP";
1345    if (code == V3RoleCode.CHR)
1346      return "CHR";
1347    if (code == V3RoleCode.GACH)
1348      return "GACH";
1349    if (code == V3RoleCode.MHSP)
1350      return "MHSP";
1351    if (code == V3RoleCode.PSYCHF)
1352      return "PSYCHF";
1353    if (code == V3RoleCode.RH)
1354      return "RH";
1355    if (code == V3RoleCode.RHAT)
1356      return "RHAT";
1357    if (code == V3RoleCode.RHII)
1358      return "RHII";
1359    if (code == V3RoleCode.RHMAD)
1360      return "RHMAD";
1361    if (code == V3RoleCode.RHPI)
1362      return "RHPI";
1363    if (code == V3RoleCode.RHPIH)
1364      return "RHPIH";
1365    if (code == V3RoleCode.RHPIMS)
1366      return "RHPIMS";
1367    if (code == V3RoleCode.RHPIVS)
1368      return "RHPIVS";
1369    if (code == V3RoleCode.RHYAD)
1370      return "RHYAD";
1371    if (code == V3RoleCode.HU)
1372      return "HU";
1373    if (code == V3RoleCode.BMTU)
1374      return "BMTU";
1375    if (code == V3RoleCode.CCU)
1376      return "CCU";
1377    if (code == V3RoleCode.CHEST)
1378      return "CHEST";
1379    if (code == V3RoleCode.EPIL)
1380      return "EPIL";
1381    if (code == V3RoleCode.ER)
1382      return "ER";
1383    if (code == V3RoleCode.ETU)
1384      return "ETU";
1385    if (code == V3RoleCode.HD)
1386      return "HD";
1387    if (code == V3RoleCode.HLAB)
1388      return "HLAB";
1389    if (code == V3RoleCode.INLAB)
1390      return "INLAB";
1391    if (code == V3RoleCode.OUTLAB)
1392      return "OUTLAB";
1393    if (code == V3RoleCode.HRAD)
1394      return "HRAD";
1395    if (code == V3RoleCode.HUSCS)
1396      return "HUSCS";
1397    if (code == V3RoleCode.ICU)
1398      return "ICU";
1399    if (code == V3RoleCode.PEDICU)
1400      return "PEDICU";
1401    if (code == V3RoleCode.PEDNICU)
1402      return "PEDNICU";
1403    if (code == V3RoleCode.INPHARM)
1404      return "INPHARM";
1405    if (code == V3RoleCode.MBL)
1406      return "MBL";
1407    if (code == V3RoleCode.NCCS)
1408      return "NCCS";
1409    if (code == V3RoleCode.NS)
1410      return "NS";
1411    if (code == V3RoleCode.OUTPHARM)
1412      return "OUTPHARM";
1413    if (code == V3RoleCode.PEDU)
1414      return "PEDU";
1415    if (code == V3RoleCode.PHU)
1416      return "PHU";
1417    if (code == V3RoleCode.RHU)
1418      return "RHU";
1419    if (code == V3RoleCode.SLEEP)
1420      return "SLEEP";
1421    if (code == V3RoleCode.NCCF)
1422      return "NCCF";
1423    if (code == V3RoleCode.SNF)
1424      return "SNF";
1425    if (code == V3RoleCode.OF)
1426      return "OF";
1427    if (code == V3RoleCode.ALL)
1428      return "ALL";
1429    if (code == V3RoleCode.AMPUT)
1430      return "AMPUT";
1431    if (code == V3RoleCode.BMTC)
1432      return "BMTC";
1433    if (code == V3RoleCode.BREAST)
1434      return "BREAST";
1435    if (code == V3RoleCode.CANC)
1436      return "CANC";
1437    if (code == V3RoleCode.CAPC)
1438      return "CAPC";
1439    if (code == V3RoleCode.CARD)
1440      return "CARD";
1441    if (code == V3RoleCode.PEDCARD)
1442      return "PEDCARD";
1443    if (code == V3RoleCode.COAG)
1444      return "COAG";
1445    if (code == V3RoleCode.CRS)
1446      return "CRS";
1447    if (code == V3RoleCode.DERM)
1448      return "DERM";
1449    if (code == V3RoleCode.ENDO)
1450      return "ENDO";
1451    if (code == V3RoleCode.PEDE)
1452      return "PEDE";
1453    if (code == V3RoleCode.ENT)
1454      return "ENT";
1455    if (code == V3RoleCode.FMC)
1456      return "FMC";
1457    if (code == V3RoleCode.GI)
1458      return "GI";
1459    if (code == V3RoleCode.PEDGI)
1460      return "PEDGI";
1461    if (code == V3RoleCode.GIM)
1462      return "GIM";
1463    if (code == V3RoleCode.GYN)
1464      return "GYN";
1465    if (code == V3RoleCode.HEM)
1466      return "HEM";
1467    if (code == V3RoleCode.PEDHEM)
1468      return "PEDHEM";
1469    if (code == V3RoleCode.HTN)
1470      return "HTN";
1471    if (code == V3RoleCode.IEC)
1472      return "IEC";
1473    if (code == V3RoleCode.INFD)
1474      return "INFD";
1475    if (code == V3RoleCode.PEDID)
1476      return "PEDID";
1477    if (code == V3RoleCode.INV)
1478      return "INV";
1479    if (code == V3RoleCode.LYMPH)
1480      return "LYMPH";
1481    if (code == V3RoleCode.MGEN)
1482      return "MGEN";
1483    if (code == V3RoleCode.NEPH)
1484      return "NEPH";
1485    if (code == V3RoleCode.PEDNEPH)
1486      return "PEDNEPH";
1487    if (code == V3RoleCode.NEUR)
1488      return "NEUR";
1489    if (code == V3RoleCode.OB)
1490      return "OB";
1491    if (code == V3RoleCode.OMS)
1492      return "OMS";
1493    if (code == V3RoleCode.ONCL)
1494      return "ONCL";
1495    if (code == V3RoleCode.PEDHO)
1496      return "PEDHO";
1497    if (code == V3RoleCode.OPH)
1498      return "OPH";
1499    if (code == V3RoleCode.OPTC)
1500      return "OPTC";
1501    if (code == V3RoleCode.ORTHO)
1502      return "ORTHO";
1503    if (code == V3RoleCode.HAND)
1504      return "HAND";
1505    if (code == V3RoleCode.PAINCL)
1506      return "PAINCL";
1507    if (code == V3RoleCode.PC)
1508      return "PC";
1509    if (code == V3RoleCode.PEDC)
1510      return "PEDC";
1511    if (code == V3RoleCode.PEDRHEUM)
1512      return "PEDRHEUM";
1513    if (code == V3RoleCode.POD)
1514      return "POD";
1515    if (code == V3RoleCode.PREV)
1516      return "PREV";
1517    if (code == V3RoleCode.PROCTO)
1518      return "PROCTO";
1519    if (code == V3RoleCode.PROFF)
1520      return "PROFF";
1521    if (code == V3RoleCode.PROS)
1522      return "PROS";
1523    if (code == V3RoleCode.PSI)
1524      return "PSI";
1525    if (code == V3RoleCode.PSY)
1526      return "PSY";
1527    if (code == V3RoleCode.RHEUM)
1528      return "RHEUM";
1529    if (code == V3RoleCode.SPMED)
1530      return "SPMED";
1531    if (code == V3RoleCode.SU)
1532      return "SU";
1533    if (code == V3RoleCode.PLS)
1534      return "PLS";
1535    if (code == V3RoleCode.URO)
1536      return "URO";
1537    if (code == V3RoleCode.TR)
1538      return "TR";
1539    if (code == V3RoleCode.TRAVEL)
1540      return "TRAVEL";
1541    if (code == V3RoleCode.WND)
1542      return "WND";
1543    if (code == V3RoleCode.RTF)
1544      return "RTF";
1545    if (code == V3RoleCode.PRC)
1546      return "PRC";
1547    if (code == V3RoleCode.SURF)
1548      return "SURF";
1549    if (code == V3RoleCode._DEDICATEDNONCLINICALLOCATIONROLETYPE)
1550      return "_DedicatedNonClinicalLocationRoleType";
1551    if (code == V3RoleCode.DADDR)
1552      return "DADDR";
1553    if (code == V3RoleCode.MOBL)
1554      return "MOBL";
1555    if (code == V3RoleCode.AMB)
1556      return "AMB";
1557    if (code == V3RoleCode.PHARM)
1558      return "PHARM";
1559    if (code == V3RoleCode._INCIDENTALSERVICEDELIVERYLOCATIONROLETYPE)
1560      return "_IncidentalServiceDeliveryLocationRoleType";
1561    if (code == V3RoleCode.ACC)
1562      return "ACC";
1563    if (code == V3RoleCode.COMM)
1564      return "COMM";
1565    if (code == V3RoleCode.CSC)
1566      return "CSC";
1567    if (code == V3RoleCode.PTRES)
1568      return "PTRES";
1569    if (code == V3RoleCode.SCHOOL)
1570      return "SCHOOL";
1571    if (code == V3RoleCode.UPC)
1572      return "UPC";
1573    if (code == V3RoleCode.WORK)
1574      return "WORK";
1575    if (code == V3RoleCode._SPECIMENROLETYPE)
1576      return "_SpecimenRoleType";
1577    if (code == V3RoleCode.C)
1578      return "C";
1579    if (code == V3RoleCode.G)
1580      return "G";
1581    if (code == V3RoleCode.L)
1582      return "L";
1583    if (code == V3RoleCode.P)
1584      return "P";
1585    if (code == V3RoleCode.Q)
1586      return "Q";
1587    if (code == V3RoleCode.B)
1588      return "B";
1589    if (code == V3RoleCode.E)
1590      return "E";
1591    if (code == V3RoleCode.F)
1592      return "F";
1593    if (code == V3RoleCode.O)
1594      return "O";
1595    if (code == V3RoleCode.V)
1596      return "V";
1597    if (code == V3RoleCode.R)
1598      return "R";
1599    if (code == V3RoleCode.CLAIM)
1600      return "CLAIM";
1601    if (code == V3RoleCode.COMMUNITYLABORATORY)
1602      return "communityLaboratory";
1603    if (code == V3RoleCode.GT)
1604      return "GT";
1605    if (code == V3RoleCode.HOMEHEALTH)
1606      return "homeHealth";
1607    if (code == V3RoleCode.LABORATORY)
1608      return "laboratory";
1609    if (code == V3RoleCode.PATHOLOGIST)
1610      return "pathologist";
1611    if (code == V3RoleCode.PH)
1612      return "PH";
1613    if (code == V3RoleCode.PHLEBOTOMIST)
1614      return "phlebotomist";
1615    if (code == V3RoleCode.PROG)
1616      return "PROG";
1617    if (code == V3RoleCode.PT)
1618      return "PT";
1619    if (code == V3RoleCode.SUBJECT)
1620      return "subject";
1621    if (code == V3RoleCode.THIRDPARTY)
1622      return "thirdParty";
1623    if (code == V3RoleCode.DEP)
1624      return "DEP";
1625    if (code == V3RoleCode.DEPEN)
1626      return "DEPEN";
1627    if (code == V3RoleCode.FM)
1628      return "FM";
1629    if (code == V3RoleCode.INDIV)
1630      return "INDIV";
1631    if (code == V3RoleCode.NAMED)
1632      return "NAMED";
1633    if (code == V3RoleCode.PSYCHCF)
1634      return "PSYCHCF";
1635    if (code == V3RoleCode.SUBSCR)
1636      return "SUBSCR";
1637    return "?";
1638  }
1639
1640    public String toSystem(V3RoleCode code) {
1641      return code.getSystem();
1642      }
1643
1644}