Package org.hl7.fhir.r4.profilemodel
Class PEInstance
java.lang.Object
org.hl7.fhir.r4.profilemodel.PEInstance
This class provides a profile centric view of a resource, as driven by a profile
This class is also suitable to be used as the base of a POJO
- Author:
- grahamegrieve
-
Nested Class Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
PEInstance
(PEBuilder builder, PEDefinition definition, Resource resource, Base data, String path) -
Method Summary
Modifier and TypeMethodDescriptionaddChild
(String name, BackboneElement value) Address()
children()
void
data()
forceChild
(String name) getBase()
getPath()
boolean
void
removeChild
(PEInstance child) remove the nominated child from the resourcevoid
setPrimitiveValue
(String value) type()
-
Constructor Details
-
PEInstance
protected PEInstance(PEBuilder builder, PEDefinition definition, Resource resource, Base data, String path)
-
-
Method Details
-
definition
- Returns:
- definition information about this instance data
-
type
- Returns:
- the type of this element
-
children
- Returns:
- all the children of this instance data
-
child
- Returns:
- all the single children of this instance data for the named property. An exception if there's more than one, null if there's none
-
children
- Returns:
- all the children of this instance data for the named property
-
makeChild
- Returns:
- make a child, and append it to existing children (if they exist)
-
forceChild
- Returns:
- get a child. if it doesn't exist, make one
-
removeChild
remove the nominated child from the resource -
clear
-
getDataKind
- Returns:
- the kind of data behind this profiled node
-
data
-
asResource
- Returns:
- if dataKind = Resource, get the underlying resource, otherwise an exception
-
asDataType
- Returns:
- if dataKind = Datatype, get the underlying resource, otherwise an exception
-
asElement
-
asCodeableConcept
-
Identifier
-
asQuantity
-
asHumanName
-
Address
-
asContactPoint
-
asReference
-
getPrimitiveAsString
- Returns:
- if dataKind = PrimitiveValue, get the underlying resource, otherwise an exception Note that this is for e.g. String.value, not String itself
-
getPrimitiveAsDate
-
setPrimitiveValue
-
getPath
-
getBase
-
hasChild
-
getContext
-
addChild
-
addChild
-
addChild
-
addChild
-