001package org.hl7.fhir.r5.model.codesystems;
002
003/*
004 * #%L
005 * org.hl7.fhir.r5
006 * %%
007 * Copyright (C) 2014 - 2019 Health Level 7
008 * %%
009 * Licensed under the Apache License, Version 2.0 (the "License");
010 * you may not use this file except in compliance with the License.
011 * You may obtain a copy of the License at
012 * 
013 *      http://www.apache.org/licenses/LICENSE-2.0
014 * 
015 * Unless required by applicable law or agreed to in writing, software
016 * distributed under the License is distributed on an "AS IS" BASIS,
017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
018 * See the License for the specific language governing permissions and
019 * limitations under the License.
020 * #L%
021 */
022
023/*
024  Copyright (c) 2011+, HL7, Inc.
025  All rights reserved.
026  
027  Redistribution and use in source and binary forms, with or without modification, 
028  are permitted provided that the following conditions are met:
029  
030   * Redistributions of source code must retain the above copyright notice, this 
031     list of conditions and the following disclaimer.
032   * Redistributions in binary form must reproduce the above copyright notice, 
033     this list of conditions and the following disclaimer in the documentation 
034     and/or other materials provided with the distribution.
035   * Neither the name of HL7 nor the names of its contributors may be used to 
036     endorse or promote products derived from this software without specific 
037     prior written permission.
038  
039  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 
040  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
041  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
042  IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 
043  INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 
044  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
045  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
046  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
047  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
048  POSSIBILITY OF SUCH DAMAGE.
049  
050*/
051
052// Generated on Thu, Oct 17, 2019 09:42+1100 for FHIR v4.1.0
053
054
055import org.hl7.fhir.r5.model.EnumFactory;
056
057public class V3EntityCodeEnumFactory implements EnumFactory<V3EntityCode> {
058
059  public V3EntityCode fromCode(String codeString) throws IllegalArgumentException {
060    if (codeString == null || "".equals(codeString))
061      return null;
062    if ("_MaterialEntityClassType".equals(codeString))
063      return V3EntityCode._MATERIALENTITYCLASSTYPE;
064    if ("_ContainerEntityType".equals(codeString))
065      return V3EntityCode._CONTAINERENTITYTYPE;
066    if ("PKG".equals(codeString))
067      return V3EntityCode.PKG;
068    if ("_NonRigidContainerEntityType".equals(codeString))
069      return V3EntityCode._NONRIGIDCONTAINERENTITYTYPE;
070    if ("BAG".equals(codeString))
071      return V3EntityCode.BAG;
072    if ("PACKT".equals(codeString))
073      return V3EntityCode.PACKT;
074    if ("PCH".equals(codeString))
075      return V3EntityCode.PCH;
076    if ("SACH".equals(codeString))
077      return V3EntityCode.SACH;
078    if ("_RigidContainerEntityType".equals(codeString))
079      return V3EntityCode._RIGIDCONTAINERENTITYTYPE;
080    if ("_IndividualPackageEntityType".equals(codeString))
081      return V3EntityCode._INDIVIDUALPACKAGEENTITYTYPE;
082    if ("AMP".equals(codeString))
083      return V3EntityCode.AMP;
084    if ("MINIM".equals(codeString))
085      return V3EntityCode.MINIM;
086    if ("NEBAMP".equals(codeString))
087      return V3EntityCode.NEBAMP;
088    if ("OVUL".equals(codeString))
089      return V3EntityCode.OVUL;
090    if ("_MultiUseContainerEntityType".equals(codeString))
091      return V3EntityCode._MULTIUSECONTAINERENTITYTYPE;
092    if ("BOT".equals(codeString))
093      return V3EntityCode.BOT;
094    if ("BOTA".equals(codeString))
095      return V3EntityCode.BOTA;
096    if ("BOTD".equals(codeString))
097      return V3EntityCode.BOTD;
098    if ("BOTG".equals(codeString))
099      return V3EntityCode.BOTG;
100    if ("BOTP".equals(codeString))
101      return V3EntityCode.BOTP;
102    if ("BOTPLY".equals(codeString))
103      return V3EntityCode.BOTPLY;
104    if ("BOX".equals(codeString))
105      return V3EntityCode.BOX;
106    if ("CAN".equals(codeString))
107      return V3EntityCode.CAN;
108    if ("CART".equals(codeString))
109      return V3EntityCode.CART;
110    if ("CNSTR".equals(codeString))
111      return V3EntityCode.CNSTR;
112    if ("JAR".equals(codeString))
113      return V3EntityCode.JAR;
114    if ("JUG".equals(codeString))
115      return V3EntityCode.JUG;
116    if ("TIN".equals(codeString))
117      return V3EntityCode.TIN;
118    if ("TUB".equals(codeString))
119      return V3EntityCode.TUB;
120    if ("TUBE".equals(codeString))
121      return V3EntityCode.TUBE;
122    if ("VIAL".equals(codeString))
123      return V3EntityCode.VIAL;
124    if ("BLSTRPK".equals(codeString))
125      return V3EntityCode.BLSTRPK;
126    if ("CARD".equals(codeString))
127      return V3EntityCode.CARD;
128    if ("COMPPKG".equals(codeString))
129      return V3EntityCode.COMPPKG;
130    if ("DIALPK".equals(codeString))
131      return V3EntityCode.DIALPK;
132    if ("DISK".equals(codeString))
133      return V3EntityCode.DISK;
134    if ("DOSET".equals(codeString))
135      return V3EntityCode.DOSET;
136    if ("STRIP".equals(codeString))
137      return V3EntityCode.STRIP;
138    if ("KIT".equals(codeString))
139      return V3EntityCode.KIT;
140    if ("SYSTM".equals(codeString))
141      return V3EntityCode.SYSTM;
142    if ("_MedicalDevice".equals(codeString))
143      return V3EntityCode._MEDICALDEVICE;
144    if ("_AccessMedicalDevice".equals(codeString))
145      return V3EntityCode._ACCESSMEDICALDEVICE;
146    if ("LINE".equals(codeString))
147      return V3EntityCode.LINE;
148    if ("IALINE".equals(codeString))
149      return V3EntityCode.IALINE;
150    if ("IVLINE".equals(codeString))
151      return V3EntityCode.IVLINE;
152    if ("_AdministrationMedicalDevice".equals(codeString))
153      return V3EntityCode._ADMINISTRATIONMEDICALDEVICE;
154    if ("_InjectionMedicalDevice".equals(codeString))
155      return V3EntityCode._INJECTIONMEDICALDEVICE;
156    if ("AINJ".equals(codeString))
157      return V3EntityCode.AINJ;
158    if ("PEN".equals(codeString))
159      return V3EntityCode.PEN;
160    if ("SYR".equals(codeString))
161      return V3EntityCode.SYR;
162    if ("APLCTR".equals(codeString))
163      return V3EntityCode.APLCTR;
164    if ("INH".equals(codeString))
165      return V3EntityCode.INH;
166    if ("DSKS".equals(codeString))
167      return V3EntityCode.DSKS;
168    if ("DSKUNH".equals(codeString))
169      return V3EntityCode.DSKUNH;
170    if ("TRBINH".equals(codeString))
171      return V3EntityCode.TRBINH;
172    if ("PMP".equals(codeString))
173      return V3EntityCode.PMP;
174    if ("_SpecimenAdditiveEntity".equals(codeString))
175      return V3EntityCode._SPECIMENADDITIVEENTITY;
176    if ("ACDA".equals(codeString))
177      return V3EntityCode.ACDA;
178    if ("ACDB".equals(codeString))
179      return V3EntityCode.ACDB;
180    if ("ACET".equals(codeString))
181      return V3EntityCode.ACET;
182    if ("AMIES".equals(codeString))
183      return V3EntityCode.AMIES;
184    if ("BACTM".equals(codeString))
185      return V3EntityCode.BACTM;
186    if ("BF10".equals(codeString))
187      return V3EntityCode.BF10;
188    if ("BOR".equals(codeString))
189      return V3EntityCode.BOR;
190    if ("BOUIN".equals(codeString))
191      return V3EntityCode.BOUIN;
192    if ("BSKM".equals(codeString))
193      return V3EntityCode.BSKM;
194    if ("C32".equals(codeString))
195      return V3EntityCode.C32;
196    if ("C38".equals(codeString))
197      return V3EntityCode.C38;
198    if ("CARS".equals(codeString))
199      return V3EntityCode.CARS;
200    if ("CARY".equals(codeString))
201      return V3EntityCode.CARY;
202    if ("CHLTM".equals(codeString))
203      return V3EntityCode.CHLTM;
204    if ("CTAD".equals(codeString))
205      return V3EntityCode.CTAD;
206    if ("EDTK15".equals(codeString))
207      return V3EntityCode.EDTK15;
208    if ("EDTK75".equals(codeString))
209      return V3EntityCode.EDTK75;
210    if ("EDTN".equals(codeString))
211      return V3EntityCode.EDTN;
212    if ("ENT".equals(codeString))
213      return V3EntityCode.ENT;
214    if ("F10".equals(codeString))
215      return V3EntityCode.F10;
216    if ("FDP".equals(codeString))
217      return V3EntityCode.FDP;
218    if ("FL10".equals(codeString))
219      return V3EntityCode.FL10;
220    if ("FL100".equals(codeString))
221      return V3EntityCode.FL100;
222    if ("HCL6".equals(codeString))
223      return V3EntityCode.HCL6;
224    if ("HEPA".equals(codeString))
225      return V3EntityCode.HEPA;
226    if ("HEPL".equals(codeString))
227      return V3EntityCode.HEPL;
228    if ("HEPN".equals(codeString))
229      return V3EntityCode.HEPN;
230    if ("HNO3".equals(codeString))
231      return V3EntityCode.HNO3;
232    if ("JKM".equals(codeString))
233      return V3EntityCode.JKM;
234    if ("KARN".equals(codeString))
235      return V3EntityCode.KARN;
236    if ("KOX".equals(codeString))
237      return V3EntityCode.KOX;
238    if ("LIA".equals(codeString))
239      return V3EntityCode.LIA;
240    if ("M4".equals(codeString))
241      return V3EntityCode.M4;
242    if ("M4RT".equals(codeString))
243      return V3EntityCode.M4RT;
244    if ("M5".equals(codeString))
245      return V3EntityCode.M5;
246    if ("MICHTM".equals(codeString))
247      return V3EntityCode.MICHTM;
248    if ("MMDTM".equals(codeString))
249      return V3EntityCode.MMDTM;
250    if ("NAF".equals(codeString))
251      return V3EntityCode.NAF;
252    if ("NONE".equals(codeString))
253      return V3EntityCode.NONE;
254    if ("PAGE".equals(codeString))
255      return V3EntityCode.PAGE;
256    if ("PHENOL".equals(codeString))
257      return V3EntityCode.PHENOL;
258    if ("PVA".equals(codeString))
259      return V3EntityCode.PVA;
260    if ("RLM".equals(codeString))
261      return V3EntityCode.RLM;
262    if ("SILICA".equals(codeString))
263      return V3EntityCode.SILICA;
264    if ("SPS".equals(codeString))
265      return V3EntityCode.SPS;
266    if ("SST".equals(codeString))
267      return V3EntityCode.SST;
268    if ("STUTM".equals(codeString))
269      return V3EntityCode.STUTM;
270    if ("THROM".equals(codeString))
271      return V3EntityCode.THROM;
272    if ("THYMOL".equals(codeString))
273      return V3EntityCode.THYMOL;
274    if ("THYO".equals(codeString))
275      return V3EntityCode.THYO;
276    if ("TOLU".equals(codeString))
277      return V3EntityCode.TOLU;
278    if ("URETM".equals(codeString))
279      return V3EntityCode.URETM;
280    if ("VIRTM".equals(codeString))
281      return V3EntityCode.VIRTM;
282    if ("WEST".equals(codeString))
283      return V3EntityCode.WEST;
284    if ("BLDPRD".equals(codeString))
285      return V3EntityCode.BLDPRD;
286    if ("VCCNE".equals(codeString))
287      return V3EntityCode.VCCNE;
288    if ("_DrugEntity".equals(codeString))
289      return V3EntityCode._DRUGENTITY;
290    if ("_ClinicalDrug".equals(codeString))
291      return V3EntityCode._CLINICALDRUG;
292    if ("_NonDrugAgentEntity".equals(codeString))
293      return V3EntityCode._NONDRUGAGENTENTITY;
294    if ("NDA01".equals(codeString))
295      return V3EntityCode.NDA01;
296    if ("NDA02".equals(codeString))
297      return V3EntityCode.NDA02;
298    if ("NDA03".equals(codeString))
299      return V3EntityCode.NDA03;
300    if ("NDA04".equals(codeString))
301      return V3EntityCode.NDA04;
302    if ("NDA05".equals(codeString))
303      return V3EntityCode.NDA05;
304    if ("NDA06".equals(codeString))
305      return V3EntityCode.NDA06;
306    if ("NDA07".equals(codeString))
307      return V3EntityCode.NDA07;
308    if ("NDA08".equals(codeString))
309      return V3EntityCode.NDA08;
310    if ("NDA09".equals(codeString))
311      return V3EntityCode.NDA09;
312    if ("NDA10".equals(codeString))
313      return V3EntityCode.NDA10;
314    if ("NDA11".equals(codeString))
315      return V3EntityCode.NDA11;
316    if ("NDA12".equals(codeString))
317      return V3EntityCode.NDA12;
318    if ("NDA13".equals(codeString))
319      return V3EntityCode.NDA13;
320    if ("NDA14".equals(codeString))
321      return V3EntityCode.NDA14;
322    if ("NDA15".equals(codeString))
323      return V3EntityCode.NDA15;
324    if ("NDA16".equals(codeString))
325      return V3EntityCode.NDA16;
326    if ("NDA17".equals(codeString))
327      return V3EntityCode.NDA17;
328    if ("_OrganizationEntityType".equals(codeString))
329      return V3EntityCode._ORGANIZATIONENTITYTYPE;
330    if ("HHOLD".equals(codeString))
331      return V3EntityCode.HHOLD;
332    if ("NAT".equals(codeString))
333      return V3EntityCode.NAT;
334    if ("RELIG".equals(codeString))
335      return V3EntityCode.RELIG;
336    if ("_PlaceEntityType".equals(codeString))
337      return V3EntityCode._PLACEENTITYTYPE;
338    if ("BED".equals(codeString))
339      return V3EntityCode.BED;
340    if ("BLDG".equals(codeString))
341      return V3EntityCode.BLDG;
342    if ("FLOOR".equals(codeString))
343      return V3EntityCode.FLOOR;
344    if ("ROOM".equals(codeString))
345      return V3EntityCode.ROOM;
346    if ("WING".equals(codeString))
347      return V3EntityCode.WING;
348    if ("_ResourceGroupEntityType".equals(codeString))
349      return V3EntityCode._RESOURCEGROUPENTITYTYPE;
350    if ("PRAC".equals(codeString))
351      return V3EntityCode.PRAC;
352    throw new IllegalArgumentException("Unknown V3EntityCode code '"+codeString+"'");
353  }
354
355  public String toCode(V3EntityCode code) {
356    if (code == V3EntityCode._MATERIALENTITYCLASSTYPE)
357      return "_MaterialEntityClassType";
358    if (code == V3EntityCode._CONTAINERENTITYTYPE)
359      return "_ContainerEntityType";
360    if (code == V3EntityCode.PKG)
361      return "PKG";
362    if (code == V3EntityCode._NONRIGIDCONTAINERENTITYTYPE)
363      return "_NonRigidContainerEntityType";
364    if (code == V3EntityCode.BAG)
365      return "BAG";
366    if (code == V3EntityCode.PACKT)
367      return "PACKT";
368    if (code == V3EntityCode.PCH)
369      return "PCH";
370    if (code == V3EntityCode.SACH)
371      return "SACH";
372    if (code == V3EntityCode._RIGIDCONTAINERENTITYTYPE)
373      return "_RigidContainerEntityType";
374    if (code == V3EntityCode._INDIVIDUALPACKAGEENTITYTYPE)
375      return "_IndividualPackageEntityType";
376    if (code == V3EntityCode.AMP)
377      return "AMP";
378    if (code == V3EntityCode.MINIM)
379      return "MINIM";
380    if (code == V3EntityCode.NEBAMP)
381      return "NEBAMP";
382    if (code == V3EntityCode.OVUL)
383      return "OVUL";
384    if (code == V3EntityCode._MULTIUSECONTAINERENTITYTYPE)
385      return "_MultiUseContainerEntityType";
386    if (code == V3EntityCode.BOT)
387      return "BOT";
388    if (code == V3EntityCode.BOTA)
389      return "BOTA";
390    if (code == V3EntityCode.BOTD)
391      return "BOTD";
392    if (code == V3EntityCode.BOTG)
393      return "BOTG";
394    if (code == V3EntityCode.BOTP)
395      return "BOTP";
396    if (code == V3EntityCode.BOTPLY)
397      return "BOTPLY";
398    if (code == V3EntityCode.BOX)
399      return "BOX";
400    if (code == V3EntityCode.CAN)
401      return "CAN";
402    if (code == V3EntityCode.CART)
403      return "CART";
404    if (code == V3EntityCode.CNSTR)
405      return "CNSTR";
406    if (code == V3EntityCode.JAR)
407      return "JAR";
408    if (code == V3EntityCode.JUG)
409      return "JUG";
410    if (code == V3EntityCode.TIN)
411      return "TIN";
412    if (code == V3EntityCode.TUB)
413      return "TUB";
414    if (code == V3EntityCode.TUBE)
415      return "TUBE";
416    if (code == V3EntityCode.VIAL)
417      return "VIAL";
418    if (code == V3EntityCode.BLSTRPK)
419      return "BLSTRPK";
420    if (code == V3EntityCode.CARD)
421      return "CARD";
422    if (code == V3EntityCode.COMPPKG)
423      return "COMPPKG";
424    if (code == V3EntityCode.DIALPK)
425      return "DIALPK";
426    if (code == V3EntityCode.DISK)
427      return "DISK";
428    if (code == V3EntityCode.DOSET)
429      return "DOSET";
430    if (code == V3EntityCode.STRIP)
431      return "STRIP";
432    if (code == V3EntityCode.KIT)
433      return "KIT";
434    if (code == V3EntityCode.SYSTM)
435      return "SYSTM";
436    if (code == V3EntityCode._MEDICALDEVICE)
437      return "_MedicalDevice";
438    if (code == V3EntityCode._ACCESSMEDICALDEVICE)
439      return "_AccessMedicalDevice";
440    if (code == V3EntityCode.LINE)
441      return "LINE";
442    if (code == V3EntityCode.IALINE)
443      return "IALINE";
444    if (code == V3EntityCode.IVLINE)
445      return "IVLINE";
446    if (code == V3EntityCode._ADMINISTRATIONMEDICALDEVICE)
447      return "_AdministrationMedicalDevice";
448    if (code == V3EntityCode._INJECTIONMEDICALDEVICE)
449      return "_InjectionMedicalDevice";
450    if (code == V3EntityCode.AINJ)
451      return "AINJ";
452    if (code == V3EntityCode.PEN)
453      return "PEN";
454    if (code == V3EntityCode.SYR)
455      return "SYR";
456    if (code == V3EntityCode.APLCTR)
457      return "APLCTR";
458    if (code == V3EntityCode.INH)
459      return "INH";
460    if (code == V3EntityCode.DSKS)
461      return "DSKS";
462    if (code == V3EntityCode.DSKUNH)
463      return "DSKUNH";
464    if (code == V3EntityCode.TRBINH)
465      return "TRBINH";
466    if (code == V3EntityCode.PMP)
467      return "PMP";
468    if (code == V3EntityCode._SPECIMENADDITIVEENTITY)
469      return "_SpecimenAdditiveEntity";
470    if (code == V3EntityCode.ACDA)
471      return "ACDA";
472    if (code == V3EntityCode.ACDB)
473      return "ACDB";
474    if (code == V3EntityCode.ACET)
475      return "ACET";
476    if (code == V3EntityCode.AMIES)
477      return "AMIES";
478    if (code == V3EntityCode.BACTM)
479      return "BACTM";
480    if (code == V3EntityCode.BF10)
481      return "BF10";
482    if (code == V3EntityCode.BOR)
483      return "BOR";
484    if (code == V3EntityCode.BOUIN)
485      return "BOUIN";
486    if (code == V3EntityCode.BSKM)
487      return "BSKM";
488    if (code == V3EntityCode.C32)
489      return "C32";
490    if (code == V3EntityCode.C38)
491      return "C38";
492    if (code == V3EntityCode.CARS)
493      return "CARS";
494    if (code == V3EntityCode.CARY)
495      return "CARY";
496    if (code == V3EntityCode.CHLTM)
497      return "CHLTM";
498    if (code == V3EntityCode.CTAD)
499      return "CTAD";
500    if (code == V3EntityCode.EDTK15)
501      return "EDTK15";
502    if (code == V3EntityCode.EDTK75)
503      return "EDTK75";
504    if (code == V3EntityCode.EDTN)
505      return "EDTN";
506    if (code == V3EntityCode.ENT)
507      return "ENT";
508    if (code == V3EntityCode.F10)
509      return "F10";
510    if (code == V3EntityCode.FDP)
511      return "FDP";
512    if (code == V3EntityCode.FL10)
513      return "FL10";
514    if (code == V3EntityCode.FL100)
515      return "FL100";
516    if (code == V3EntityCode.HCL6)
517      return "HCL6";
518    if (code == V3EntityCode.HEPA)
519      return "HEPA";
520    if (code == V3EntityCode.HEPL)
521      return "HEPL";
522    if (code == V3EntityCode.HEPN)
523      return "HEPN";
524    if (code == V3EntityCode.HNO3)
525      return "HNO3";
526    if (code == V3EntityCode.JKM)
527      return "JKM";
528    if (code == V3EntityCode.KARN)
529      return "KARN";
530    if (code == V3EntityCode.KOX)
531      return "KOX";
532    if (code == V3EntityCode.LIA)
533      return "LIA";
534    if (code == V3EntityCode.M4)
535      return "M4";
536    if (code == V3EntityCode.M4RT)
537      return "M4RT";
538    if (code == V3EntityCode.M5)
539      return "M5";
540    if (code == V3EntityCode.MICHTM)
541      return "MICHTM";
542    if (code == V3EntityCode.MMDTM)
543      return "MMDTM";
544    if (code == V3EntityCode.NAF)
545      return "NAF";
546    if (code == V3EntityCode.NONE)
547      return "NONE";
548    if (code == V3EntityCode.PAGE)
549      return "PAGE";
550    if (code == V3EntityCode.PHENOL)
551      return "PHENOL";
552    if (code == V3EntityCode.PVA)
553      return "PVA";
554    if (code == V3EntityCode.RLM)
555      return "RLM";
556    if (code == V3EntityCode.SILICA)
557      return "SILICA";
558    if (code == V3EntityCode.SPS)
559      return "SPS";
560    if (code == V3EntityCode.SST)
561      return "SST";
562    if (code == V3EntityCode.STUTM)
563      return "STUTM";
564    if (code == V3EntityCode.THROM)
565      return "THROM";
566    if (code == V3EntityCode.THYMOL)
567      return "THYMOL";
568    if (code == V3EntityCode.THYO)
569      return "THYO";
570    if (code == V3EntityCode.TOLU)
571      return "TOLU";
572    if (code == V3EntityCode.URETM)
573      return "URETM";
574    if (code == V3EntityCode.VIRTM)
575      return "VIRTM";
576    if (code == V3EntityCode.WEST)
577      return "WEST";
578    if (code == V3EntityCode.BLDPRD)
579      return "BLDPRD";
580    if (code == V3EntityCode.VCCNE)
581      return "VCCNE";
582    if (code == V3EntityCode._DRUGENTITY)
583      return "_DrugEntity";
584    if (code == V3EntityCode._CLINICALDRUG)
585      return "_ClinicalDrug";
586    if (code == V3EntityCode._NONDRUGAGENTENTITY)
587      return "_NonDrugAgentEntity";
588    if (code == V3EntityCode.NDA01)
589      return "NDA01";
590    if (code == V3EntityCode.NDA02)
591      return "NDA02";
592    if (code == V3EntityCode.NDA03)
593      return "NDA03";
594    if (code == V3EntityCode.NDA04)
595      return "NDA04";
596    if (code == V3EntityCode.NDA05)
597      return "NDA05";
598    if (code == V3EntityCode.NDA06)
599      return "NDA06";
600    if (code == V3EntityCode.NDA07)
601      return "NDA07";
602    if (code == V3EntityCode.NDA08)
603      return "NDA08";
604    if (code == V3EntityCode.NDA09)
605      return "NDA09";
606    if (code == V3EntityCode.NDA10)
607      return "NDA10";
608    if (code == V3EntityCode.NDA11)
609      return "NDA11";
610    if (code == V3EntityCode.NDA12)
611      return "NDA12";
612    if (code == V3EntityCode.NDA13)
613      return "NDA13";
614    if (code == V3EntityCode.NDA14)
615      return "NDA14";
616    if (code == V3EntityCode.NDA15)
617      return "NDA15";
618    if (code == V3EntityCode.NDA16)
619      return "NDA16";
620    if (code == V3EntityCode.NDA17)
621      return "NDA17";
622    if (code == V3EntityCode._ORGANIZATIONENTITYTYPE)
623      return "_OrganizationEntityType";
624    if (code == V3EntityCode.HHOLD)
625      return "HHOLD";
626    if (code == V3EntityCode.NAT)
627      return "NAT";
628    if (code == V3EntityCode.RELIG)
629      return "RELIG";
630    if (code == V3EntityCode._PLACEENTITYTYPE)
631      return "_PlaceEntityType";
632    if (code == V3EntityCode.BED)
633      return "BED";
634    if (code == V3EntityCode.BLDG)
635      return "BLDG";
636    if (code == V3EntityCode.FLOOR)
637      return "FLOOR";
638    if (code == V3EntityCode.ROOM)
639      return "ROOM";
640    if (code == V3EntityCode.WING)
641      return "WING";
642    if (code == V3EntityCode._RESOURCEGROUPENTITYTYPE)
643      return "_ResourceGroupEntityType";
644    if (code == V3EntityCode.PRAC)
645      return "PRAC";
646    return "?";
647  }
648
649    public String toSystem(V3EntityCode code) {
650      return code.getSystem();
651      }
652
653}
654