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