public class SimplifiedPeriodicIntervalTime extends SetComponentTime
eg:
{@link PeriodicIntervalTime}, {@link TimeQuantity}, {@link SetComponentTime}operatorvalue| Constructor and Description |
|---|
SimplifiedPeriodicIntervalTime(int period,
TimeUnitOfMeasure unit)
A period based time value, for example 8 weeks
|
SimplifiedPeriodicIntervalTime(TimeQuantity quantity)
An alternative constructor that allows you to include a custom narrative.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getNarrative() |
String |
getPeriod() |
String |
getUnit() |
void |
setNarrative(String narrative) |
getOperator, setOperatorgetValue, setValuepublic SimplifiedPeriodicIntervalTime(int period,
TimeUnitOfMeasure unit)
SimplifiedPeriodicIntervalTime periodicTime = new SimplifiedPeriodicIntervalTime(8, "wk");
period - an integer value specifying the number of unitsunit - the unit of timepublic SimplifiedPeriodicIntervalTime(TimeQuantity quantity)
TimeQuantity qty = new TimeQuantity(8, TimeUnitOfMeasure.WEEK)
qty.setNarrative(" 8 weeks ");
SimplifiedPeriodicIntervalTime drugSupplyPeriod = new SimplifiedPeriodicIntervalTime(qty);
quantity - an integer value specifying the number of unitspublic String getPeriod()
public String getUnit()
public String getNarrative()
getNarrative in class SetComponentTimepublic void setNarrative(String narrative)
setNarrative in class SetComponentTimeCopyright © 2021. All rights reserved.