Class OperationOutcome

java.lang.Object
ca.uhn.fhir.model.api.BaseElement
ca.uhn.fhir.model.dstu2.resource.BaseResource
ca.uhn.fhir.model.dstu2.resource.OperationOutcome
All Implemented Interfaces:
ca.uhn.fhir.model.api.ICompositeElement, ca.uhn.fhir.model.api.IElement, ca.uhn.fhir.model.api.IResource, ca.uhn.fhir.model.api.ISupportsUndeclaredExtensions, ca.uhn.fhir.model.base.resource.BaseOperationOutcome, Serializable, org.hl7.fhir.instance.model.api.IBase, org.hl7.fhir.instance.model.api.IBaseOperationOutcome, org.hl7.fhir.instance.model.api.IBaseResource

public class OperationOutcome extends BaseResource implements ca.uhn.fhir.model.base.resource.BaseOperationOutcome
HAPI/FHIR OperationOutcome Resource (infrastructure)

Definition: A collection of error, warning or information messages that result from a system action.

Requirements:

Profile Definition: http://hl7.org/fhir/profiles/OperationOutcome

See Also:
Serialized Form
  • Constructor Details

  • Method Details

    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface org.hl7.fhir.instance.model.api.IBase
    • getAllPopulatedChildElementsOfType

      public <T extends ca.uhn.fhir.model.api.IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType)
      Specified by:
      getAllPopulatedChildElementsOfType in interface ca.uhn.fhir.model.api.ICompositeElement
    • getIssue

      Gets the value(s) for issue (). creating it if it does not exist. Will not return null.

      Definition: An error, warning or information message that results from a system action

      Specified by:
      getIssue in interface ca.uhn.fhir.model.base.resource.BaseOperationOutcome
    • setIssue

      Sets the value(s) for issue ()

      Definition: An error, warning or information message that results from a system action

    • addIssue

      Adds and returns a new value for issue ()

      Definition: An error, warning or information message that results from a system action

      Specified by:
      addIssue in interface ca.uhn.fhir.model.base.resource.BaseOperationOutcome
    • addIssue

      Adds a given new value for issue ()

      Definition: An error, warning or information message that results from a system action

      Parameters:
      theValue - The issue to add (must not be null)
    • getIssueFirstRep

      Gets the first repetition for issue (), creating it if it does not already exist.

      Definition: An error, warning or information message that results from a system action

      Specified by:
      getIssueFirstRep in interface ca.uhn.fhir.model.base.resource.BaseOperationOutcome
    • getResourceName

      Specified by:
      getResourceName in interface ca.uhn.fhir.model.api.IResource
    • getStructureFhirVersionEnum

      public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum()
      Specified by:
      getStructureFhirVersionEnum in interface org.hl7.fhir.instance.model.api.IBaseResource
      Specified by:
      getStructureFhirVersionEnum in interface ca.uhn.fhir.model.api.IResource