All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ca.uhn.fhir.model.dstu2.composite.TimingDt Maven / Gradle / Ivy

The newest version!
















package ca.uhn.fhir.model.dstu2.composite;

import java.net.URI;
import java.math.BigDecimal;
import org.apache.commons.lang3.StringUtils;
import java.util.*;
import ca.uhn.fhir.model.api.*;
import ca.uhn.fhir.model.primitive.*;
import ca.uhn.fhir.model.api.annotation.*;
import ca.uhn.fhir.model.base.composite.*;

import ca.uhn.fhir.model.dstu2.valueset.AddressTypeEnum;
import ca.uhn.fhir.model.dstu2.valueset.AddressUseEnum;
import ca.uhn.fhir.model.dstu2.valueset.AggregationModeEnum;
import ca.uhn.fhir.model.dstu2.valueset.BindingStrengthEnum;
import ca.uhn.fhir.model.dstu2.composite.CodeableConceptDt;
import ca.uhn.fhir.model.dstu2.composite.CodingDt;
import ca.uhn.fhir.model.dstu2.valueset.ConstraintSeverityEnum;
import ca.uhn.fhir.model.dstu2.valueset.ContactPointSystemEnum;
import ca.uhn.fhir.model.dstu2.valueset.ContactPointUseEnum;
import ca.uhn.fhir.model.dstu2.resource.Device;
import ca.uhn.fhir.model.dstu2.valueset.EventTimingEnum;
import ca.uhn.fhir.model.dstu2.valueset.IdentifierTypeCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.IdentifierUseEnum;
import ca.uhn.fhir.model.dstu2.valueset.NameUseEnum;
import ca.uhn.fhir.model.dstu2.resource.Organization;
import ca.uhn.fhir.model.dstu2.resource.Patient;
import ca.uhn.fhir.model.dstu2.composite.PeriodDt;
import ca.uhn.fhir.model.dstu2.resource.Practitioner;
import ca.uhn.fhir.model.dstu2.valueset.PropertyRepresentationEnum;
import ca.uhn.fhir.model.dstu2.valueset.QuantityComparatorEnum;
import ca.uhn.fhir.model.dstu2.composite.QuantityDt;
import ca.uhn.fhir.model.dstu2.composite.RangeDt;
import ca.uhn.fhir.model.dstu2.resource.RelatedPerson;
import ca.uhn.fhir.model.dstu2.valueset.SignatureTypeCodesEnum;
import ca.uhn.fhir.model.dstu2.valueset.SlicingRulesEnum;
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
import ca.uhn.fhir.model.dstu2.valueset.TimingAbbreviationEnum;
import ca.uhn.fhir.model.dstu2.valueset.UnitsOfTimeEnum;
import ca.uhn.fhir.model.dstu2.resource.ValueSet;
import ca.uhn.fhir.model.dstu2.composite.BoundCodeableConceptDt;
import ca.uhn.fhir.model.dstu2.composite.DurationDt;
import ca.uhn.fhir.model.dstu2.composite.ResourceReferenceDt;
import ca.uhn.fhir.model.dstu2.composite.SimpleQuantityDt;
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
import ca.uhn.fhir.model.primitive.BooleanDt;
import ca.uhn.fhir.model.primitive.BoundCodeDt;
import ca.uhn.fhir.model.primitive.CodeDt;
import ca.uhn.fhir.model.primitive.DateTimeDt;
import ca.uhn.fhir.model.primitive.DecimalDt;
import ca.uhn.fhir.model.primitive.IdDt;
import ca.uhn.fhir.model.primitive.InstantDt;
import ca.uhn.fhir.model.primitive.IntegerDt;
import ca.uhn.fhir.model.primitive.MarkdownDt;
import ca.uhn.fhir.model.primitive.PositiveIntDt;
import ca.uhn.fhir.model.primitive.StringDt;
import ca.uhn.fhir.model.primitive.UnsignedIntDt;
import ca.uhn.fhir.model.primitive.UriDt;

/**
 * HAPI/FHIR TimingDt Datatype
 * ()
 *
 * 

* Definition: * 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 *

* *

* Requirements: * Need to able to track proposed timing schedules. There are several different ways to do this: one or more specified times, a simple rules like three times a day, or before/after meals *

*/ @DatatypeDef(name="Timing") public class TimingDt extends BaseIdentifiableElement implements ICompositeDatatype { /** * Constructor */ public TimingDt() { // nothing } @Child(name="event", type=DateTimeDt.class, order=0, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="Identifies specific times when the event occurs" ) private java.util.List myEvent; @Child(name="repeat", order=1, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="A set of rules that describe when the event should occur" ) private Repeat myRepeat; @Child(name="code", type=CodeableConceptDt.class, order=2, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="A code for the timing pattern. Some codes such as BID are ubiquitous, but many institutions define their own additional codes" ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/timing-abbreviation") private BoundCodeableConceptDt myCode; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myEvent, myRepeat, myCode); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myEvent, myRepeat, myCode); } /** * Gets the value(s) for event (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Identifies specific times when the event occurs *

*/ public java.util.List getEvent() { if (myEvent == null) { myEvent = new java.util.ArrayList(); } return myEvent; } /** * Sets the value(s) for event () * *

* Definition: * Identifies specific times when the event occurs *

*/ public TimingDt setEvent(java.util.List theValue) { myEvent = theValue; return this; } /** * Adds and returns a new value for event () * *

* Definition: * Identifies specific times when the event occurs *

*/ public DateTimeDt addEvent() { DateTimeDt newType = new DateTimeDt(); getEvent().add(newType); return newType; } /** * Adds a given new value for event () * *

* Definition: * Identifies specific times when the event occurs *

* @param theValue The event to add (must not be null) */ public TimingDt addEvent(DateTimeDt theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getEvent().add(theValue); return this; } /** * Gets the first repetition for event (), * creating it if it does not already exist. * *

* Definition: * Identifies specific times when the event occurs *

*/ public DateTimeDt getEventFirstRep() { if (getEvent().isEmpty()) { return addEvent(); } return getEvent().get(0); } /** * Adds a new value for event () * *

* Definition: * Identifies specific times when the event occurs *

* * @return Returns a reference to this object, to allow for simple chaining. */ public TimingDt addEvent( Date theDate) { if (myEvent == null) { myEvent = new java.util.ArrayList(); } myEvent.add(new DateTimeDt(theDate)); return this; } /** * Adds a new value for event () * *

* Definition: * Identifies specific times when the event occurs *

* * @return Returns a reference to this object, to allow for simple chaining. */ public TimingDt addEvent( Date theDate, TemporalPrecisionEnum thePrecision) { if (myEvent == null) { myEvent = new java.util.ArrayList(); } myEvent.add(new DateTimeDt(theDate, thePrecision)); return this; } /** * Gets the value(s) for repeat (). * creating it if it does * not exist. Will not return null. * *

* Definition: * A set of rules that describe when the event should occur *

*/ public Repeat getRepeat() { if (myRepeat == null) { myRepeat = new Repeat(); } return myRepeat; } /** * Sets the value(s) for repeat () * *

* Definition: * A set of rules that describe when the event should occur *

*/ public TimingDt setRepeat(Repeat theValue) { myRepeat = theValue; return this; } /** * Gets the value(s) for code (). * creating it if it does * not exist. Will not return null. * *

* Definition: * A code for the timing pattern. Some codes such as BID are ubiquitous, but many institutions define their own additional codes *

*/ public BoundCodeableConceptDt getCode() { if (myCode == null) { myCode = new BoundCodeableConceptDt(TimingAbbreviationEnum.VALUESET_BINDER); } return myCode; } /** * Sets the value(s) for code () * *

* Definition: * A code for the timing pattern. Some codes such as BID are ubiquitous, but many institutions define their own additional codes *

*/ public TimingDt setCode(BoundCodeableConceptDt theValue) { myCode = theValue; return this; } /** * Sets the value(s) for code () * *

* Definition: * A code for the timing pattern. Some codes such as BID are ubiquitous, but many institutions define their own additional codes *

*/ public TimingDt setCode(TimingAbbreviationEnum theValue) { setCode(new BoundCodeableConceptDt(TimingAbbreviationEnum.VALUESET_BINDER, theValue)); /* getCode().setValueAsEnum(theValue); */ return this; } /** * Block class for child element: Timing.repeat () * *

* Definition: * A set of rules that describe when the event should occur *

*/ @Block() public static class Repeat extends BaseIdentifiableElement implements IResourceBlock { @Child(name="bounds", order=0, min=0, max=1, summary=true, modifier=false, type={ DurationDt.class, RangeDt.class, PeriodDt.class }) @Description( shortDefinition="", formalDefinition="Either a duration for the length of the timing schedule, a range of possible length, or outer bounds for start and/or end limits of the timing schedule" ) private IDatatype myBounds; @Child(name="count", type=IntegerDt.class, order=1, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="A total count of the desired number of repetitions" ) private IntegerDt myCount; @Child(name="duration", type=DecimalDt.class, order=2, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="How long this thing happens for when it happens" ) private DecimalDt myDuration; @Child(name="durationMax", type=DecimalDt.class, order=3, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="The upper limit of how long this thing happens for when it happens" ) private DecimalDt myDurationMax; @Child(name="durationUnits", type=CodeDt.class, order=4, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="The units of time for the duration, in UCUM units" ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/units-of-time") private BoundCodeDt myDurationUnits; @Child(name="frequency", type=IntegerDt.class, order=5, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="The number of times to repeat the action within the specified period / period range (i.e. both period and periodMax provided)" ) private IntegerDt myFrequency; @Child(name="frequencyMax", type=IntegerDt.class, order=6, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="" ) private IntegerDt myFrequencyMax; @Child(name="period", type=DecimalDt.class, order=7, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="Indicates the duration of time over which repetitions are to occur; e.g. to express \"3 times per day\", 3 would be the frequency and \"1 day\" would be the period" ) private DecimalDt myPeriod; @Child(name="periodMax", type=DecimalDt.class, order=8, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="If present, indicates that the period is a range from [period] to [periodMax], allowing expressing concepts such as \"do this once every 3-5 days" ) private DecimalDt myPeriodMax; @Child(name="periodUnits", type=CodeDt.class, order=9, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="The units of time for the period in UCUM units" ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/units-of-time") private BoundCodeDt myPeriodUnits; @Child(name="when", type=CodeDt.class, order=10, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="", formalDefinition="A real world event that the occurrence of the event should be tied to." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet = "http://hl7.org/fhir/ValueSet/event-timing") private BoundCodeDt myWhen; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myBounds, myCount, myDuration, myDurationMax, myDurationUnits, myFrequency, myFrequencyMax, myPeriod, myPeriodMax, myPeriodUnits, myWhen); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myBounds, myCount, myDuration, myDurationMax, myDurationUnits, myFrequency, myFrequencyMax, myPeriod, myPeriodMax, myPeriodUnits, myWhen); } /** * Gets the value(s) for bounds[x] (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Either a duration for the length of the timing schedule, a range of possible length, or outer bounds for start and/or end limits of the timing schedule *

*/ public IDatatype getBounds() { return myBounds; } /** * Sets the value(s) for bounds[x] () * *

* Definition: * Either a duration for the length of the timing schedule, a range of possible length, or outer bounds for start and/or end limits of the timing schedule *

*/ public Repeat setBounds(IDatatype theValue) { myBounds = theValue; return this; } /** * Gets the value(s) for count (). * creating it if it does * not exist. Will not return null. * *

* Definition: * A total count of the desired number of repetitions *

*/ public IntegerDt getCountElement() { if (myCount == null) { myCount = new IntegerDt(); } return myCount; } /** * Gets the value(s) for count (). * creating it if it does * not exist. This method may return null. * *

* Definition: * A total count of the desired number of repetitions *

*/ public Integer getCount() { return getCountElement().getValue(); } /** * Sets the value(s) for count () * *

* Definition: * A total count of the desired number of repetitions *

*/ public Repeat setCount(IntegerDt theValue) { myCount = theValue; return this; } /** * Sets the value for count () * *

* Definition: * A total count of the desired number of repetitions *

*/ public Repeat setCount( int theInteger) { myCount = new IntegerDt(theInteger); return this; } /** * Gets the value(s) for duration (). * creating it if it does * not exist. Will not return null. * *

* Definition: * How long this thing happens for when it happens *

*/ public DecimalDt getDurationElement() { if (myDuration == null) { myDuration = new DecimalDt(); } return myDuration; } /** * Gets the value(s) for duration (). * creating it if it does * not exist. This method may return null. * *

* Definition: * How long this thing happens for when it happens *

*/ public BigDecimal getDuration() { return getDurationElement().getValue(); } /** * Sets the value(s) for duration () * *

* Definition: * How long this thing happens for when it happens *

*/ public Repeat setDuration(DecimalDt theValue) { myDuration = theValue; return this; } /** * Sets the value for duration () * *

* Definition: * How long this thing happens for when it happens *

*/ public Repeat setDuration( double theValue) { myDuration = new DecimalDt(theValue); return this; } /** * Sets the value for duration () * *

* Definition: * How long this thing happens for when it happens *

*/ public Repeat setDuration( long theValue) { myDuration = new DecimalDt(theValue); return this; } /** * Sets the value for duration () * *

* Definition: * How long this thing happens for when it happens *

*/ public Repeat setDuration( java.math.BigDecimal theValue) { myDuration = new DecimalDt(theValue); return this; } /** * Gets the value(s) for durationMax (). * creating it if it does * not exist. Will not return null. * *

* Definition: * The upper limit of how long this thing happens for when it happens *

*/ public DecimalDt getDurationMaxElement() { if (myDurationMax == null) { myDurationMax = new DecimalDt(); } return myDurationMax; } /** * Gets the value(s) for durationMax (). * creating it if it does * not exist. This method may return null. * *

* Definition: * The upper limit of how long this thing happens for when it happens *

*/ public BigDecimal getDurationMax() { return getDurationMaxElement().getValue(); } /** * Sets the value(s) for durationMax () * *

* Definition: * The upper limit of how long this thing happens for when it happens *

*/ public Repeat setDurationMax(DecimalDt theValue) { myDurationMax = theValue; return this; } /** * Sets the value for durationMax () * *

* Definition: * The upper limit of how long this thing happens for when it happens *

*/ public Repeat setDurationMax( double theValue) { myDurationMax = new DecimalDt(theValue); return this; } /** * Sets the value for durationMax () * *

* Definition: * The upper limit of how long this thing happens for when it happens *

*/ public Repeat setDurationMax( long theValue) { myDurationMax = new DecimalDt(theValue); return this; } /** * Sets the value for durationMax () * *

* Definition: * The upper limit of how long this thing happens for when it happens *

*/ public Repeat setDurationMax( java.math.BigDecimal theValue) { myDurationMax = new DecimalDt(theValue); return this; } /** * Gets the value(s) for durationUnits (). * creating it if it does * not exist. Will not return null. * *

* Definition: * The units of time for the duration, in UCUM units *

*/ public BoundCodeDt getDurationUnitsElement() { if (myDurationUnits == null) { myDurationUnits = new BoundCodeDt(UnitsOfTimeEnum.VALUESET_BINDER); } return myDurationUnits; } /** * Gets the value(s) for durationUnits (). * creating it if it does * not exist. This method may return null. * *

* Definition: * The units of time for the duration, in UCUM units *

*/ public String getDurationUnits() { return getDurationUnitsElement().getValue(); } /** * Sets the value(s) for durationUnits () * *

* Definition: * The units of time for the duration, in UCUM units *

*/ public Repeat setDurationUnits(BoundCodeDt theValue) { myDurationUnits = theValue; return this; } /** * Sets the value(s) for durationUnits () * *

* Definition: * The units of time for the duration, in UCUM units *

*/ public Repeat setDurationUnits(UnitsOfTimeEnum theValue) { setDurationUnits(new BoundCodeDt(UnitsOfTimeEnum.VALUESET_BINDER, theValue)); /* getDurationUnitsElement().setValueAsEnum(theValue); */ return this; } /** * Gets the value(s) for frequency (). * creating it if it does * not exist. Will not return null. * *

* Definition: * The number of times to repeat the action within the specified period / period range (i.e. both period and periodMax provided) *

*/ public IntegerDt getFrequencyElement() { if (myFrequency == null) { myFrequency = new IntegerDt(); } return myFrequency; } /** * Gets the value(s) for frequency (). * creating it if it does * not exist. This method may return null. * *

* Definition: * The number of times to repeat the action within the specified period / period range (i.e. both period and periodMax provided) *

*/ public Integer getFrequency() { return getFrequencyElement().getValue(); } /** * Sets the value(s) for frequency () * *

* Definition: * The number of times to repeat the action within the specified period / period range (i.e. both period and periodMax provided) *

*/ public Repeat setFrequency(IntegerDt theValue) { myFrequency = theValue; return this; } /** * Sets the value for frequency () * *

* Definition: * The number of times to repeat the action within the specified period / period range (i.e. both period and periodMax provided) *

*/ public Repeat setFrequency( int theInteger) { myFrequency = new IntegerDt(theInteger); return this; } /** * Gets the value(s) for frequencyMax (). * creating it if it does * not exist. Will not return null. * *

* Definition: * *

*/ public IntegerDt getFrequencyMaxElement() { if (myFrequencyMax == null) { myFrequencyMax = new IntegerDt(); } return myFrequencyMax; } /** * Gets the value(s) for frequencyMax (). * creating it if it does * not exist. This method may return null. * *

* Definition: * *

*/ public Integer getFrequencyMax() { return getFrequencyMaxElement().getValue(); } /** * Sets the value(s) for frequencyMax () * *

* Definition: * *

*/ public Repeat setFrequencyMax(IntegerDt theValue) { myFrequencyMax = theValue; return this; } /** * Sets the value for frequencyMax () * *

* Definition: * *

*/ public Repeat setFrequencyMax( int theInteger) { myFrequencyMax = new IntegerDt(theInteger); return this; } /** * Gets the value(s) for period (). * creating it if it does * not exist. Will not return null. * *

* Definition: * Indicates the duration of time over which repetitions are to occur; e.g. to express \"3 times per day\", 3 would be the frequency and \"1 day\" would be the period *

*/ public DecimalDt getPeriodElement() { if (myPeriod == null) { myPeriod = new DecimalDt(); } return myPeriod; } /** * Gets the value(s) for period (). * creating it if it does * not exist. This method may return null. * *

* Definition: * Indicates the duration of time over which repetitions are to occur; e.g. to express \"3 times per day\", 3 would be the frequency and \"1 day\" would be the period *

*/ public BigDecimal getPeriod() { return getPeriodElement().getValue(); } /** * Sets the value(s) for period () * *

* Definition: * Indicates the duration of time over which repetitions are to occur; e.g. to express \"3 times per day\", 3 would be the frequency and \"1 day\" would be the period *

*/ public Repeat setPeriod(DecimalDt theValue) { myPeriod = theValue; return this; } /** * Sets the value for period () * *

* Definition: * Indicates the duration of time over which repetitions are to occur; e.g. to express \"3 times per day\", 3 would be the frequency and \"1 day\" would be the period *

*/ public Repeat setPeriod( double theValue) { myPeriod = new DecimalDt(theValue); return this; } /** * Sets the value for period () * *

* Definition: * Indicates the duration of time over which repetitions are to occur; e.g. to express \"3 times per day\", 3 would be the frequency and \"1 day\" would be the period *

*/ public Repeat setPeriod( long theValue) { myPeriod = new DecimalDt(theValue); return this; } /** * Sets the value for period () * *

* Definition: * Indicates the duration of time over which repetitions are to occur; e.g. to express \"3 times per day\", 3 would be the frequency and \"1 day\" would be the period *

*/ public Repeat setPeriod( java.math.BigDecimal theValue) { myPeriod = new DecimalDt(theValue); return this; } /** * Gets the value(s) for periodMax (). * creating it if it does * not exist. Will not return null. * *

* Definition: * If present, indicates that the period is a range from [period] to [periodMax], allowing expressing concepts such as \"do this once every 3-5 days *

*/ public DecimalDt getPeriodMaxElement() { if (myPeriodMax == null) { myPeriodMax = new DecimalDt(); } return myPeriodMax; } /** * Gets the value(s) for periodMax (). * creating it if it does * not exist. This method may return null. * *

* Definition: * If present, indicates that the period is a range from [period] to [periodMax], allowing expressing concepts such as \"do this once every 3-5 days *

*/ public BigDecimal getPeriodMax() { return getPeriodMaxElement().getValue(); } /** * Sets the value(s) for periodMax () * *

* Definition: * If present, indicates that the period is a range from [period] to [periodMax], allowing expressing concepts such as \"do this once every 3-5 days *

*/ public Repeat setPeriodMax(DecimalDt theValue) { myPeriodMax = theValue; return this; } /** * Sets the value for periodMax () * *

* Definition: * If present, indicates that the period is a range from [period] to [periodMax], allowing expressing concepts such as \"do this once every 3-5 days *

*/ public Repeat setPeriodMax( double theValue) { myPeriodMax = new DecimalDt(theValue); return this; } /** * Sets the value for periodMax () * *

* Definition: * If present, indicates that the period is a range from [period] to [periodMax], allowing expressing concepts such as \"do this once every 3-5 days *

*/ public Repeat setPeriodMax( long theValue) { myPeriodMax = new DecimalDt(theValue); return this; } /** * Sets the value for periodMax () * *

* Definition: * If present, indicates that the period is a range from [period] to [periodMax], allowing expressing concepts such as \"do this once every 3-5 days *

*/ public Repeat setPeriodMax( java.math.BigDecimal theValue) { myPeriodMax = new DecimalDt(theValue); return this; } /** * Gets the value(s) for periodUnits (). * creating it if it does * not exist. Will not return null. * *

* Definition: * The units of time for the period in UCUM units *

*/ public BoundCodeDt getPeriodUnitsElement() { if (myPeriodUnits == null) { myPeriodUnits = new BoundCodeDt(UnitsOfTimeEnum.VALUESET_BINDER); } return myPeriodUnits; } /** * Gets the value(s) for periodUnits (). * creating it if it does * not exist. This method may return null. * *

* Definition: * The units of time for the period in UCUM units *

*/ public String getPeriodUnits() { return getPeriodUnitsElement().getValue(); } /** * Sets the value(s) for periodUnits () * *

* Definition: * The units of time for the period in UCUM units *

*/ public Repeat setPeriodUnits(BoundCodeDt theValue) { myPeriodUnits = theValue; return this; } /** * Sets the value(s) for periodUnits () * *

* Definition: * The units of time for the period in UCUM units *

*/ public Repeat setPeriodUnits(UnitsOfTimeEnum theValue) { setPeriodUnits(new BoundCodeDt(UnitsOfTimeEnum.VALUESET_BINDER, theValue)); /* getPeriodUnitsElement().setValueAsEnum(theValue); */ return this; } /** * Gets the value(s) for when (). * creating it if it does * not exist. Will not return null. * *

* Definition: * A real world event that the occurrence of the event should be tied to. *

*/ public BoundCodeDt getWhenElement() { if (myWhen == null) { myWhen = new BoundCodeDt(EventTimingEnum.VALUESET_BINDER); } return myWhen; } /** * Gets the value(s) for when (). * creating it if it does * not exist. This method may return null. * *

* Definition: * A real world event that the occurrence of the event should be tied to. *

*/ public String getWhen() { return getWhenElement().getValue(); } /** * Sets the value(s) for when () * *

* Definition: * A real world event that the occurrence of the event should be tied to. *

*/ public Repeat setWhen(BoundCodeDt theValue) { myWhen = theValue; return this; } /** * Sets the value(s) for when () * *

* Definition: * A real world event that the occurrence of the event should be tied to. *

*/ public Repeat setWhen(EventTimingEnum theValue) { setWhen(new BoundCodeDt(EventTimingEnum.VALUESET_BINDER, theValue)); /* getWhenElement().setValueAsEnum(theValue); */ return this; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy