Visit 2

Visit2 import into PI Web

Visit2 Definition

FOTO defines a visit record as time spent with a single clinician

This API presents methods to add and delete patient visit information

SOAP Methods

SOAP Discovery

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

APIVisitResponse[] Create(APIVisitInput2 apiVisitInput)

Insert a patient's visit with a clinician


APIVisitResponse Delete(string visitId)

Deletes a patient visit record

REST Methods

Resource URLs

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

POST

Insert a patient's visit with a clinician

Parameter: APIVisitInput2
Response: APIVisitResponse[]

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

DELETE

Deletes a patient visit record with the provided visitId>

Parameter: visitId
Response: APIVisitResponse

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

Supporting Objects and Structures (order matters when using XML)

  public class APIVisitInput2
  {
    public string ClinicianType;
    public string ExternalEpisodeId;
    public int MinutesSpent;
    public decimal Revenue;
    public DateTime VisitDate;
  }
  public class APIVisitResponse
  {
    public int EpisodeId;
    public string ExternalEpisodeId;
    public int MessageID;
    public string Text;
    public bool Success;
    public int VisitId;
  }
Recognized ClinicianType Values - Any values outside of this list will be set to "Other"
    NA,
    ATC,
    COTA,
    DC,
    DPT,
    EP,
    LPN,
    MPT,
    MSPT,
    OT,
    PhD,
    PT,
    PTA,
    RN,
    SLP,
    OTR,
    SPT,
    CCCSLP,
    ST,
    RT,
    Other