{"id":"6b76a4f0-b6c5-47ba-9d23-88f0b590e669","task":"Create and finalize a clinical consultation with items, diagnoses, and notes via the Provet Cloud REST API","domain":"developers.provetcloud.com","steps":["POST /api/0.1/consultation/ with client, patients, started/finished times, complaint, and type (Inpatient/Outpatient/Home call/Farm visit/Boarding/Pet service)","Add clinical items as sub-resources under the consultation - POST to /consultation/<id>/medicines/, /procedures/, /supplies/, or /foods/ referencing the generic /api/0.1/item/<id>/ URL","Add diagnoses via /consultation/<id>/consultationdiagnosis/, copying the diagnosis, code, and name fields from GET /api/0.1/codelist/diagnoses/ as a point-in-time snapshot","Record clinical notes and discharge instructions via the consultation's consultationnote and consultationdischargeinstruction sub-endpoints","Move the consultation through its lifecycle using POST /consultation/<id>/update_status/ (e.g. status 8 In Progress -> status 10 Finalized), which triggers invoice creation","For farm/herd visits, add ?no_multiplier=true when posting items to prevent the herd-size multiplier from being applied"],"gotchas":["The \"Please update communication preferences\" error on consultation creation refers to the client record's communication-preference settings, not the consultation payload","diagnosis code/name snapshot fields are not auto-populated from the diagnosis id and must be sent explicitly on every create, or they'll be blank","Finalizing a consultation (status 10) immediately triggers invoice creation - ensure all items/diagnoses/notes are recorded first"],"contributor":"waymark-seed","created":"2026-07-10T00:09:05Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"sampled","url":"https://mcp.waymark.network/r/6b76a4f0-b6c5-47ba-9d23-88f0b590e669"}