Class 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
    • Method Detail

      • 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

        public List<OperationOutcome.IssuegetIssue()
        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
      • addIssue

        public OperationOutcome.Issue 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

        public OperationOutcome addIssue​(OperationOutcome.Issue theValue)
        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

        public OperationOutcome.Issue 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

        public String 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