Interface EnumFactory<T extends Enum<?>>

All Superinterfaces:
org.hl7.fhir.instance.model.api.IBaseEnumFactory<T>, Serializable
All Known Implementing Classes:
Account.AccountStatusEnumFactory, Address.AddressTypeEnumFactory, Address.AddressUseEnumFactory, AllergyIntolerance.AllergyIntoleranceCategoryEnumFactory, AllergyIntolerance.AllergyIntoleranceCertaintyEnumFactory, AllergyIntolerance.AllergyIntoleranceCriticalityEnumFactory, AllergyIntolerance.AllergyIntoleranceSeverityEnumFactory, AllergyIntolerance.AllergyIntoleranceStatusEnumFactory, AllergyIntolerance.AllergyIntoleranceTypeEnumFactory, Appointment.AppointmentStatusEnumFactory, Appointment.ParticipantRequiredEnumFactory, Appointment.ParticipationStatusEnumFactory, AppointmentResponse.ParticipantStatusEnumFactory, AuditEvent.AuditEventActionEnumFactory, AuditEvent.AuditEventOutcomeEnumFactory, AuditEvent.AuditEventParticipantNetworkTypeEnumFactory, Bundle.BundleTypeEnumFactory, Bundle.HTTPVerbEnumFactory, Bundle.SearchEntryModeEnumFactory, CarePlan.CarePlanActivityStatusEnumFactory, CarePlan.CarePlanRelationshipEnumFactory, CarePlan.CarePlanStatusEnumFactory, Claim.ClaimTypeEnumFactory, Claim.UseEnumFactory, ClinicalImpression.ClinicalImpressionStatusEnumFactory, Communication.CommunicationStatusEnumFactory, CommunicationRequest.CommunicationRequestStatusEnumFactory, Composition.CompositionAttestationModeEnumFactory, Composition.CompositionStatusEnumFactory, Condition.ConditionVerificationStatusEnumFactory, Conformance.ConditionalDeleteStatusEnumFactory, Conformance.ConformanceEventModeEnumFactory, Conformance.ConformanceStatementKindEnumFactory, Conformance.DocumentModeEnumFactory, Conformance.MessageSignificanceCategoryEnumFactory, Conformance.ResourceVersionPolicyEnumFactory, Conformance.RestfulConformanceModeEnumFactory, Conformance.SearchModifierCodeEnumFactory, Conformance.SystemRestfulInteractionEnumFactory, Conformance.TransactionModeEnumFactory, Conformance.TypeRestfulInteractionEnumFactory, Conformance.UnknownContentCodeEnumFactory, ContactPoint.ContactPointSystemEnumFactory, ContactPoint.ContactPointUseEnumFactory, DataElement.DataElementStringencyEnumFactory, DetectedIssue.DetectedIssueSeverityEnumFactory, Device.DeviceStatusEnumFactory, DeviceComponent.MeasmntPrincipleEnumFactory, DeviceMetric.DeviceMetricCalibrationStateEnumFactory, DeviceMetric.DeviceMetricCalibrationTypeEnumFactory, DeviceMetric.DeviceMetricCategoryEnumFactory, DeviceMetric.DeviceMetricColorEnumFactory, DeviceMetric.DeviceMetricOperationalStatusEnumFactory, DeviceUseRequest.DeviceUseRequestPriorityEnumFactory, DeviceUseRequest.DeviceUseRequestStatusEnumFactory, DiagnosticOrder.DiagnosticOrderPriorityEnumFactory, DiagnosticOrder.DiagnosticOrderStatusEnumFactory, DiagnosticReport.DiagnosticReportStatusEnumFactory, DocumentReference.DocumentRelationshipTypeEnumFactory, ElementDefinition.AggregationModeEnumFactory, ElementDefinition.ConstraintSeverityEnumFactory, ElementDefinition.PropertyRepresentationEnumFactory, ElementDefinition.SlicingRulesEnumFactory, Encounter.EncounterClassEnumFactory, Encounter.EncounterLocationStatusEnumFactory, Encounter.EncounterStateEnumFactory, Enumerations.AdministrativeGenderEnumFactory, Enumerations.AgeUnitsEnumFactory, Enumerations.BindingStrengthEnumFactory, Enumerations.ConceptMapEquivalenceEnumFactory, Enumerations.ConformanceResourceStatusEnumFactory, Enumerations.DataAbsentReasonEnumFactory, Enumerations.DataTypeEnumFactory, Enumerations.DocumentReferenceStatusEnumFactory, Enumerations.FHIRDefinedTypeEnumFactory, Enumerations.MessageEventEnumFactory, Enumerations.NoteTypeEnumFactory, Enumerations.RemittanceOutcomeEnumFactory, Enumerations.ResourceTypeEnumFactory, Enumerations.SearchParamTypeEnumFactory, Enumerations.SpecialValuesEnumFactory, EpisodeOfCare.EpisodeOfCareStatusEnumFactory, FamilyMemberHistory.FamilyHistoryStatusEnumFactory, Flag.FlagStatusEnumFactory, Goal.GoalStatusEnumFactory, Group.GroupTypeEnumFactory, HealthcareService.DaysOfWeekEnumFactory, HumanName.NameUseEnumFactory, Identifier.IdentifierUseEnumFactory, ImagingStudy.InstanceAvailabilityEnumFactory, ImplementationGuide.GuideDependencyTypeEnumFactory, ImplementationGuide.GuidePageKindEnumFactory, ImplementationGuide.GuideResourcePurposeEnumFactory, List_.ListModeEnumFactory, List_.ListStatusEnumFactory, Location.LocationModeEnumFactory, Location.LocationStatusEnumFactory, Media.DigitalMediaTypeEnumFactory, MedicationAdministration.MedicationAdministrationStatusEnumFactory, MedicationDispense.MedicationDispenseStatusEnumFactory, MedicationOrder.MedicationOrderStatusEnumFactory, MedicationStatement.MedicationStatementStatusEnumFactory, MessageHeader.ResponseTypeEnumFactory, NamingSystem.NamingSystemIdentifierTypeEnumFactory, NamingSystem.NamingSystemTypeEnumFactory, Narrative.NarrativeStatusEnumFactory, NutritionOrder.NutritionOrderStatusEnumFactory, Observation.ObservationRelationshipTypeEnumFactory, Observation.ObservationStatusEnumFactory, OperationDefinition.OperationKindEnumFactory, OperationDefinition.OperationParameterUseEnumFactory, OperationOutcome.IssueSeverityEnumFactory, OperationOutcome.IssueTypeEnumFactory, OrderResponse.OrderStatusEnumFactory, Patient.LinkTypeEnumFactory, Person.IdentityAssuranceLevelEnumFactory, Procedure.ProcedureStatusEnumFactory, ProcedureRequest.ProcedureRequestPriorityEnumFactory, ProcedureRequest.ProcedureRequestStatusEnumFactory, ProcessRequest.ActionListEnumFactory, Provenance.ProvenanceEntityRoleEnumFactory, Quantity.QuantityComparatorEnumFactory, Questionnaire.AnswerFormatEnumFactory, Questionnaire.QuestionnaireStatusEnumFactory, QuestionnaireResponse.QuestionnaireResponseStatusEnumFactory, ReferralRequest.ReferralStatusEnumFactory, SearchParameter.XPathUsageTypeEnumFactory, Slot.SlotStatusEnumFactory, Specimen.SpecimenStatusEnumFactory, StructureDefinition.ExtensionContextEnumFactory, StructureDefinition.StructureDefinitionKindEnumFactory, Subscription.SubscriptionChannelTypeEnumFactory, Subscription.SubscriptionStatusEnumFactory, SupplyDelivery.SupplyDeliveryStatusEnumFactory, SupplyRequest.SupplyRequestStatusEnumFactory, TestScript.AssertionDirectionTypeEnumFactory, TestScript.AssertionOperatorTypeEnumFactory, TestScript.AssertionResponseTypesEnumFactory, TestScript.ContentTypeEnumFactory, Timing.EventTimingEnumFactory, Timing.UnitsOfTimeEnumFactory, ValueSet.FilterOperatorEnumFactory, VisionPrescription.VisionBaseEnumFactory, VisionPrescription.VisionEyesEnumFactory

public interface EnumFactory<T extends Enum<?>> extends org.hl7.fhir.instance.model.api.IBaseEnumFactory<T>
Helper class to help manage generic enumerated types
  • Method Summary

    Modifier and Type
    Method
    Description
    fromCode(String codeString)
    Read an enumeration value from the string that represents it on the XML or JSON
    toCode(T code)
    Get the XML/JSON representation for an enumerated value

    Methods inherited from interface org.hl7.fhir.instance.model.api.IBaseEnumFactory

    toSystem
  • Method Details

    • fromCode

      Read an enumeration value from the string that represents it on the XML or JSON
      Specified by:
      fromCode in interface org.hl7.fhir.instance.model.api.IBaseEnumFactory<T extends Enum<?>>
      Parameters:
      codeString - the value found in the XML or JSON
      Returns:
      the enumeration value
      Throws:
      IllegalArgumentException
    • toCode

      String toCode(T code)
      Get the XML/JSON representation for an enumerated value
      Specified by:
      toCode in interface org.hl7.fhir.instance.model.api.IBaseEnumFactory<T extends Enum<?>>
      Parameters:
      code - - the enumeration value
      Returns:
      the XML/JSON representation