Package com.ibm.fhir.model.type.code
Class ConsentProvisionType
- 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.ConsentProvisionType
-
- All Implemented Interfaces:
Visitable
@Generated("com.ibm.fhir.tools.CodeGenerator") public class ConsentProvisionType extends Code
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConsentProvisionType.Builderstatic classConsentProvisionType.ValueSet
-
Field Summary
Fields Modifier and Type Field Description static ConsentProvisionTypeDENYOpt Outstatic ConsentProvisionTypePERMITOpt In
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ConsentProvisionType.Builderbuilder()static Codecode(String value)Inherited factory method for creating ConsentProvisionType objects from a passed string value.booleanequals(Object obj)ConsentProvisionType.ValueSetgetValueAsEnumConstant()inthashCode()static ConsentProvisionTypeof(ConsentProvisionType.ValueSet value)Factory method for creating ConsentProvisionType objects from a passed enum value.static ConsentProvisionTypeof(String value)Factory method for creating ConsentProvisionType objects from a passed string value.static Stringstring(String value)Inherited factory method for creating ConsentProvisionType objects from a passed string value.ConsentProvisionType.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
-
DENY
public static final ConsentProvisionType DENY
Opt OutConsent is denied for actions meeting these rules.
-
PERMIT
public static final ConsentProvisionType PERMIT
Opt InConsent is provided for actions meeting these rules.
-
-
Method Detail
-
getValueAsEnumConstant
public ConsentProvisionType.ValueSet getValueAsEnumConstant()
-
of
public static ConsentProvisionType of(ConsentProvisionType.ValueSet value)
Factory method for creating ConsentProvisionType objects from a passed enum value.
-
of
public static ConsentProvisionType of(String value)
Factory method for creating ConsentProvisionType 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 ConsentProvisionType 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 ConsentProvisionType 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 ConsentProvisionType.Builder toBuilder()
Description copied from class:ElementCreate a new Builder from the contents of this Element
-
builder
public static ConsentProvisionType.Builder builder()
-
-