PatientThresholdsResource

Reads and sets one patient's vital thresholds.

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

Reads and sets one patient's vital thresholds. Get it from PatientsResource.thresholds().

Methods

retrieve

public JsonNode retrieve(
        String patientId,
        RequestOptions options) throws IOException, InterruptedException

Gets a patient's thresholds (GET /v2/slim/threshold/patient/{patientId}).

Parameters:

  • patientId: the patient ID
  • options: per-request options, such as the timeout

Returns: the response body

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

update

public JsonNode update(
        String patientId,
        Object body,
        RequestOptions options) throws IOException, InterruptedException

Replaces a patient's thresholds (PUT /v2/slim/threshold/patient/{patientId}). Not retried on network errors.

Parameters:

  • patientId: the patient ID
  • body: the thresholds
  • options: per-request options, such as the timeout

Returns: the response body

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