Class TypeConvertor

java.lang.Object
org.hl7.fhir.r5.model.TypeConvertor

public class TypeConvertor extends Object
  • Constructor Details

  • Method Details

    • castToType

      public static DataType castToType​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToBoolean

      public static BooleanType castToBoolean​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToInteger

      public static IntegerType castToInteger​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToInteger64

      public static Integer64Type castToInteger64​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToDecimal

      public static DecimalType castToDecimal​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToBase64Binary

      public static Base64BinaryType castToBase64Binary​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToInstant

      public static InstantType castToInstant​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToString

      public static StringType castToString​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToUri

      public static UriType castToUri​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToUrl

      public static UrlType castToUrl​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToCanonical

      public static CanonicalType castToCanonical​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToDate

      public static DateType castToDate​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToDateTime

      public static DateTimeType castToDateTime​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToTime

      public static TimeType castToTime​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToCode

      public static CodeType castToCode​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToOid

      public static OidType castToOid​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToId

      public static IdType castToId​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToUnsignedInt

      public static UnsignedIntType castToUnsignedInt​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToPositiveInt

      public static PositiveIntType castToPositiveInt​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToMarkdown

      public static MarkdownType castToMarkdown​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToAnnotation

      public static Annotation castToAnnotation​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToDosage

      public static Dosage castToDosage​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToAttachment

      public static Attachment castToAttachment​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToIdentifier

      public static Identifier castToIdentifier​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToCodeableConcept

      public static CodeableConcept castToCodeableConcept​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToCodeableReference

      public static CodeableReference castToCodeableReference​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToPopulation

      public static Population castToPopulation​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToCoding

      public static Coding castToCoding​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToQuantity

      public static Quantity castToQuantity​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToMoney

      public static Money castToMoney​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToDuration

      public static Duration castToDuration​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToSimpleQuantity

      public static SimpleQuantity castToSimpleQuantity​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToRange

      public static Range castToRange​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToPeriod

      public static Period castToPeriod​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToRatio

      public static Ratio castToRatio​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToSampledData

      public static SampledData castToSampledData​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToSignature

      public static Signature castToSignature​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToHumanName

      public static HumanName castToHumanName​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToAddress

      public static Address castToAddress​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToContactDetail

      public static ContactDetail castToContactDetail​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToContributor

      public static Contributor castToContributor​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToUsageContext

      public static UsageContext castToUsageContext​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToRelatedArtifact

      public static RelatedArtifact castToRelatedArtifact​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToContactPoint

      public static ContactPoint castToContactPoint​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToTiming

      public static Timing castToTiming​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToReference

      public static Reference castToReference​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToMeta

      public static Meta castToMeta​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToMarketingStatus

      public static MarketingStatus castToMarketingStatus​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToStatistic

      public static Statistic castToStatistic​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToOrderedDistribution

      public static OrderedDistribution castToOrderedDistribution​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToProductShelfLife

      public static ProductShelfLife castToProductShelfLife​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToProdCharacteristic

      public static ProdCharacteristic castToProdCharacteristic​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToSubstanceAmount

      public static SubstanceAmount castToSubstanceAmount​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToExtension

      public static Extension castToExtension​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToResource

      public static Resource castToResource​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToNarrative

      public static Narrative castToNarrative​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToElementDefinition

      public static ElementDefinition castToElementDefinition​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToDataRequirement

      public static DataRequirement castToDataRequirement​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToExpression

      public static Expression castToExpression​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToParameterDefinition

      public static ParameterDefinition castToParameterDefinition​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToTriggerDefinition

      public static TriggerDefinition castToTriggerDefinition​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToXhtml

      public static org.hl7.fhir.utilities.xhtml.XhtmlNode castToXhtml​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • castToXhtmlString

      public static String castToXhtmlString​(Base b) throws org.hl7.fhir.exceptions.FHIRException
      Throws:
      org.hl7.fhir.exceptions.FHIRException