2 require_once("DataObjectBase.class.php");
3 require_once("xmlrpc.inc");
5 class ActionKeys
Extends DataObjectBase
{
7 function ActionKeys() {
8 $this->_addFunc("procarray", array( "name" => "FreeB.FBProcedure.ProcArray",
9 "sig" => array(XMLRPCSTRING
,XMLRPCINT
),
11 $this->_addFunc("diagarray", array( "name" => "FreeB.FBProcedure.DiagArray",
12 "sig" => array(XMLRPCSTRING
,XMLRPCINT
),
14 $this->_addFunc("patientkey", array( "name" => "FreeB.FBProcedure.PatientKey",
15 "sig" => array(XMLRPCSTRING
),
17 $this->_addFunc("practicekey", array( "name" => "FreeB.FBProcedure.PracticeKey",
18 "sig" => array(XMLRPCSTRING
),
20 $this->_addFunc("providerkey", array( "name" => "FreeB.FBProcedure.ProviderKey",
21 "sig" => array(XMLRPCSTRING
),
23 $this->_addFunc("insuredkey", array( "name" => "FreeB.FBProcedure.InsuredKey",
24 "sig" => array(XMLRPCSTRING
),
26 $this->_addFunc("otherinsuredkey", array( "name" => "FreeB.FBProcedure.OtherInsuredKey",
27 "sig" => array(XMLRPCSTRING
),
29 $this->_addFunc("payerkey", array( "name" => "FreeB.FBProcedure.PayerKey",
30 "sig" => array(XMLRPCSTRING
,XMLRPCINT
),
32 $this->_addFunc("secondpayerkey", array( "name" => "FreeB.FBProcedure.SecondPayerKey",
33 "sig" => array(XMLRPCSTRING
),
35 $this->_addFunc("facilitykey", array( "name" => "FreeB.FBProcedure.FacilityKey",
36 "sig" => array(XMLRPCSTRING
),
38 $this->_addFunc("billingcontactkey",array( "name" => "FreeB.FBProcedure.BillingContactKey",
39 "sig" => array(XMLRPCSTRING
),
41 $this->_addFunc("billingservicekey",array( "name" => "FreeB.FBProcedure.BillingServiceKey",
42 "sig" => array(XMLRPCSTRING
),
44 $this->_addFunc("isusingbillingservice",array( "name" => "FreeB.FBProcedure.IsUsingBillingService",
45 "sig" => array(XMLRPCSTRING
),
47 $this->_addFunc("clearinghousekey", array( "name" => "FreeB.FBProcedure.ClearingHouseKey",
48 "sig" => array(XMLRPCSTRING
),
53 function procarray($m) {
57 $procs = array(new xmlrpcval(144,"i4"),new xmlrpcval(233,"i4"));
59 // if we generated an error, create an error return response
61 return $this->_handleError($err);
64 // otherwise, we create the right response
65 // with the state name
66 return new xmlrpcresp(new xmlrpcval($procs,"array"));
70 function diagarray($m) {
74 $diags = array(new xmlrpcval(104,"i4"),new xmlrpcval(101,"i4"));
76 // if we generated an error, create an error return response
78 return $this->_handleError($err);
81 // otherwise, we create the right response
82 // with the state name
83 return new xmlrpcresp(new xmlrpcval($diags,"array"));
89 function patientkey($m) {
95 // if we generated an error, create an error return response
97 return $this->_handleError($err);
100 // otherwise, we create the right response
101 // with the state name
102 return new xmlrpcresp(new xmlrpcval($pkey));
106 function practicekey($m) {
112 // if we generated an error, create an error return response
114 return $this->_handleError($err);
117 // otherwise, we create the right response
118 // with the state name
119 return new xmlrpcresp(new xmlrpcval($pkey));
123 function providerkey($m) {
129 // if we generated an error, create an error return response
131 return $this->_handleError($err);
134 // otherwise, we create the right response
135 // with the state name
136 return new xmlrpcresp(new xmlrpcval($pkey));
140 function insuredkey($m) {
146 // if we generated an error, create an error return response
148 return $this->_handleError($err);
151 // otherwise, we create the right response
152 // with the state name
153 return new xmlrpcresp(new xmlrpcval($pkey));
157 function otherinsuredkey($m) {
163 // if we generated an error, create an error return response
165 return $this->_handleError($err);
168 // otherwise, we create the right response
169 // with the state name
170 return new xmlrpcresp(new xmlrpcval($pkey));
174 function payerkey($m) {
179 // if we generated an error, create an error return response
181 return $this->_handleError($err);
184 // otherwise, we create the right response
185 // with the state name
186 return new xmlrpcresp(new xmlrpcval($pkey));
190 function secondpayerkey($m) {
196 // if we generated an error, create an error return response
198 return $this->_handleError($err);
201 // otherwise, we create the right response
202 // with the state name
203 return new xmlrpcresp(new xmlrpcval($pkey));
207 function facilitykey($m) {
213 // if we generated an error, create an error return response
215 return $this->_handleError($err);
218 // otherwise, we create the right response
219 // with the state name
220 return new xmlrpcresp(new xmlrpcval($pkey));
224 function billingcontactkey($m) {
230 // if we generated an error, create an error return response
232 return $this->_handleError($err);
235 // otherwise, we create the right response
236 // with the state name
237 return new xmlrpcresp(new xmlrpcval($pkey));
240 function billingservicekey($m) {
246 // if we generated an error, create an error return response
248 return $this->_handleError($err);
251 // otherwise, we create the right response
252 // with the state name
253 return new xmlrpcresp(new xmlrpcval($pkey));
258 function isusingbillingservice($m) {
264 // if we generated an error, create an error return response
266 return $this->_handleError($err);
269 // otherwise, we create the right response
270 // with the state name
271 return new xmlrpcresp(new xmlrpcval($pkey));
275 function clearinghousekey($m) {
281 // if we generated an error, create an error return response
283 return $this->_handleError($err);
286 // otherwise, we create the right response
287 // with the state name
288 return new xmlrpcresp(new xmlrpcval($pkey));
293 //'FreeB.FBProcedure.ProcArray' => \&FreeB_FBProcedure_ProcArray,
294 //'FreeB.FBProcedure.DiagArray' => \&FreeB_FBProcedure_DiagArray,
295 //'FreeB.FBProcedure.PatientKey' => \&FreeB_FBProcedure_PatientKey,
296 //'FreeB.FBProcedure.PracticeKey' => \&FreeB_FBProcedure_PracticeKey,
297 //'FreeB.FBProcedure.ProviderKey' => \&FreeB_FBProcedure_ProviderKey,
298 //'FreeB.FBProcedure.InsuredKey' => \&FreeB_FBProcedure_InsuredKey,
299 //'FreeB.FBProcedure.OtherInsuredKey' => \&FreeB_FBProcedure_OtherInsuredKey,
300 //'FreeB.FBProcedure.PayerKey' => \&FreeB_FBProcedure_PayerKey,
301 //'FreeB.FBProcedure.SecondPayerKey' => \&FreeB_FBProcedure_SecondPayerKey,
302 //'FreeB.FBProcedure.FacilityKey' => \&FreeB_FBProcedure_FacilityKey,
303 //'FreeB.FBProcedure.BillingContactKey' => \&FreeB_FBProcedure_BillingContactKey,
304 //'FreeB.FBProcedure.BillingServiceKey' => \&FreeB_FBProcedure_BillingServiceKey,
305 //'FreeB.FBProcedure.isUsingBillingService' => \&FreeB_FBProcedure_isUsingBillingService,
306 //'FreeB.FBProcedure.ClearingHouseKey' => \&FreeB_FBProcedure_ClearingHouseKey,