FHIROperationOutcome

FHIROperationOutcome

new FHIROperationOutcome(oResource)

Constructor for a new FHIROperationOutcome.

Version:
  • 2.4.0
Since:
  • 2.0.0
Author:
  • SAP SE
Source:
See:
Parameters:
Name Type Description
oResource object

The FHIR resource

Methods

getDetailsTextBySeverity(sSeverity) → {string}

Get details text based on severity

Since:
  • 2.0.0
Source:
Parameters:
Name Type Description
sSeverity string

Issue severity(fatal | error | warning | information)

Returns:
Type:
string

Details of the issue of a given severity

getDiagnosticsBySeverity(sSeverity) → {string}

Get diagnostics based on severity

Since:
  • 2.0.0
Source:
Parameters:
Name Type Description
sSeverity string

Issue severity(fatal | error | warning | information)

Returns:
Type:
string

Diagnostics of the issue of a given severity

getErrorDiagnostics() → {string}

Get error diagnostics

Since:
  • 2.0.0
Source:
Returns:
Type:
string

Diagnostics of the issue based on the severity type error

getErrorText() → {string}

Get error details

Since:
  • 2.0.0
Source:
Returns:
Type:
string

Details of the issue based on the severity type error

getIssueByCode(sCode) → {object}

Get Issue based on code

Since:
  • 2.0.0
Source:
Parameters:
Name Type Description
sCode string

Error or warning code

Returns:
Type:
object

The issue which matches the given code

getIssueBySeverity(sSeverity) → {object}

Get Issue based on severity

Since:
  • 2.0.0
Source:
Parameters:
Name Type Description
sSeverity string

Issue severity(fatal | error | warning | information)

Returns:
Type:
object

The issue which matches the given severity

getIssues() → {array}

Get All Issues

Since:
  • 2.0.0
Source:
Returns:
Type:
array

All the issues in the given instance