public static function fromFhir($fhirObject) { $report = parent::fromFhir($fhirObject); foreach ($fhirObject as $key => $value) { if ($key == 'resourceType') { continue; } $report->{$key} = $value; } return $report; }