
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.NULL) 288 return null; 289 if (code == ResourceTypes.ACCOUNT) 290 return "Account"; 291 if (code == ResourceTypes.ACTIVITYDEFINITION) 292 return "ActivityDefinition"; 293 if (code == ResourceTypes.ADVERSEEVENT) 294 return "AdverseEvent"; 295 if (code == ResourceTypes.ALLERGYINTOLERANCE) 296 return "AllergyIntolerance"; 297 if (code == ResourceTypes.APPOINTMENT) 298 return "Appointment"; 299 if (code == ResourceTypes.APPOINTMENTRESPONSE) 300 return "AppointmentResponse"; 301 if (code == ResourceTypes.AUDITEVENT) 302 return "AuditEvent"; 303 if (code == ResourceTypes.BASIC) 304 return "Basic"; 305 if (code == ResourceTypes.BINARY) 306 return "Binary"; 307 if (code == ResourceTypes.BODYSITE) 308 return "BodySite"; 309 if (code == ResourceTypes.BUNDLE) 310 return "Bundle"; 311 if (code == ResourceTypes.CAPABILITYSTATEMENT) 312 return "CapabilityStatement"; 313 if (code == ResourceTypes.CAREPLAN) 314 return "CarePlan"; 315 if (code == ResourceTypes.CARETEAM) 316 return "CareTeam"; 317 if (code == ResourceTypes.CHARGEITEM) 318 return "ChargeItem"; 319 if (code == ResourceTypes.CLAIM) 320 return "Claim"; 321 if (code == ResourceTypes.CLAIMRESPONSE) 322 return "ClaimResponse"; 323 if (code == ResourceTypes.CLINICALIMPRESSION) 324 return "ClinicalImpression"; 325 if (code == ResourceTypes.CODESYSTEM) 326 return "CodeSystem"; 327 if (code == ResourceTypes.COMMUNICATION) 328 return "Communication"; 329 if (code == ResourceTypes.COMMUNICATIONREQUEST) 330 return "CommunicationRequest"; 331 if (code == ResourceTypes.COMPARTMENTDEFINITION) 332 return "CompartmentDefinition"; 333 if (code == ResourceTypes.COMPOSITION) 334 return "Composition"; 335 if (code == ResourceTypes.CONCEPTMAP) 336 return "ConceptMap"; 337 if (code == ResourceTypes.CONDITION) 338 return "Condition"; 339 if (code == ResourceTypes.CONSENT) 340 return "Consent"; 341 if (code == ResourceTypes.CONTRACT) 342 return "Contract"; 343 if (code == ResourceTypes.COVERAGE) 344 return "Coverage"; 345 if (code == ResourceTypes.DATAELEMENT) 346 return "DataElement"; 347 if (code == ResourceTypes.DETECTEDISSUE) 348 return "DetectedIssue"; 349 if (code == ResourceTypes.DEVICE) 350 return "Device"; 351 if (code == ResourceTypes.DEVICECOMPONENT) 352 return "DeviceComponent"; 353 if (code == ResourceTypes.DEVICEMETRIC) 354 return "DeviceMetric"; 355 if (code == ResourceTypes.DEVICEREQUEST) 356 return "DeviceRequest"; 357 if (code == ResourceTypes.DEVICEUSESTATEMENT) 358 return "DeviceUseStatement"; 359 if (code == ResourceTypes.DIAGNOSTICREPORT) 360 return "DiagnosticReport"; 361 if (code == ResourceTypes.DOCUMENTMANIFEST) 362 return "DocumentManifest"; 363 if (code == ResourceTypes.DOCUMENTREFERENCE) 364 return "DocumentReference"; 365 if (code == ResourceTypes.DOMAINRESOURCE) 366 return "DomainResource"; 367 if (code == ResourceTypes.ELIGIBILITYREQUEST) 368 return "EligibilityRequest"; 369 if (code == ResourceTypes.ELIGIBILITYRESPONSE) 370 return "EligibilityResponse"; 371 if (code == ResourceTypes.ENCOUNTER) 372 return "Encounter"; 373 if (code == ResourceTypes.ENDPOINT) 374 return "Endpoint"; 375 if (code == ResourceTypes.ENROLLMENTREQUEST) 376 return "EnrollmentRequest"; 377 if (code == ResourceTypes.ENROLLMENTRESPONSE) 378 return "EnrollmentResponse"; 379 if (code == ResourceTypes.EPISODEOFCARE) 380 return "EpisodeOfCare"; 381 if (code == ResourceTypes.EXPANSIONPROFILE) 382 return "ExpansionProfile"; 383 if (code == ResourceTypes.EXPLANATIONOFBENEFIT) 384 return "ExplanationOfBenefit"; 385 if (code == ResourceTypes.FAMILYMEMBERHISTORY) 386 return "FamilyMemberHistory"; 387 if (code == ResourceTypes.FLAG) 388 return "Flag"; 389 if (code == ResourceTypes.GOAL) 390 return "Goal"; 391 if (code == ResourceTypes.GRAPHDEFINITION) 392 return "GraphDefinition"; 393 if (code == ResourceTypes.GROUP) 394 return "Group"; 395 if (code == ResourceTypes.GUIDANCERESPONSE) 396 return "GuidanceResponse"; 397 if (code == ResourceTypes.HEALTHCARESERVICE) 398 return "HealthcareService"; 399 if (code == ResourceTypes.IMAGINGMANIFEST) 400 return "ImagingManifest"; 401 if (code == ResourceTypes.IMAGINGSTUDY) 402 return "ImagingStudy"; 403 if (code == ResourceTypes.IMMUNIZATION) 404 return "Immunization"; 405 if (code == ResourceTypes.IMMUNIZATIONRECOMMENDATION) 406 return "ImmunizationRecommendation"; 407 if (code == ResourceTypes.IMPLEMENTATIONGUIDE) 408 return "ImplementationGuide"; 409 if (code == ResourceTypes.LIBRARY) 410 return "Library"; 411 if (code == ResourceTypes.LINKAGE) 412 return "Linkage"; 413 if (code == ResourceTypes.LIST) 414 return "List"; 415 if (code == ResourceTypes.LOCATION) 416 return "Location"; 417 if (code == ResourceTypes.MEASURE) 418 return "Measure"; 419 if (code == ResourceTypes.MEASUREREPORT) 420 return "MeasureReport"; 421 if (code == ResourceTypes.MEDIA) 422 return "Media"; 423 if (code == ResourceTypes.MEDICATION) 424 return "Medication"; 425 if (code == ResourceTypes.MEDICATIONADMINISTRATION) 426 return "MedicationAdministration"; 427 if (code == ResourceTypes.MEDICATIONDISPENSE) 428 return "MedicationDispense"; 429 if (code == ResourceTypes.MEDICATIONREQUEST) 430 return "MedicationRequest"; 431 if (code == ResourceTypes.MEDICATIONSTATEMENT) 432 return "MedicationStatement"; 433 if (code == ResourceTypes.MESSAGEDEFINITION) 434 return "MessageDefinition"; 435 if (code == ResourceTypes.MESSAGEHEADER) 436 return "MessageHeader"; 437 if (code == ResourceTypes.NAMINGSYSTEM) 438 return "NamingSystem"; 439 if (code == ResourceTypes.NUTRITIONORDER) 440 return "NutritionOrder"; 441 if (code == ResourceTypes.OBSERVATION) 442 return "Observation"; 443 if (code == ResourceTypes.OPERATIONDEFINITION) 444 return "OperationDefinition"; 445 if (code == ResourceTypes.OPERATIONOUTCOME) 446 return "OperationOutcome"; 447 if (code == ResourceTypes.ORGANIZATION) 448 return "Organization"; 449 if (code == ResourceTypes.PARAMETERS) 450 return "Parameters"; 451 if (code == ResourceTypes.PATIENT) 452 return "Patient"; 453 if (code == ResourceTypes.PAYMENTNOTICE) 454 return "PaymentNotice"; 455 if (code == ResourceTypes.PAYMENTRECONCILIATION) 456 return "PaymentReconciliation"; 457 if (code == ResourceTypes.PERSON) 458 return "Person"; 459 if (code == ResourceTypes.PLANDEFINITION) 460 return "PlanDefinition"; 461 if (code == ResourceTypes.PRACTITIONER) 462 return "Practitioner"; 463 if (code == ResourceTypes.PRACTITIONERROLE) 464 return "PractitionerRole"; 465 if (code == ResourceTypes.PROCEDURE) 466 return "Procedure"; 467 if (code == ResourceTypes.PROCEDUREREQUEST) 468 return "ProcedureRequest"; 469 if (code == ResourceTypes.PROCESSREQUEST) 470 return "ProcessRequest"; 471 if (code == ResourceTypes.PROCESSRESPONSE) 472 return "ProcessResponse"; 473 if (code == ResourceTypes.PROVENANCE) 474 return "Provenance"; 475 if (code == ResourceTypes.QUESTIONNAIRE) 476 return "Questionnaire"; 477 if (code == ResourceTypes.QUESTIONNAIRERESPONSE) 478 return "QuestionnaireResponse"; 479 if (code == ResourceTypes.REFERRALREQUEST) 480 return "ReferralRequest"; 481 if (code == ResourceTypes.RELATEDPERSON) 482 return "RelatedPerson"; 483 if (code == ResourceTypes.REQUESTGROUP) 484 return "RequestGroup"; 485 if (code == ResourceTypes.RESEARCHSTUDY) 486 return "ResearchStudy"; 487 if (code == ResourceTypes.RESEARCHSUBJECT) 488 return "ResearchSubject"; 489 if (code == ResourceTypes.RESOURCE) 490 return "Resource"; 491 if (code == ResourceTypes.RISKASSESSMENT) 492 return "RiskAssessment"; 493 if (code == ResourceTypes.SCHEDULE) 494 return "Schedule"; 495 if (code == ResourceTypes.SEARCHPARAMETER) 496 return "SearchParameter"; 497 if (code == ResourceTypes.SEQUENCE) 498 return "Sequence"; 499 if (code == ResourceTypes.SERVICEDEFINITION) 500 return "ServiceDefinition"; 501 if (code == ResourceTypes.SLOT) 502 return "Slot"; 503 if (code == ResourceTypes.SPECIMEN) 504 return "Specimen"; 505 if (code == ResourceTypes.STRUCTUREDEFINITION) 506 return "StructureDefinition"; 507 if (code == ResourceTypes.STRUCTUREMAP) 508 return "StructureMap"; 509 if (code == ResourceTypes.SUBSCRIPTION) 510 return "Subscription"; 511 if (code == ResourceTypes.SUBSTANCE) 512 return "Substance"; 513 if (code == ResourceTypes.SUPPLYDELIVERY) 514 return "SupplyDelivery"; 515 if (code == ResourceTypes.SUPPLYREQUEST) 516 return "SupplyRequest"; 517 if (code == ResourceTypes.TASK) 518 return "Task"; 519 if (code == ResourceTypes.TESTREPORT) 520 return "TestReport"; 521 if (code == ResourceTypes.TESTSCRIPT) 522 return "TestScript"; 523 if (code == ResourceTypes.VALUESET) 524 return "ValueSet"; 525 if (code == ResourceTypes.VISIONPRESCRIPTION) 526 return "VisionPrescription"; 527 return "?"; 528 } 529 530 public String toSystem(ResourceTypes code) { 531 return code.getSystem(); 532 } 533 534}