Package dev.dsf.bpe.v2.service
Interface TaskHelper
public interface TaskHelper
Methods for manipulating
Task
resources.-
Method Summary
Modifier and TypeMethodDescriptionorg.hl7.fhir.r4.model.Task.ParameterComponent
createInput
(org.hl7.fhir.r4.model.Type value, String system, String code) Creates an input parameter for the given value, system and code.org.hl7.fhir.r4.model.Task.ParameterComponent
createInput
(org.hl7.fhir.r4.model.Type value, org.hl7.fhir.r4.model.Coding coding) Creates an input parameter for the given value and coding.org.hl7.fhir.r4.model.Task.TaskOutputComponent
createOutput
(org.hl7.fhir.r4.model.Type value, String system, String code) Creates an output parameter for the given value, system and code.org.hl7.fhir.r4.model.Task.TaskOutputComponent
createOutput
(org.hl7.fhir.r4.model.Type value, org.hl7.fhir.r4.model.Coding coding) Creates an output parameter for the given value and coding.default Optional
<org.hl7.fhir.r4.model.Task.ParameterComponent> getFirstInputParameter
(org.hl7.fhir.r4.model.Task task, String system, String code, Class<? extends org.hl7.fhir.r4.model.Type> expectedType) Returns the first input parameter from the given task with the given system and code, if the value of the input parameter has the given expectedType.default Optional
<org.hl7.fhir.r4.model.Task.ParameterComponent> getFirstInputParameter
(org.hl7.fhir.r4.model.Task task, org.hl7.fhir.r4.model.Coding coding, Class<? extends org.hl7.fhir.r4.model.Type> expectedType) Returns the first input parameter from the given task with the given coding (system, code), if the value of the input parameter has the given expectedType.getFirstInputParameterStringValue
(org.hl7.fhir.r4.model.Task task, String system, String code) Returns the first input parameter value from the given task with the given system and code, if the value of the input parameter is of type 'string'.getFirstInputParameterStringValue
(org.hl7.fhir.r4.model.Task task, org.hl7.fhir.r4.model.Coding coding) Returns the first input parameter value from the given task with the given coding (system, code), if the value of the input parameter is of type 'string'.default <T extends org.hl7.fhir.r4.model.Type>
Optional<T> getFirstInputParameterValue
(org.hl7.fhir.r4.model.Task task, String system, String code, Class<T> expectedType) Returns the first input parameter value from the given task with the given system and code, if the value of the input parameter has the given expectedType.default <T extends org.hl7.fhir.r4.model.Type>
Optional<T> getFirstInputParameterValue
(org.hl7.fhir.r4.model.Task task, org.hl7.fhir.r4.model.Coding coding, Class<T> expectedType) Returns the first input parameter value from the given task with the given coding (system, code), if the value of the input parameter has the given expectedType.default Optional
<org.hl7.fhir.r4.model.Task.ParameterComponent> getFirstInputParameterWithExtension
(org.hl7.fhir.r4.model.Task task, String system, String code, Class<? extends org.hl7.fhir.r4.model.Type> expectedType, String extensionUrl) Returns the first input parameter from the given task with the given system and code, if the value of the input parameter has the given expectedType and the input parameter has an extension with the given extensionUrl.default Optional
<org.hl7.fhir.r4.model.Task.ParameterComponent> getFirstInputParameterWithExtension
(org.hl7.fhir.r4.model.Task task, org.hl7.fhir.r4.model.Coding coding, Class<? extends org.hl7.fhir.r4.model.Type> expectedType, String extensionUrl) Returns the first input parameter from the given task with the given coding (system, code), if the value of the input parameter has the given expectedType and the input parameter has an extension with the given extensionUrl.Stream
<org.hl7.fhir.r4.model.Task.ParameterComponent> getInputParameters
(org.hl7.fhir.r4.model.Task task, String system, String code, Class<? extends org.hl7.fhir.r4.model.Type> expectedType) Returns the input parameters from the given task with the given system and code, if the value of the input parameter has the given expectedType.Stream
<org.hl7.fhir.r4.model.Task.ParameterComponent> getInputParameters
(org.hl7.fhir.r4.model.Task task, org.hl7.fhir.r4.model.Coding coding, Class<? extends org.hl7.fhir.r4.model.Type> expectedType) Returns the input parameters from the given task with the given coding (system, code), if the value of the input parameter has the given expectedType.getInputParameterStringValues
(org.hl7.fhir.r4.model.Task task, String system, String code) Returns input parameter values from the given task with the given system and code, if the value of the input parameter is of type 'string'.getInputParameterStringValues
(org.hl7.fhir.r4.model.Task task, org.hl7.fhir.r4.model.Coding coding) Returns input parameter values from the given task with the given coding (system, code), if the value of the input parameter is of type 'string'.Stream
<org.hl7.fhir.r4.model.Task.ParameterComponent> getInputParametersWithExtension
(org.hl7.fhir.r4.model.Task task, String system, String code, Class<? extends org.hl7.fhir.r4.model.Type> expectedType, String extensionUrl) Returns input parameters from the given task with the given system and code, if the value of the input parameter has the given expectedType and the input parameter has an extension with the given extensionUrl.Stream
<org.hl7.fhir.r4.model.Task.ParameterComponent> getInputParametersWithExtension
(org.hl7.fhir.r4.model.Task task, org.hl7.fhir.r4.model.Coding coding, Class<? extends org.hl7.fhir.r4.model.Type> expectedType, String extensionUrl) Returns input parameters from the given task with the given coding (system, code), if the value of the input parameter has the given expectedType and the input parameter has an extension with the given extensionUrl.<T extends org.hl7.fhir.r4.model.Type>
Stream<T> getInputParameterValues
(org.hl7.fhir.r4.model.Task task, String system, String code, Class<T> expectedType) Returns input parameter values from the given task with the given system and code, if the value of the input parameter has the given expectedType.<T extends org.hl7.fhir.r4.model.Type>
Stream<T> getInputParameterValues
(org.hl7.fhir.r4.model.Task task, org.hl7.fhir.r4.model.Coding coding, Class<T> expectedType) Returns input parameter values from the given task with the given coding (system, code), if the value of the input parameter has the given expectedType.getLocalVersionlessAbsoluteUrl
(org.hl7.fhir.r4.model.Task task)
-
Method Details
-
getLocalVersionlessAbsoluteUrl
- Parameters:
task
- may benull
- Returns:
null
if the given task isnull
-
getFirstInputParameterStringValue
default Optional<String> getFirstInputParameterStringValue(org.hl7.fhir.r4.model.Task task, org.hl7.fhir.r4.model.Coding coding) Returns the first input parameter value from the given task with the given coding (system, code), if the value of the input parameter is of type 'string'.- Parameters:
task
- may benull
coding
- may benull
- Returns:
Optional.empty()
if the given task or coding isnull
- See Also:
-
getFirstInputParameterStringValue
default Optional<String> getFirstInputParameterStringValue(org.hl7.fhir.r4.model.Task task, String system, String code) Returns the first input parameter value from the given task with the given system and code, if the value of the input parameter is of type 'string'.- Parameters:
task
- may benull
system
- may benull
code
- may benull
- Returns:
Optional.empty()
if the given task isnull
- See Also:
-
getFirstInputParameterValue
default <T extends org.hl7.fhir.r4.model.Type> Optional<T> getFirstInputParameterValue(org.hl7.fhir.r4.model.Task task, org.hl7.fhir.r4.model.Coding coding, Class<T> expectedType) Returns the first input parameter value from the given task with the given coding (system, code), if the value of the input parameter has the given expectedType.- Type Parameters:
T
- input parameter value type- Parameters:
task
- may benull
coding
- may benull
expectedType
- notnull
- Returns:
Optional.empty()
if the given task or coding isnull
- Throws:
NullPointerException
- if the given expectedType isnull
- See Also:
-
getFirstInputParameterValue
default <T extends org.hl7.fhir.r4.model.Type> Optional<T> getFirstInputParameterValue(org.hl7.fhir.r4.model.Task task, String system, String code, Class<T> expectedType) Returns the first input parameter value from the given task with the given system and code, if the value of the input parameter has the given expectedType.- Type Parameters:
T
- input parameter value type- Parameters:
task
- may benull
system
- may benull
code
- may benull
expectedType
- notnull
- Returns:
Optional.empty()
if the given task isnull
- Throws:
NullPointerException
- if the given expectedType isnull
- See Also:
-
getFirstInputParameterWithExtension
default Optional<org.hl7.fhir.r4.model.Task.ParameterComponent> getFirstInputParameterWithExtension(org.hl7.fhir.r4.model.Task task, org.hl7.fhir.r4.model.Coding coding, Class<? extends org.hl7.fhir.r4.model.Type> expectedType, String extensionUrl) Returns the first input parameter from the given task with the given coding (system, code), if the value of the input parameter has the given expectedType and the input parameter has an extension with the given extensionUrl.- Parameters:
task
- may benull
coding
- may benull
expectedType
- notnull
extensionUrl
- may benull
- Returns:
Optional.empty()
if the given task or coding isnull
- Throws:
NullPointerException
- if the given expectedType isnull
- See Also:
-
getFirstInputParameterWithExtension
default Optional<org.hl7.fhir.r4.model.Task.ParameterComponent> getFirstInputParameterWithExtension(org.hl7.fhir.r4.model.Task task, String system, String code, Class<? extends org.hl7.fhir.r4.model.Type> expectedType, String extensionUrl) Returns the first input parameter from the given task with the given system and code, if the value of the input parameter has the given expectedType and the input parameter has an extension with the given extensionUrl.- Parameters:
task
- may benull
system
- may benull
code
- may benull
expectedType
- notnull
extensionUrl
- may benull
- Returns:
Optional.empty()
if the given task isnull
- Throws:
NullPointerException
- if the given expectedType isnull
- See Also:
-
getFirstInputParameter
default Optional<org.hl7.fhir.r4.model.Task.ParameterComponent> getFirstInputParameter(org.hl7.fhir.r4.model.Task task, org.hl7.fhir.r4.model.Coding coding, Class<? extends org.hl7.fhir.r4.model.Type> expectedType) Returns the first input parameter from the given task with the given coding (system, code), if the value of the input parameter has the given expectedType.- Parameters:
task
- may benull
coding
- may benull
expectedType
- notnull
- Returns:
Optional.empty()
if the given task or coding isnull
- Throws:
NullPointerException
- if the given expectedType isnull
- See Also:
-
getFirstInputParameter
default Optional<org.hl7.fhir.r4.model.Task.ParameterComponent> getFirstInputParameter(org.hl7.fhir.r4.model.Task task, String system, String code, Class<? extends org.hl7.fhir.r4.model.Type> expectedType) Returns the first input parameter from the given task with the given system and code, if the value of the input parameter has the given expectedType.- Parameters:
task
- may benull
system
- may benull
code
- may benull
expectedType
- notnull
- Returns:
Optional.empty()
if the given task isnull
- Throws:
NullPointerException
- if the given expectedType isnull
- See Also:
-
getInputParameterStringValues
Stream<String> getInputParameterStringValues(org.hl7.fhir.r4.model.Task task, org.hl7.fhir.r4.model.Coding coding) Returns input parameter values from the given task with the given coding (system, code), if the value of the input parameter is of type 'string'.- Parameters:
task
- may benull
coding
- may benull
- Returns:
Stream.empty()
if the given task or coding isnull
- See Also:
-
getInputParameterStringValues
Stream<String> getInputParameterStringValues(org.hl7.fhir.r4.model.Task task, String system, String code) Returns input parameter values from the given task with the given system and code, if the value of the input parameter is of type 'string'.- Parameters:
task
- may benull
system
- may benull
code
- may benull
- Returns:
Stream.empty()
if the given task isnull
- See Also:
-
getInputParameterValues
<T extends org.hl7.fhir.r4.model.Type> Stream<T> getInputParameterValues(org.hl7.fhir.r4.model.Task task, org.hl7.fhir.r4.model.Coding coding, Class<T> expectedType) Returns input parameter values from the given task with the given coding (system, code), if the value of the input parameter has the given expectedType.- Type Parameters:
T
- input parameter value type- Parameters:
task
- may benull
coding
- may benull
expectedType
- notnull
- Returns:
Stream.empty()
if the given task or coding isnull
- Throws:
NullPointerException
- if the given expectedType isnull
- See Also:
-
getInputParameterValues
<T extends org.hl7.fhir.r4.model.Type> Stream<T> getInputParameterValues(org.hl7.fhir.r4.model.Task task, String system, String code, Class<T> expectedType) Returns input parameter values from the given task with the given system and code, if the value of the input parameter has the given expectedType.- Type Parameters:
T
- input parameter value type- Parameters:
task
- may benull
system
- may benull
code
- may benull
expectedType
- notnull
- Returns:
Stream.empty()
if the given task isnull
- Throws:
NullPointerException
- if the given expectedType isnull
- See Also:
-
getInputParametersWithExtension
Stream<org.hl7.fhir.r4.model.Task.ParameterComponent> getInputParametersWithExtension(org.hl7.fhir.r4.model.Task task, org.hl7.fhir.r4.model.Coding coding, Class<? extends org.hl7.fhir.r4.model.Type> expectedType, String extensionUrl) Returns input parameters from the given task with the given coding (system, code), if the value of the input parameter has the given expectedType and the input parameter has an extension with the given extensionUrl.- Parameters:
task
- may benull
coding
- may benull
expectedType
- notnull
extensionUrl
- may benull
- Returns:
Stream.empty()
if the given task or coding isnull
- Throws:
NullPointerException
- if the given expectedType isnull
- See Also:
-
getInputParametersWithExtension
Stream<org.hl7.fhir.r4.model.Task.ParameterComponent> getInputParametersWithExtension(org.hl7.fhir.r4.model.Task task, String system, String code, Class<? extends org.hl7.fhir.r4.model.Type> expectedType, String extensionUrl) Returns input parameters from the given task with the given system and code, if the value of the input parameter has the given expectedType and the input parameter has an extension with the given extensionUrl.- Parameters:
task
- may benull
system
- may benull
code
- may benull
expectedType
- notnull
extensionUrl
- may benull
- Returns:
Stream.empty()
if the given task isnull
- Throws:
NullPointerException
- if the given expectedType isnull
- See Also:
-
getInputParameters
Stream<org.hl7.fhir.r4.model.Task.ParameterComponent> getInputParameters(org.hl7.fhir.r4.model.Task task, org.hl7.fhir.r4.model.Coding coding, Class<? extends org.hl7.fhir.r4.model.Type> expectedType) Returns the input parameters from the given task with the given coding (system, code), if the value of the input parameter has the given expectedType.- Parameters:
task
- may benull
coding
- may benull
expectedType
- notnull
- Returns:
Stream.empty()
if the given task or coding isnull
- Throws:
NullPointerException
- if the given expectedType isnull
- See Also:
-
getInputParameters
Stream<org.hl7.fhir.r4.model.Task.ParameterComponent> getInputParameters(org.hl7.fhir.r4.model.Task task, String system, String code, Class<? extends org.hl7.fhir.r4.model.Type> expectedType) Returns the input parameters from the given task with the given system and code, if the value of the input parameter has the given expectedType.- Parameters:
task
- may benull
system
- may benull
code
- may benull
expectedType
- notnull
- Returns:
Stream.empty()
if the given task isnull
- Throws:
NullPointerException
- if the given expectedType isnull
- See Also:
-
createInput
org.hl7.fhir.r4.model.Task.ParameterComponent createInput(org.hl7.fhir.r4.model.Type value, org.hl7.fhir.r4.model.Coding coding) Creates an input parameter for the given value and coding.- Parameters:
value
- may benull
coding
- may benull
- Returns:
- not
null
- See Also:
-
createInput
org.hl7.fhir.r4.model.Task.ParameterComponent createInput(org.hl7.fhir.r4.model.Type value, String system, String code) Creates an input parameter for the given value, system and code.- Parameters:
value
- may benull
system
- may benull
code
- may benull
- Returns:
- not
null
- See Also:
-
createOutput
org.hl7.fhir.r4.model.Task.TaskOutputComponent createOutput(org.hl7.fhir.r4.model.Type value, org.hl7.fhir.r4.model.Coding coding) Creates an output parameter for the given value and coding.- Parameters:
value
- may benull
coding
- may benull
- Returns:
- not
null
- See Also:
-
createOutput
org.hl7.fhir.r4.model.Task.TaskOutputComponent createOutput(org.hl7.fhir.r4.model.Type value, String system, String code) Creates an output parameter for the given value, system and code.- Parameters:
value
- may benull
system
- may benull
code
- may benull
- Returns:
- not
null
- See Also:
-