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 ResourceTypesEnumFactory implements EnumFactory<ResourceTypes> {
037
038  public ResourceTypes fromCode(String codeString) throws IllegalArgumentException {
039    if (codeString == null || "".equals(codeString))
040      return null;
041    if ("Account".equals(codeString))
042      return ResourceTypes.ACCOUNT;
043    if ("ActivityDefinition".equals(codeString))
044      return ResourceTypes.ACTIVITYDEFINITION;
045    if ("AdverseEvent".equals(codeString))
046      return ResourceTypes.ADVERSEEVENT;
047    if ("AllergyIntolerance".equals(codeString))
048      return ResourceTypes.ALLERGYINTOLERANCE;
049    if ("Appointment".equals(codeString))
050      return ResourceTypes.APPOINTMENT;
051    if ("AppointmentResponse".equals(codeString))
052      return ResourceTypes.APPOINTMENTRESPONSE;
053    if ("AuditEvent".equals(codeString))
054      return ResourceTypes.AUDITEVENT;
055    if ("Basic".equals(codeString))
056      return ResourceTypes.BASIC;
057    if ("Binary".equals(codeString))
058      return ResourceTypes.BINARY;
059    if ("BiologicallyDerivedProduct".equals(codeString))
060      return ResourceTypes.BIOLOGICALLYDERIVEDPRODUCT;
061    if ("BodyStructure".equals(codeString))
062      return ResourceTypes.BODYSTRUCTURE;
063    if ("Bundle".equals(codeString))
064      return ResourceTypes.BUNDLE;
065    if ("CapabilityStatement".equals(codeString))
066      return ResourceTypes.CAPABILITYSTATEMENT;
067    if ("CarePlan".equals(codeString))
068      return ResourceTypes.CAREPLAN;
069    if ("CareTeam".equals(codeString))
070      return ResourceTypes.CARETEAM;
071    if ("CatalogEntry".equals(codeString))
072      return ResourceTypes.CATALOGENTRY;
073    if ("ChargeItem".equals(codeString))
074      return ResourceTypes.CHARGEITEM;
075    if ("ChargeItemDefinition".equals(codeString))
076      return ResourceTypes.CHARGEITEMDEFINITION;
077    if ("Claim".equals(codeString))
078      return ResourceTypes.CLAIM;
079    if ("ClaimResponse".equals(codeString))
080      return ResourceTypes.CLAIMRESPONSE;
081    if ("ClinicalImpression".equals(codeString))
082      return ResourceTypes.CLINICALIMPRESSION;
083    if ("CodeSystem".equals(codeString))
084      return ResourceTypes.CODESYSTEM;
085    if ("Communication".equals(codeString))
086      return ResourceTypes.COMMUNICATION;
087    if ("CommunicationRequest".equals(codeString))
088      return ResourceTypes.COMMUNICATIONREQUEST;
089    if ("CompartmentDefinition".equals(codeString))
090      return ResourceTypes.COMPARTMENTDEFINITION;
091    if ("Composition".equals(codeString))
092      return ResourceTypes.COMPOSITION;
093    if ("ConceptMap".equals(codeString))
094      return ResourceTypes.CONCEPTMAP;
095    if ("Condition".equals(codeString))
096      return ResourceTypes.CONDITION;
097    if ("Consent".equals(codeString))
098      return ResourceTypes.CONSENT;
099    if ("Contract".equals(codeString))
100      return ResourceTypes.CONTRACT;
101    if ("Coverage".equals(codeString))
102      return ResourceTypes.COVERAGE;
103    if ("CoverageEligibilityRequest".equals(codeString))
104      return ResourceTypes.COVERAGEELIGIBILITYREQUEST;
105    if ("CoverageEligibilityResponse".equals(codeString))
106      return ResourceTypes.COVERAGEELIGIBILITYRESPONSE;
107    if ("DetectedIssue".equals(codeString))
108      return ResourceTypes.DETECTEDISSUE;
109    if ("Device".equals(codeString))
110      return ResourceTypes.DEVICE;
111    if ("DeviceDefinition".equals(codeString))
112      return ResourceTypes.DEVICEDEFINITION;
113    if ("DeviceMetric".equals(codeString))
114      return ResourceTypes.DEVICEMETRIC;
115    if ("DeviceRequest".equals(codeString))
116      return ResourceTypes.DEVICEREQUEST;
117    if ("DeviceUseStatement".equals(codeString))
118      return ResourceTypes.DEVICEUSESTATEMENT;
119    if ("DiagnosticReport".equals(codeString))
120      return ResourceTypes.DIAGNOSTICREPORT;
121    if ("DocumentManifest".equals(codeString))
122      return ResourceTypes.DOCUMENTMANIFEST;
123    if ("DocumentReference".equals(codeString))
124      return ResourceTypes.DOCUMENTREFERENCE;
125    if ("DomainResource".equals(codeString))
126      return ResourceTypes.DOMAINRESOURCE;
127    if ("EffectEvidenceSynthesis".equals(codeString))
128      return ResourceTypes.EFFECTEVIDENCESYNTHESIS;
129    if ("Encounter".equals(codeString))
130      return ResourceTypes.ENCOUNTER;
131    if ("Endpoint".equals(codeString))
132      return ResourceTypes.ENDPOINT;
133    if ("EnrollmentRequest".equals(codeString))
134      return ResourceTypes.ENROLLMENTREQUEST;
135    if ("EnrollmentResponse".equals(codeString))
136      return ResourceTypes.ENROLLMENTRESPONSE;
137    if ("EpisodeOfCare".equals(codeString))
138      return ResourceTypes.EPISODEOFCARE;
139    if ("EventDefinition".equals(codeString))
140      return ResourceTypes.EVENTDEFINITION;
141    if ("Evidence".equals(codeString))
142      return ResourceTypes.EVIDENCE;
143    if ("EvidenceVariable".equals(codeString))
144      return ResourceTypes.EVIDENCEVARIABLE;
145    if ("ExampleScenario".equals(codeString))
146      return ResourceTypes.EXAMPLESCENARIO;
147    if ("ExplanationOfBenefit".equals(codeString))
148      return ResourceTypes.EXPLANATIONOFBENEFIT;
149    if ("FamilyMemberHistory".equals(codeString))
150      return ResourceTypes.FAMILYMEMBERHISTORY;
151    if ("Flag".equals(codeString))
152      return ResourceTypes.FLAG;
153    if ("Goal".equals(codeString))
154      return ResourceTypes.GOAL;
155    if ("GraphDefinition".equals(codeString))
156      return ResourceTypes.GRAPHDEFINITION;
157    if ("Group".equals(codeString))
158      return ResourceTypes.GROUP;
159    if ("GuidanceResponse".equals(codeString))
160      return ResourceTypes.GUIDANCERESPONSE;
161    if ("HealthcareService".equals(codeString))
162      return ResourceTypes.HEALTHCARESERVICE;
163    if ("ImagingStudy".equals(codeString))
164      return ResourceTypes.IMAGINGSTUDY;
165    if ("Immunization".equals(codeString))
166      return ResourceTypes.IMMUNIZATION;
167    if ("ImmunizationEvaluation".equals(codeString))
168      return ResourceTypes.IMMUNIZATIONEVALUATION;
169    if ("ImmunizationRecommendation".equals(codeString))
170      return ResourceTypes.IMMUNIZATIONRECOMMENDATION;
171    if ("ImplementationGuide".equals(codeString))
172      return ResourceTypes.IMPLEMENTATIONGUIDE;
173    if ("InsurancePlan".equals(codeString))
174      return ResourceTypes.INSURANCEPLAN;
175    if ("Invoice".equals(codeString))
176      return ResourceTypes.INVOICE;
177    if ("Library".equals(codeString))
178      return ResourceTypes.LIBRARY;
179    if ("Linkage".equals(codeString))
180      return ResourceTypes.LINKAGE;
181    if ("List".equals(codeString))
182      return ResourceTypes.LIST;
183    if ("Location".equals(codeString))
184      return ResourceTypes.LOCATION;
185    if ("Measure".equals(codeString))
186      return ResourceTypes.MEASURE;
187    if ("MeasureReport".equals(codeString))
188      return ResourceTypes.MEASUREREPORT;
189    if ("Media".equals(codeString))
190      return ResourceTypes.MEDIA;
191    if ("Medication".equals(codeString))
192      return ResourceTypes.MEDICATION;
193    if ("MedicationAdministration".equals(codeString))
194      return ResourceTypes.MEDICATIONADMINISTRATION;
195    if ("MedicationDispense".equals(codeString))
196      return ResourceTypes.MEDICATIONDISPENSE;
197    if ("MedicationKnowledge".equals(codeString))
198      return ResourceTypes.MEDICATIONKNOWLEDGE;
199    if ("MedicationRequest".equals(codeString))
200      return ResourceTypes.MEDICATIONREQUEST;
201    if ("MedicationStatement".equals(codeString))
202      return ResourceTypes.MEDICATIONSTATEMENT;
203    if ("MedicinalProduct".equals(codeString))
204      return ResourceTypes.MEDICINALPRODUCT;
205    if ("MedicinalProductAuthorization".equals(codeString))
206      return ResourceTypes.MEDICINALPRODUCTAUTHORIZATION;
207    if ("MedicinalProductContraindication".equals(codeString))
208      return ResourceTypes.MEDICINALPRODUCTCONTRAINDICATION;
209    if ("MedicinalProductIndication".equals(codeString))
210      return ResourceTypes.MEDICINALPRODUCTINDICATION;
211    if ("MedicinalProductIngredient".equals(codeString))
212      return ResourceTypes.MEDICINALPRODUCTINGREDIENT;
213    if ("MedicinalProductInteraction".equals(codeString))
214      return ResourceTypes.MEDICINALPRODUCTINTERACTION;
215    if ("MedicinalProductManufactured".equals(codeString))
216      return ResourceTypes.MEDICINALPRODUCTMANUFACTURED;
217    if ("MedicinalProductPackaged".equals(codeString))
218      return ResourceTypes.MEDICINALPRODUCTPACKAGED;
219    if ("MedicinalProductPharmaceutical".equals(codeString))
220      return ResourceTypes.MEDICINALPRODUCTPHARMACEUTICAL;
221    if ("MedicinalProductUndesirableEffect".equals(codeString))
222      return ResourceTypes.MEDICINALPRODUCTUNDESIRABLEEFFECT;
223    if ("MessageDefinition".equals(codeString))
224      return ResourceTypes.MESSAGEDEFINITION;
225    if ("MessageHeader".equals(codeString))
226      return ResourceTypes.MESSAGEHEADER;
227    if ("MolecularSequence".equals(codeString))
228      return ResourceTypes.MOLECULARSEQUENCE;
229    if ("NamingSystem".equals(codeString))
230      return ResourceTypes.NAMINGSYSTEM;
231    if ("NutritionOrder".equals(codeString))
232      return ResourceTypes.NUTRITIONORDER;
233    if ("Observation".equals(codeString))
234      return ResourceTypes.OBSERVATION;
235    if ("ObservationDefinition".equals(codeString))
236      return ResourceTypes.OBSERVATIONDEFINITION;
237    if ("OperationDefinition".equals(codeString))
238      return ResourceTypes.OPERATIONDEFINITION;
239    if ("OperationOutcome".equals(codeString))
240      return ResourceTypes.OPERATIONOUTCOME;
241    if ("Organization".equals(codeString))
242      return ResourceTypes.ORGANIZATION;
243    if ("OrganizationAffiliation".equals(codeString))
244      return ResourceTypes.ORGANIZATIONAFFILIATION;
245    if ("Parameters".equals(codeString))
246      return ResourceTypes.PARAMETERS;
247    if ("Patient".equals(codeString))
248      return ResourceTypes.PATIENT;
249    if ("PaymentNotice".equals(codeString))
250      return ResourceTypes.PAYMENTNOTICE;
251    if ("PaymentReconciliation".equals(codeString))
252      return ResourceTypes.PAYMENTRECONCILIATION;
253    if ("Person".equals(codeString))
254      return ResourceTypes.PERSON;
255    if ("PlanDefinition".equals(codeString))
256      return ResourceTypes.PLANDEFINITION;
257    if ("Practitioner".equals(codeString))
258      return ResourceTypes.PRACTITIONER;
259    if ("PractitionerRole".equals(codeString))
260      return ResourceTypes.PRACTITIONERROLE;
261    if ("Procedure".equals(codeString))
262      return ResourceTypes.PROCEDURE;
263    if ("Provenance".equals(codeString))
264      return ResourceTypes.PROVENANCE;
265    if ("Questionnaire".equals(codeString))
266      return ResourceTypes.QUESTIONNAIRE;
267    if ("QuestionnaireResponse".equals(codeString))
268      return ResourceTypes.QUESTIONNAIRERESPONSE;
269    if ("RelatedPerson".equals(codeString))
270      return ResourceTypes.RELATEDPERSON;
271    if ("RequestGroup".equals(codeString))
272      return ResourceTypes.REQUESTGROUP;
273    if ("ResearchDefinition".equals(codeString))
274      return ResourceTypes.RESEARCHDEFINITION;
275    if ("ResearchElementDefinition".equals(codeString))
276      return ResourceTypes.RESEARCHELEMENTDEFINITION;
277    if ("ResearchStudy".equals(codeString))
278      return ResourceTypes.RESEARCHSTUDY;
279    if ("ResearchSubject".equals(codeString))
280      return ResourceTypes.RESEARCHSUBJECT;
281    if ("Resource".equals(codeString))
282      return ResourceTypes.RESOURCE;
283    if ("RiskAssessment".equals(codeString))
284      return ResourceTypes.RISKASSESSMENT;
285    if ("RiskEvidenceSynthesis".equals(codeString))
286      return ResourceTypes.RISKEVIDENCESYNTHESIS;
287    if ("Schedule".equals(codeString))
288      return ResourceTypes.SCHEDULE;
289    if ("SearchParameter".equals(codeString))
290      return ResourceTypes.SEARCHPARAMETER;
291    if ("ServiceRequest".equals(codeString))
292      return ResourceTypes.SERVICEREQUEST;
293    if ("Slot".equals(codeString))
294      return ResourceTypes.SLOT;
295    if ("Specimen".equals(codeString))
296      return ResourceTypes.SPECIMEN;
297    if ("SpecimenDefinition".equals(codeString))
298      return ResourceTypes.SPECIMENDEFINITION;
299    if ("StructureDefinition".equals(codeString))
300      return ResourceTypes.STRUCTUREDEFINITION;
301    if ("StructureMap".equals(codeString))
302      return ResourceTypes.STRUCTUREMAP;
303    if ("Subscription".equals(codeString))
304      return ResourceTypes.SUBSCRIPTION;
305    if ("Substance".equals(codeString))
306      return ResourceTypes.SUBSTANCE;
307    if ("SubstanceDefinition".equals(codeString))
308      return ResourceTypes.SUBSTANCEDEFINITION;
309    if ("SubstanceNucleicAcid".equals(codeString))
310      return ResourceTypes.SUBSTANCENUCLEICACID;
311    if ("SubstancePolymer".equals(codeString))
312      return ResourceTypes.SUBSTANCEPOLYMER;
313    if ("SubstanceProtein".equals(codeString))
314      return ResourceTypes.SUBSTANCEPROTEIN;
315    if ("SubstanceReferenceInformation".equals(codeString))
316      return ResourceTypes.SUBSTANCEREFERENCEINFORMATION;
317    if ("SubstanceSourceMaterial".equals(codeString))
318      return ResourceTypes.SUBSTANCESOURCEMATERIAL;
319    if ("SupplyDelivery".equals(codeString))
320      return ResourceTypes.SUPPLYDELIVERY;
321    if ("SupplyRequest".equals(codeString))
322      return ResourceTypes.SUPPLYREQUEST;
323    if ("Task".equals(codeString))
324      return ResourceTypes.TASK;
325    if ("TerminologyCapabilities".equals(codeString))
326      return ResourceTypes.TERMINOLOGYCAPABILITIES;
327    if ("TestReport".equals(codeString))
328      return ResourceTypes.TESTREPORT;
329    if ("TestScript".equals(codeString))
330      return ResourceTypes.TESTSCRIPT;
331    if ("ValueSet".equals(codeString))
332      return ResourceTypes.VALUESET;
333    if ("VerificationResult".equals(codeString))
334      return ResourceTypes.VERIFICATIONRESULT;
335    if ("VisionPrescription".equals(codeString))
336      return ResourceTypes.VISIONPRESCRIPTION;
337    throw new IllegalArgumentException("Unknown ResourceTypes code '" + codeString + "'");
338  }
339
340  public String toCode(ResourceTypes code) {
341    if (code == ResourceTypes.ACCOUNT)
342      return "Account";
343    if (code == ResourceTypes.ACTIVITYDEFINITION)
344      return "ActivityDefinition";
345    if (code == ResourceTypes.ADVERSEEVENT)
346      return "AdverseEvent";
347    if (code == ResourceTypes.ALLERGYINTOLERANCE)
348      return "AllergyIntolerance";
349    if (code == ResourceTypes.APPOINTMENT)
350      return "Appointment";
351    if (code == ResourceTypes.APPOINTMENTRESPONSE)
352      return "AppointmentResponse";
353    if (code == ResourceTypes.AUDITEVENT)
354      return "AuditEvent";
355    if (code == ResourceTypes.BASIC)
356      return "Basic";
357    if (code == ResourceTypes.BINARY)
358      return "Binary";
359    if (code == ResourceTypes.BIOLOGICALLYDERIVEDPRODUCT)
360      return "BiologicallyDerivedProduct";
361    if (code == ResourceTypes.BODYSTRUCTURE)
362      return "BodyStructure";
363    if (code == ResourceTypes.BUNDLE)
364      return "Bundle";
365    if (code == ResourceTypes.CAPABILITYSTATEMENT)
366      return "CapabilityStatement";
367    if (code == ResourceTypes.CAREPLAN)
368      return "CarePlan";
369    if (code == ResourceTypes.CARETEAM)
370      return "CareTeam";
371    if (code == ResourceTypes.CATALOGENTRY)
372      return "CatalogEntry";
373    if (code == ResourceTypes.CHARGEITEM)
374      return "ChargeItem";
375    if (code == ResourceTypes.CHARGEITEMDEFINITION)
376      return "ChargeItemDefinition";
377    if (code == ResourceTypes.CLAIM)
378      return "Claim";
379    if (code == ResourceTypes.CLAIMRESPONSE)
380      return "ClaimResponse";
381    if (code == ResourceTypes.CLINICALIMPRESSION)
382      return "ClinicalImpression";
383    if (code == ResourceTypes.CODESYSTEM)
384      return "CodeSystem";
385    if (code == ResourceTypes.COMMUNICATION)
386      return "Communication";
387    if (code == ResourceTypes.COMMUNICATIONREQUEST)
388      return "CommunicationRequest";
389    if (code == ResourceTypes.COMPARTMENTDEFINITION)
390      return "CompartmentDefinition";
391    if (code == ResourceTypes.COMPOSITION)
392      return "Composition";
393    if (code == ResourceTypes.CONCEPTMAP)
394      return "ConceptMap";
395    if (code == ResourceTypes.CONDITION)
396      return "Condition";
397    if (code == ResourceTypes.CONSENT)
398      return "Consent";
399    if (code == ResourceTypes.CONTRACT)
400      return "Contract";
401    if (code == ResourceTypes.COVERAGE)
402      return "Coverage";
403    if (code == ResourceTypes.COVERAGEELIGIBILITYREQUEST)
404      return "CoverageEligibilityRequest";
405    if (code == ResourceTypes.COVERAGEELIGIBILITYRESPONSE)
406      return "CoverageEligibilityResponse";
407    if (code == ResourceTypes.DETECTEDISSUE)
408      return "DetectedIssue";
409    if (code == ResourceTypes.DEVICE)
410      return "Device";
411    if (code == ResourceTypes.DEVICEDEFINITION)
412      return "DeviceDefinition";
413    if (code == ResourceTypes.DEVICEMETRIC)
414      return "DeviceMetric";
415    if (code == ResourceTypes.DEVICEREQUEST)
416      return "DeviceRequest";
417    if (code == ResourceTypes.DEVICEUSESTATEMENT)
418      return "DeviceUseStatement";
419    if (code == ResourceTypes.DIAGNOSTICREPORT)
420      return "DiagnosticReport";
421    if (code == ResourceTypes.DOCUMENTMANIFEST)
422      return "DocumentManifest";
423    if (code == ResourceTypes.DOCUMENTREFERENCE)
424      return "DocumentReference";
425    if (code == ResourceTypes.DOMAINRESOURCE)
426      return "DomainResource";
427    if (code == ResourceTypes.EFFECTEVIDENCESYNTHESIS)
428      return "EffectEvidenceSynthesis";
429    if (code == ResourceTypes.ENCOUNTER)
430      return "Encounter";
431    if (code == ResourceTypes.ENDPOINT)
432      return "Endpoint";
433    if (code == ResourceTypes.ENROLLMENTREQUEST)
434      return "EnrollmentRequest";
435    if (code == ResourceTypes.ENROLLMENTRESPONSE)
436      return "EnrollmentResponse";
437    if (code == ResourceTypes.EPISODEOFCARE)
438      return "EpisodeOfCare";
439    if (code == ResourceTypes.EVENTDEFINITION)
440      return "EventDefinition";
441    if (code == ResourceTypes.EVIDENCE)
442      return "Evidence";
443    if (code == ResourceTypes.EVIDENCEVARIABLE)
444      return "EvidenceVariable";
445    if (code == ResourceTypes.EXAMPLESCENARIO)
446      return "ExampleScenario";
447    if (code == ResourceTypes.EXPLANATIONOFBENEFIT)
448      return "ExplanationOfBenefit";
449    if (code == ResourceTypes.FAMILYMEMBERHISTORY)
450      return "FamilyMemberHistory";
451    if (code == ResourceTypes.FLAG)
452      return "Flag";
453    if (code == ResourceTypes.GOAL)
454      return "Goal";
455    if (code == ResourceTypes.GRAPHDEFINITION)
456      return "GraphDefinition";
457    if (code == ResourceTypes.GROUP)
458      return "Group";
459    if (code == ResourceTypes.GUIDANCERESPONSE)
460      return "GuidanceResponse";
461    if (code == ResourceTypes.HEALTHCARESERVICE)
462      return "HealthcareService";
463    if (code == ResourceTypes.IMAGINGSTUDY)
464      return "ImagingStudy";
465    if (code == ResourceTypes.IMMUNIZATION)
466      return "Immunization";
467    if (code == ResourceTypes.IMMUNIZATIONEVALUATION)
468      return "ImmunizationEvaluation";
469    if (code == ResourceTypes.IMMUNIZATIONRECOMMENDATION)
470      return "ImmunizationRecommendation";
471    if (code == ResourceTypes.IMPLEMENTATIONGUIDE)
472      return "ImplementationGuide";
473    if (code == ResourceTypes.INSURANCEPLAN)
474      return "InsurancePlan";
475    if (code == ResourceTypes.INVOICE)
476      return "Invoice";
477    if (code == ResourceTypes.LIBRARY)
478      return "Library";
479    if (code == ResourceTypes.LINKAGE)
480      return "Linkage";
481    if (code == ResourceTypes.LIST)
482      return "List";
483    if (code == ResourceTypes.LOCATION)
484      return "Location";
485    if (code == ResourceTypes.MEASURE)
486      return "Measure";
487    if (code == ResourceTypes.MEASUREREPORT)
488      return "MeasureReport";
489    if (code == ResourceTypes.MEDIA)
490      return "Media";
491    if (code == ResourceTypes.MEDICATION)
492      return "Medication";
493    if (code == ResourceTypes.MEDICATIONADMINISTRATION)
494      return "MedicationAdministration";
495    if (code == ResourceTypes.MEDICATIONDISPENSE)
496      return "MedicationDispense";
497    if (code == ResourceTypes.MEDICATIONKNOWLEDGE)
498      return "MedicationKnowledge";
499    if (code == ResourceTypes.MEDICATIONREQUEST)
500      return "MedicationRequest";
501    if (code == ResourceTypes.MEDICATIONSTATEMENT)
502      return "MedicationStatement";
503    if (code == ResourceTypes.MEDICINALPRODUCT)
504      return "MedicinalProduct";
505    if (code == ResourceTypes.MEDICINALPRODUCTAUTHORIZATION)
506      return "MedicinalProductAuthorization";
507    if (code == ResourceTypes.MEDICINALPRODUCTCONTRAINDICATION)
508      return "MedicinalProductContraindication";
509    if (code == ResourceTypes.MEDICINALPRODUCTINDICATION)
510      return "MedicinalProductIndication";
511    if (code == ResourceTypes.MEDICINALPRODUCTINGREDIENT)
512      return "MedicinalProductIngredient";
513    if (code == ResourceTypes.MEDICINALPRODUCTINTERACTION)
514      return "MedicinalProductInteraction";
515    if (code == ResourceTypes.MEDICINALPRODUCTMANUFACTURED)
516      return "MedicinalProductManufactured";
517    if (code == ResourceTypes.MEDICINALPRODUCTPACKAGED)
518      return "MedicinalProductPackaged";
519    if (code == ResourceTypes.MEDICINALPRODUCTPHARMACEUTICAL)
520      return "MedicinalProductPharmaceutical";
521    if (code == ResourceTypes.MEDICINALPRODUCTUNDESIRABLEEFFECT)
522      return "MedicinalProductUndesirableEffect";
523    if (code == ResourceTypes.MESSAGEDEFINITION)
524      return "MessageDefinition";
525    if (code == ResourceTypes.MESSAGEHEADER)
526      return "MessageHeader";
527    if (code == ResourceTypes.MOLECULARSEQUENCE)
528      return "MolecularSequence";
529    if (code == ResourceTypes.NAMINGSYSTEM)
530      return "NamingSystem";
531    if (code == ResourceTypes.NUTRITIONORDER)
532      return "NutritionOrder";
533    if (code == ResourceTypes.OBSERVATION)
534      return "Observation";
535    if (code == ResourceTypes.OBSERVATIONDEFINITION)
536      return "ObservationDefinition";
537    if (code == ResourceTypes.OPERATIONDEFINITION)
538      return "OperationDefinition";
539    if (code == ResourceTypes.OPERATIONOUTCOME)
540      return "OperationOutcome";
541    if (code == ResourceTypes.ORGANIZATION)
542      return "Organization";
543    if (code == ResourceTypes.ORGANIZATIONAFFILIATION)
544      return "OrganizationAffiliation";
545    if (code == ResourceTypes.PARAMETERS)
546      return "Parameters";
547    if (code == ResourceTypes.PATIENT)
548      return "Patient";
549    if (code == ResourceTypes.PAYMENTNOTICE)
550      return "PaymentNotice";
551    if (code == ResourceTypes.PAYMENTRECONCILIATION)
552      return "PaymentReconciliation";
553    if (code == ResourceTypes.PERSON)
554      return "Person";
555    if (code == ResourceTypes.PLANDEFINITION)
556      return "PlanDefinition";
557    if (code == ResourceTypes.PRACTITIONER)
558      return "Practitioner";
559    if (code == ResourceTypes.PRACTITIONERROLE)
560      return "PractitionerRole";
561    if (code == ResourceTypes.PROCEDURE)
562      return "Procedure";
563    if (code == ResourceTypes.PROVENANCE)
564      return "Provenance";
565    if (code == ResourceTypes.QUESTIONNAIRE)
566      return "Questionnaire";
567    if (code == ResourceTypes.QUESTIONNAIRERESPONSE)
568      return "QuestionnaireResponse";
569    if (code == ResourceTypes.RELATEDPERSON)
570      return "RelatedPerson";
571    if (code == ResourceTypes.REQUESTGROUP)
572      return "RequestGroup";
573    if (code == ResourceTypes.RESEARCHDEFINITION)
574      return "ResearchDefinition";
575    if (code == ResourceTypes.RESEARCHELEMENTDEFINITION)
576      return "ResearchElementDefinition";
577    if (code == ResourceTypes.RESEARCHSTUDY)
578      return "ResearchStudy";
579    if (code == ResourceTypes.RESEARCHSUBJECT)
580      return "ResearchSubject";
581    if (code == ResourceTypes.RESOURCE)
582      return "Resource";
583    if (code == ResourceTypes.RISKASSESSMENT)
584      return "RiskAssessment";
585    if (code == ResourceTypes.RISKEVIDENCESYNTHESIS)
586      return "RiskEvidenceSynthesis";
587    if (code == ResourceTypes.SCHEDULE)
588      return "Schedule";
589    if (code == ResourceTypes.SEARCHPARAMETER)
590      return "SearchParameter";
591    if (code == ResourceTypes.SERVICEREQUEST)
592      return "ServiceRequest";
593    if (code == ResourceTypes.SLOT)
594      return "Slot";
595    if (code == ResourceTypes.SPECIMEN)
596      return "Specimen";
597    if (code == ResourceTypes.SPECIMENDEFINITION)
598      return "SpecimenDefinition";
599    if (code == ResourceTypes.STRUCTUREDEFINITION)
600      return "StructureDefinition";
601    if (code == ResourceTypes.STRUCTUREMAP)
602      return "StructureMap";
603    if (code == ResourceTypes.SUBSCRIPTION)
604      return "Subscription";
605    if (code == ResourceTypes.SUBSTANCE)
606      return "Substance";
607    if (code == ResourceTypes.SUBSTANCEDEFINITION)
608      return "SubstanceDefinition";
609    if (code == ResourceTypes.SUBSTANCENUCLEICACID)
610      return "SubstanceNucleicAcid";
611    if (code == ResourceTypes.SUBSTANCEPOLYMER)
612      return "SubstancePolymer";
613    if (code == ResourceTypes.SUBSTANCEPROTEIN)
614      return "SubstanceProtein";
615    if (code == ResourceTypes.SUBSTANCEREFERENCEINFORMATION)
616      return "SubstanceReferenceInformation";
617    if (code == ResourceTypes.SUBSTANCESOURCEMATERIAL)
618      return "SubstanceSourceMaterial";
619    if (code == ResourceTypes.SUPPLYDELIVERY)
620      return "SupplyDelivery";
621    if (code == ResourceTypes.SUPPLYREQUEST)
622      return "SupplyRequest";
623    if (code == ResourceTypes.TASK)
624      return "Task";
625    if (code == ResourceTypes.TERMINOLOGYCAPABILITIES)
626      return "TerminologyCapabilities";
627    if (code == ResourceTypes.TESTREPORT)
628      return "TestReport";
629    if (code == ResourceTypes.TESTSCRIPT)
630      return "TestScript";
631    if (code == ResourceTypes.VALUESET)
632      return "ValueSet";
633    if (code == ResourceTypes.VERIFICATIONRESULT)
634      return "VerificationResult";
635    if (code == ResourceTypes.VISIONPRESCRIPTION)
636      return "VisionPrescription";
637    return "?";
638  }
639
640  public String toSystem(ResourceTypes code) {
641    return code.getSystem();
642  }
643
644}