Package com.ibm.fhir.model.type.code
Class PropertyType
- java.lang.Object
-
- com.ibm.fhir.model.visitor.AbstractVisitable
-
- com.ibm.fhir.model.type.Element
-
- com.ibm.fhir.model.type.String
-
- com.ibm.fhir.model.type.Code
-
- com.ibm.fhir.model.type.code.PropertyType
-
- All Implemented Interfaces:
Visitable
@Generated("com.ibm.fhir.tools.CodeGenerator") public class PropertyType extends Code
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPropertyType.Builderstatic classPropertyType.ValueSet
-
Field Summary
Fields Modifier and Type Field Description static PropertyTypeBOOLEANbooleanstatic PropertyTypeCODEcode (internal reference)static PropertyTypeCODINGCoding (external reference)static PropertyTypeDATE_TIMEdateTimestatic PropertyTypeDECIMALdecimalstatic PropertyTypeINTEGERintegerstatic PropertyTypeSTRINGstring
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PropertyType.Builderbuilder()static Codecode(String value)Inherited factory method for creating PropertyType objects from a passed string value.booleanequals(Object obj)PropertyType.ValueSetgetValueAsEnumConstant()inthashCode()static PropertyTypeof(PropertyType.ValueSet value)Factory method for creating PropertyType objects from a passed enum value.static PropertyTypeof(String value)Factory method for creating PropertyType objects from a passed string value.static Stringstring(String value)Inherited factory method for creating PropertyType objects from a passed string value.PropertyType.BuildertoBuilder()Create a new Builder from the contents of this Element-
Methods inherited from class com.ibm.fhir.model.type.String
getValue, hasChildren
-
Methods inherited from class com.ibm.fhir.model.type.Element
as, getExtension, getId, is
-
-
-
-
Field Detail
-
CODE
public static final PropertyType CODE
code (internal reference)The property value is a code that identifies a concept defined in the code system.
-
CODING
public static final PropertyType CODING
Coding (external reference)The property value is a code defined in an external code system. This may be used for translations, but is not the intent.
-
STRING
public static final PropertyType STRING
stringThe property value is a string.
-
INTEGER
public static final PropertyType INTEGER
integerThe property value is a string (often used to assign ranking values to concepts for supporting score assessments).
-
BOOLEAN
public static final PropertyType BOOLEAN
booleanThe property value is a boolean true | false.
-
DATE_TIME
public static final PropertyType DATE_TIME
dateTimeThe property is a date or a date + time.
-
DECIMAL
public static final PropertyType DECIMAL
decimalThe property value is a decimal number.
-
-
Method Detail
-
getValueAsEnumConstant
public PropertyType.ValueSet getValueAsEnumConstant()
-
of
public static PropertyType of(PropertyType.ValueSet value)
Factory method for creating PropertyType objects from a passed enum value.
-
of
public static PropertyType of(String value)
Factory method for creating PropertyType objects from a passed string value.- Parameters:
value- A string that matches one of the allowed code values- Throws:
IllegalArgumentException- If the passed string cannot be parsed into an allowed code value
-
string
public static String string(String value)
Inherited factory method for creating PropertyType objects from a passed string value.- Parameters:
value- A string that matches one of the allowed code values- Throws:
IllegalArgumentException- If the passed string cannot be parsed into an allowed code value
-
code
public static Code code(String value)
Inherited factory method for creating PropertyType objects from a passed string value.- Parameters:
value- A string that matches one of the allowed code values- Throws:
IllegalArgumentException- If the passed string cannot be parsed into an allowed code value
-
toBuilder
public PropertyType.Builder toBuilder()
Description copied from class:ElementCreate a new Builder from the contents of this Element
-
builder
public static PropertyType.Builder builder()
-
-