001package org.hl7.fhir.r4.model;
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 Tue, May 12, 2020 07:26+1000 for FHIR v4.0.1
033
034import org.hl7.fhir.exceptions.FHIRException;
035
036public class ResourceFactory extends Factory {
037
038  public static Resource createResource(String name) throws FHIRException {
039    if ("Appointment".equals(name))
040      return new Appointment();
041    if ("Account".equals(name))
042      return new Account();
043    if ("Invoice".equals(name))
044      return new Invoice();
045    if ("CatalogEntry".equals(name))
046      return new CatalogEntry();
047    if ("EventDefinition".equals(name))
048      return new EventDefinition();
049    if ("DocumentManifest".equals(name))
050      return new DocumentManifest();
051    if ("MessageDefinition".equals(name))
052      return new MessageDefinition();
053    if ("Goal".equals(name))
054      return new Goal();
055    if ("MedicinalProductPackaged".equals(name))
056      return new MedicinalProductPackaged();
057    if ("Endpoint".equals(name))
058      return new Endpoint();
059    if ("EnrollmentRequest".equals(name))
060      return new EnrollmentRequest();
061    if ("Consent".equals(name))
062      return new Consent();
063    if ("CapabilityStatement".equals(name))
064      return new CapabilityStatement();
065    if ("Medication".equals(name))
066      return new Medication();
067    if ("Measure".equals(name))
068      return new Measure();
069    if ("ResearchSubject".equals(name))
070      return new ResearchSubject();
071    if ("Subscription".equals(name))
072      return new Subscription();
073    if ("DocumentReference".equals(name))
074      return new DocumentReference();
075    if ("GraphDefinition".equals(name))
076      return new GraphDefinition();
077    if ("Parameters".equals(name))
078      return new Parameters();
079    if ("CoverageEligibilityResponse".equals(name))
080      return new CoverageEligibilityResponse();
081    if ("MeasureReport".equals(name))
082      return new MeasureReport();
083    if ("PractitionerRole".equals(name))
084      return new PractitionerRole();
085    if ("SubstanceReferenceInformation".equals(name))
086      return new SubstanceReferenceInformation();
087    if ("ServiceRequest".equals(name))
088      return new ServiceRequest();
089    if ("RelatedPerson".equals(name))
090      return new RelatedPerson();
091    if ("SupplyRequest".equals(name))
092      return new SupplyRequest();
093    if ("Practitioner".equals(name))
094      return new Practitioner();
095    if ("VerificationResult".equals(name))
096      return new VerificationResult();
097    if ("SubstanceProtein".equals(name))
098      return new SubstanceProtein();
099    if ("BodyStructure".equals(name))
100      return new BodyStructure();
101    if ("Slot".equals(name))
102      return new Slot();
103    if ("Person".equals(name))
104      return new Person();
105    if ("Contract".equals(name))
106      return new Contract();
107    if ("RiskAssessment".equals(name))
108      return new RiskAssessment();
109    if ("Group".equals(name))
110      return new Group();
111    if ("PaymentNotice".equals(name))
112      return new PaymentNotice();
113    if ("ResearchDefinition".equals(name))
114      return new ResearchDefinition();
115    if ("MedicinalProductManufactured".equals(name))
116      return new MedicinalProductManufactured();
117    if ("Organization".equals(name))
118      return new Organization();
119    if ("CareTeam".equals(name))
120      return new CareTeam();
121    if ("ImplementationGuide".equals(name))
122      return new ImplementationGuide();
123    if ("ImagingStudy".equals(name))
124      return new ImagingStudy();
125    if ("FamilyMemberHistory".equals(name))
126      return new FamilyMemberHistory();
127    if ("ChargeItem".equals(name))
128      return new ChargeItem();
129    if ("ResearchElementDefinition".equals(name))
130      return new ResearchElementDefinition();
131    if ("ObservationDefinition".equals(name))
132      return new ObservationDefinition();
133    if ("Encounter".equals(name))
134      return new Encounter();
135    if ("Substance".equals(name))
136      return new Substance();
137    if ("SubstanceSpecification".equals(name))
138      return new SubstanceSpecification();
139    if ("SearchParameter".equals(name))
140      return new SearchParameter();
141    if ("Communication".equals(name))
142      return new Communication();
143    if ("ActivityDefinition".equals(name))
144      return new ActivityDefinition();
145    if ("InsurancePlan".equals(name))
146      return new InsurancePlan();
147    if ("Linkage".equals(name))
148      return new Linkage();
149    if ("SubstanceSourceMaterial".equals(name))
150      return new SubstanceSourceMaterial();
151    if ("ImmunizationEvaluation".equals(name))
152      return new ImmunizationEvaluation();
153    if ("DeviceUseStatement".equals(name))
154      return new DeviceUseStatement();
155    if ("RequestGroup".equals(name))
156      return new RequestGroup();
157    if ("DeviceRequest".equals(name))
158      return new DeviceRequest();
159    if ("MessageHeader".equals(name))
160      return new MessageHeader();
161    if ("ImmunizationRecommendation".equals(name))
162      return new ImmunizationRecommendation();
163    if ("Provenance".equals(name))
164      return new Provenance();
165    if ("Task".equals(name))
166      return new Task();
167    if ("Questionnaire".equals(name))
168      return new Questionnaire();
169    if ("ExplanationOfBenefit".equals(name))
170      return new ExplanationOfBenefit();
171    if ("MedicinalProductPharmaceutical".equals(name))
172      return new MedicinalProductPharmaceutical();
173    if ("ResearchStudy".equals(name))
174      return new ResearchStudy();
175    if ("Specimen".equals(name))
176      return new Specimen();
177    if ("AllergyIntolerance".equals(name))
178      return new AllergyIntolerance();
179    if ("CarePlan".equals(name))
180      return new CarePlan();
181    if ("StructureDefinition".equals(name))
182      return new StructureDefinition();
183    if ("EpisodeOfCare".equals(name))
184      return new EpisodeOfCare();
185    if ("ChargeItemDefinition".equals(name))
186      return new ChargeItemDefinition();
187    if ("OperationOutcome".equals(name))
188      return new OperationOutcome();
189    if ("Procedure".equals(name))
190      return new Procedure();
191    if ("List".equals(name))
192      return new ListResource();
193    if ("ConceptMap".equals(name))
194      return new ConceptMap();
195    if ("ValueSet".equals(name))
196      return new ValueSet();
197    if ("OperationDefinition".equals(name))
198      return new OperationDefinition();
199    if ("Immunization".equals(name))
200      return new Immunization();
201    if ("MedicationRequest".equals(name))
202      return new MedicationRequest();
203    if ("EffectEvidenceSynthesis".equals(name))
204      return new EffectEvidenceSynthesis();
205    if ("BiologicallyDerivedProduct".equals(name))
206      return new BiologicallyDerivedProduct();
207    if ("Device".equals(name))
208      return new Device();
209    if ("VisionPrescription".equals(name))
210      return new VisionPrescription();
211    if ("Media".equals(name))
212      return new Media();
213    if ("MedicinalProductContraindication".equals(name))
214      return new MedicinalProductContraindication();
215    if ("MolecularSequence".equals(name))
216      return new MolecularSequence();
217    if ("EvidenceVariable".equals(name))
218      return new EvidenceVariable();
219    if ("MedicinalProduct".equals(name))
220      return new MedicinalProduct();
221    if ("DeviceMetric".equals(name))
222      return new DeviceMetric();
223    if ("Flag".equals(name))
224      return new Flag();
225    if ("CodeSystem".equals(name))
226      return new CodeSystem();
227    if ("SubstanceNucleicAcid".equals(name))
228      return new SubstanceNucleicAcid();
229    if ("RiskEvidenceSynthesis".equals(name))
230      return new RiskEvidenceSynthesis();
231    if ("AppointmentResponse".equals(name))
232      return new AppointmentResponse();
233    if ("StructureMap".equals(name))
234      return new StructureMap();
235    if ("AdverseEvent".equals(name))
236      return new AdverseEvent();
237    if ("GuidanceResponse".equals(name))
238      return new GuidanceResponse();
239    if ("Observation".equals(name))
240      return new Observation();
241    if ("MedicationAdministration".equals(name))
242      return new MedicationAdministration();
243    if ("EnrollmentResponse".equals(name))
244      return new EnrollmentResponse();
245    if ("Binary".equals(name))
246      return new Binary();
247    if ("Library".equals(name))
248      return new Library();
249    if ("MedicinalProductInteraction".equals(name))
250      return new MedicinalProductInteraction();
251    if ("MedicationStatement".equals(name))
252      return new MedicationStatement();
253    if ("CommunicationRequest".equals(name))
254      return new CommunicationRequest();
255    if ("TestScript".equals(name))
256      return new TestScript();
257    if ("Basic".equals(name))
258      return new Basic();
259    if ("SubstancePolymer".equals(name))
260      return new SubstancePolymer();
261    if ("TestReport".equals(name))
262      return new TestReport();
263    if ("ClaimResponse".equals(name))
264      return new ClaimResponse();
265    if ("MedicationDispense".equals(name))
266      return new MedicationDispense();
267    if ("DiagnosticReport".equals(name))
268      return new DiagnosticReport();
269    if ("OrganizationAffiliation".equals(name))
270      return new OrganizationAffiliation();
271    if ("HealthcareService".equals(name))
272      return new HealthcareService();
273    if ("MedicinalProductIndication".equals(name))
274      return new MedicinalProductIndication();
275    if ("NutritionOrder".equals(name))
276      return new NutritionOrder();
277    if ("TerminologyCapabilities".equals(name))
278      return new TerminologyCapabilities();
279    if ("Evidence".equals(name))
280      return new Evidence();
281    if ("AuditEvent".equals(name))
282      return new AuditEvent();
283    if ("PaymentReconciliation".equals(name))
284      return new PaymentReconciliation();
285    if ("Condition".equals(name))
286      return new Condition();
287    if ("SpecimenDefinition".equals(name))
288      return new SpecimenDefinition();
289    if ("Composition".equals(name))
290      return new Composition();
291    if ("DetectedIssue".equals(name))
292      return new DetectedIssue();
293    if ("Bundle".equals(name))
294      return new Bundle();
295    if ("CompartmentDefinition".equals(name))
296      return new CompartmentDefinition();
297    if ("MedicinalProductIngredient".equals(name))
298      return new MedicinalProductIngredient();
299    if ("MedicationKnowledge".equals(name))
300      return new MedicationKnowledge();
301    if ("Patient".equals(name))
302      return new Patient();
303    if ("Coverage".equals(name))
304      return new Coverage();
305    if ("QuestionnaireResponse".equals(name))
306      return new QuestionnaireResponse();
307    if ("CoverageEligibilityRequest".equals(name))
308      return new CoverageEligibilityRequest();
309    if ("NamingSystem".equals(name))
310      return new NamingSystem();
311    if ("MedicinalProductUndesirableEffect".equals(name))
312      return new MedicinalProductUndesirableEffect();
313    if ("ExampleScenario".equals(name))
314      return new ExampleScenario();
315    if ("Schedule".equals(name))
316      return new Schedule();
317    if ("SupplyDelivery".equals(name))
318      return new SupplyDelivery();
319    if ("ClinicalImpression".equals(name))
320      return new ClinicalImpression();
321    if ("DeviceDefinition".equals(name))
322      return new DeviceDefinition();
323    if ("PlanDefinition".equals(name))
324      return new PlanDefinition();
325    if ("MedicinalProductAuthorization".equals(name))
326      return new MedicinalProductAuthorization();
327    if ("Claim".equals(name))
328      return new Claim();
329    if ("Location".equals(name))
330      return new Location();
331    else
332      throw new FHIRException("Unknown Resource Name '" + name + "'");
333  }
334
335  public static Element createType(String name) throws FHIRException {
336    if ("date".equals(name))
337      return new DateType();
338    if ("Meta".equals(name))
339      return new Meta();
340    if ("MoneyQuantity".equals(name))
341      return new MoneyQuantity();
342    if ("Address".equals(name))
343      return new Address();
344    if ("Attachment".equals(name))
345      return new Attachment();
346    if ("integer".equals(name))
347      return new IntegerType();
348    if ("Count".equals(name))
349      return new Count();
350    if ("DataRequirement".equals(name))
351      return new DataRequirement();
352    if ("Dosage".equals(name))
353      return new Dosage();
354    if ("uuid".equals(name))
355      return new UuidType();
356    if ("Identifier".equals(name))
357      return new Identifier();
358    if ("SubstanceAmount".equals(name))
359      return new SubstanceAmount();
360    if ("Narrative".equals(name))
361      return new Narrative();
362    if ("Coding".equals(name))
363      return new Coding();
364    if ("SampledData".equals(name))
365      return new SampledData();
366    if ("id".equals(name))
367      return new IdType();
368    if ("positiveInt".equals(name))
369      return new PositiveIntType();
370    if ("ElementDefinition".equals(name))
371      return new ElementDefinition();
372    if ("Distance".equals(name))
373      return new Distance();
374    if ("Period".equals(name))
375      return new Period();
376    if ("Duration".equals(name))
377      return new Duration();
378    if ("canonical".equals(name))
379      return new CanonicalType();
380    if ("Range".equals(name))
381      return new Range();
382    if ("RelatedArtifact".equals(name))
383      return new RelatedArtifact();
384    if ("ProductShelfLife".equals(name))
385      return new ProductShelfLife();
386    if ("base64Binary".equals(name))
387      return new Base64BinaryType();
388    if ("UsageContext".equals(name))
389      return new UsageContext();
390    if ("Timing".equals(name))
391      return new Timing();
392    if ("decimal".equals(name))
393      return new DecimalType();
394    if ("ProdCharacteristic".equals(name))
395      return new ProdCharacteristic();
396    if ("CodeableConcept".equals(name))
397      return new CodeableConcept();
398    if ("ParameterDefinition".equals(name))
399      return new ParameterDefinition();
400    if ("dateTime".equals(name))
401      return new DateTimeType();
402    if ("code".equals(name))
403      return new CodeType();
404    if ("string".equals(name))
405      return new StringType();
406    if ("Contributor".equals(name))
407      return new Contributor();
408    if ("oid".equals(name))
409      return new OidType();
410    if ("instant".equals(name))
411      return new InstantType();
412    if ("Money".equals(name))
413      return new Money();
414    if ("HumanName".equals(name))
415      return new HumanName();
416    if ("ContactPoint".equals(name))
417      return new ContactPoint();
418    if ("MarketingStatus".equals(name))
419      return new MarketingStatus();
420    if ("markdown".equals(name))
421      return new MarkdownType();
422    if ("Population".equals(name))
423      return new Population();
424    if ("Ratio".equals(name))
425      return new Ratio();
426    if ("Age".equals(name))
427      return new Age();
428    if ("Reference".equals(name))
429      return new Reference();
430    if ("TriggerDefinition".equals(name))
431      return new TriggerDefinition();
432    if ("SimpleQuantity".equals(name))
433      return new SimpleQuantity();
434    if ("Quantity".equals(name))
435      return new Quantity();
436    if ("uri".equals(name))
437      return new UriType();
438    if ("url".equals(name))
439      return new UrlType();
440    if ("Annotation".equals(name))
441      return new Annotation();
442    if ("Extension".equals(name))
443      return new Extension();
444    if ("ContactDetail".equals(name))
445      return new ContactDetail();
446    if ("boolean".equals(name))
447      return new BooleanType();
448    if ("Expression".equals(name))
449      return new Expression();
450    if ("Signature".equals(name))
451      return new Signature();
452    if ("unsignedInt".equals(name))
453      return new UnsignedIntType();
454    if ("time".equals(name))
455      return new TimeType();
456    else
457      throw new FHIRException("Unknown Type Name '" + name + "'");
458  }
459
460  public static Base createResourceOrType(String name) throws FHIRException {
461    switch (name.hashCode()) {
462    case 487334413:
463      return new Account();
464    case 851278306:
465      return new ActivityDefinition();
466    case 516961236:
467      return new Address();
468    case -329624856:
469      return new AdverseEvent();
470    case 65759:
471      return new Age();
472    case 1721380104:
473      return new AllergyIntolerance();
474    case 438421327:
475      return new Annotation();
476    case 192873343:
477      return new Appointment();
478    case 1733332192:
479      return new AppointmentResponse();
480    case 29963587:
481      return new Attachment();
482    case -632949857:
483      return new AuditEvent();
484    case 63955982:
485      return new Basic();
486    case 1989867553:
487      return new Binary();
488    case -310041824:
489      return new BiologicallyDerivedProduct();
490    case -202769967:
491      return new BodyStructure();
492    case 2000952482:
493      return new Bundle();
494    case -871422185:
495      return new CapabilityStatement();
496    case 57208314:
497      return new CarePlan();
498    case 57320750:
499      return new CareTeam();
500    case -1007602695:
501      return new CatalogEntry();
502    case -883723257:
503      return new ChargeItem();
504    case -315725638:
505      return new ChargeItemDefinition();
506    case 65189916:
507      return new Claim();
508    case 1488475261:
509      return new ClaimResponse();
510    case -1268501092:
511      return new ClinicalImpression();
512    case 1076953756:
513      return new CodeSystem();
514    case -1153521791:
515      return new CodeableConcept();
516    case 2023747466:
517      return new Coding();
518    case -236322890:
519      return new Communication();
520    case -1874423303:
521      return new CommunicationRequest();
522    case 1287805733:
523      return new CompartmentDefinition();
524    case 828944778:
525      return new Composition();
526    case 57185780:
527      return new ConceptMap();
528    case 1142656251:
529      return new Condition();
530    case -1678813190:
531      return new Consent();
532    case 973193329:
533      return new ContactDetail();
534    case 1428236656:
535      return new ContactPoint();
536    case -502303438:
537      return new Contract();
538    case -227407685:
539      return new Contributor();
540    case 65298671:
541      return new Count();
542    case -287122936:
543      return new Coverage();
544    case -140860822:
545      return new CoverageEligibilityRequest();
546    case -18784314:
547      return new CoverageEligibilityResponse();
548    case -367870439:
549      return new DataRequirement();
550    case 850563927:
551      return new DetectedIssue();
552    case 2043677302:
553      return new Device();
554    case 1083244649:
555      return new DeviceDefinition();
556    case -949306426:
557      return new DeviceMetric();
558    case 776138553:
559      return new DeviceRequest();
560    case 491858238:
561      return new DeviceUseStatement();
562    case -1122842661:
563      return new DiagnosticReport();
564    case 353103893:
565      return new Distance();
566    case 1922784394:
567      return new DocumentManifest();
568    case -1202791344:
569      return new DocumentReference();
570    case 2052815575:
571      return new Dosage();
572    case -1927368268:
573      return new Duration();
574    case 2012162380:
575      return new EffectEvidenceSynthesis();
576    case -1605049009:
577      return new ElementDefinition();
578    case -766867181:
579      return new Encounter();
580    case 1805746613:
581      return new Endpoint();
582    case -1377846581:
583      return new EnrollmentRequest();
584    case 289362821:
585      return new EnrollmentResponse();
586    case -1093178557:
587      return new EpisodeOfCare();
588    case 1851868013:
589      return new EventDefinition();
590    case 447611511:
591      return new Evidence();
592    case -1162161645:
593      return new EvidenceVariable();
594    case 1175230202:
595      return new ExampleScenario();
596    case -1001676601:
597      return new ExplanationOfBenefit();
598    case 198012600:
599      return new Expression();
600    case 1391410207:
601      return new Extension();
602    case 1260711798:
603      return new FamilyMemberHistory();
604    case 2192268:
605      return new Flag();
606    case 2224947:
607      return new Goal();
608    case -180371167:
609      return new GraphDefinition();
610    case 69076575:
611      return new Group();
612    case 997117913:
613      return new GuidanceResponse();
614    case 933423720:
615      return new HealthcareService();
616    case 1592332600:
617      return new HumanName();
618    case 375032009:
619      return new Identifier();
620    case -650580623:
621      return new ImagingStudy();
622    case -2004863454:
623      return new Immunization();
624    case -1768794370:
625      return new ImmunizationEvaluation();
626    case 1728372347:
627      return new ImmunizationRecommendation();
628    case 1410262602:
629      return new ImplementationGuide();
630    case -1503864573:
631      return new InsurancePlan();
632    case -670115059:
633      return new Invoice();
634    case 1830861979:
635      return new Library();
636    case 1841735333:
637      return new Linkage();
638    case 2368702:
639      return new ListResource();
640    case 1965687765:
641      return new Location();
642    case -926250600:
643      return new MarketingStatus();
644    case -1691992770:
645      return new Measure();
646    case 1681397778:
647      return new MeasureReport();
648    case 74219460:
649      return new Media();
650    case -302536977:
651      return new Medication();
652    case -342579923:
653      return new MedicationAdministration();
654    case -408244884:
655      return new MedicationDispense();
656    case 1537687119:
657      return new MedicationKnowledge();
658    case 1627523232:
659      return new MedicationRequest();
660    case -2097348800:
661      return new MedicationStatement();
662    case -1349298375:
663      return new MedicinalProduct();
664    case -29557312:
665      return new MedicinalProductAuthorization();
666    case -1375810986:
667      return new MedicinalProductContraindication();
668    case -961008267:
669      return new MedicinalProductIndication();
670    case -570248726:
671      return new MedicinalProductIngredient();
672    case -844984039:
673      return new MedicinalProductInteraction();
674    case 568246684:
675      return new MedicinalProductManufactured();
676    case -500906185:
677      return new MedicinalProductPackaged();
678    case -1034780964:
679      return new MedicinalProductPharmaceutical();
680    case 1717675156:
681      return new MedicinalProductUndesirableEffect();
682    case -2037697382:
683      return new MessageDefinition();
684    case -1087398572:
685      return new MessageHeader();
686    case 2394661:
687      return new Meta();
688    case -1839726095:
689      return new MolecularSequence();
690    case 74526880:
691      return new Money();
692    case 977885515:
693      return new MoneyQuantity();
694    case 369315063:
695      return new NamingSystem();
696    case -540546990:
697      return new Narrative();
698    case 1247831734:
699      return new NutritionOrder();
700    case 1790214156:
701      return new Observation();
702    case 673706623:
703      return new ObservationDefinition();
704    case -2140710406:
705      return new OperationDefinition();
706    case -526550005:
707      return new OperationOutcome();
708    case 1343242579:
709      return new Organization();
710    case 2069161885:
711      return new OrganizationAffiliation();
712    case 671337916:
713      return new ParameterDefinition();
714    case -1842766326:
715      return new Parameters();
716    case 873235173:
717      return new Patient();
718    case 2082457694:
719      return new PaymentNotice();
720    case 28778089:
721      return new PaymentReconciliation();
722    case -1907858975:
723      return new Period();
724    case -1907849355:
725      return new Person();
726    case 1401244028:
727      return new PlanDefinition();
728    case -30093459:
729      return new Population();
730    case 738893626:
731      return new Practitioner();
732    case -621058352:
733      return new PractitionerRole();
734    case 908763827:
735      return new Procedure();
736    case 458000626:
737      return new ProdCharacteristic();
738    case 1209602103:
739      return new ProductShelfLife();
740    case 2093211201:
741      return new Provenance();
742    case -1220360021:
743      return new Quantity();
744    case -218088061:
745      return new Questionnaire();
746    case 269058788:
747      return new QuestionnaireResponse();
748    case 78727453:
749      return new Range();
750    case 78733291:
751      return new Ratio();
752    case 1078812459:
753      return new Reference();
754    case -330210563:
755      return new RelatedArtifact();
756    case 846088000:
757      return new RelatedPerson();
758    case 1445374288:
759      return new RequestGroup();
760    case 237996398:
761      return new ResearchDefinition();
762    case 463703284:
763      return new ResearchElementDefinition();
764    case 1312904398:
765      return new ResearchStudy();
766    case -1008013583:
767      return new ResearchSubject();
768    case -766422255:
769      return new RiskAssessment();
770    case 1935791054:
771      return new RiskEvidenceSynthesis();
772    case 1824308900:
773      return new SampledData();
774    case -633276745:
775      return new Schedule();
776    case -912457023:
777      return new SearchParameter();
778    case -1944810950:
779      return new ServiceRequest();
780    case -1217415016:
781      return new Signature();
782    case -1097468803:
783      return new SimpleQuantity();
784    case 2579998:
785      return new Slot();
786    case -2068224216:
787      return new Specimen();
788    case 863741595:
789      return new SpecimenDefinition();
790    case 1133777670:
791      return new StructureDefinition();
792    case 1958247177:
793      return new StructureMap();
794    case 505523517:
795      return new Subscription();
796    case -1760959152:
797      return new Substance();
798    case 1549526472:
799      return new SubstanceAmount();
800    case -300807236:
801      return new SubstanceNucleicAcid();
802    case 1272939294:
803      return new SubstancePolymer();
804    case 1361440787:
805      return new SubstanceProtein();
806    case 159007313:
807      return new SubstanceReferenceInformation();
808    case -222622766:
809      return new SubstanceSourceMaterial();
810    case 1472900499:
811      return new SubstanceSpecification();
812    case 383030819:
813      return new SupplyDelivery();
814    case 665843328:
815      return new SupplyRequest();
816    case 2599333:
817      return new Task();
818    case -549565975:
819      return new TerminologyCapabilities();
820    case -616289146:
821      return new TestReport();
822    case -589453283:
823      return new TestScript();
824    case -1789797270:
825      return new Timing();
826    case 770498827:
827      return new TriggerDefinition();
828    case 1071332590:
829      return new UsageContext();
830    case -1345530543:
831      return new ValueSet();
832    case 957089336:
833      return new VerificationResult();
834    case -555387838:
835      return new VisionPrescription();
836    case -1216012752:
837      return new Base64BinaryType();
838    case 64711720:
839      return new BooleanType();
840    case 828351732:
841      return new CanonicalType();
842    case 3059181:
843      return new CodeType();
844    case 3076014:
845      return new DateType();
846    case 1792749467:
847      return new DateTimeType();
848    case 1542263633:
849      return new DecimalType();
850    case 3355:
851      return new IdType();
852    case 1957570017:
853      return new InstantType();
854    case 1958052158:
855      return new IntegerType();
856    case 246938863:
857      return new MarkdownType();
858    case 110026:
859      return new OidType();
860    case -131262666:
861      return new PositiveIntType();
862    case -891985903:
863      return new StringType();
864    case 3560141:
865      return new TimeType();
866    case 1145198778:
867      return new UnsignedIntType();
868    case 116076:
869      return new UriType();
870    case 116079:
871      return new UrlType();
872    case 3601339:
873      return new UuidType();
874    default:
875      throw new FHIRException("Unknown Resource or Type Name '" + name + "'");
876    }
877  }
878
879}