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