Package org.hl7.fhir.r4.model
Class Base
java.lang.Object
org.hl7.fhir.r4.model.Base
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement
,Serializable
,org.hl7.fhir.instance.model.api.IBase
- Direct Known Subclasses:
BaseResource
,Element
,Element
,FHIRPathUtilityClasses.ClassTypeInfo
,FHIRPathUtilityClasses.FHIRConstant
,GraphQLEngine.SearchEdge
,GraphQLEngine.SearchWrapper
,Tuple
public abstract class Base
extends Object
implements Serializable, org.hl7.fhir.instance.model.api.IBase, ca.uhn.fhir.model.api.IElement
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncastToCode
(Base b) castToCoding
(Base b) castToDate
(Base b) castToDosage
(Base b) castToMeta
(Base b) castToMoney
(Base b) castToPeriod
(Base b) castToRange
(Base b) castToRatio
(Base b) castToString
(Base b) castToTime
(Base b) castToTiming
(Base b) castToType
(Base b) org.hl7.fhir.utilities.xhtml.XhtmlNode
castToXhtml
(Base b) children()
Supports iterating the children elements in some generic processor or browser All defined children will be listed, even if they have no value on this instance Note that the actual content of primitive or xhtml elements is not iterated explicitly.void
clearUserData
(String name) static boolean
compareDeep
(String s1, String s2, boolean allowNull) static boolean
compareDeep
(List<? extends Base> e1, List<? extends Base> e2, boolean allowNull) static boolean
compareDeep
(Base e1, Base e2, boolean allowNull) static boolean
compareDeep
(org.hl7.fhir.utilities.xhtml.XhtmlNode div1, org.hl7.fhir.utilities.xhtml.XhtmlNode div2, boolean allowNull) static boolean
compareValues
(List<? extends PrimitiveType> e1, List<? extends PrimitiveType> e2, boolean allowNull) static boolean
compareValues
(PrimitiveType e1, PrimitiveType e2, boolean allowNull) abstract Base
copy()
void
copyValues
(Base dst) static boolean
boolean
equalsDeep
(Base other) boolean
equalsShallow
(Base other) abstract String
fhirType()
getChildByName
(String name) abstract String
getNamedProperty
(int _hash, String _name, boolean _checkValid) getNamedProperty
(String _name) Base[]
getProperty
(int hash, String name, boolean checkValid) String[]
getTypesForProperty
(int hash, String name) getUserData
(String name) int
getUserInt
(String name) getUserString
(String name) org.hl7.fhir.utilities.xhtml.XhtmlNode
getXhtml()
boolean
boolean
boolean
boolean
hasUserData
(String name) boolean
boolean
boolean
isEmpty()
protected boolean
boolean
boolean
protected abstract void
listChildren
(List<Property> result) listChildrenByName
(String name) Base[]
listChildrenByName
(String name, boolean checkValid) makeProperty
(int hash, String name) void
removeChild
(String name, Base value) abstract void
setProperty
(int hash, String name, Base value) setProperty
(String name, Base value) void
setUserData
(String name, Object value) void
setUserDataINN
(String name, Object value)
-
Constructor Details
-
Base
public Base()
-
-
Method Details
-
getUserData
- Specified by:
getUserData
in interfaceorg.hl7.fhir.instance.model.api.IBase
-
setUserData
- Specified by:
setUserData
in interfaceorg.hl7.fhir.instance.model.api.IBase
-
clearUserData
-
setUserDataINN
-
hasUserData
-
getUserString
-
getUserInt
-
hasFormatComment
- Specified by:
hasFormatComment
in interfaceorg.hl7.fhir.instance.model.api.IBase
-
getFormatCommentsPre
- Specified by:
getFormatCommentsPre
in interfaceorg.hl7.fhir.instance.model.api.IBase
-
getFormatCommentsPost
- Specified by:
getFormatCommentsPost
in interfaceorg.hl7.fhir.instance.model.api.IBase
-
isPrimitive
-
isBooleanPrimitive
-
hasPrimitiveValue
-
primitiveValue
-
isDateTime
-
dateTimeValue
-
fhirType
- Specified by:
fhirType
in interfaceorg.hl7.fhir.instance.model.api.IBase
-
hasType
-
listChildren
-
setProperty
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
removeChild
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
addChild
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
children
Supports iterating the children elements in some generic processor or browser All defined children will be listed, even if they have no value on this instance Note that the actual content of primitive or xhtml elements is not iterated explicitly. To find these, the processing code must recognise the element as a primitive, typecast the value to aType
, and examine the value- Returns:
- a list of all the children defined for this element
-
getChildByName
-
listChildrenByName
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
listChildrenByName
public Base[] listChildrenByName(String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException - Throws:
org.hl7.fhir.exceptions.FHIRException
-
isEmpty
- Specified by:
isEmpty
in interfaceorg.hl7.fhir.instance.model.api.IBase
-
equalsDeep
-
equalsShallow
-
compareDeep
-
compareDeep
public static boolean compareDeep(List<? extends Base> e1, List<? extends Base> e2, boolean allowNull) -
compareDeep
-
compareDeep
public static boolean compareDeep(org.hl7.fhir.utilities.xhtml.XhtmlNode div1, org.hl7.fhir.utilities.xhtml.XhtmlNode div2, boolean allowNull) -
compareValues
public static boolean compareValues(List<? extends PrimitiveType> e1, List<? extends PrimitiveType> e2, boolean allowNull) -
compareValues
-
castToType
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToBoolean
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToInteger
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToDecimal
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToBase64Binary
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToInstant
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToString
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToUri
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToUrl
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToCanonical
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToDate
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToDateTime
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToTime
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToCode
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToOid
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToId
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToUnsignedInt
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToPositiveInt
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToMarkdown
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToAnnotation
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToDosage
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToAttachment
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToIdentifier
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToCodeableConcept
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToPopulation
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToCoding
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToQuantity
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToMoney
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToDuration
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToSimpleQuantity
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToRange
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToPeriod
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToRatio
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToSampledData
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToSignature
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToHumanName
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToAddress
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToContactDetail
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToContributor
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToUsageContext
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToRelatedArtifact
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToContactPoint
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToTiming
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToReference
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToMeta
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToMarketingStatus
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToProductShelfLife
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToProdCharacteristic
public ProdCharacteristic castToProdCharacteristic(Base b) throws org.hl7.fhir.exceptions.FHIRException - Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToSubstanceAmount
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToExtension
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToResource
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToNarrative
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToElementDefinition
public ElementDefinition castToElementDefinition(Base b) throws org.hl7.fhir.exceptions.FHIRException - Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToDataRequirement
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToExpression
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToParameterDefinition
public ParameterDefinition castToParameterDefinition(Base b) throws org.hl7.fhir.exceptions.FHIRException - Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToTriggerDefinition
public TriggerDefinition castToTriggerDefinition(Base b) throws org.hl7.fhir.exceptions.FHIRException - Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToXhtml
public org.hl7.fhir.utilities.xhtml.XhtmlNode castToXhtml(Base b) throws org.hl7.fhir.exceptions.FHIRException - Throws:
org.hl7.fhir.exceptions.FHIRException
-
castToXhtmlString
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
isMetadataBased
-
getProperty
public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException - Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException - Throws:
org.hl7.fhir.exceptions.FHIRException
-
makeProperty
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getTypesForProperty
public String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException - Throws:
org.hl7.fhir.exceptions.FHIRException
-
equals
-
isResource
-
getIdBase
-
setIdBase
-
getNamedProperty
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getNamedProperty
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException - Throws:
org.hl7.fhir.exceptions.FHIRException
-
getXhtml
-
copy
-
copyValues
-