![](/hapi-fhir/images/logos/raccoon-forwards.png)
001package org.hl7.fhir.r4.model; 002 003import org.hl7.fhir.exceptions.FHIRException; 004 005// Generated on Tue, May 12, 2020 07:26+1000 for FHIR v4.0.1 006 007public enum ResourceType { 008 Account, ActivityDefinition, AdverseEvent, AllergyIntolerance, Appointment, AppointmentResponse, AuditEvent, Basic, 009 Binary, BiologicallyDerivedProduct, BodyStructure, Bundle, CapabilityStatement, CarePlan, CareTeam, CatalogEntry, 010 ChargeItem, ChargeItemDefinition, Claim, ClaimResponse, ClinicalImpression, CodeSystem, Communication, 011 CommunicationRequest, CompartmentDefinition, Composition, ConceptMap, Condition, Consent, Contract, Coverage, 012 CoverageEligibilityRequest, CoverageEligibilityResponse, DetectedIssue, Device, DeviceDefinition, DeviceMetric, 013 DeviceRequest, DeviceUseStatement, DiagnosticReport, DocumentManifest, DocumentReference, EffectEvidenceSynthesis, 014 Encounter, Endpoint, EnrollmentRequest, EnrollmentResponse, EpisodeOfCare, EventDefinition, Evidence, 015 EvidenceVariable, ExampleScenario, ExplanationOfBenefit, FamilyMemberHistory, Flag, Goal, GraphDefinition, Group, 016 GuidanceResponse, HealthcareService, ImagingStudy, Immunization, ImmunizationEvaluation, ImmunizationRecommendation, 017 ImplementationGuide, InsurancePlan, Invoice, Library, Linkage, List, Location, Measure, MeasureReport, Media, 018 Medication, MedicationAdministration, MedicationDispense, MedicationKnowledge, MedicationRequest, MedicationStatement, 019 MedicinalProduct, MedicinalProductAuthorization, MedicinalProductContraindication, MedicinalProductIndication, 020 MedicinalProductIngredient, MedicinalProductInteraction, MedicinalProductManufactured, MedicinalProductPackaged, 021 MedicinalProductPharmaceutical, MedicinalProductUndesirableEffect, MessageDefinition, MessageHeader, 022 MolecularSequence, NamingSystem, NutritionOrder, Observation, ObservationDefinition, OperationDefinition, 023 OperationOutcome, Organization, OrganizationAffiliation, Parameters, Patient, PaymentNotice, PaymentReconciliation, 024 Person, PlanDefinition, Practitioner, PractitionerRole, Procedure, Provenance, Questionnaire, QuestionnaireResponse, 025 RelatedPerson, RequestGroup, ResearchDefinition, ResearchElementDefinition, ResearchStudy, ResearchSubject, 026 RiskAssessment, RiskEvidenceSynthesis, Schedule, SearchParameter, ServiceRequest, Slot, Specimen, SpecimenDefinition, 027 StructureDefinition, StructureMap, Subscription, Substance, SubstanceNucleicAcid, SubstancePolymer, SubstanceProtein, 028 SubstanceReferenceInformation, SubstanceSourceMaterial, SubstanceSpecification, SupplyDelivery, SupplyRequest, Task, 029 TerminologyCapabilities, TestReport, TestScript, ValueSet, VerificationResult, VisionPrescription; 030 031 public String getPath() { 032 ; 033 switch (this) { 034 case Account: 035 return "account"; 036 case ActivityDefinition: 037 return "activitydefinition"; 038 case AdverseEvent: 039 return "adverseevent"; 040 case AllergyIntolerance: 041 return "allergyintolerance"; 042 case Appointment: 043 return "appointment"; 044 case AppointmentResponse: 045 return "appointmentresponse"; 046 case AuditEvent: 047 return "auditevent"; 048 case Basic: 049 return "basic"; 050 case Binary: 051 return "binary"; 052 case BiologicallyDerivedProduct: 053 return "biologicallyderivedproduct"; 054 case BodyStructure: 055 return "bodystructure"; 056 case Bundle: 057 return "bundle"; 058 case CapabilityStatement: 059 return "capabilitystatement"; 060 case CarePlan: 061 return "careplan"; 062 case CareTeam: 063 return "careteam"; 064 case CatalogEntry: 065 return "catalogentry"; 066 case ChargeItem: 067 return "chargeitem"; 068 case ChargeItemDefinition: 069 return "chargeitemdefinition"; 070 case Claim: 071 return "claim"; 072 case ClaimResponse: 073 return "claimresponse"; 074 case ClinicalImpression: 075 return "clinicalimpression"; 076 case CodeSystem: 077 return "codesystem"; 078 case Communication: 079 return "communication"; 080 case CommunicationRequest: 081 return "communicationrequest"; 082 case CompartmentDefinition: 083 return "compartmentdefinition"; 084 case Composition: 085 return "composition"; 086 case ConceptMap: 087 return "conceptmap"; 088 case Condition: 089 return "condition"; 090 case Consent: 091 return "consent"; 092 case Contract: 093 return "contract"; 094 case Coverage: 095 return "coverage"; 096 case CoverageEligibilityRequest: 097 return "coverageeligibilityrequest"; 098 case CoverageEligibilityResponse: 099 return "coverageeligibilityresponse"; 100 case DetectedIssue: 101 return "detectedissue"; 102 case Device: 103 return "device"; 104 case DeviceDefinition: 105 return "devicedefinition"; 106 case DeviceMetric: 107 return "devicemetric"; 108 case DeviceRequest: 109 return "devicerequest"; 110 case DeviceUseStatement: 111 return "deviceusestatement"; 112 case DiagnosticReport: 113 return "diagnosticreport"; 114 case DocumentManifest: 115 return "documentmanifest"; 116 case DocumentReference: 117 return "documentreference"; 118 case EffectEvidenceSynthesis: 119 return "effectevidencesynthesis"; 120 case Encounter: 121 return "encounter"; 122 case Endpoint: 123 return "endpoint"; 124 case EnrollmentRequest: 125 return "enrollmentrequest"; 126 case EnrollmentResponse: 127 return "enrollmentresponse"; 128 case EpisodeOfCare: 129 return "episodeofcare"; 130 case EventDefinition: 131 return "eventdefinition"; 132 case Evidence: 133 return "evidence"; 134 case EvidenceVariable: 135 return "evidencevariable"; 136 case ExampleScenario: 137 return "examplescenario"; 138 case ExplanationOfBenefit: 139 return "explanationofbenefit"; 140 case FamilyMemberHistory: 141 return "familymemberhistory"; 142 case Flag: 143 return "flag"; 144 case Goal: 145 return "goal"; 146 case GraphDefinition: 147 return "graphdefinition"; 148 case Group: 149 return "group"; 150 case GuidanceResponse: 151 return "guidanceresponse"; 152 case HealthcareService: 153 return "healthcareservice"; 154 case ImagingStudy: 155 return "imagingstudy"; 156 case Immunization: 157 return "immunization"; 158 case ImmunizationEvaluation: 159 return "immunizationevaluation"; 160 case ImmunizationRecommendation: 161 return "immunizationrecommendation"; 162 case ImplementationGuide: 163 return "implementationguide"; 164 case InsurancePlan: 165 return "insuranceplan"; 166 case Invoice: 167 return "invoice"; 168 case Library: 169 return "library"; 170 case Linkage: 171 return "linkage"; 172 case List: 173 return "list"; 174 case Location: 175 return "location"; 176 case Measure: 177 return "measure"; 178 case MeasureReport: 179 return "measurereport"; 180 case Media: 181 return "media"; 182 case Medication: 183 return "medication"; 184 case MedicationAdministration: 185 return "medicationadministration"; 186 case MedicationDispense: 187 return "medicationdispense"; 188 case MedicationKnowledge: 189 return "medicationknowledge"; 190 case MedicationRequest: 191 return "medicationrequest"; 192 case MedicationStatement: 193 return "medicationstatement"; 194 case MedicinalProduct: 195 return "medicinalproduct"; 196 case MedicinalProductAuthorization: 197 return "medicinalproductauthorization"; 198 case MedicinalProductContraindication: 199 return "medicinalproductcontraindication"; 200 case MedicinalProductIndication: 201 return "medicinalproductindication"; 202 case MedicinalProductIngredient: 203 return "medicinalproductingredient"; 204 case MedicinalProductInteraction: 205 return "medicinalproductinteraction"; 206 case MedicinalProductManufactured: 207 return "medicinalproductmanufactured"; 208 case MedicinalProductPackaged: 209 return "medicinalproductpackaged"; 210 case MedicinalProductPharmaceutical: 211 return "medicinalproductpharmaceutical"; 212 case MedicinalProductUndesirableEffect: 213 return "medicinalproductundesirableeffect"; 214 case MessageDefinition: 215 return "messagedefinition"; 216 case MessageHeader: 217 return "messageheader"; 218 case MolecularSequence: 219 return "molecularsequence"; 220 case NamingSystem: 221 return "namingsystem"; 222 case NutritionOrder: 223 return "nutritionorder"; 224 case Observation: 225 return "observation"; 226 case ObservationDefinition: 227 return "observationdefinition"; 228 case OperationDefinition: 229 return "operationdefinition"; 230 case OperationOutcome: 231 return "operationoutcome"; 232 case Organization: 233 return "organization"; 234 case OrganizationAffiliation: 235 return "organizationaffiliation"; 236 case Parameters: 237 return "parameters"; 238 case Patient: 239 return "patient"; 240 case PaymentNotice: 241 return "paymentnotice"; 242 case PaymentReconciliation: 243 return "paymentreconciliation"; 244 case Person: 245 return "person"; 246 case PlanDefinition: 247 return "plandefinition"; 248 case Practitioner: 249 return "practitioner"; 250 case PractitionerRole: 251 return "practitionerrole"; 252 case Procedure: 253 return "procedure"; 254 case Provenance: 255 return "provenance"; 256 case Questionnaire: 257 return "questionnaire"; 258 case QuestionnaireResponse: 259 return "questionnaireresponse"; 260 case RelatedPerson: 261 return "relatedperson"; 262 case RequestGroup: 263 return "requestgroup"; 264 case ResearchDefinition: 265 return "researchdefinition"; 266 case ResearchElementDefinition: 267 return "researchelementdefinition"; 268 case ResearchStudy: 269 return "researchstudy"; 270 case ResearchSubject: 271 return "researchsubject"; 272 case RiskAssessment: 273 return "riskassessment"; 274 case RiskEvidenceSynthesis: 275 return "riskevidencesynthesis"; 276 case Schedule: 277 return "schedule"; 278 case SearchParameter: 279 return "searchparameter"; 280 case ServiceRequest: 281 return "servicerequest"; 282 case Slot: 283 return "slot"; 284 case Specimen: 285 return "specimen"; 286 case SpecimenDefinition: 287 return "specimendefinition"; 288 case StructureDefinition: 289 return "structuredefinition"; 290 case StructureMap: 291 return "structuremap"; 292 case Subscription: 293 return "subscription"; 294 case Substance: 295 return "substance"; 296 case SubstanceNucleicAcid: 297 return "substancenucleicacid"; 298 case SubstancePolymer: 299 return "substancepolymer"; 300 case SubstanceProtein: 301 return "substanceprotein"; 302 case SubstanceReferenceInformation: 303 return "substancereferenceinformation"; 304 case SubstanceSourceMaterial: 305 return "substancesourcematerial"; 306 case SubstanceSpecification: 307 return "substancespecification"; 308 case SupplyDelivery: 309 return "supplydelivery"; 310 case SupplyRequest: 311 return "supplyrequest"; 312 case Task: 313 return "task"; 314 case TerminologyCapabilities: 315 return "terminologycapabilities"; 316 case TestReport: 317 return "testreport"; 318 case TestScript: 319 return "testscript"; 320 case ValueSet: 321 return "valueset"; 322 case VerificationResult: 323 return "verificationresult"; 324 case VisionPrescription: 325 return "visionprescription"; 326 } 327 return null; 328 } 329 330 public static ResourceType fromCode(String code) throws FHIRException { 331 ; 332 if ("Account".equals(code)) 333 return Account; 334 if ("ActivityDefinition".equals(code)) 335 return ActivityDefinition; 336 if ("AdverseEvent".equals(code)) 337 return AdverseEvent; 338 if ("AllergyIntolerance".equals(code)) 339 return AllergyIntolerance; 340 if ("Appointment".equals(code)) 341 return Appointment; 342 if ("AppointmentResponse".equals(code)) 343 return AppointmentResponse; 344 if ("AuditEvent".equals(code)) 345 return AuditEvent; 346 if ("Basic".equals(code)) 347 return Basic; 348 if ("Binary".equals(code)) 349 return Binary; 350 if ("BiologicallyDerivedProduct".equals(code)) 351 return BiologicallyDerivedProduct; 352 if ("BodyStructure".equals(code)) 353 return BodyStructure; 354 if ("Bundle".equals(code)) 355 return Bundle; 356 if ("CapabilityStatement".equals(code)) 357 return CapabilityStatement; 358 if ("CarePlan".equals(code)) 359 return CarePlan; 360 if ("CareTeam".equals(code)) 361 return CareTeam; 362 if ("CatalogEntry".equals(code)) 363 return CatalogEntry; 364 if ("ChargeItem".equals(code)) 365 return ChargeItem; 366 if ("ChargeItemDefinition".equals(code)) 367 return ChargeItemDefinition; 368 if ("Claim".equals(code)) 369 return Claim; 370 if ("ClaimResponse".equals(code)) 371 return ClaimResponse; 372 if ("ClinicalImpression".equals(code)) 373 return ClinicalImpression; 374 if ("CodeSystem".equals(code)) 375 return CodeSystem; 376 if ("Communication".equals(code)) 377 return Communication; 378 if ("CommunicationRequest".equals(code)) 379 return CommunicationRequest; 380 if ("CompartmentDefinition".equals(code)) 381 return CompartmentDefinition; 382 if ("Composition".equals(code)) 383 return Composition; 384 if ("ConceptMap".equals(code)) 385 return ConceptMap; 386 if ("Condition".equals(code)) 387 return Condition; 388 if ("Consent".equals(code)) 389 return Consent; 390 if ("Contract".equals(code)) 391 return Contract; 392 if ("Coverage".equals(code)) 393 return Coverage; 394 if ("CoverageEligibilityRequest".equals(code)) 395 return CoverageEligibilityRequest; 396 if ("CoverageEligibilityResponse".equals(code)) 397 return CoverageEligibilityResponse; 398 if ("DetectedIssue".equals(code)) 399 return DetectedIssue; 400 if ("Device".equals(code)) 401 return Device; 402 if ("DeviceDefinition".equals(code)) 403 return DeviceDefinition; 404 if ("DeviceMetric".equals(code)) 405 return DeviceMetric; 406 if ("DeviceRequest".equals(code)) 407 return DeviceRequest; 408 if ("DeviceUseStatement".equals(code)) 409 return DeviceUseStatement; 410 if ("DiagnosticReport".equals(code)) 411 return DiagnosticReport; 412 if ("DocumentManifest".equals(code)) 413 return DocumentManifest; 414 if ("DocumentReference".equals(code)) 415 return DocumentReference; 416 if ("EffectEvidenceSynthesis".equals(code)) 417 return EffectEvidenceSynthesis; 418 if ("Encounter".equals(code)) 419 return Encounter; 420 if ("Endpoint".equals(code)) 421 return Endpoint; 422 if ("EnrollmentRequest".equals(code)) 423 return EnrollmentRequest; 424 if ("EnrollmentResponse".equals(code)) 425 return EnrollmentResponse; 426 if ("EpisodeOfCare".equals(code)) 427 return EpisodeOfCare; 428 if ("EventDefinition".equals(code)) 429 return EventDefinition; 430 if ("Evidence".equals(code)) 431 return Evidence; 432 if ("EvidenceVariable".equals(code)) 433 return EvidenceVariable; 434 if ("ExampleScenario".equals(code)) 435 return ExampleScenario; 436 if ("ExplanationOfBenefit".equals(code)) 437 return ExplanationOfBenefit; 438 if ("FamilyMemberHistory".equals(code)) 439 return FamilyMemberHistory; 440 if ("Flag".equals(code)) 441 return Flag; 442 if ("Goal".equals(code)) 443 return Goal; 444 if ("GraphDefinition".equals(code)) 445 return GraphDefinition; 446 if ("Group".equals(code)) 447 return Group; 448 if ("GuidanceResponse".equals(code)) 449 return GuidanceResponse; 450 if ("HealthcareService".equals(code)) 451 return HealthcareService; 452 if ("ImagingStudy".equals(code)) 453 return ImagingStudy; 454 if ("Immunization".equals(code)) 455 return Immunization; 456 if ("ImmunizationEvaluation".equals(code)) 457 return ImmunizationEvaluation; 458 if ("ImmunizationRecommendation".equals(code)) 459 return ImmunizationRecommendation; 460 if ("ImplementationGuide".equals(code)) 461 return ImplementationGuide; 462 if ("InsurancePlan".equals(code)) 463 return InsurancePlan; 464 if ("Invoice".equals(code)) 465 return Invoice; 466 if ("Library".equals(code)) 467 return Library; 468 if ("Linkage".equals(code)) 469 return Linkage; 470 if ("List".equals(code)) 471 return List; 472 if ("Location".equals(code)) 473 return Location; 474 if ("Measure".equals(code)) 475 return Measure; 476 if ("MeasureReport".equals(code)) 477 return MeasureReport; 478 if ("Media".equals(code)) 479 return Media; 480 if ("Medication".equals(code)) 481 return Medication; 482 if ("MedicationAdministration".equals(code)) 483 return MedicationAdministration; 484 if ("MedicationDispense".equals(code)) 485 return MedicationDispense; 486 if ("MedicationKnowledge".equals(code)) 487 return MedicationKnowledge; 488 if ("MedicationRequest".equals(code)) 489 return MedicationRequest; 490 if ("MedicationStatement".equals(code)) 491 return MedicationStatement; 492 if ("MedicinalProduct".equals(code)) 493 return MedicinalProduct; 494 if ("MedicinalProductAuthorization".equals(code)) 495 return MedicinalProductAuthorization; 496 if ("MedicinalProductContraindication".equals(code)) 497 return MedicinalProductContraindication; 498 if ("MedicinalProductIndication".equals(code)) 499 return MedicinalProductIndication; 500 if ("MedicinalProductIngredient".equals(code)) 501 return MedicinalProductIngredient; 502 if ("MedicinalProductInteraction".equals(code)) 503 return MedicinalProductInteraction; 504 if ("MedicinalProductManufactured".equals(code)) 505 return MedicinalProductManufactured; 506 if ("MedicinalProductPackaged".equals(code)) 507 return MedicinalProductPackaged; 508 if ("MedicinalProductPharmaceutical".equals(code)) 509 return MedicinalProductPharmaceutical; 510 if ("MedicinalProductUndesirableEffect".equals(code)) 511 return MedicinalProductUndesirableEffect; 512 if ("MessageDefinition".equals(code)) 513 return MessageDefinition; 514 if ("MessageHeader".equals(code)) 515 return MessageHeader; 516 if ("MolecularSequence".equals(code)) 517 return MolecularSequence; 518 if ("NamingSystem".equals(code)) 519 return NamingSystem; 520 if ("NutritionOrder".equals(code)) 521 return NutritionOrder; 522 if ("Observation".equals(code)) 523 return Observation; 524 if ("ObservationDefinition".equals(code)) 525 return ObservationDefinition; 526 if ("OperationDefinition".equals(code)) 527 return OperationDefinition; 528 if ("OperationOutcome".equals(code)) 529 return OperationOutcome; 530 if ("Organization".equals(code)) 531 return Organization; 532 if ("OrganizationAffiliation".equals(code)) 533 return OrganizationAffiliation; 534 if ("Parameters".equals(code)) 535 return Parameters; 536 if ("Patient".equals(code)) 537 return Patient; 538 if ("PaymentNotice".equals(code)) 539 return PaymentNotice; 540 if ("PaymentReconciliation".equals(code)) 541 return PaymentReconciliation; 542 if ("Person".equals(code)) 543 return Person; 544 if ("PlanDefinition".equals(code)) 545 return PlanDefinition; 546 if ("Practitioner".equals(code)) 547 return Practitioner; 548 if ("PractitionerRole".equals(code)) 549 return PractitionerRole; 550 if ("Procedure".equals(code)) 551 return Procedure; 552 if ("Provenance".equals(code)) 553 return Provenance; 554 if ("Questionnaire".equals(code)) 555 return Questionnaire; 556 if ("QuestionnaireResponse".equals(code)) 557 return QuestionnaireResponse; 558 if ("RelatedPerson".equals(code)) 559 return RelatedPerson; 560 if ("RequestGroup".equals(code)) 561 return RequestGroup; 562 if ("ResearchDefinition".equals(code)) 563 return ResearchDefinition; 564 if ("ResearchElementDefinition".equals(code)) 565 return ResearchElementDefinition; 566 if ("ResearchStudy".equals(code)) 567 return ResearchStudy; 568 if ("ResearchSubject".equals(code)) 569 return ResearchSubject; 570 if ("RiskAssessment".equals(code)) 571 return RiskAssessment; 572 if ("RiskEvidenceSynthesis".equals(code)) 573 return RiskEvidenceSynthesis; 574 if ("Schedule".equals(code)) 575 return Schedule; 576 if ("SearchParameter".equals(code)) 577 return SearchParameter; 578 if ("ServiceRequest".equals(code)) 579 return ServiceRequest; 580 if ("Slot".equals(code)) 581 return Slot; 582 if ("Specimen".equals(code)) 583 return Specimen; 584 if ("SpecimenDefinition".equals(code)) 585 return SpecimenDefinition; 586 if ("StructureDefinition".equals(code)) 587 return StructureDefinition; 588 if ("StructureMap".equals(code)) 589 return StructureMap; 590 if ("Subscription".equals(code)) 591 return Subscription; 592 if ("Substance".equals(code)) 593 return Substance; 594 if ("SubstanceNucleicAcid".equals(code)) 595 return SubstanceNucleicAcid; 596 if ("SubstancePolymer".equals(code)) 597 return SubstancePolymer; 598 if ("SubstanceProtein".equals(code)) 599 return SubstanceProtein; 600 if ("SubstanceReferenceInformation".equals(code)) 601 return SubstanceReferenceInformation; 602 if ("SubstanceSourceMaterial".equals(code)) 603 return SubstanceSourceMaterial; 604 if ("SubstanceSpecification".equals(code)) 605 return SubstanceSpecification; 606 if ("SupplyDelivery".equals(code)) 607 return SupplyDelivery; 608 if ("SupplyRequest".equals(code)) 609 return SupplyRequest; 610 if ("Task".equals(code)) 611 return Task; 612 if ("TerminologyCapabilities".equals(code)) 613 return TerminologyCapabilities; 614 if ("TestReport".equals(code)) 615 return TestReport; 616 if ("TestScript".equals(code)) 617 return TestScript; 618 if ("ValueSet".equals(code)) 619 return ValueSet; 620 if ("VerificationResult".equals(code)) 621 return VerificationResult; 622 if ("VisionPrescription".equals(code)) 623 return VisionPrescription; 624 625 throw new FHIRException("Unknown resource type " + code); 626 } 627 628}