devsofttech_hms_ci4/scratch/check_comp_slices.php

8 lines
323 B
PHP

<?php
$def = json_decode(file_get_contents('ABDM_FHIR/definitions.json/StructureDefinition-DischargeSummaryRecord.json'), true);
foreach ($def['snapshot']['element'] as $el) {
if (strpos($el['id'], 'Composition.section:') === 0) {
echo $el['id'] . " (min=" . $el['min'] . ", max=" . $el['max'] . ")\n";
}
}