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