Contact us at (800) USC-CARE (800-872-2273)

Clinical Trials

Clinical Trials2020-09-16T11:36:31+00:00
[php]

$NctIdArray = array(“NCT02722538”, “NCT02793128”, “NCT01224665”, “NCT03091660”, “NCT02177695”, “NCT02660645”, “NCT02537548”, “NCT03082274”, “NCT02793128”, “NCT02438852”, “NCT02699853”, “NCT02439060”, “NCT02660138”, “NCT03077659”, “NCT03234556”, “NCT03514927”, “NCT03514927”, “NCT02735512”, “NCT02664883”, “NCT02853097”, “NCT03055013”, “NCT02837042”, “NCT02717156”);

// loop through the items in the rss feed, individually
foreach($NctIdArray as $trialID) {

// define the directory and the name of the xml file
$xml_file2 = ‘http://clinicaltrials.gov/show/NCT01307332?displayxml=true’;

// replace the xml_file2 with the new Trial ID of next item in rss feed
$xml_file3 = substr_replace($xml_file2,$trialID,31,11);

// load the content of the XML file and create a new XML object
$xmlobj2 = simplexml_load_file($xml_file3);

// load the clinical trial variables (title, summary, link, status) from the xml files
$ct_title = “<h2><span style="color: #990000;">” . $xmlobj2->brief_title . “</span></h2>”;
$ct_summary = “<p>” . $xmlobj2->brief_summary->textblock . “</p>”;
$ct_summary_repl = str_replace(“
“,””, $ct_summary);
$ct_link = “Click <a href="”. $xmlobj2->required_header->url . “" target="_blank">here</a> to be directed to the clinicaltrials.gov website for complete and detailed information about this trial.<br /><br />”;
$ct_usc_contact = “<div style="font-size: 11px; font-weight: bold; line-height: 15px !important; ">For information about this clinical trial here at USC or to see if you qualify, contact Ileana Aldana by email at <a href="mailto:ileana.aldana@med.usc.edu" target="_blank">ileana.aldana@med.usc.edu</a> or by phone at (323) 865-0702 for more information.</div>”;
$ct_status = $xmlobj2->overall_status;
$ct_eligibility = $xmlobj2->eligibility->criteria->textblock;
$spacer = “<div style="margin-bottom: 60px; "></div>”;

// set the clinical trial status variables (active, active not recruiting, completed, recruiting)
$ct_status_active = “<span style="color: #FFF; background-color: #009884; padding: 10px; ">” . $xmlobj2->overall_status . “</span><br /><br /><div class="clear"></div>”;
$ct_status_activeNR = “<span style="color: #FFF; background-color: #ec950f; padding: 10px; ">” . $xmlobj2->overall_status . “</span><br /><br /><div class="clear"></div>”;
$ct_status_completed = “<span style="color: #FFF; background-color: #db2f0b; padding: 10px; ">” . $xmlobj2->overall_status . “</span><br /><br /><div class="clear"></div>”;
$ct_status_recruiting = “<span style="color: #FFF; background-color: #009884; padding: 10px; ">” . $xmlobj2->overall_status . “</span><br /><br /><div class="clear"></div>”;

echo htmlspecialchars_decode($ct_title);
echo htmlspecialchars_decode($ct_summary_repl);
echo htmlspecialchars_decode($ct_usc_contact);[/php]

[php] echo htmlspecialchars_decode($ct_eligibility); [/php]
[php] echo htmlspecialchars_decode($ct_link);

// determine the status of the clinical trial and display the correct variable
if ($ct_status == “Recruiting”):
echo htmlspecialchars_decode($ct_status_recruiting);
elseif ($ct_status == “Active, not recruiting”):
echo htmlspecialchars_decode($ct_status_activeNR);
elseif ($ct_status == “Active”):
echo htmlspecialchars_decode($ct_status_active);
elseif ($ct_status == “Completed”):
echo htmlspecialchars_decode($ct_status_completed);
endif;

echo htmlspecialchars_decode($spacer);
}

[/php]




Umbrella_KeckMedicine
umbrella-logo
Keck Medicine of USC is the University of Southern California’s medical enterprise, one of only two university-owned academic medical centers in the Los Angeles area.