Enum TaskCode
- java.lang.Object
-
- java.lang.Enum<TaskCode>
-
- org.hl7.fhir.r4.model.codesystems.TaskCode
-
- All Implemented Interfaces:
Serializable,Comparable<TaskCode>
public enum TaskCode extends Enum<TaskCode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABORTAbort, cancel or withdraw the focal resource, as appropriate for the type of resource.APPROVETake what actions are needed to transition the focus resource from 'draft' to 'active' or 'in-progress', as appropriate for the resource type.CHANGEUpdate the focal resource of the owning system to reflect the content specified as the Task.focusFULFILLAct to perform the actions defined in the focus request.NULLadded to help the parsersREPLACEReplace the focal resource with the specified input resourceRESUMETransition the focal resource from 'suspended' to 'active' or 'in-progress' as appropriate for the resource type.SUSPENDTransition the focal resource from 'active' or 'in-progress' to 'suspended'
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TaskCodefromCode(String codeString)StringgetDefinition()StringgetDisplay()StringgetSystem()StringtoCode()static TaskCodevalueOf(String name)Returns the enum constant of this type with the specified name.static TaskCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
APPROVE
public static final TaskCode APPROVE
Take what actions are needed to transition the focus resource from 'draft' to 'active' or 'in-progress', as appropriate for the resource type. This may involve additing additional content, approval, validation, etc.
-
FULFILL
public static final TaskCode FULFILL
Act to perform the actions defined in the focus request. This might result in a 'more assertive' request (order for a plan or proposal, filler order for a placer order), but is intend to eventually result in events. The degree of fulfillment requested might be limited by Task.restriction.
-
ABORT
public static final TaskCode ABORT
Abort, cancel or withdraw the focal resource, as appropriate for the type of resource.
-
REPLACE
public static final TaskCode REPLACE
Replace the focal resource with the specified input resource
-
CHANGE
public static final TaskCode CHANGE
Update the focal resource of the owning system to reflect the content specified as the Task.focus
-
SUSPEND
public static final TaskCode SUSPEND
Transition the focal resource from 'active' or 'in-progress' to 'suspended'
-
RESUME
public static final TaskCode RESUME
Transition the focal resource from 'suspended' to 'active' or 'in-progress' as appropriate for the resource type.
-
-
Method Detail
-
values
public static TaskCode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TaskCode c : TaskCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TaskCode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
fromCode
public static TaskCode fromCode(String codeString) throws org.hl7.fhir.exceptions.FHIRException
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getDefinition
public String getDefinition()
-
getDisplay
public String getDisplay()
-
-