GET contacts

GET contacts

Description
Return list of all possible referral types that can be used while creating new referral.

URI
https://{server}/referrals-api/services/v1/practices/{practiceUuid}/contacts
HTTP Method
GET
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.
Optional Query String Parameters
perPage
Number of records per page (max is 100, default is 100)
page
Page number
filter
Optional filtering string

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

Sample Call
HTTP Request

GET https://integration.medfusion.net/referrals-api/services/v1/practices/12345678-1234-1234-1234-1234567890ab/contacts

Header

•	Authorization: Bearer {OAuth token}
•	ExternalSystemId: {External System ID}
          Body: No body is supplied
Sample Response
Response Header

Transfer-Encoding: chunked
Content-Type: application/json
Connection: Keep-Alive
Keep-Alive: timeout=5, max=100

Response Body

[ {
  "contactType" : "practice",
  "practiceUuid" : "a76299d8-2576-4b68-bd8c-5893ca46693f",
  "practiceName" : "GolemGroup",
  "addresses" : [ {
    "locationName" : "PrimLoc_1025",
    "address1" : "addr",
    "address2" : "",
    "city" : "Cary",
    "state" : "NC",
    "zip" : "12345",
    "country" : "US",
    "phoneNumbers" : [ "1111111111" ]
  } ],
  "categories" : [ {
    "name" : "Cardio"
  } ],
  "networks" : [ {
    "name" : "Olander Group"
  } ],
  "schedulingUrl" : null,
  "instructions" : {
    "reasonForReferral" : "test reason",
    "additionalInformation" : "test add info",
    "fileAttachment" : "test file att"
  }
}, {
  "contactType" : "staff",
  "practiceUuid" : "a76299d8-2576-4b68-bd8c-5893ca46693f",
  "practiceName" : "GolemGroup",
  "addresses" : [ {
    "locationName" : "PrimLoc_1025",
    "address1" : "addr",
    "address2" : "",
    "city" : "Cary",
    "state" : "NC",
    "zip" : "12345",
    "country" : "US",
    "phoneNumbers" : [ "1111111111" ]
  } ],
  "categories" : [ ],
  "networks" : [ ],
  "schedulingUrl" : null,
  "instructions" : {
    "reasonForReferral" : null,
    "additionalInformation" : null,
    "fileAttachment" : null
  },
  "staffUuid" : "fbb1aa75-8d1c-49f0-b558-9359699f545c",
  "staffFirstName" : "James",
  "staffLastName" : "Farentino",
  "staffPhoneNumbers" : [ ]
} ]