Discharge

Discharge episode in PI Web

Discharge Definition

FOTO defines a discharge as the completion of treatment for an episode

This API presents methods to add and delete patient discharge information

SOAP Methods

SOAP Discovery

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

APIDischargeResponse Create(APIDischargeInput dischargeInput )

Update episode with discharge information


bool Delete(string externalEpisodeID)

Deletes discharge information from an episode

REST Methods

Resource URLs

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

POST

Update episode with discharge information

Parameter: APIDischargeInput
Response: APIDischargeResponse

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

DELETE

Deletes discharge information from an episode

Parameter: externalEpisodeID
Response: boolean

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

Supporting Objects and Structures (order matters when using XML)

  public class APIDischargeInput
  {
    public string ClinicianComments;
    public string ExternalEpisodeId;
    public int InterruptionDays;
    public DateTime LastVisit;
  }
  public class APIDischargeResponse
  {
    public string ExternalEpisodeId;
    public int MessageID;
    public ResultType ResultCode;
    public enum ResultType
    {
      Failed,
      Saved,
      Discharged
    };
    public string Text;
  }