Implementation
const Map<String, R4ResourceType> resourceTypeFromStringMap =
<String, R4ResourceType>{
'Account': R4ResourceType.Account,
'ActivityDefinition': R4ResourceType.ActivityDefinition,
'AdministrableProductDefinition':
R4ResourceType.AdministrableProductDefinition,
'AdverseEvent': R4ResourceType.AdverseEvent,
'AllergyIntolerance': R4ResourceType.AllergyIntolerance,
'Appointment': R4ResourceType.Appointment,
'AppointmentResponse': R4ResourceType.AppointmentResponse,
'AuditEvent': R4ResourceType.AuditEvent,
'Basic': R4ResourceType.Basic,
'Binary': R4ResourceType.Binary,
'BiologicallyDerivedProduct': R4ResourceType.BiologicallyDerivedProduct,
'BodyStructure': R4ResourceType.BodyStructure,
'Bundle': R4ResourceType.Bundle,
'CapabilityStatement': R4ResourceType.CapabilityStatement,
'CarePlan': R4ResourceType.CarePlan,
'CareTeam': R4ResourceType.CareTeam,
'CatalogEntry': R4ResourceType.CatalogEntry,
'ChargeItem': R4ResourceType.ChargeItem,
'ChargeItemDefinition': R4ResourceType.ChargeItemDefinition,
'Citation': R4ResourceType.Citation,
'Claim': R4ResourceType.Claim,
'ClaimResponse': R4ResourceType.ClaimResponse,
'ClinicalImpression': R4ResourceType.ClinicalImpression,
'ClinicalUseDefinition': R4ResourceType.ClinicalUseDefinition,
'CodeSystem': R4ResourceType.CodeSystem,
'Communication': R4ResourceType.Communication,
'CommunicationRequest': R4ResourceType.CommunicationRequest,
'CompartmentDefinition': R4ResourceType.CompartmentDefinition,
'Composition': R4ResourceType.Composition,
'ConceptMap': R4ResourceType.ConceptMap,
'Condition': R4ResourceType.Condition,
'Consent': R4ResourceType.Consent,
'Contract': R4ResourceType.Contract,
'Coverage': R4ResourceType.Coverage,
'CoverageEligibilityRequest': R4ResourceType.CoverageEligibilityRequest,
'CoverageEligibilityResponse': R4ResourceType.CoverageEligibilityResponse,
'DetectedIssue': R4ResourceType.DetectedIssue,
'Device': R4ResourceType.Device,
'DeviceDefinition': R4ResourceType.DeviceDefinition,
'DeviceMetric': R4ResourceType.DeviceMetric,
'DeviceRequest': R4ResourceType.DeviceRequest,
'DeviceUseStatement': R4ResourceType.DeviceUseStatement,
'DiagnosticReport': R4ResourceType.DiagnosticReport,
'DocumentManifest': R4ResourceType.DocumentManifest,
'DocumentReference': R4ResourceType.DocumentReference,
'Encounter': R4ResourceType.Encounter,
'Endpoint': R4ResourceType.Endpoint,
'EnrollmentRequest': R4ResourceType.EnrollmentRequest,
'EnrollmentResponse': R4ResourceType.EnrollmentResponse,
'EpisodeOfCare': R4ResourceType.EpisodeOfCare,
'EventDefinition': R4ResourceType.EventDefinition,
'Evidence': R4ResourceType.Evidence,
'EvidenceReport': R4ResourceType.EvidenceReport,
'EvidenceVariable': R4ResourceType.EvidenceVariable,
'ExampleScenario': R4ResourceType.ExampleScenario,
'ExplanationOfBenefit': R4ResourceType.ExplanationOfBenefit,
'FamilyMemberHistory': R4ResourceType.FamilyMemberHistory,
'Flag': R4ResourceType.Flag,
'Goal': R4ResourceType.Goal,
'GraphDefinition': R4ResourceType.GraphDefinition,
'Group': R4ResourceType.Group,
'GuidanceResponse': R4ResourceType.GuidanceResponse,
'HealthcareService': R4ResourceType.HealthcareService,
'ImagingStudy': R4ResourceType.ImagingStudy,
'Immunization': R4ResourceType.Immunization,
'ImmunizationEvaluation': R4ResourceType.ImmunizationEvaluation,
'ImmunizationRecommendation': R4ResourceType.ImmunizationRecommendation,
'ImplementationGuide': R4ResourceType.ImplementationGuide,
'Ingredient': R4ResourceType.Ingredient,
'InsurancePlan': R4ResourceType.InsurancePlan,
'Invoice': R4ResourceType.Invoice,
'Library': R4ResourceType.Library,
'Linkage': R4ResourceType.Linkage,
'List': R4ResourceType.List,
'Location': R4ResourceType.Location,
'ManufacturedItemDefinition': R4ResourceType.ManufacturedItemDefinition,
'Measure': R4ResourceType.Measure,
'MeasureReport': R4ResourceType.MeasureReport,
'Media': R4ResourceType.Media,
'Medication': R4ResourceType.Medication,
'MedicationAdministration': R4ResourceType.MedicationAdministration,
'MedicationDispense': R4ResourceType.MedicationDispense,
'MedicationKnowledge': R4ResourceType.MedicationKnowledge,
'MedicationRequest': R4ResourceType.MedicationRequest,
'MedicationStatement': R4ResourceType.MedicationStatement,
'MedicinalProductDefinition': R4ResourceType.MedicinalProductDefinition,
'MessageDefinition': R4ResourceType.MessageDefinition,
'MessageHeader': R4ResourceType.MessageHeader,
'MolecularSequence': R4ResourceType.MolecularSequence,
'NamingSystem': R4ResourceType.NamingSystem,
'NutritionOrder': R4ResourceType.NutritionOrder,
'NutritionProduct': R4ResourceType.NutritionProduct,
'Observation': R4ResourceType.Observation,
'ObservationDefinition': R4ResourceType.ObservationDefinition,
'OperationDefinition': R4ResourceType.OperationDefinition,
'OperationOutcome': R4ResourceType.OperationOutcome,
'Organization': R4ResourceType.Organization,
'OrganizationAffiliation': R4ResourceType.OrganizationAffiliation,
'PackagedProductDefinition': R4ResourceType.PackagedProductDefinition,
'Parameters': R4ResourceType.Parameters,
'Patient': R4ResourceType.Patient,
'PaymentNotice': R4ResourceType.PaymentNotice,
'PaymentReconciliation': R4ResourceType.PaymentReconciliation,
'Person': R4ResourceType.Person,
'PlanDefinition': R4ResourceType.PlanDefinition,
'Practitioner': R4ResourceType.Practitioner,
'PractitionerRole': R4ResourceType.PractitionerRole,
'Procedure': R4ResourceType.Procedure,
'Provenance': R4ResourceType.Provenance,
'Questionnaire': R4ResourceType.Questionnaire,
'QuestionnaireResponse': R4ResourceType.QuestionnaireResponse,
'RegulatedAuthorization': R4ResourceType.RegulatedAuthorization,
'RelatedPerson': R4ResourceType.RelatedPerson,
'RequestGroup': R4ResourceType.RequestGroup,
'ResearchDefinition': R4ResourceType.ResearchDefinition,
'ResearchElementDefinition': R4ResourceType.ResearchElementDefinition,
'ResearchStudy': R4ResourceType.ResearchStudy,
'ResearchSubject': R4ResourceType.ResearchSubject,
'RiskAssessment': R4ResourceType.RiskAssessment,
'Schedule': R4ResourceType.Schedule,
'SearchParameter': R4ResourceType.SearchParameter,
'ServiceRequest': R4ResourceType.ServiceRequest,
'Slot': R4ResourceType.Slot,
'Specimen': R4ResourceType.Specimen,
'SpecimenDefinition': R4ResourceType.SpecimenDefinition,
'StructureDefinition': R4ResourceType.StructureDefinition,
'StructureMap': R4ResourceType.StructureMap,
'Subscription': R4ResourceType.Subscription,
'SubscriptionStatus': R4ResourceType.SubscriptionStatus,
'SubscriptionTopic': R4ResourceType.SubscriptionTopic,
'Substance': R4ResourceType.Substance,
'SubstanceDefinition': R4ResourceType.SubstanceDefinition,
'SupplyDelivery': R4ResourceType.SupplyDelivery,
'SupplyRequest': R4ResourceType.SupplyRequest,
'Task': R4ResourceType.Task,
'TerminologyCapabilities': R4ResourceType.TerminologyCapabilities,
'TestReport': R4ResourceType.TestReport,
'TestScript': R4ResourceType.TestScript,
'ValueSet': R4ResourceType.ValueSet,
'VerificationResult': R4ResourceType.VerificationResult,
'VisionPrescription': R4ResourceType.VisionPrescription,
};