
Package org.hl7.fhir.r5.model
Class BackboneType
java.lang.Object
org.hl7.fhir.r5.model.Base
org.hl7.fhir.r5.model.Element
org.hl7.fhir.r5.model.DataType
org.hl7.fhir.r5.model.BackboneType
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement,Serializable,org.hl7.fhir.instance.model.api.IBase,org.hl7.fhir.instance.model.api.IBaseBackboneElement,org.hl7.fhir.instance.model.api.IBaseDatatype,org.hl7.fhir.instance.model.api.IBaseElement,org.hl7.fhir.instance.model.api.IBaseHasExtensions,org.hl7.fhir.instance.model.api.IBaseHasModifierExtensions
- Direct Known Subclasses:
Dosage,ElementDefinition,MarketingStatus,OrderedDistribution,ProdCharacteristic,ProductShelfLife,Statistic,SubstanceAmount,Timing
public abstract class BackboneType
extends DataType
implements org.hl7.fhir.instance.model.api.IBaseBackboneElement
BackboneType Type: Base definition for the few data types that are allowed to carry modifier extensions.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.hl7.fhir.r5.model.Base
Base.ProfileSource, Base.ValidationInfo, Base.ValidationMode, Base.ValidationReason -
Field Summary
FieldsModifier and TypeFieldDescriptionMay be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckNoModifiers(String noun, String verb) abstract BackboneTypecopy()voidcopyExtensions(BackboneElement src, String... urls) voidcopyNewExtensions(BackboneElement src, String... urls) voidcopyValues(BackboneType dst) booleanequalsDeep(Base other_) booleanequalsShallow(Base other_) fhirType()getExtensionsByUrl(String... theUrls) getNamedProperty(int _hash, String _name, boolean _checkValid) Base[]getProperty(int hash, String name, boolean checkValid) String[]getTypesForProperty(int hash, String name) booleanhasExtension(String theUrl) Returns an true if this element has an extension that matchs the given URL.booleanhasExtension(String... theUrls) booleanbooleanisEmpty()protected voidlistChildren(List<Property> children) makeProperty(int hash, String name) voidremoveChild(String name, Base value) setModifierExtension(List<Extension> theModifierExtension) setProperty(int hash, String name, Base value) setProperty(String name, Base value) Methods inherited from class org.hl7.fhir.r5.model.DataType
copyValues, getTranslation, isTranslatableMethods inherited from class org.hl7.fhir.r5.model.Element
addExtension, addExtension, addExtension, copyExtensions, copyNewExtensions, copyValues, getExtension, getExtensionByUrl, getExtensionByUrl, getExtensionFirstRep, getExtensionsByUrl, getExtensionString, getExtensionString, getExtensionValue, getFHIRPublicationVersion, getId, getIdBase, getIdElement, getStandardsStatus, hasExtension, hasExtension, hasId, hasIdElement, isDisallowExtensions, noExtensions, removeExtension, setDisallowExtensions, setExtension, setId, setIdBase, setIdElement, setStandardsStatusMethods inherited from class org.hl7.fhir.r5.model.Base
addDefinition, addFormatCommentsPost, addFormatCommentsPre, addValidationMessage, canHavePrimitiveValue, children, clearUserData, compareDeep, compareDeep, compareDeep, compareDeep, compareValues, compareValues, copyFormatComments, copyUserData, copyValues, dateTimeValue, equals, executeFunction, getChildByName, getChildValueByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, getValidationInfo, getValidationMessages, getXhtml, hasFormatComment, hasFormatCommentPost, hasFormatCommentPre, hasPrimitiveValue, hasType, hasUserData, hasValidated, hasValidationInfo, hasValidationMessages, isBooleanPrimitive, isCopyUserData, isDateTime, isMetadataBased, isPrimitive, isResource, listChildrenByName, listChildrenByName, primitiveValue, setCopyUserData, setUserData, setUserDataINN, setXhtmlMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hl7.fhir.instance.model.api.IBase
getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserDataMethods inherited from interface org.hl7.fhir.instance.model.api.IBaseElement
getUserData, setUserDataMethods inherited from interface org.hl7.fhir.instance.model.api.IBaseHasExtensions
addExtension, getExtension, hasExtension
-
Field Details
-
modifierExtension
May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
-
-
Constructor Details
-
BackboneType
public BackboneType()Constructor
-
-
Method Details
-
getModifierExtension
- Specified by:
getModifierExtensionin interfaceorg.hl7.fhir.instance.model.api.IBaseHasModifierExtensions- Returns:
modifierExtension(May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).)
-
setModifierExtension
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasModifierExtension
- Specified by:
hasModifierExtensionin interfaceorg.hl7.fhir.instance.model.api.IBaseHasModifierExtensions
-
addModifierExtension
- Specified by:
addModifierExtensionin interfaceorg.hl7.fhir.instance.model.api.IBaseHasModifierExtensions
-
addModifierExtension
-
getModifierExtensionFirstRep
- Returns:
- The first repetition of repeating field
modifierExtension, creating it if it does not already exist {3}
-
listChildren
- Overrides:
listChildrenin classElement
-
getNamedProperty
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getNamedPropertyin classElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getProperty
public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getPropertyin classElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
setPropertyin classElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
- Overrides:
setPropertyin classElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
removeChild
- Overrides:
removeChildin classElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
makeProperty
- Overrides:
makePropertyin classElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getTypesForProperty
public String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getTypesForPropertyin classElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
addChild
-
fhirType
-
copy
-
copyValues
-
equalsDeep
- Overrides:
equalsDeepin classElement
-
equalsShallow
- Overrides:
equalsShallowin classElement
-
isEmpty
-
checkNoModifiers
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
copyExtensions
-
getExtensionsByUrl
- Overrides:
getExtensionsByUrlin classElement
-
hasExtension
- Overrides:
hasExtensionin classElement
-
hasExtension
Description copied from class:ElementReturns an true if this element has an extension that matchs the given URL. Note: BackboneElements override this to check Modifier Extensions too- Overrides:
hasExtensionin classElement- Parameters:
theUrl- The URL. Must not be blank or null.
-
copyNewExtensions
-