Package dev.dsf.bpe.v1.service
Interface TaskHelper
public interface TaskHelper
-
Method Summary
Modifier and TypeMethodDescriptionorg.hl7.fhir.r4.model.Task.ParameterComponentcreateInput(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.ParameterComponentcreateInput(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.TaskOutputComponentcreateOutput(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.TaskOutputComponentcreateOutput(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:
nullif 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 benullcoding- 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 benullsystem- may benullcode- 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 benullcoding- may benullexpectedType- 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 benullsystem- may benullcode- may benullexpectedType- 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 benullcoding- may benullexpectedType- notnullextensionUrl- 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 benullsystem- may benullcode- may benullexpectedType- notnullextensionUrl- 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 benullcoding- may benullexpectedType- 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 benullsystem- may benullcode- may benullexpectedType- 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 benullcoding- 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 benullsystem- may benullcode- 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 benullcoding- may benullexpectedType- 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 benullsystem- may benullcode- may benullexpectedType- 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 benullcoding- may benullexpectedType- notnullextensionUrl- 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 benullsystem- may benullcode- may benullexpectedType- notnullextensionUrl- 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 benullcoding- may benullexpectedType- 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 benullsystem- may benullcode- may benullexpectedType- 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 benullcoding- 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 benullsystem- may benullcode- 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 benullcoding- 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 benullsystem- may benullcode- may benull- Returns:
- not
null - See Also:
-