Package com.ibm.fhir.model.type.code
Class CompartmentType
- 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.CompartmentType
-
- All Implemented Interfaces:
Visitable
@Generated("com.ibm.fhir.tools.CodeGenerator") public class CompartmentType extends Code
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCompartmentType.Builderstatic classCompartmentType.ValueSet
-
Field Summary
Fields Modifier and Type Field Description static CompartmentTypeDEVICEDevicestatic CompartmentTypeENCOUNTEREncounterstatic CompartmentTypePATIENTPatientstatic CompartmentTypePRACTITIONERPractitionerstatic CompartmentTypeRELATED_PERSONRelatedPerson
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CompartmentType.Builderbuilder()static Codecode(String value)Inherited factory method for creating CompartmentType objects from a passed string value.booleanequals(Object obj)CompartmentType.ValueSetgetValueAsEnumConstant()inthashCode()static CompartmentTypeof(CompartmentType.ValueSet value)Factory method for creating CompartmentType objects from a passed enum value.static CompartmentTypeof(String value)Factory method for creating CompartmentType objects from a passed string value.static Stringstring(String value)Inherited factory method for creating CompartmentType objects from a passed string value.CompartmentType.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
-
PATIENT
public static final CompartmentType PATIENT
PatientThe compartment definition is for the patient compartment.
-
ENCOUNTER
public static final CompartmentType ENCOUNTER
EncounterThe compartment definition is for the encounter compartment.
-
RELATED_PERSON
public static final CompartmentType RELATED_PERSON
RelatedPersonThe compartment definition is for the related-person compartment.
-
PRACTITIONER
public static final CompartmentType PRACTITIONER
PractitionerThe compartment definition is for the practitioner compartment.
-
DEVICE
public static final CompartmentType DEVICE
DeviceThe compartment definition is for the device compartment.
-
-
Method Detail
-
getValueAsEnumConstant
public CompartmentType.ValueSet getValueAsEnumConstant()
-
of
public static CompartmentType of(CompartmentType.ValueSet value)
Factory method for creating CompartmentType objects from a passed enum value.
-
of
public static CompartmentType of(String value)
Factory method for creating CompartmentType 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 CompartmentType 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 CompartmentType 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 CompartmentType.Builder toBuilder()
Description copied from class:ElementCreate a new Builder from the contents of this Element
-
builder
public static CompartmentType.Builder builder()
-
-