Referral

Add or Update Referrals in PI Web

Referral Definition

Referrals may be added to FOTO episodes via an external episode id (ExternalEpisodeId).

SOAP Methods

SOAP Discovery

SOAP 1.1
    http://devs.patient-inquiry.com/referral/soap?wsdl
SOAP 1.2
    http://devs.patient-inquiry.com/referral/soap12?wsdl

EmployerReferral2(IncomingReferral2 referral)

Adds an Employer Referral to the specified episode


InsuranceReferral2(IncomingReferral2 referral)

Adds an Insurance Referral to the specified episode


OtherReferral2(IncomingReferral2 referral)

Adds a referral to the specified episode that doesn't fit one of the other types


PhysicianReferral2(IncomingPhysicianReferral2 referral)

Adds a Physician Referral to the specified episode

REST Methods

Resource URLs

REST XML
    http://devs.patient-inquiry.com/referral/ 
REST json
    http://devs.patient-inquiry.com/referral/json/ 

POST (EmployerReferral2)

Adds an Employer Referral to the specified episode

Parameters: IncomingReferral2

Example Request: POST http://devs.patient-inquiry.com/referral/EmployerReferral2/?Api-Key=a8e09fcb-76d4-4912-be4c-6ed3bcd1e93a

POST (InsuranceReferral2)

Adds an Insurance Referral to the specified episode

Parameters: IncomingReferral2

Example Request: POST http://devs.patient-inquiry.com/referral/InsuranceReferral2/?Api-Key=a8e09fcb-76d4-4912-be4c-6ed3bcd1e93a

POST (OtherReferral2)

Adds an Other Referral type to the specified episode

Parameters: IncomingReferral2

Example Request: POST http://devs.patient-inquiry.com/referral/OtherReferral2/?Api-Key=a8e09fcb-76d4-4912-be4c-6ed3bcd1e93a

POST (PhysicianReferral2)

Adds a Physician Referral to the specified episode

Parameters: IncomingPhysicianReferral2

Example Request: POST http://devs.patient-inquiry.com/referral/PhysicianReferral2/?Api-Key=a8e09fcb-76d4-4912-be4c-6ed3bcd1e93a

Supporting Objects and Structures (order matters when using XML)

    public class IncomingReferral2
    {
      public string ExternalEpisodeId;
      public string Id;
      public string Misc;
      public string Name;
      public string Email;
    }
    public class IncomingPhysicianReferral2
    {
      public string ExternalEpisodeId;
      public string FirstName;
      public string Id;
      public string LastName;
      public string Title;
      public string Email;
    }