Services\FhirOutcome::singleIssue PHP Method

singleIssue() public static method

public static singleIssue ( string $severity, string $type = null, string $details = null ) : FhirOutcome
$severity string
$type string
$details string
return FhirOutcome
    public static function singleIssue($severity, $type = null, $details = null)
    {
        $issue = new FhirOutcomeIssue(array('severity' => $severity, 'type' => $type, 'details' => $details));
        return new self(array('issues' => array($issue)));
    }

Usage Example

Example #1
0
 public function toFhirOutcome()
 {
     return \services\FhirOutcome::singleIssue(\FhirValueSet::ISSUESEVERITY_INFORMATION, null, "Everything's fine, honestly.  Nothing to see here.");
 }
FhirOutcome