001package org.hl7.fhir.dstu3.model.codesystems;
002
003
004
005
006/*
007  Copyright (c) 2011+, HL7, Inc.
008  All rights reserved.
009  
010  Redistribution and use in source and binary forms, with or without modification, 
011  are permitted provided that the following conditions are met:
012  
013   * Redistributions of source code must retain the above copyright notice, this 
014     list of conditions and the following disclaimer.
015   * Redistributions in binary form must reproduce the above copyright notice, 
016     this list of conditions and the following disclaimer in the documentation 
017     and/or other materials provided with the distribution.
018   * Neither the name of HL7 nor the names of its contributors may be used to 
019     endorse or promote products derived from this software without specific 
020     prior written permission.
021  
022  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 
023  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
024  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
025  IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 
026  INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 
027  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
028  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
029  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
030  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
031  POSSIBILITY OF SUCH DAMAGE.
032  
033*/
034
035// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
036
037
038import org.hl7.fhir.dstu3.model.EnumFactory;
039
040public class ResourceTypesEnumFactory implements EnumFactory<ResourceTypes> {
041
042  public ResourceTypes fromCode(String codeString) throws IllegalArgumentException {
043    if (codeString == null || "".equals(codeString))
044      return null;
045    if ("Account".equals(codeString))
046      return ResourceTypes.ACCOUNT;
047    if ("ActivityDefinition".equals(codeString))
048      return ResourceTypes.ACTIVITYDEFINITION;
049    if ("AdverseEvent".equals(codeString))
050      return ResourceTypes.ADVERSEEVENT;
051    if ("AllergyIntolerance".equals(codeString))
052      return ResourceTypes.ALLERGYINTOLERANCE;
053    if ("Appointment".equals(codeString))
054      return ResourceTypes.APPOINTMENT;
055    if ("AppointmentResponse".equals(codeString))
056      return ResourceTypes.APPOINTMENTRESPONSE;
057    if ("AuditEvent".equals(codeString))
058      return ResourceTypes.AUDITEVENT;
059    if ("Basic".equals(codeString))
060      return ResourceTypes.BASIC;
061    if ("Binary".equals(codeString))
062      return ResourceTypes.BINARY;
063    if ("BodySite".equals(codeString))
064      return ResourceTypes.BODYSITE;
065    if ("Bundle".equals(codeString))
066      return ResourceTypes.BUNDLE;
067    if ("CapabilityStatement".equals(codeString))
068      return ResourceTypes.CAPABILITYSTATEMENT;
069    if ("CarePlan".equals(codeString))
070      return ResourceTypes.CAREPLAN;
071    if ("CareTeam".equals(codeString))
072      return ResourceTypes.CARETEAM;
073    if ("ChargeItem".equals(codeString))
074      return ResourceTypes.CHARGEITEM;
075    if ("Claim".equals(codeString))
076      return ResourceTypes.CLAIM;
077    if ("ClaimResponse".equals(codeString))
078      return ResourceTypes.CLAIMRESPONSE;
079    if ("ClinicalImpression".equals(codeString))
080      return ResourceTypes.CLINICALIMPRESSION;
081    if ("CodeSystem".equals(codeString))
082      return ResourceTypes.CODESYSTEM;
083    if ("Communication".equals(codeString))
084      return ResourceTypes.COMMUNICATION;
085    if ("CommunicationRequest".equals(codeString))
086      return ResourceTypes.COMMUNICATIONREQUEST;
087    if ("CompartmentDefinition".equals(codeString))
088      return ResourceTypes.COMPARTMENTDEFINITION;
089    if ("Composition".equals(codeString))
090      return ResourceTypes.COMPOSITION;
091    if ("ConceptMap".equals(codeString))
092      return ResourceTypes.CONCEPTMAP;
093    if ("Condition".equals(codeString))
094      return ResourceTypes.CONDITION;
095    if ("Consent".equals(codeString))
096      return ResourceTypes.CONSENT;
097    if ("Contract".equals(codeString))
098      return ResourceTypes.CONTRACT;
099    if ("Coverage".equals(codeString))
100      return ResourceTypes.COVERAGE;
101    if ("DataElement".equals(codeString))
102      return ResourceTypes.DATAELEMENT;
103    if ("DetectedIssue".equals(codeString))
104      return ResourceTypes.DETECTEDISSUE;
105    if ("Device".equals(codeString))
106      return ResourceTypes.DEVICE;
107    if ("DeviceComponent".equals(codeString))
108      return ResourceTypes.DEVICECOMPONENT;
109    if ("DeviceMetric".equals(codeString))
110      return ResourceTypes.DEVICEMETRIC;
111    if ("DeviceRequest".equals(codeString))
112      return ResourceTypes.DEVICEREQUEST;
113    if ("DeviceUseStatement".equals(codeString))
114      return ResourceTypes.DEVICEUSESTATEMENT;
115    if ("DiagnosticReport".equals(codeString))
116      return ResourceTypes.DIAGNOSTICREPORT;
117    if ("DocumentManifest".equals(codeString))
118      return ResourceTypes.DOCUMENTMANIFEST;
119    if ("DocumentReference".equals(codeString))
120      return ResourceTypes.DOCUMENTREFERENCE;
121    if ("DomainResource".equals(codeString))
122      return ResourceTypes.DOMAINRESOURCE;
123    if ("EligibilityRequest".equals(codeString))
124      return ResourceTypes.ELIGIBILITYREQUEST;
125    if ("EligibilityResponse".equals(codeString))
126      return ResourceTypes.ELIGIBILITYRESPONSE;
127    if ("Encounter".equals(codeString))
128      return ResourceTypes.ENCOUNTER;
129    if ("Endpoint".equals(codeString))
130      return ResourceTypes.ENDPOINT;
131    if ("EnrollmentRequest".equals(codeString))
132      return ResourceTypes.ENROLLMENTREQUEST;
133    if ("EnrollmentResponse".equals(codeString))
134      return ResourceTypes.ENROLLMENTRESPONSE;
135    if ("EpisodeOfCare".equals(codeString))
136      return ResourceTypes.EPISODEOFCARE;
137    if ("ExpansionProfile".equals(codeString))
138      return ResourceTypes.EXPANSIONPROFILE;
139    if ("ExplanationOfBenefit".equals(codeString))
140      return ResourceTypes.EXPLANATIONOFBENEFIT;
141    if ("FamilyMemberHistory".equals(codeString))
142      return ResourceTypes.FAMILYMEMBERHISTORY;
143    if ("Flag".equals(codeString))
144      return ResourceTypes.FLAG;
145    if ("Goal".equals(codeString))
146      return ResourceTypes.GOAL;
147    if ("GraphDefinition".equals(codeString))
148      return ResourceTypes.GRAPHDEFINITION;
149    if ("Group".equals(codeString))
150      return ResourceTypes.GROUP;
151    if ("GuidanceResponse".equals(codeString))
152      return ResourceTypes.GUIDANCERESPONSE;
153    if ("HealthcareService".equals(codeString))
154      return ResourceTypes.HEALTHCARESERVICE;
155    if ("ImagingManifest".equals(codeString))
156      return ResourceTypes.IMAGINGMANIFEST;
157    if ("ImagingStudy".equals(codeString))
158      return ResourceTypes.IMAGINGSTUDY;
159    if ("Immunization".equals(codeString))
160      return ResourceTypes.IMMUNIZATION;
161    if ("ImmunizationRecommendation".equals(codeString))
162      return ResourceTypes.IMMUNIZATIONRECOMMENDATION;
163    if ("ImplementationGuide".equals(codeString))
164      return ResourceTypes.IMPLEMENTATIONGUIDE;
165    if ("Library".equals(codeString))
166      return ResourceTypes.LIBRARY;
167    if ("Linkage".equals(codeString))
168      return ResourceTypes.LINKAGE;
169    if ("List".equals(codeString))
170      return ResourceTypes.LIST;
171    if ("Location".equals(codeString))
172      return ResourceTypes.LOCATION;
173    if ("Measure".equals(codeString))
174      return ResourceTypes.MEASURE;
175    if ("MeasureReport".equals(codeString))
176      return ResourceTypes.MEASUREREPORT;
177    if ("Media".equals(codeString))
178      return ResourceTypes.MEDIA;
179    if ("Medication".equals(codeString))
180      return ResourceTypes.MEDICATION;
181    if ("MedicationAdministration".equals(codeString))
182      return ResourceTypes.MEDICATIONADMINISTRATION;
183    if ("MedicationDispense".equals(codeString))
184      return ResourceTypes.MEDICATIONDISPENSE;
185    if ("MedicationRequest".equals(codeString))
186      return ResourceTypes.MEDICATIONREQUEST;
187    if ("MedicationStatement".equals(codeString))
188      return ResourceTypes.MEDICATIONSTATEMENT;
189    if ("MessageDefinition".equals(codeString))
190      return ResourceTypes.MESSAGEDEFINITION;
191    if ("MessageHeader".equals(codeString))
192      return ResourceTypes.MESSAGEHEADER;
193    if ("NamingSystem".equals(codeString))
194      return ResourceTypes.NAMINGSYSTEM;
195    if ("NutritionOrder".equals(codeString))
196      return ResourceTypes.NUTRITIONORDER;
197    if ("Observation".equals(codeString))
198      return ResourceTypes.OBSERVATION;
199    if ("OperationDefinition".equals(codeString))
200      return ResourceTypes.OPERATIONDEFINITION;
201    if ("OperationOutcome".equals(codeString))
202      return ResourceTypes.OPERATIONOUTCOME;
203    if ("Organization".equals(codeString))
204      return ResourceTypes.ORGANIZATION;
205    if ("Parameters".equals(codeString))
206      return ResourceTypes.PARAMETERS;
207    if ("Patient".equals(codeString))
208      return ResourceTypes.PATIENT;
209    if ("PaymentNotice".equals(codeString))
210      return ResourceTypes.PAYMENTNOTICE;
211    if ("PaymentReconciliation".equals(codeString))
212      return ResourceTypes.PAYMENTRECONCILIATION;
213    if ("Person".equals(codeString))
214      return ResourceTypes.PERSON;
215    if ("PlanDefinition".equals(codeString))
216      return ResourceTypes.PLANDEFINITION;
217    if ("Practitioner".equals(codeString))
218      return ResourceTypes.PRACTITIONER;
219    if ("PractitionerRole".equals(codeString))
220      return ResourceTypes.PRACTITIONERROLE;
221    if ("Procedure".equals(codeString))
222      return ResourceTypes.PROCEDURE;
223    if ("ProcedureRequest".equals(codeString))
224      return ResourceTypes.PROCEDUREREQUEST;
225    if ("ProcessRequest".equals(codeString))
226      return ResourceTypes.PROCESSREQUEST;
227    if ("ProcessResponse".equals(codeString))
228      return ResourceTypes.PROCESSRESPONSE;
229    if ("Provenance".equals(codeString))
230      return ResourceTypes.PROVENANCE;
231    if ("Questionnaire".equals(codeString))
232      return ResourceTypes.QUESTIONNAIRE;
233    if ("QuestionnaireResponse".equals(codeString))
234      return ResourceTypes.QUESTIONNAIRERESPONSE;
235    if ("ReferralRequest".equals(codeString))
236      return ResourceTypes.REFERRALREQUEST;
237    if ("RelatedPerson".equals(codeString))
238      return ResourceTypes.RELATEDPERSON;
239    if ("RequestGroup".equals(codeString))
240      return ResourceTypes.REQUESTGROUP;
241    if ("ResearchStudy".equals(codeString))
242      return ResourceTypes.RESEARCHSTUDY;
243    if ("ResearchSubject".equals(codeString))
244      return ResourceTypes.RESEARCHSUBJECT;
245    if ("Resource".equals(codeString))
246      return ResourceTypes.RESOURCE;
247    if ("RiskAssessment".equals(codeString))
248      return ResourceTypes.RISKASSESSMENT;
249    if ("Schedule".equals(codeString))
250      return ResourceTypes.SCHEDULE;
251    if ("SearchParameter".equals(codeString))
252      return ResourceTypes.SEARCHPARAMETER;
253    if ("Sequence".equals(codeString))
254      return ResourceTypes.SEQUENCE;
255    if ("ServiceDefinition".equals(codeString))
256      return ResourceTypes.SERVICEDEFINITION;
257    if ("Slot".equals(codeString))
258      return ResourceTypes.SLOT;
259    if ("Specimen".equals(codeString))
260      return ResourceTypes.SPECIMEN;
261    if ("StructureDefinition".equals(codeString))
262      return ResourceTypes.STRUCTUREDEFINITION;
263    if ("StructureMap".equals(codeString))
264      return ResourceTypes.STRUCTUREMAP;
265    if ("Subscription".equals(codeString))
266      return ResourceTypes.SUBSCRIPTION;
267    if ("Substance".equals(codeString))
268      return ResourceTypes.SUBSTANCE;
269    if ("SupplyDelivery".equals(codeString))
270      return ResourceTypes.SUPPLYDELIVERY;
271    if ("SupplyRequest".equals(codeString))
272      return ResourceTypes.SUPPLYREQUEST;
273    if ("Task".equals(codeString))
274      return ResourceTypes.TASK;
275    if ("TestReport".equals(codeString))
276      return ResourceTypes.TESTREPORT;
277    if ("TestScript".equals(codeString))
278      return ResourceTypes.TESTSCRIPT;
279    if ("ValueSet".equals(codeString))
280      return ResourceTypes.VALUESET;
281    if ("VisionPrescription".equals(codeString))
282      return ResourceTypes.VISIONPRESCRIPTION;
283    throw new IllegalArgumentException("Unknown ResourceTypes code '"+codeString+"'");
284  }
285
286  public String toCode(ResourceTypes code) {
287    if (code == ResourceTypes.ACCOUNT)
288      return "Account";
289    if (code == ResourceTypes.ACTIVITYDEFINITION)
290      return "ActivityDefinition";
291    if (code == ResourceTypes.ADVERSEEVENT)
292      return "AdverseEvent";
293    if (code == ResourceTypes.ALLERGYINTOLERANCE)
294      return "AllergyIntolerance";
295    if (code == ResourceTypes.APPOINTMENT)
296      return "Appointment";
297    if (code == ResourceTypes.APPOINTMENTRESPONSE)
298      return "AppointmentResponse";
299    if (code == ResourceTypes.AUDITEVENT)
300      return "AuditEvent";
301    if (code == ResourceTypes.BASIC)
302      return "Basic";
303    if (code == ResourceTypes.BINARY)
304      return "Binary";
305    if (code == ResourceTypes.BODYSITE)
306      return "BodySite";
307    if (code == ResourceTypes.BUNDLE)
308      return "Bundle";
309    if (code == ResourceTypes.CAPABILITYSTATEMENT)
310      return "CapabilityStatement";
311    if (code == ResourceTypes.CAREPLAN)
312      return "CarePlan";
313    if (code == ResourceTypes.CARETEAM)
314      return "CareTeam";
315    if (code == ResourceTypes.CHARGEITEM)
316      return "ChargeItem";
317    if (code == ResourceTypes.CLAIM)
318      return "Claim";
319    if (code == ResourceTypes.CLAIMRESPONSE)
320      return "ClaimResponse";
321    if (code == ResourceTypes.CLINICALIMPRESSION)
322      return "ClinicalImpression";
323    if (code == ResourceTypes.CODESYSTEM)
324      return "CodeSystem";
325    if (code == ResourceTypes.COMMUNICATION)
326      return "Communication";
327    if (code == ResourceTypes.COMMUNICATIONREQUEST)
328      return "CommunicationRequest";
329    if (code == ResourceTypes.COMPARTMENTDEFINITION)
330      return "CompartmentDefinition";
331    if (code == ResourceTypes.COMPOSITION)
332      return "Composition";
333    if (code == ResourceTypes.CONCEPTMAP)
334      return "ConceptMap";
335    if (code == ResourceTypes.CONDITION)
336      return "Condition";
337    if (code == ResourceTypes.CONSENT)
338      return "Consent";
339    if (code == ResourceTypes.CONTRACT)
340      return "Contract";
341    if (code == ResourceTypes.COVERAGE)
342      return "Coverage";
343    if (code == ResourceTypes.DATAELEMENT)
344      return "DataElement";
345    if (code == ResourceTypes.DETECTEDISSUE)
346      return "DetectedIssue";
347    if (code == ResourceTypes.DEVICE)
348      return "Device";
349    if (code == ResourceTypes.DEVICECOMPONENT)
350      return "DeviceComponent";
351    if (code == ResourceTypes.DEVICEMETRIC)
352      return "DeviceMetric";
353    if (code == ResourceTypes.DEVICEREQUEST)
354      return "DeviceRequest";
355    if (code == ResourceTypes.DEVICEUSESTATEMENT)
356      return "DeviceUseStatement";
357    if (code == ResourceTypes.DIAGNOSTICREPORT)
358      return "DiagnosticReport";
359    if (code == ResourceTypes.DOCUMENTMANIFEST)
360      return "DocumentManifest";
361    if (code == ResourceTypes.DOCUMENTREFERENCE)
362      return "DocumentReference";
363    if (code == ResourceTypes.DOMAINRESOURCE)
364      return "DomainResource";
365    if (code == ResourceTypes.ELIGIBILITYREQUEST)
366      return "EligibilityRequest";
367    if (code == ResourceTypes.ELIGIBILITYRESPONSE)
368      return "EligibilityResponse";
369    if (code == ResourceTypes.ENCOUNTER)
370      return "Encounter";
371    if (code == ResourceTypes.ENDPOINT)
372      return "Endpoint";
373    if (code == ResourceTypes.ENROLLMENTREQUEST)
374      return "EnrollmentRequest";
375    if (code == ResourceTypes.ENROLLMENTRESPONSE)
376      return "EnrollmentResponse";
377    if (code == ResourceTypes.EPISODEOFCARE)
378      return "EpisodeOfCare";
379    if (code == ResourceTypes.EXPANSIONPROFILE)
380      return "ExpansionProfile";
381    if (code == ResourceTypes.EXPLANATIONOFBENEFIT)
382      return "ExplanationOfBenefit";
383    if (code == ResourceTypes.FAMILYMEMBERHISTORY)
384      return "FamilyMemberHistory";
385    if (code == ResourceTypes.FLAG)
386      return "Flag";
387    if (code == ResourceTypes.GOAL)
388      return "Goal";
389    if (code == ResourceTypes.GRAPHDEFINITION)
390      return "GraphDefinition";
391    if (code == ResourceTypes.GROUP)
392      return "Group";
393    if (code == ResourceTypes.GUIDANCERESPONSE)
394      return "GuidanceResponse";
395    if (code == ResourceTypes.HEALTHCARESERVICE)
396      return "HealthcareService";
397    if (code == ResourceTypes.IMAGINGMANIFEST)
398      return "ImagingManifest";
399    if (code == ResourceTypes.IMAGINGSTUDY)
400      return "ImagingStudy";
401    if (code == ResourceTypes.IMMUNIZATION)
402      return "Immunization";
403    if (code == ResourceTypes.IMMUNIZATIONRECOMMENDATION)
404      return "ImmunizationRecommendation";
405    if (code == ResourceTypes.IMPLEMENTATIONGUIDE)
406      return "ImplementationGuide";
407    if (code == ResourceTypes.LIBRARY)
408      return "Library";
409    if (code == ResourceTypes.LINKAGE)
410      return "Linkage";
411    if (code == ResourceTypes.LIST)
412      return "List";
413    if (code == ResourceTypes.LOCATION)
414      return "Location";
415    if (code == ResourceTypes.MEASURE)
416      return "Measure";
417    if (code == ResourceTypes.MEASUREREPORT)
418      return "MeasureReport";
419    if (code == ResourceTypes.MEDIA)
420      return "Media";
421    if (code == ResourceTypes.MEDICATION)
422      return "Medication";
423    if (code == ResourceTypes.MEDICATIONADMINISTRATION)
424      return "MedicationAdministration";
425    if (code == ResourceTypes.MEDICATIONDISPENSE)
426      return "MedicationDispense";
427    if (code == ResourceTypes.MEDICATIONREQUEST)
428      return "MedicationRequest";
429    if (code == ResourceTypes.MEDICATIONSTATEMENT)
430      return "MedicationStatement";
431    if (code == ResourceTypes.MESSAGEDEFINITION)
432      return "MessageDefinition";
433    if (code == ResourceTypes.MESSAGEHEADER)
434      return "MessageHeader";
435    if (code == ResourceTypes.NAMINGSYSTEM)
436      return "NamingSystem";
437    if (code == ResourceTypes.NUTRITIONORDER)
438      return "NutritionOrder";
439    if (code == ResourceTypes.OBSERVATION)
440      return "Observation";
441    if (code == ResourceTypes.OPERATIONDEFINITION)
442      return "OperationDefinition";
443    if (code == ResourceTypes.OPERATIONOUTCOME)
444      return "OperationOutcome";
445    if (code == ResourceTypes.ORGANIZATION)
446      return "Organization";
447    if (code == ResourceTypes.PARAMETERS)
448      return "Parameters";
449    if (code == ResourceTypes.PATIENT)
450      return "Patient";
451    if (code == ResourceTypes.PAYMENTNOTICE)
452      return "PaymentNotice";
453    if (code == ResourceTypes.PAYMENTRECONCILIATION)
454      return "PaymentReconciliation";
455    if (code == ResourceTypes.PERSON)
456      return "Person";
457    if (code == ResourceTypes.PLANDEFINITION)
458      return "PlanDefinition";
459    if (code == ResourceTypes.PRACTITIONER)
460      return "Practitioner";
461    if (code == ResourceTypes.PRACTITIONERROLE)
462      return "PractitionerRole";
463    if (code == ResourceTypes.PROCEDURE)
464      return "Procedure";
465    if (code == ResourceTypes.PROCEDUREREQUEST)
466      return "ProcedureRequest";
467    if (code == ResourceTypes.PROCESSREQUEST)
468      return "ProcessRequest";
469    if (code == ResourceTypes.PROCESSRESPONSE)
470      return "ProcessResponse";
471    if (code == ResourceTypes.PROVENANCE)
472      return "Provenance";
473    if (code == ResourceTypes.QUESTIONNAIRE)
474      return "Questionnaire";
475    if (code == ResourceTypes.QUESTIONNAIRERESPONSE)
476      return "QuestionnaireResponse";
477    if (code == ResourceTypes.REFERRALREQUEST)
478      return "ReferralRequest";
479    if (code == ResourceTypes.RELATEDPERSON)
480      return "RelatedPerson";
481    if (code == ResourceTypes.REQUESTGROUP)
482      return "RequestGroup";
483    if (code == ResourceTypes.RESEARCHSTUDY)
484      return "ResearchStudy";
485    if (code == ResourceTypes.RESEARCHSUBJECT)
486      return "ResearchSubject";
487    if (code == ResourceTypes.RESOURCE)
488      return "Resource";
489    if (code == ResourceTypes.RISKASSESSMENT)
490      return "RiskAssessment";
491    if (code == ResourceTypes.SCHEDULE)
492      return "Schedule";
493    if (code == ResourceTypes.SEARCHPARAMETER)
494      return "SearchParameter";
495    if (code == ResourceTypes.SEQUENCE)
496      return "Sequence";
497    if (code == ResourceTypes.SERVICEDEFINITION)
498      return "ServiceDefinition";
499    if (code == ResourceTypes.SLOT)
500      return "Slot";
501    if (code == ResourceTypes.SPECIMEN)
502      return "Specimen";
503    if (code == ResourceTypes.STRUCTUREDEFINITION)
504      return "StructureDefinition";
505    if (code == ResourceTypes.STRUCTUREMAP)
506      return "StructureMap";
507    if (code == ResourceTypes.SUBSCRIPTION)
508      return "Subscription";
509    if (code == ResourceTypes.SUBSTANCE)
510      return "Substance";
511    if (code == ResourceTypes.SUPPLYDELIVERY)
512      return "SupplyDelivery";
513    if (code == ResourceTypes.SUPPLYREQUEST)
514      return "SupplyRequest";
515    if (code == ResourceTypes.TASK)
516      return "Task";
517    if (code == ResourceTypes.TESTREPORT)
518      return "TestReport";
519    if (code == ResourceTypes.TESTSCRIPT)
520      return "TestScript";
521    if (code == ResourceTypes.VALUESET)
522      return "ValueSet";
523    if (code == ResourceTypes.VISIONPRESCRIPTION)
524      return "VisionPrescription";
525    return "?";
526  }
527
528    public String toSystem(ResourceTypes code) {
529      return code.getSystem();
530      }
531
532}