Interface TaskHelper


public interface TaskHelper
Methods for manipulating Task resources.
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    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.
    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'.
    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'.
    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

      String getLocalVersionlessAbsoluteUrl(org.hl7.fhir.r4.model.Task task)
      Parameters:
      task - may be null
      Returns:
      null if the given task is null
    • 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 be null
      coding - may be null
      Returns:
      Optional.empty() if the given task or coding is null
      See Also:
      • Task.ParameterComponent.getType()
      • StringType
    • 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 be null
      system - may be null
      code - may be null
      Returns:
      Optional.empty() if the given task is null
      See Also:
      • Task.ParameterComponent.getType()
      • StringType
    • 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 be null
      coding - may be null
      expectedType - not null
      Returns:
      Optional.empty() if the given task or coding is null
      Throws:
      NullPointerException - if the given expectedType is null
      See Also:
      • Task.ParameterComponent.getType()
      • Type
    • 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 be null
      system - may be null
      code - may be null
      expectedType - not null
      Returns:
      Optional.empty() if the given task is null
      Throws:
      NullPointerException - if the given expectedType is null
      See Also:
      • Task.ParameterComponent.getType()
      • Type
    • 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 be null
      coding - may be null
      expectedType - not null
      extensionUrl - may be null
      Returns:
      Optional.empty() if the given task or coding is null
      Throws:
      NullPointerException - if the given expectedType is null
      See Also:
      • Task.ParameterComponent.getType()
      • Type
    • 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 be null
      system - may be null
      code - may be null
      expectedType - not null
      extensionUrl - may be null
      Returns:
      Optional.empty() if the given task is null
      Throws:
      NullPointerException - if the given expectedType is null
      See Also:
      • Task.ParameterComponent.getType()
      • Type
    • 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 be null
      coding - may be null
      expectedType - not null
      Returns:
      Optional.empty() if the given task or coding is null
      Throws:
      NullPointerException - if the given expectedType is null
      See Also:
      • Task.ParameterComponent.getType()
      • Type
    • 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 be null
      system - may be null
      code - may be null
      expectedType - not null
      Returns:
      Optional.empty() if the given task is null
      Throws:
      NullPointerException - if the given expectedType is null
      See Also:
      • Task.ParameterComponent.getType()
      • Type
    • 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 be null
      coding - may be null
      Returns:
      Stream.empty() if the given task or coding is null
      See Also:
      • Task.ParameterComponent.getType()
      • StringType
    • 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 be null
      system - may be null
      code - may be null
      Returns:
      Stream.empty() if the given task is null
      See Also:
      • Task.ParameterComponent.getType()
      • StringType
    • 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 be null
      coding - may be null
      expectedType - not null
      Returns:
      Stream.empty() if the given task or coding is null
      Throws:
      NullPointerException - if the given expectedType is null
      See Also:
      • Task.ParameterComponent.getType()
      • Type
    • 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 be null
      system - may be null
      code - may be null
      expectedType - not null
      Returns:
      Stream.empty() if the given task is null
      Throws:
      NullPointerException - if the given expectedType is null
      See Also:
      • Task.ParameterComponent.getType()
      • Type
    • 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 be null
      coding - may be null
      expectedType - not null
      extensionUrl - may be null
      Returns:
      Stream.empty() if the given task or coding is null
      Throws:
      NullPointerException - if the given expectedType is null
      See Also:
      • Task.ParameterComponent.getType()
      • Type
    • 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 be null
      system - may be null
      code - may be null
      expectedType - not null
      extensionUrl - may be null
      Returns:
      Stream.empty() if the given task is null
      Throws:
      NullPointerException - if the given expectedType is null
      See Also:
      • Task.ParameterComponent.getType()
      • Type
    • 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 be null
      coding - may be null
      expectedType - not null
      Returns:
      Stream.empty() if the given task or coding is null
      Throws:
      NullPointerException - if the given expectedType is null
      See Also:
      • Task.ParameterComponent.getType()
      • Type
    • 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 be null
      system - may be null
      code - may be null
      expectedType - not null
      Returns:
      Stream.empty() if the given task is null
      Throws:
      NullPointerException - if the given expectedType is null
      See Also:
      • Task.ParameterComponent.getType()
      • Type
    • 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 be null
      coding - may be null
      Returns:
      not null
      See Also:
      • Task.ParameterComponent.setType(org.hl7.fhir.r4.model.CodeableConcept)
      • Task.ParameterComponent.setValue(Type)
    • 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 be null
      system - may be null
      code - may be null
      Returns:
      not null
      See Also:
      • Task.ParameterComponent.setType(org.hl7.fhir.r4.model.CodeableConcept)
      • Task.ParameterComponent.setValue(Type)
    • 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 be null
      coding - may be null
      Returns:
      not null
      See Also:
      • Task.TaskOutputComponent.setType(org.hl7.fhir.r4.model.CodeableConcept)
      • Task.TaskOutputComponent.setValue(Type)
    • 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 be null
      system - may be null
      code - may be null
      Returns:
      not null
      See Also:
      • Task.TaskOutputComponent.setType(org.hl7.fhir.r4.model.CodeableConcept)
      • Task.TaskOutputComponent.setValue(Type)