Accountant Portal

Record a client's patient-data answer

Changed on

#4334 (plan F27): records "patient data yes or no, confirmed by" for the client, with the caller as the confirmer, and appends the answer to its append-only history. Turning the restriction on (hasPatientData: true) is for a human super-admin (SUPER_ADMIN_USER_IDS) or the client's close reviewer (#2587 p13, the Setup board's Turn on); recording a no is a super-admin's alone. Every API key, the cloud-bookkeeping service token and the agent's key get 404, and any other signed-in person gets 403 PATIENT_DATA_ROLE_REQUIRED. The answer has the same shape as GET. expectedState is the answer the caller read; when it has changed since, nothing is written and the answer is 409 PATIENT_DATA_STATE_CHANGED. Changing a recorded yes to no needs reason (422 without it). The one patient-data company refused in code can never be recorded no (403 AGENT_PATIENT_DATA_COMPANY_REFUSED).

put/accountant/companies/{customerId}/patient-data

Request

  • Base URL
    https://api.medianfi.com/api/v1
  • Auth
    HTTP bearer

Path parameters

customerId, string uuid required

Request body

object required
hasPatientData, boolean required
expectedState, 'unset' | 'yes' | 'no' required
reason, string

Response

Success envelope with the answer now in force

object required
success, boolean required
data, object required

Changes