Discharge Examples

Examples of using the API

REST samples

These following REST examples were all run via Fiddler. For more information on Fiddler and SOAP samples please refer to our Samples page.


JSON POST

http://devs.patient-inquiry.com/discharge/json/?Api-Key=a8e09fcb-76d4-4912-be4c-6ed3bcd1e93a

  User-Agent: Fiddler
  Content-Type: text/json

  {
    "ExternalEpisodeId":"YourEpisodeID",
    "LastVisit":"\/Date(928164000000-0400)\/",
    "InterruptionDays":30,
    "ClinicianComments":"Exceeded expectations"
  }

Response

  {
    "ExternalEpisodeId":"YourEpisodeID",
    "MessageID":747,
    "ResultCode":2,
    "Text":""
  }

JSON DELETE

http://devs.patient-inquiry.com/discharge/json/YourEpisodeID?Api-Key=a8e09fcb-76d4-4912-be4c-6ed3bcd1e93a

  User-Agent: Fiddler
  Content-Type: text/json

Response

true

SOAP Samples

Our SOAP testing application is built as a Windows console application in VS2010. Feel free to download our SOAP Testing Client using the link below and use it as a starting point for your implementation. If you have used web services via WCF before, then this should look familiar. A key item to pay attention to is the CustomMessageInspector.cs, which is responsible for inserting the API Key into the header.

Download