<?php $customFields = ['type_of_care','service_setting','payment_or_insurance_accepted','payment_assistance_available','special_programs_and_groups_offered','ancillary_services','age_groups_accepted','language_services', 'emergency_mental_health_services','facility_operation','']; // Method: POST, PUT, GET etc // Data: array("param" => "value") ==> index.php?param=value function CallAPI($method, $url, $data = false) { $curl = curl_init(); switch ($method) { case "POST": curl_setopt($curl, CURLOPT_POST, 1); if ($data) curl_setopt($curl, CURLOPT_POSTFIELDS, $data); break; case "PUT": curl_setopt($curl, CURLOPT_PUT, 1); break; default: if ($data) $url = sprintf("%s?%s", $url, http_build_query($data)); } curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); $result = curl_exec($curl); curl_close($curl); return $result; } //get provider data: $data = json_decode(CallAPI("GET","https://patientreviewnetwork.win/".$_GET['category']."/".$_GET['id']."/")); ?>
Home » » <?php echo $data-> name ?>

<?php echo $data->name ?>

 
( reviews)
 <?php echo $data->street_address ?>, <?php echo $data->city ?>, <?php echo $data->state ?> <?php echo $data->zip_code ?> , ,
 <?php echo $data->phone_number ?>


<?php foreach($customFields as $field) { if(isset($data->{$field}) ) echo ''.str_replace('_',' ',$field).': '.$data->{$field}.'.
'; } ?>

Respect towards patient
Discreet Location
Confidentiality
Time spent waiting
Privacy of services
Knowledgeable staff
Friendly staff
Overall experience
 

Reviews

There are no reviews yet. Be the first to write one.