public class Include extends Object implements Serializable
Patient:name
Note on equality: This class uses value and the recurse properties to test
equality. Prior to HAPI 1.2 (and FHIR DSTU2) the recurse property did not exist, so this may merit consideration when
upgrading servers.
| Constructor and Description |
|---|
Include(String theValue)
Constructor for non-recursive include
|
Include(String theValue,
boolean theRecurse)
Constructor for an include
|
Include(String theValue,
boolean theRecurse,
boolean theImmutable)
Constructor for an include
|
| Modifier and Type | Method and Description |
|---|---|
Include |
asNonRecursive()
Creates a copy of this include with non-recurse behaviour
|
Include |
asRecursive()
Creates a copy of this include with recurse behaviour
|
boolean |
equals(Object obj)
See the note on equality on the
class documentation |
String |
getParamName()
Returns the portion of the value after the first colon but before the second colon
|
String |
getParamTargetType()
Returns the portion of the string after the second colon, or null if there are not two colons in the value.
|
String |
getParamType()
Returns the portion of the value before the first colon
|
String |
getValue() |
int |
hashCode()
See the note on equality on the
class documentation |
boolean |
isLocked()
Is this object
locked? |
boolean |
isRecurse() |
Include |
setRecurse(boolean theRecurse)
Should this include recurse
|
void |
setValue(String theValue) |
Include |
toLocked()
Return a new
|
String |
toString() |
Include |
withType(String theResourceType)
Creates and returns a new copy of this Include with the given type.
|
public Include(String theValue)
theValue - The _include value, e.g. "Patient:name"public Include(String theValue, boolean theRecurse)
theValue - The _include value, e.g. "Patient:name"theRecurse - Should the include recursepublic Include asNonRecursive()
public Include asRecursive()
public boolean equals(Object obj)
class documentationpublic String getParamType()
public String getParamName()
public String getParamTargetType()
public int hashCode()
class documentationpublic boolean isRecurse()
public Include setRecurse(boolean theRecurse)
this for easy method chainingpublic Include withType(String theResourceType)
| Initial Contents | theResourceType | Output |
|---|---|---|
| Patient:careProvider | Organization | Patient:careProvider:Organization |
| Patient:careProvider:Practitioner | Organization | Patient:careProvider:Organization |
| Patient | (any) | IllegalStateException |
theResourceType - The resource type (e.g. "Organization")locked, the returned include
will be tooCopyright © 2014–2017 University Health Network. All rights reserved.