QuestionnairesResource

Runs FHIR Questionnaire operations.

  • Stable unknown
  • Release candidate since 0.1.0-rc.4
  • Development since 0.1.0-dev.24+fa54770
public final class QuestionnairesResource

Runs FHIR Questionnaire operations. Get it from Ovok.questionnaires().

Methods

populate

public JsonNode populate(String questionnaireId) throws IOException, InterruptedException

Prefills a QuestionnaireResponse with no extra parameters (POST /fhir/Questionnaire/{id}/$populate).

Parameters:

  • questionnaireId: the Questionnaire ID

Returns: the populate result

Throws:

  • IOException: if the request cannot be sent or the response cannot be read
  • InterruptedException: if the thread is interrupted while waiting for the response
public JsonNode populate(
        String questionnaireId,
        JsonNode parameters) throws IOException, InterruptedException

Prefills a QuestionnaireResponse (POST /fhir/Questionnaire/{id}/$populate).

Parameters:

  • questionnaireId: the Questionnaire ID
  • parameters: a FHIR Parameters resource, or null for none

Returns: the populate result

Throws:

  • IOException: if the request cannot be sent or the response cannot be read
  • InterruptedException: if the thread is interrupted while waiting for the response
public JsonNode populate(
        String questionnaireId,
        JsonNode parameters,
        RequestOptions options) throws IOException, InterruptedException

Prefills a QuestionnaireResponse (POST /fhir/Questionnaire/{id}/$populate).

Parameters:

  • questionnaireId: the Questionnaire ID
  • parameters: a FHIR Parameters resource, or null for none
  • options: per-request options, such as the timeout

Returns: the populate result

Throws:

  • IOException: if the request cannot be sent or the response cannot be read
  • InterruptedException: if the thread is interrupted while waiting for the response

Last updated on

On this page