Episode 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 GET

http://devs.patient-inquiry.com/episode/json/YourPatientID?Api-Key=a8e09fcb-76d4-4912-be4c-6ed3bcd1e93a
  
  User-Agent: Fiddler
  Content-Type: text/json

Response

  [{
    "BodyPartId":12,
    "BodyPartText":"Ankle",
    "CreateDate":"\/Date(1347391604497-0400)\/",
    "EpisodeId":1596,
    "ImpairmentId":44,
    "ImpairmentText":"Fractures",
    "TherapistName":"Arlo Applebaum"
  }]

XML GET

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

Response

  <ArrayOfAPIEpisodeResponse xmlns="http://schemas.datacontract.org/2004/07/PI.Domain" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
    <APIEpisodeResponse>
      <BodyPartId>12</BodyPartId>
      <BodyPartText>Ankle</BodyPartText>
      <CreateDate>2012-09-11T15:26:44.497</CreateDate>
      <EpisodeId>1596</EpisodeId>
      <ImpairmentId>44</ImpairmentId>
      <ImpairmentText>Fractures</ImpairmentText>
      <TherapistName>Arlo Applebaum</TherapistName>
    </APIEpisodeResponse>
  </ArrayOfAPIEpisodeResponse>

JSON GET (SurveyURL)

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

Response

https://staging.fotoinc.com/RemoteSurvey.aspx?e=1240&r=NSG4PFAZHBM3

JSON GET (SurveyLobbyCode)

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

Response

XA89YB

JSON GET (SurveyQRcode)

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

Response

QR Code


JSON PUT

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

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

  {
    "episodeId":"1946",
    "externalEpisodeId":"VendorID"
  }

Response

  {
    "ClaimResult":
      {
        "EpisodeArtifacts": [
            {
                "EpisodeId": 1946,
                "ExternalEpisodeId": "VendorID",
                "FunctionalAssessments": [
                    {
                        "CMSFunctionalLimitations": [
                            {
                                "AskedCurrent": 4,
                                "AskedDischarge": 0,
                                "Descriptor": "Carrying, moving & handling objects functional limitation",
                                "GcodeCurrent": "G8984",
                                "GcodeDischarge": "G8986",
                                "GcodeGoal": "G8985",
                                "Id": 3,
                                "ShortDescriptor": "Carrying, Moving & Handling Objects",
                                "Type": "\u0000"
                            },
                            {
                                "AskedCurrent": 3,
                                "AskedDischarge": 0,
                                "Descriptor": "Self care functional limitation",
                                "GcodeCurrent": "G8987",
                                "GcodeDischarge": "G8989",
                                "GcodeGoal": "G8988",
                                "Id": 4,
                                "ShortDescriptor": "Self Care",
                                "Type": "\u0000"
                            },
                            {
                                "AskedCurrent": 9,
                                "AskedDischarge": 0,
                                "Descriptor": "Other physical or occupational primary functional limitation",
                                "GcodeCurrent": "G8990",
                                "GcodeDischarge": "G8992",
                                "GcodeGoal": "G8991",
                                "Id": 5,
                                "ShortDescriptor": "Other PT/OT Primary",
                                "Type": "\u0000"
                            }
                        ],
                        "Descriptor": "Physical FS Primary Measure",
                        "FunctionalScoreSummaries": [
                            {
                                "FunctionalLimitation": 92,
                                "FunctionalScore": 8,
                                "Label": "Intake",
                                "Modifier": {
                                    "Descriptior": "At least 80 percent but less than 100 percent",
                                    "Id": 6,
                                    "LowerBound": 80,
                                    "Modifier": "CM",
                                    "UpperBound": 100
                                },
                                "ScoreType": 0
                            }
                        ],
                        "PredictedChangeSummary": {
                            "FunctionalLimitationGoal": 41,
                            "FunctionalScoreGoal": 59,
                            "Modifier": {
                                "Descriptior": "At least 40 percent but less than 60 percent",
                                "Id": 4,
                                "LowerBound": 40,
                                "Modifier": "CK",
                                "UpperBound": 60
                            },
                            "PredictedChange": 51
                        }
                    }
                ],
                "PQRSClaimsReportingCodes": [],
                "ReportId": 2724,
                "ReportType": 0,
                "SurveyDateTimeCompleted": "/Date(1384318800000-0500)/",
                "SurveyDateTimeStarted": "/Date(1384318800000-0500)/",
                "PDFReport": [37,80,68,70,45,49,46,52,...,37,69,79,70,10]
            }
        ],
        "EpisodeId": 1946,
        "ExternalEpisodeId": "VendorID",
        "MessageID": 400618,
        "Success": true,
        "Text": ""
    }
  }

JSON PUT (Claim2)

  http://devs.patient-inquiry.com/episode/json/claim2?Api-Key=a8e09fcb-76d4-4912-be4c-6ed3bcd1e93a
  User-Agent: Fiddler
  Content-Type: text/json
  {
    "episodeId":"1946",
    "externalEpisodeId":"VendorID"
  }

Response

  {
    "ClaimResult":
    {
      "EpisodeArtifacts": [
          {
              "EpisodeId": 1946,
              "ExternalEpisodeId": "VendorID",
              "FunctionalAssessments": [
                  {
                      "CMSFunctionalLimitations": [
                          {
                              "AskedCurrent": 4,
                              "AskedDischarge": 0,
                              "Descriptor": "Carrying, moving & handling objects functional limitation",
                              "GcodeCurrent": "G8984",
                              "GcodeDischarge": "G8986",
                              "GcodeGoal": "G8985",
                              "Id": 3,
                              "ShortDescriptor": "Carrying, Moving & Handling Objects",
                              "Type": "\u0000"
                          },
                          {
                              "AskedCurrent": 3,
                              "AskedDischarge": 0,
                              "Descriptor": "Self care functional limitation",
                              "GcodeCurrent": "G8987",
                              "GcodeDischarge": "G8989",
                              "GcodeGoal": "G8988",
                              "Id": 4,
                              "ShortDescriptor": "Self Care",
                              "Type": "\u0000"
                          },
                          {
                              "AskedCurrent": 9,
                              "AskedDischarge": 0,
                              "Descriptor": "Other physical or occupational primary functional limitation",
                              "GcodeCurrent": "G8990",
                              "GcodeDischarge": "G8992",
                              "GcodeGoal": "G8991",
                              "Id": 5,
                              "ShortDescriptor": "Other PT/OT Primary",
                              "Type": "\u0000"
                          }
                      ],
                      "Descriptor": "Physical FS Primary Measure",
                      "FunctionalScoreSummaries": [
                          {
                              "FunctionalLimitation": 92,
                              "FunctionalScore": 8,
                              "Label": "Intake",
                              "Modifier": {
                                  "Descriptior": "At least 80 percent but less than 100 percent",
                                  "Id": 6,
                                  "LowerBound": 80,
                                  "Modifier": "CM",
                                  "UpperBound": 100
                              },
                              "ScoreType": 0
                          }
                      ],
                      "PredictedChangeSummary": {
                          "FunctionalLimitationGoal": 41,
                          "FunctionalScoreGoal": 59,
                          "Modifier": {
                              "Descriptior": "At least 40 percent but less than 60 percent",
                              "Id": 4,
                              "LowerBound": 40,
                              "Modifier": "CK",
                              "UpperBound": 60
                          },
                          "PredictedChange": 51
                      },
                      "AssessmentAttributes": [
                          {
                              "Attribute": "Visits",
                              "Type": "int",
                              "Value": "19"
                          },
                          {
                              "Attribute": "Duration",
                              "Type": "int",
                              "Value": "66"
                          },
                          {
                              "Attribute": "Revenue",
                              "Type": "int",
                              "Value": "1769"
                          },
                          {
                              "Attribute": "Satisfaction",
                              "Type": "decimal",
                              "Value": "98.3"
                          }
                      ],
                      "MCII": 23,
                      "MDC": 29,
                      "PatientResponses": [
                          {
                              "Indicator": " ",
                              "IntakeResponse": "I can't do this",
                              "Question": "Reach an overhead shelf?",
                              "StatusResponse": null
                          },
                          {
                              "Indicator": " ",
                              "IntakeResponse": "I can't do this",
                              "Question": "Combing or brushing your hair using your affected arm?",
                              "StatusResponse": null
                          },
                          {
                              "Indicator": " ",
                              "IntakeResponse": "I can't do this",
                              "Question": "Reach a shelf that is at shoulder height?",
                              "StatusResponse": null
                          },
                          {
                              "Indicator": " ",
                              "IntakeResponse": "I can't do this",
                              "Question": "Place a can of soup (1 lb) on a shelf at shoulder height?",
                              "StatusResponse": null
                          },
                          {
                              "Indicator": " ",
                              "IntakeResponse": "I can't do this",
                              "Question": "Pulling a chair out from a table using your affected arm?",
                              "StatusResponse": null
                          },
                          {
                              "Indicator": " ",
                              "IntakeResponse": "I can't do this",
                              "Question": "Getting a scarf or necktie over your head and around your neck, using both hands?",
                              "StatusResponse": null
                          },
                          {
                              "Indicator": " ",
                              "IntakeResponse": "I can't do this",
                              "Question": "Pushing yourself out of a chair using both arms?",
                              "StatusResponse": null
                          },
                          {
                              "Indicator": " ",
                              "IntakeResponse": "I can't do this",
                              "Question": "Reaching across to the middle of the table with your affected arm to get a salt shaker while sitting?",
                              "StatusResponse": null
                          },
                          {
                              "Indicator": " ",
                              "IntakeResponse": "I can't do this",
                              "Question": "Putting on deodorant under the arm opposite your affected shoulder?",
                              "StatusResponse": null
                          },
                          {
                              "Indicator": " ",
                              "IntakeResponse": "I can't do this",
                              "Question": "Pick up and drink out of a full water glass?",
                              "StatusResponse": null
                          },
                          {
                              "Indicator": " ",
                              "IntakeResponse": "9",
                              "Question": "Rate the level of pain you have had in the past 24 hours",
                              "StatusResponse": null
                          }
                      ],
                      "RiskAdjustedStatisticalFOTO": 49,
                      "StagingInfo": {
                          "CurrentStage": null,
                          "FunctionalityPredictions": [
                              {
                                  "Answer": "Some difficulty",
                                  "Question": "How much difficulty do you have using your affected arm to place a 50 lb. box on a shelf overhead?"
                              },
                              {
                                  "Answer": "Some difficulty",
                                  "Question": "How much difficulty do you have using your affected arm to place a 25 lb. box on a shelf overhead?"
                              },
                              {
                                  "Answer": "Some difficulty",
                                  "Question": "Work overhead for more than 2 minutes?"
                              },
                              {
                                  "Answer": "Some difficulty",
                                  "Question": "Touch an object on the back seat while sitting in the front seat of a car?"
                              },
                              {
                                  "Answer": "Little difficulty",
                                  "Question": "Reach an overhead shelf?"
                              },
                              {
                                  "Answer": "Little difficulty",
                                  "Question": "Lower a lightweight object (1-5 lb) from the top shelf of a closet?"
                              },
                              {
                                  "Answer": "Little difficulty",
                                  "Question": "Pull a medium weight object (5-10 lbs) from under a bed?"
                              },
                              {
                                  "Answer": "Little difficulty",
                                  "Question": "Place a can of soup (1 lb) on a shelf overhead?"
                              },
                              {
                                  "Answer": "Little difficulty",
                                  "Question": "Move a heavy skillet (eg, cast iron skillet) from one stove burner to another?"
                              },
                              {
                                  "Answer": "Little difficulty",
                                  "Question": "Reach and pull the string that controls a light or fan?"
                              },
                              {
                                  "Answer": "Little difficulty",
                                  "Question": "Adjusting the back of your collar with your affected hand?"
                              },
                              {
                                  "Answer": "No difficulty",
                                  "Question": "Stir a large bowl of thick food such as mashed potatoes?"
                              },
                              {
                                  "Answer": "No difficulty",
                                  "Question": "Combing or brushing your hair using your affected arm?"
                              },
                              {
                                  "Answer": "No difficulty",
                                  "Question": "How much difficulty do you have using your affected arm to lift a bag of groceries from the floor?"
                              },
                              {
                                  "Answer": "No difficulty",
                                  "Question": "Pull something out of your back pocket?"
                              },
                              {
                                  "Answer": "No difficulty",
                                  "Question": "Reach a shelf that is at shoulder height?"
                              },
                              {
                                  "Answer": "No difficulty",
                                  "Question": "Reach across your body to fasten a car's lap strap (safety belt)?"
                              },
                              {
                                  "Answer": "No difficulty",
                                  "Question": "Slide a medium weight (5-10 lb) box across a table by pulling it completely to you?"
                              },
                              {
                                  "Answer": "No difficulty",
                                  "Question": "Turn a steering wheel in the opposite direction as your affected arm (eg, turn left if it is your right shoulder that is affected)?"
                              },
                              {
                                  "Answer": "No difficulty",
                                  "Question": "Place a can of soup (1 lb) on a shelf at shoulder height?"
                              },
                              {
                                  "Answer": "No difficulty",
                                  "Question": "Carry something of medium weight (5-10 lb) in the crook of your arm (where your elbow bends)?"
                              },
                              {
                                  "Answer": "No difficulty",
                                  "Question": "Pulling a chair out from a table using your affected arm?"
                              },
                              {
                                  "Answer": "No difficulty",
                                  "Question": "Using your affected arm to throw a ball underhand?"
                              },
                              {
                                  "Answer": "No difficulty",
                                  "Question": "Slide hanging clothes in a closet from one end of the rod to the other?"
                              },
                              {
                                  "Answer": "No difficulty",
                                  "Question": "Getting a scarf or necktie over your head and around your neck, using both hands?"
                              },
                              {
                                  "Answer": "No difficulty",
                                  "Question": "Pushing yourself out of a chair using both arms?"
                              },
                              {
                                  "Answer": "No difficulty",
                                  "Question": "Lift the lid of a chest that sits on the floor?"
                              },
                              {
                                  "Answer": "No difficulty",
                                  "Question": "Steady a jar while you loosen the jar lid?"
                              },
                              {
                                  "Answer": "No difficulty",
                                  "Question": "Reaching across to the middle of the table with your affected arm to get a salt shaker while sitting?"
                              },
                              {
                                  "Answer": "No difficulty",
                                  "Question": "Tighten a jar lid?"
                              },
                              {
                                  "Answer": "No difficulty",
                                  "Question": "Putting on deodorant under the arm opposite your affected shoulder?"
                              },
                              {
                                  "Answer": "No difficulty",
                                  "Question": "Pick up and drink out of a full water glass?"
                              },
                              {
                                  "Answer": "No difficulty",
                                  "Question": "Reach the earlobe on the opposite side as your affected shoulder?"
                              },
                              {
                                  "Answer": "No difficulty",
                                  "Question": "Using your hand on the affected arm to wash the side of your face on the same side as your affected shoulder?"
                              },
                              {
                                  "Answer": "No difficulty",
                                  "Question": "Taking off glasses or sunglasses using your affected arm?"
                              },
                              {
                                  "Answer": "No difficulty",
                                  "Question": "Pulling on your socks using both hands?"
                              },
                              {
                                  "Answer": "No difficulty",
                                  "Question": "Lifting your hand on the affected side and putting it on a table in front of you while you are sitting?"
                              },
                              {
                                  "Answer": "No difficulty",
                                  "Question": "Putting on underpants (eg, panties, briefs, or boxers) using both hands?"
                              },
                              {
                                  "Answer": "No difficulty",
                                  "Question": "Turn a faucet in the opposite direction as your affected arm (eg, turn left if it is your right shoulder that is affected)?"
                              },
                              {
                                  "Answer": "No difficulty",
                                  "Question": "Flushing the toilet using your affected arm?"
                              }
                          ],
                          "IntakeStage": {
                              "Description": "Unable to perform or limited a lot performing light routine activities using the affected arm like taking off glasses, flushing the toilet, turning a faucet or washing the face.",
                              "Measure": 8,
                              "PatientFunctionText": "patient has exceedingly limited shoulder function",
                              "Stage": 1,
                              "Title": "Exceedingly limited shoulder"
                          },
                          "PredictedStage": {
                              "Description": "Can perform light daily activities with little difficulty and moderate daily activities with some difficulty but still has much difficulty performing heavy upper extremity activities such as lowering a lightweight object from the top shelf of a closet and reaching an overhead shelf.",
                              "Measure": 59,
                              "PatientFunctionText": "patient has fair shoulder function",
                              "Stage": 3,
                              "Title": "Fair shoulder"
                          },
                          "RiskAdjustedStage": {
                              "Description": "Can perform light daily activities with little difficulty and moderate daily activities with some difficulty but still has much difficulty performing heavy upper extremity activities such as lowering a lightweight object from the top shelf of a closet and reaching an overhead shelf.",
                              "Measure": 49,
                              "PatientFunctionText": "patient has fair shoulder function",
                              "Stage": 3,
                              "Title": "Fair shoulder"
                          },
                          "StagingLevels": [
                              {
                                  "Stage": 1,
                                  "Title": "Exceedingly limited shoulder"
                              },
                              {
                                  "Stage": 2,
                                  "Title": "Poor shoulder"
                              },
                              {
                                  "Stage": 3,
                                  "Title": "Fair shoulder"
                              },
                              {
                                  "Stage": 4,
                                  "Title": "Good shoulder"
                              },
                              {
                                  "Stage": 5,
                                  "Title": "Excellent shoulder"
                              }
                          ]
                      }
                  }
              ],
              "PQRSClaimsReportingCodes": [],
              "PatientReportedItems": [
                  {
                      "Attribute": "Patient reports other health problems as",
                      "Survey": "Demographics",
                      "Type": "string",
                      "Value": "Asthma,    Diabetes Type I or II,    Other disorders"
                  },
                  {
                      "Attribute": "BMI",
                      "Survey": "Demographics",
                      "Type": "string",
                      "Value": "Patient refused or failed to provide height and weight"
                  },
                  {
                      "Attribute": "Exercise prior to onset",
                      "Survey": "Demographics",
                      "Type": "string",
                      "Value": "Patient completed 20 minutes of exercise at least three (3) times a week"
                  },
                  {
                      "Attribute": "Prescription medicine",
                      "Survey": "Demographics",
                      "Type": "string",
                      "Value": "Patient is  taking prescription medicine for this condition"
                  },
                  {
                      "Attribute": "Surgery",
                      "Survey": "Demographics",
                      "Type": "string",
                      "Value": "Patient reports no surgeries for this primary condition"
                  },
                  {
                      "Attribute": "Fear avoidance belief about physical activity",
                      "Survey": "Physical Fear",
                      "Type": "string",
                      "Value": "0(0) Scale: 0-100(0-24)"
                  },
                  {
                      "Attribute": "I should not do physical activities which (might) make my pain worse",
                      "Survey": "Fear",
                      "Type": "string",
                      "Value": "Completely Disagree"
                  }
              ],
              "ReportId": 2724,
              "ReportType": 0,
              "RiskAdjustedItems": [
                  {
                      "Attribute": "Care Type",
                      "Type": "string",
                      "Value": "Orthopedic"
                  },
                  {
                      "Attribute": "Body Part",
                      "Type": "string",
                      "Value": "Shoulder"
                  },
                  {
                      "Attribute": "Severity",
                      "Type": "string",
                      "Value": "Very Severe  (Intake FS: 8)"
                  },
                  {
                      "Attribute": "Age",
                      "Type": "int",
                      "Value": "75"
                  },
                  {
                      "Attribute": "Acuity",
                      "Type": "string",
                      "Value": "0 - 7 days"
                  },
                  {
                      "Attribute": "Gender",
                      "Type": "string",
                      "Value": "Male\n"
                  },
                  {
                      "Attribute": "Comorbidities",
                      "Type": "string",
                      "Value": "Two or Three\n"
                  },
                  {
                      "Attribute": "Payer",
                      "Type": "string",
                      "Value": "Medicare B"
                  },
                  {
                      "Attribute": "Fear Avoidance",
                      "Type": "string",
                      "Value": "Low\n"
                  },
                  {
                      "Attribute": "Surgery Status",
                      "Type": "string",
                      "Value": "None\n"
                  }
              ],
              "SurveyDateTimeCompleted": "/Date(1384318800000-0500)/",
              "SurveyDateTimeStarted": "/Date(1384318800000-0500)/",
              "Visit": 0,
              "PDFReport": [37,80,68,70,45,49,46,52,...,37,69,79,70,10]
          }
      ],
      "EpisodeId": 1946,
      "ExternalEpisodeId": "VendorID",
      "MessageID": 400621,
      "Success": true,
      "Text": ""
  }
  }

XML PUT

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

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

  <Claim xmlns="http://patient-inquiry.com/episode">
    <episodeId>832</episodeId>
    <externalEpisodeId>YourEpisodeId</externalEpisodeId>
  </Claim>

Response

<APIClaimEpisodeResponse xmlns="http://schemas.datacontract.org/2004/07/PI.Domain" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <EpisodeArtifacts>
    <APIEpisodeArtifactwithReport>
      <EpisodeId>832</EpisodeId>
      <ExternalEpisodeId>YourEpisodeId</ExternalEpisodeId>
      <FsMeasure>36.91</FsMeasure>
      <FunctionalDisabilityScore>63.09</FunctionalDisabilityScore>
      <GCode/>
      <ReportId>2165</ReportId>
      <ReportType>Intake</ReportType>
      <SurveyDateTimeCompleted>2012-09-11T15:30:12.47</SurveyDateTimeCompleted>
      <SurveyDateTimeStarted>2012-09-11T15:29:18.363</SurveyDateTimeStarted>
      <PDFReport>JVBERi0xLj...Sb290IDggMCBSPj4Kc3RhcnR4cmVmCjEwMzg2CiUlRU9GCg==</PDFReport>
    </APIEpisodeArtifactwithReport>
  </EpisodeArtifacts>
  <EpisodeId>1597</EpisodeId>
  <ExternalEpisodeId>YourEpisodeId</ExternalEpisodeId>
  <MessageID>806</MessageID>
  <Success>true</Success>
  <Text/>
</APIClaimEpisodeResponse>


JSON DELETE

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

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

Response

  true

JSON POST (EmployerReferral) (Obsolete)

http://devs.patient-inquiry.com/episode/json/EmployerReferral/?Api-Key=a8e09fcb-76d4-4912-be4c-6ed3bcd1e93a
User-Agent: Fiddler
Content-Type: text/json
{
  "ExternalEpisodeId":"VendorId",
  "Id":"VendorReferralId",
  "Name":"Employer Name",
  "Misc":""
}

XML POST (EmployerReferral) (Obsolete)

  http://devs.patient-inquiry.com/episode/EmployerReferral/?Api-Key=a8e09fcb-76d4-4912-be4c-6ed3bcd1e93a
  User-Agent: Fiddler
  Content-Type: text/xml
  <IncommingReferral xmlns="http://schemas.datacontract.org/2004/07/PI.Domain">
    <ExternalEpisodeId>VendorId</ExternalEpisodeId>
    <Id>VendorReferralId</Id>
    <Misc>Misc</Misc>
    <Name>Employer Name</Name>
  </IncommingReferral>

JSON POST (InsuranceReferral) (Obsolete)

http://devs.patient-inquiry.com/episode/json/InsuranceReferral/?Api-Key=a8e09fcb-76d4-4912-be4c-6ed3bcd1e93a
User-Agent: Fiddler
Content-Type: text/json
{
  "ExternalEpisodeId":"VendorId",
  "Id":"VendorReferralId",
  "Name":"Insurance Name",
  "Misc":""
}

XML POST (InsuranceReferral) (Obsolete)

  http://devs.patient-inquiry.com/episode/InsuranceReferral/?Api-Key=a8e09fcb-76d4-4912-be4c-6ed3bcd1e93a
  User-Agent: Fiddler
  Content-Type: text/xml
  <IncommingReferral xmlns="http://schemas.datacontract.org/2004/07/PI.Domain">
    <ExternalEpisodeId>VendorId</ExternalEpisodeId>
    <Id>VendorReferralId</Id>
    <Misc/>
    <Name>Insurance Name</Name>
  </IncommingReferral>

JSON POST (OtherReferral) (Obsolete)

http://devs.patient-inquiry.com/episode/json/OtherReferral/?Api-Key=a8e09fcb-76d4-4912-be4c-6ed3bcd1e93a
User-Agent: Fiddler
Content-Type: text/json
{
  "ExternalEpisodeId":"VendorId",
  "Id":"VendorReferralId",
  "Name":"Other Name",
  "Misc":""
}

XML POST (OtherReferral) (Obsolete)

  http://devs.patient-inquiry.com/episode/OtherReferral/?Api-Key=a8e09fcb-76d4-4912-be4c-6ed3bcd1e93a
  User-Agent: Fiddler
  Content-Type: text/xml
  <IncommingReferral xmlns="http://schemas.datacontract.org/2004/07/PI.Domain">
    <ExternalEpisodeId>VendorId</ExternalEpisodeId>
    <Id>VendorReferralId</Id>
    <Misc/>
    <Name>Other Name</Name>
  </IncommingReferral>

JSON POST (PhysicianReferral) (Obsolete)

http://devs.patient-inquiry.com/episode/json/PhysicianReferral/?Api-Key=a8e09fcb-76d4-4912-be4c-6ed3bcd1e93a
User-Agent: Fiddler
Content-Type: text/json
{
  "ExternalEpisodeId":"VendorId",
  "FirstName":"Physician First Name",
  "Id":"VendorReferralId",
  "LastName":"Physician Last Name",
  "Title":"Physician Title"
}

XML POST (PhysicianReferral) (Obsolete)

  http://devs.patient-inquiry.com/episode/PhysicianReferral/?Api-Key=a8e09fcb-76d4-4912-be4c-6ed3bcd1e93a
  User-Agent: Fiddler
  Content-Type: text/xml
  <IncommingPhysicianReferral xmlns="http://schemas.datacontract.org/2004/07/PI.Domain">
    <ExternalEpisodeId>VendorId</ExternalEpisodeId>
    <FirstName>Physician First Name</FirstName>
    <Id>VendorReferralId</Id>
    <LastName>Physician Last Name</LastName>
    <Title>Physician Title</Title>
  </IncommingPhysicianReferral>

JSON POST (ArtifactVisit)

http://devs.patient-inquiry.com/episode/json/ArtifactVisit/?Api-Key=a8e09fcb-76d4-4912-be4c-6ed3bcd1e93a
User-Agent: Fiddler
Content-Type: text/json
{
  "ExternalEpisodeId":"VendorId",
  "ReportId":2724,
  "VisitNumber":2
}

Response

{
  "ExternalEpisodeId":"VendorId",
  "MessageId":1234
  "ReportId":2724,
  "Success":true,
  "Text":"Visit number updated successfully."
}

XML POST (ArtifactVisit)

http://devs.patient-inquiry.com/episode/ArtifactVisit/?Api-Key=a8e09fcb-76d4-4912-be4c-6ed3bcd1e93a
User-Agent: Fiddler
Content-Type: text/xml
<APIArtifactVisitInput xmlns="http://schemas.datacontract.org/2004/07/PI.Domain">
  <ExternalEpisodeId>VendorId</ExternalEpisodeId>
  <ReportId>2724</ReportId>
  <VisitNumber>2</VisitNumber>
</APIArtifactVisitInput>

Response

<APIArtifactVisitResponse xmlns="http://schemas.datacontract.org/2004/07/PI.Domain">
  <ExternalEpisodeId>VendorId</ExternalEpisodeId>
  <MessageId>1234</MessageId>
  <ReportId>2724</ReportId>
  <Success>true</Success>
  <Text>Visit number updated successfully.</Text>
</APIArtifactVisitResponse>

SOAP samples

Here at FOTO we are a Microsoft .Net shop so our SOAP testing application is built as a windows console application in VS2010. Please feel free to download it and use it as jumping off point for your implementation. If you've used web services via WCF before then it should look familiar. The biggest item to pay attention to is the CustomMessageInspector.cs which is responsible for injecting the API Key into the header.

Download SOAP Testing Client