public final class FhirUtils extends Object
Constructor and Description |
---|
FhirUtils() |
Modifier and Type | Method and Description |
---|---|
static <T extends ca.uhn.fhir.rest.server.exceptions.BaseServerResponseException> |
exception(Function<String,T> func,
org.hl7.fhir.instance.model.api.IBaseOperationOutcome operationOutcome,
String msg,
Object... args) |
static <T extends ca.uhn.fhir.rest.server.exceptions.BaseServerResponseException> |
exception(Function<String,T> func,
org.hl7.fhir.dstu3.model.OperationOutcome.IssueSeverity severity,
org.hl7.fhir.dstu3.model.OperationOutcome.IssueType type,
String code,
String diagnostics,
String msg,
Object... args) |
static ca.uhn.fhir.rest.server.exceptions.ForbiddenOperationException |
forbiddenOperation(org.hl7.fhir.dstu3.model.OperationOutcome.IssueSeverity severity,
org.hl7.fhir.dstu3.model.OperationOutcome.IssueType type,
String code,
String diagnostics,
String msg,
Object... args) |
static Map<org.hl7.fhir.dstu3.model.ResourceType,List<org.hl7.fhir.dstu3.model.Bundle.BundleEntryComponent>> |
getBundleEntries(org.hl7.fhir.dstu3.model.Bundle bundle)
Converts a
Bundle into a map grouped by the entry resources types |
static ca.uhn.fhir.rest.server.exceptions.InternalErrorException |
internalError(org.hl7.fhir.dstu3.model.OperationOutcome.IssueSeverity severity,
org.hl7.fhir.dstu3.model.OperationOutcome.IssueType type,
String code,
String diagnostics,
String msg,
Object... args) |
static ca.uhn.fhir.rest.server.exceptions.InvalidRequestException |
invalidRequest(org.hl7.fhir.dstu3.model.OperationOutcome.IssueSeverity severity,
org.hl7.fhir.dstu3.model.OperationOutcome.IssueType type,
String code,
String diagnostics,
String msg,
Object... args) |
static ca.uhn.fhir.rest.server.exceptions.ResourceNotFoundException |
resourceNotFound(org.hl7.fhir.dstu3.model.OperationOutcome.IssueSeverity severity,
org.hl7.fhir.dstu3.model.OperationOutcome.IssueType type,
String code,
String diagnostics,
String msg,
Object... args) |
static ca.uhn.fhir.rest.server.exceptions.UnprocessableEntityException |
unprocessableEntity(org.hl7.fhir.dstu3.model.OperationOutcome.IssueSeverity severity,
org.hl7.fhir.dstu3.model.OperationOutcome.IssueType type,
String code,
String diagnostics,
String msg,
Object... args) |
public static Map<org.hl7.fhir.dstu3.model.ResourceType,List<org.hl7.fhir.dstu3.model.Bundle.BundleEntryComponent>> getBundleEntries(org.hl7.fhir.dstu3.model.Bundle bundle)
Bundle
into a map grouped by the entry resources typesbundle
- Bundlepublic static ca.uhn.fhir.rest.server.exceptions.InternalErrorException internalError(org.hl7.fhir.dstu3.model.OperationOutcome.IssueSeverity severity, org.hl7.fhir.dstu3.model.OperationOutcome.IssueType type, String code, String diagnostics, String msg, Object... args)
public static ca.uhn.fhir.rest.server.exceptions.UnprocessableEntityException unprocessableEntity(org.hl7.fhir.dstu3.model.OperationOutcome.IssueSeverity severity, org.hl7.fhir.dstu3.model.OperationOutcome.IssueType type, String code, String diagnostics, String msg, Object... args)
public static ca.uhn.fhir.rest.server.exceptions.InvalidRequestException invalidRequest(org.hl7.fhir.dstu3.model.OperationOutcome.IssueSeverity severity, org.hl7.fhir.dstu3.model.OperationOutcome.IssueType type, String code, String diagnostics, String msg, Object... args)
public static ca.uhn.fhir.rest.server.exceptions.ResourceNotFoundException resourceNotFound(org.hl7.fhir.dstu3.model.OperationOutcome.IssueSeverity severity, org.hl7.fhir.dstu3.model.OperationOutcome.IssueType type, String code, String diagnostics, String msg, Object... args)
public static ca.uhn.fhir.rest.server.exceptions.ForbiddenOperationException forbiddenOperation(org.hl7.fhir.dstu3.model.OperationOutcome.IssueSeverity severity, org.hl7.fhir.dstu3.model.OperationOutcome.IssueType type, String code, String diagnostics, String msg, Object... args)
public static <T extends ca.uhn.fhir.rest.server.exceptions.BaseServerResponseException> T exception(Function<String,T> func, org.hl7.fhir.dstu3.model.OperationOutcome.IssueSeverity severity, org.hl7.fhir.dstu3.model.OperationOutcome.IssueType type, String code, String diagnostics, String msg, Object... args)
Copyright © 2018 Open eHealth Foundation. All rights reserved.