public class Duration
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SNOMED_CT_CONCEPT_SOURCE_HL7_CODE |
static java.lang.String |
SNOMED_CT_DAYS_CODE |
static java.lang.String |
SNOMED_CT_HOURS_CODE |
static java.lang.String |
SNOMED_CT_MINUTES_CODE |
static java.lang.String |
SNOMED_CT_MONTHS_CODE |
static java.lang.String |
SNOMED_CT_RECURRING_INTERVAL_CODE |
static java.lang.String |
SNOMED_CT_SECONDS_CODE |
static java.lang.String |
SNOMED_CT_WEEKS_CODE |
static java.lang.String |
SNOMED_CT_YEARS_CODE |
Constructor and Description |
---|
Duration(java.lang.Integer duration,
java.lang.String code) |
Modifier and Type | Method and Description |
---|---|
java.util.Date |
addToDate(java.util.Date startDate,
OrderFrequency frequency)
Add this duration to given startDate
|
static java.lang.String |
getCode(Concept durationUnits)
Returns concept reference term code of the mapping to the SNOMED CT concept source
|
public static final java.lang.String SNOMED_CT_SECONDS_CODE
public static final java.lang.String SNOMED_CT_MINUTES_CODE
public static final java.lang.String SNOMED_CT_HOURS_CODE
public static final java.lang.String SNOMED_CT_DAYS_CODE
public static final java.lang.String SNOMED_CT_WEEKS_CODE
public static final java.lang.String SNOMED_CT_MONTHS_CODE
public static final java.lang.String SNOMED_CT_YEARS_CODE
public static final java.lang.String SNOMED_CT_RECURRING_INTERVAL_CODE
public static final java.lang.String SNOMED_CT_CONCEPT_SOURCE_HL7_CODE
public java.util.Date addToDate(java.util.Date startDate, OrderFrequency frequency)
startDate
- frequency
- is used to calculate time to be added to startDate when duration unit is
'Recurring Interval'public static java.lang.String getCode(Concept durationUnits)
durationUnits
- Copyright © 2018 OpenMRS Inc.. All Rights Reserved.