public class OperationOutcomeUtil extends Object
| Constructor and Description |
|---|
OperationOutcomeUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addIssue(FhirContext theCtx,
IBaseOperationOutcome theOperationOutcome,
String theSeverity,
String theDetails,
String theLocation,
String theCode)
Add an issue to an OperationOutcome
|
static String |
getFirstIssueDetails(FhirContext theCtx,
IBaseOperationOutcome theOutcome) |
static String |
getFirstIssueLocation(FhirContext theCtx,
IBaseOperationOutcome theOutcome) |
static boolean |
hasIssues(FhirContext theCtx,
IBaseOperationOutcome theOutcome)
Returns true if the given OperationOutcome has 1 or more Operation.issue repetitions
|
static IBaseOperationOutcome |
newInstance(FhirContext theCtx) |
public OperationOutcomeUtil()
public static void addIssue(FhirContext theCtx, IBaseOperationOutcome theOperationOutcome, String theSeverity, String theDetails, String theLocation, String theCode)
theCtx - The fhir contexttheOperationOutcome - The OO resource to add totheSeverity - The severity (fatal | error | warning | information)theDetails - The details stringtheCode - public static String getFirstIssueDetails(FhirContext theCtx, IBaseOperationOutcome theOutcome)
public static String getFirstIssueLocation(FhirContext theCtx, IBaseOperationOutcome theOutcome)
public static boolean hasIssues(FhirContext theCtx, IBaseOperationOutcome theOutcome)
public static IBaseOperationOutcome newInstance(FhirContext theCtx)
Copyright © 2014–2019 University Health Network. All rights reserved.