Package org.hl7.fhir.dstu2016may.model
Class Timing
- java.lang.Object
-
- org.hl7.fhir.dstu2016may.model.Base
-
- org.hl7.fhir.dstu2016may.model.Element
-
- org.hl7.fhir.dstu2016may.model.Type
-
- org.hl7.fhir.dstu2016may.model.Timing
-
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement,Serializable,org.hl7.fhir.instance.model.api.IBase,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.ICompositeType
public class Timing extends Type implements org.hl7.fhir.instance.model.api.ICompositeType
Specifies an event that may occur multiple times. Timing schedules are used to record when things are expected or requested to occur. The most common usage is in dosage instructions for medications. They are also used when planning care of various kinds.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTiming.EventTimingstatic classTiming.EventTimingEnumFactorystatic classTiming.TimingRepeatComponentstatic classTiming.UnitsOfTimestatic classTiming.UnitsOfTimeEnumFactory
-
Field Summary
Fields Modifier and Type Field Description protected CodeableConceptcodeA code for the timing pattern.protected List<DateTimeType>eventIdentifies specific times when the event occurs.protected Timing.TimingRepeatComponentrepeatA set of rules that describe when the event should occur.
-
Constructor Summary
Constructors Constructor Description Timing()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BaseaddChild(String name)TimingaddEvent(Date value)DateTimeTypeaddEventElement()Timingcopy()booleanequalsDeep(Base other)booleanequalsShallow(Base other)StringfhirType()CodeableConceptgetCode()List<DateTimeType>getEvent()Base[]getProperty(int hash, String name, boolean checkValid)Timing.TimingRepeatComponentgetRepeat()booleanhasCode()booleanhasEvent()booleanhasEvent(Date value)booleanhasRepeat()booleanisEmpty()protected voidlistChildren(List<Property> childrenList)BasemakeProperty(int hash, String name)make an instance of a property.TimingsetCode(CodeableConcept value)voidsetProperty(int hash, String name, Base value)voidsetProperty(String name, Base value)TimingsetRepeat(Timing.TimingRepeatComponent value)protected TimingtypedCopy()-
Methods inherited from class org.hl7.fhir.dstu2016may.model.Element
addExtension, addExtension, copyValues, getExtension, getExtensionsByUrl, getExtensionString, getId, getIdElement, hasExtension, hasExtension, hasId, hasIdElement, setId, setIdElement
-
Methods inherited from class org.hl7.fhir.dstu2016may.model.Base
castToActionDefinition, castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactPoint, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToModuleMetadata, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToTriggerDefinition, castToUnsignedInt, castToUri, children, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isMetadataBased, isPrimitive, listChildrenByName, listChildrenByName, primitiveValue, setUserData, setUserDataINN
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Field Detail
-
event
protected List<DateTimeType> event
Identifies specific times when the event occurs.
-
repeat
protected Timing.TimingRepeatComponent repeat
A set of rules that describe when the event should occur.
-
code
protected CodeableConcept code
A code for the timing pattern. Some codes such as BID are ubiquitous, but many institutions define their own additional codes. If a code is provided, the code is understood to be a complete statement of whatever is specified in the structured timing data, and either the code or the data may be used to interpret the Timing.
-
-
Constructor Detail
-
Timing
public Timing()
Constructor
-
-
Method Detail
-
getEvent
public List<DateTimeType> getEvent()
- Returns:
event(Identifies specific times when the event occurs.)
-
hasEvent
public boolean hasEvent()
-
addEventElement
public DateTimeType addEventElement()
- Returns:
event(Identifies specific times when the event occurs.)
-
addEvent
public Timing addEvent(Date value)
- Parameters:
value-event(Identifies specific times when the event occurs.)
-
hasEvent
public boolean hasEvent(Date value)
- Parameters:
value-event(Identifies specific times when the event occurs.)
-
getRepeat
public Timing.TimingRepeatComponent getRepeat()
- Returns:
repeat(A set of rules that describe when the event should occur.)
-
hasRepeat
public boolean hasRepeat()
-
setRepeat
public Timing setRepeat(Timing.TimingRepeatComponent value)
- Parameters:
value-repeat(A set of rules that describe when the event should occur.)
-
getCode
public CodeableConcept getCode()
- Returns:
code(A code for the timing pattern. Some codes such as BID are ubiquitous, but many institutions define their own additional codes. If a code is provided, the code is understood to be a complete statement of whatever is specified in the structured timing data, and either the code or the data may be used to interpret the Timing.)
-
hasCode
public boolean hasCode()
-
setCode
public Timing setCode(CodeableConcept value)
- Parameters:
value-code(A code for the timing pattern. Some codes such as BID are ubiquitous, but many institutions define their own additional codes. If a code is provided, the code is understood to be a complete statement of whatever is specified in the structured timing data, and either the code or the data may be used to interpret the Timing.)
-
listChildren
protected void listChildren(List<Property> childrenList)
- Overrides:
listChildrenin classElement
-
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 void setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public void setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
makeProperty
public Base makeProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
Description copied from class:Basemake an instance of a property. If the property is a repeating property, make a new instance. if the property is not repeating, return the property- Overrides:
makePropertyin classElement- Returns:
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
equalsDeep
public boolean equalsDeep(Base other)
- Overrides:
equalsDeepin classElement
-
equalsShallow
public boolean equalsShallow(Base other)
- Overrides:
equalsShallowin classElement
-
-