CommcareAPI.PatientCase (commcare_api v0.3.1) View Source

A struct that represents a patient in CommCare.

Link to this section Summary

Link to this section Types

Specs

t() :: %CommcareAPI.PatientCase{
  case_id: String.t(),
  case_type: term(),
  child_cases: map(),
  city: String.t(),
  date_tested: Date.t() | nil,
  dob: Date.t() | nil,
  domain: String.t(),
  first_name: String.t(),
  full_name: String.t(),
  interviewee_parent_name: String.t(),
  last_name: String.t(),
  owner_id: String.t(),
  phone_home: String.t(),
  state: String.t(),
  street: String.t(),
  zip_code: String.t()
}

Link to this section Functions

Specs

new(patient_case_json :: map()) :: {:ok, t()} | {:error, binary()}