CommcareAPI.PatientCaseProvider behaviour (commcare_api v0.3.1) View Source

Provides a mockable behaviour for accessing patient cases from Commcare's Api

Link to this section Summary

Link to this section Types

Specs

error() :: {:error, String.t() | atom()}

Specs

success() :: {:ok, CommcareAPI.PatientCase.t()}

Link to this section Callbacks

Link to this callback

get_patient_case(any, any)

View Source

Specs

get_patient_case(any(), any()) :: success() | error()