Package ca.uhn.fhir.model.dstu2.resource
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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOperationOutcome.IssueBlock class for child element: OperationOutcome.issue ()
-
Field Summary
-
Fields inherited from class ca.uhn.fhir.model.dstu2.resource.BaseResource
RES_ID, SP_RES_ID, SP_RES_LANGUAGE
-
-
Constructor Summary
Constructors Constructor Description OperationOutcome()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OperationOutcome.IssueaddIssue()Adds and returns a new value for issue ()OperationOutcomeaddIssue(OperationOutcome.Issue theValue)Adds a given new value for issue ()<T extends ca.uhn.fhir.model.api.IElement>
List<T>getAllPopulatedChildElementsOfType(Class<T> theType)List<OperationOutcome.Issue>getIssue()Gets the value(s) for issue ().OperationOutcome.IssuegetIssueFirstRep()Gets the first repetition for issue (), creating it if it does not already exist.StringgetResourceName()ca.uhn.fhir.context.FhirVersionEnumgetStructureFhirVersionEnum()booleanisEmpty()OperationOutcomesetIssue(List<OperationOutcome.Issue> theValue)Sets the value(s) for issue ()-
Methods inherited from class ca.uhn.fhir.model.dstu2.resource.BaseResource
getContained, getId, getIdElement, getLanguage, getMeta, getResourceMetadata, getText, isBaseEmpty, setContained, setId, setId, setId, setLanguage, setResourceMetadata, setText, toString
-
Methods inherited from class ca.uhn.fhir.model.api.BaseElement
addUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getFormatCommentsPost, getFormatCommentsPre, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, getUserData, hasFormatComment, setUserData
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hl7.fhir.instance.model.api.IBase
fhirType, getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserData
-
-
-
-
Constructor Detail
-
OperationOutcome
public OperationOutcome()
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceorg.hl7.fhir.instance.model.api.IBase
-
getAllPopulatedChildElementsOfType
public <T extends ca.uhn.fhir.model.api.IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType)
- Specified by:
getAllPopulatedChildElementsOfTypein interfaceca.uhn.fhir.model.api.ICompositeElement
-
getIssue
public List<OperationOutcome.Issue> getIssue()
Gets the value(s) for issue (). creating it if it does not exist. Will not returnnull.Definition: An error, warning or information message that results from a system action
- Specified by:
getIssuein interfaceca.uhn.fhir.model.base.resource.BaseOperationOutcome
-
setIssue
public OperationOutcome setIssue(List<OperationOutcome.Issue> theValue)
Sets the value(s) for issue ()Definition: An error, warning or information message that results from a system action
-
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:
addIssuein interfaceca.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 benull)
-
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:
getIssueFirstRepin interfaceca.uhn.fhir.model.base.resource.BaseOperationOutcome
-
getResourceName
public String getResourceName()
- Specified by:
getResourceNamein interfaceca.uhn.fhir.model.api.IResource
-
getStructureFhirVersionEnum
public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum()
- Specified by:
getStructureFhirVersionEnumin interfaceorg.hl7.fhir.instance.model.api.IBaseResource- Specified by:
getStructureFhirVersionEnumin interfaceca.uhn.fhir.model.api.IResource
-
-