devsofttech_hms_ci4/scratch/check_p6_mr.php

9 lines
289 B
PHP

<?php
$p6 = json_decode(file_get_contents('ABDM_FHIR/examples.json/Bundle-Prescription-example-06.json'), true);
foreach ($p6['entry'] as $e) {
if ($e['resource']['resourceType'] === 'MedicationRequest') {
echo json_encode($e['resource'], JSON_PRETTY_PRINT) . "\n\n";
}
}