POST Add comment into referral

POST Add comment into referral

Description
Add comment into existing referral

URI
https://{server}/referrals-api/services/v1/practices/{practiceUuid}/referrals/{referralUuid}/comments
HTTP Method
POST
Required URI Values
Server
The domain name of the test or production system.

  • Test system: integration.demo.medfusion.net
  • Production system: integration.medfusion.net
PracticeUuid
The unique practice integration ID for a given practice. Medfusion will provide a practice ID that you can use during development.
Required Data
JSON containing following data:

text
string up to 4000 characters long
createdBy
JSON object containing following fields:

actorType
externalStaff
externalStaffId
string up to 100 characters long

Success Response
  • 200 – Success with referral types listed in response
  • 400 – Bad request
  • 401 – Unauthorized request

Sample Call
HTTP Request

POST https://integration.medfusion.net/referrals-api/services/v1/practices/12345678-1234-1234-1234-1234567890ab/referrals/12345678-1234-1234-1234-1234567890ac /comments

Header

•	Authorization: Bearer {OAuth token}
•	ExternalSystemId: {External System ID}
•	Content-Type: application/json
Body

{
  text: “Sample comment text”,
  createdBy: {
    actorType: “externalStaff”,
    externalStaffId: “PracticeStaff1”
  }
}

Sample Response
Response Header

Location: https://integration.medfusion.net/referrals-api/services/v1/practices/12345678-1234-1234-1234-1234567890ab/referrals/12345678-1234-1234-1234-1234567890ac /comments/12345678-1234-1234-1234-1234567890af

Response Body

No Body