SignalsResource
Enables Signals for patients and repairs undeliverable Signals config.
- Stable unknown
- Release candidate since 0.1.0-rc.4
- Development since 0.1.0-dev.24+fa54770
public final class SignalsResourceEnables Signals for patients and repairs undeliverable Signals config. Get it from Ovok.signals().
Methods
undeliverable
public SignalsResource.Undeliverable undeliverable()Returns the undeliverable-config routes.
Returns: the undeliverable-config routes
enable
public JsonNode enable(String patientId) throws IOException, InterruptedExceptionEnables Signals for a patient (POST /fhir/Patient/{patientId}/$enable-signals).
Parameters:
patientId: the patient ID
Returns: the response body
Throws:
IOException: if the request cannot be sent or the response cannot be readInterruptedException: if the thread is interrupted while waiting for the response
public JsonNode enable(
String patientId,
RequestOptions options) throws IOException, InterruptedExceptionEnables Signals for a patient (POST /fhir/Patient/{patientId}/$enable-signals).
Parameters:
patientId: the patient IDoptions: per-request options, such as the timeout
Returns: the response body
Throws:
IOException: if the request cannot be sent or the response cannot be readInterruptedException: if the thread is interrupted while waiting for the response
SignalsResource.Undeliverable
public static final class UndeliverableLists and repairs Signals config that could not be delivered.
Undeliverable.list
public JsonNode list() throws IOException, InterruptedExceptionLists undeliverable Signals config (GET /signals/config/undeliverable).
Returns: the response body
Throws:
IOException: if the request cannot be sent or the response cannot be readInterruptedException: if the thread is interrupted while waiting for the response
public JsonNode list(RequestOptions options) throws IOException, InterruptedExceptionLists undeliverable Signals config (GET /signals/config/undeliverable).
Parameters:
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 readInterruptedException: if the thread is interrupted while waiting for the response
Undeliverable.repair
public JsonNode repair() throws IOException, InterruptedExceptionRetries all undeliverable Signals config (POST /signals/config/undeliverable/repair).
Returns: the response body
Throws:
IOException: if the request cannot be sent or the response cannot be readInterruptedException: if the thread is interrupted while waiting for the response
public JsonNode repair(
Map<String, ?> request,
RequestOptions options) throws IOException, InterruptedExceptionRetries undeliverable Signals config (POST /signals/config/undeliverable/repair).
Parameters:
request: the repair request; empty retries alloptions: per-request options, such as the timeout
Returns: the response body
Throws:
IOException: if the request cannot be sent or the response cannot be readInterruptedException: if the thread is interrupted while waiting for the response
Last updated on