hi
Author Archives: clsnyder
Pectus Clinic Update
Review of Pectus Center
Demographics
There were 213 visits, of which 110 were new patient visits. The patients were primarily loco-regional, with a few exceptions:
Pectus Referral Map
A ‘live’ version of this map can be seen at this link.
Overview
The mean age for new patients was 13.1 years; 13.4 for PC (Pectus Carinatum) and 12.8 for PE (Pectus Excavatum).
The overall M:F ratio was 87:23 (3.7:1). For PC the gender ratio was 2.4:1, and for PE 8:1.
Mean BMI overall was 18.8.
62 patients were classified as a PC variant, and 36 as PE.
Mean age at onset/recognition of the deformity was 9.5 years for PC and 1.7 years for PE (overall mean was 6.6 years).
FH was positive in 9/62 PC patients and 15/36 PE patients.
Haller index for the PE patients was a mean of 3.6, and the CI (Corrective Index) was 27.4.
How to get data from an external JSON file – PHP
1 2 3 4 5 6 | //assign the file contents to the array myJsonInput $myJsonInput = file_get_contents("/Path/test.json"); //Use json_decode to "Take a JSON encoded string and convert it into a PHP variable" $json_arr=json_decode($myJsonInput,true); //Create an empty array, $myLinks, to put the links in (in this example of pinboard bookmarks) $mylinks = array(); |
The test.json file is of the form:
1 | {"data":[{"description": "blah blah", "href":"http://google.com", "tags":"Search, News"},{"description": "more blah", "href":"http://nyt.com", "tags":"News"}]} |
1 2 3 4 5 6 7 8 9 10 | //Now, loop through the array to extract k:v pairs: //Note that "data" is the name of the container in the json file //The variable $link is basically a row of data foreach ($json_arr['data'] as $link) { //Create an associative array ('hash', 'dictionay') pairing the description with the hyperlink in this case $mylinks[$link['description']] = $link['href']; //Put the results in a table: echo '<tr><td>', '<a href="', $link['href'], '">',$link['description'], '</a>', '</td><td>', $link['tags'],'</td></tr><p>'; } |
Links
json_decode
Income Tax by Country
View From Space
Stochastic
This isn’t a new metaphor; the Greek word στόχος (stochos) refers to a stick set up to aim at. It’s where statisticians get the word stochastic: a fancy, but slightly more correct word than random. The distribution of arrows brings up another key point:
All things are possible, but not all things are probable.

