devsofttech_hms_ci4/scratch/inspect_our_mr.php

10 lines
321 B
PHP

<?php
$b = json_decode(file_get_contents('writable/ipd9_bundle.json'), true);
foreach ($b['entry'] as $e) {
if ($e['resource']['resourceType'] === 'MedicationRequest') {
$r = $e['resource'];
unset($r['text']);
echo json_encode($r, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) . "\n\n";
}
}