State Diagram for Creating Person

  1. Add new person line: call speculation/person with a "put", returns  speculation with key
  2. Enter a person search string to person/autocomplete, returns list of people with pkeys
  3. Choose a person: call appointments/:pkey, returns a list of appointments
  4. Choose a specific appointment, call speculation/person/ with a "post" with specKey, pKey, and appointmentKey, get back speculation with data

State for Creating TBH

  1. First, do PUT call to  rest/v2/speculation/person/tbh, returns tbhid (essentially a person id) and returns a full speculation
  2. Click on a TBH, call rest/v2/speculation/person/tbh/:tbhid,
  3. If update, do POST call rest/v2/speculation/person/:pid (where pid == tbhid) to change TBH
  4. Not doing TBH-Named Person for initial rollout.

State for Creating Expenses

  1. Add line calls speculation/expense with Block GL Cat, return speculation
  2. Update expense line with call to speculation/expense/:specID with a post
  • No labels