
Class BodySite
- 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
,Serializable
,org.hl7.fhir.instance.model.api.IBase
,org.hl7.fhir.instance.model.api.IBaseResource
public class BodySite extends BaseResource implements ca.uhn.fhir.model.api.IResource
Definition: Record details about the anatomical location of a specimen or body part. This resource may be used when a coded concept does not provide the necessary detail needed for the use case.
Requirements:
Profile Definition: http://hl7.org/fhir/profiles/BodySite
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description static ca.uhn.fhir.rest.gclient.TokenClientParam
CODE
Fluent Client search parameter constant for codestatic ca.uhn.fhir.rest.gclient.TokenClientParam
IDENTIFIER
Fluent Client search parameter constant for identifierstatic ca.uhn.fhir.model.api.Include
INCLUDE_PATIENT
Constant for fluent queries to be used to add include statements.static ca.uhn.fhir.rest.gclient.ReferenceClientParam
PATIENT
Fluent Client search parameter constant for patientstatic String
SP_CODE
Search parameter constant for codestatic String
SP_IDENTIFIER
Search parameter constant for identifierstatic String
SP_PATIENT
Search parameter constant for patientFields inherited from class ca.uhn.fhir.model.dstu2.resource.BaseResource
RES_ID, SP_RES_ID, SP_RES_LANGUAGE
Fields inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
INCLUDE_ALL, WILDCARD_ALL_SET
-
Constructor Summary
Constructors Constructor Description BodySite()
-
Method Summary
Modifier and Type Method Description IdentifierDt
addIdentifier()
Adds and returns a new value for identifier ()BodySite
addIdentifier(IdentifierDt theValue)
Adds a given new value for identifier ()AttachmentDt
addImage()
Adds and returns a new value for image ()BodySite
addImage(AttachmentDt theValue)
Adds a given new value for image ()CodeableConceptDt
addModifier()
Adds and returns a new value for modifier ()BodySite
addModifier(CodeableConceptDt theValue)
Adds a given new value for modifier ()<T extends ca.uhn.fhir.model.api.IElement>
List<T>getAllPopulatedChildElementsOfType(Class<T> theType)
CodeableConceptDt
getCode()
Gets the value(s) for code ().String
getDescription()
Gets the value(s) for description ().ca.uhn.fhir.model.primitive.StringDt
getDescriptionElement()
Gets the value(s) for description ().List<IdentifierDt>
getIdentifier()
Gets the value(s) for identifier ().IdentifierDt
getIdentifierFirstRep()
Gets the first repetition for identifier (), creating it if it does not already exist.List<AttachmentDt>
getImage()
Gets the value(s) for image ().AttachmentDt
getImageFirstRep()
Gets the first repetition for image (), creating it if it does not already exist.List<CodeableConceptDt>
getModifier()
Gets the value(s) for modifier ().CodeableConceptDt
getModifierFirstRep()
Gets the first repetition for modifier (), creating it if it does not already exist.ResourceReferenceDt
getPatient()
Gets the value(s) for patient ().String
getResourceName()
ca.uhn.fhir.context.FhirVersionEnum
getStructureFhirVersionEnum()
boolean
isEmpty()
BodySite
setCode(CodeableConceptDt theValue)
Sets the value(s) for code ()BodySite
setDescription(ca.uhn.fhir.model.primitive.StringDt theValue)
Sets the value(s) for description ()BodySite
setDescription(String theString)
Sets the value for description ()BodySite
setIdentifier(List<IdentifierDt> theValue)
Sets the value(s) for identifier ()BodySite
setImage(List<AttachmentDt> theValue)
Sets the value(s) for image ()BodySite
setModifier(List<CodeableConceptDt> theValue)
Sets the value(s) for modifier ()BodySite
setPatient(ResourceReferenceDt theValue)
Sets the value(s) for patient ()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
Methods inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
getIdElement, setId, setId
Methods inherited from interface ca.uhn.fhir.model.api.IResource
getContained, getId, getLanguage, getMeta, getResourceMetadata, getText, setId, setLanguage, setResourceMetadata
-
Field Details
-
SP_CODE
Search parameter constant for codeDescription: Named anatomical location
Type: token
Path: BodySite.code
- See Also:
- Constant Field Values
-
CODE
Fluent Client search parameter constant for codeDescription: Named anatomical location
Type: token
Path: BodySite.code
-
SP_PATIENT
Search parameter constant for patientDescription: Patient to whom bodysite belongs
Type: reference
Path: BodySite.patient
- See Also:
- Constant Field Values
-
PATIENT
Fluent Client search parameter constant for patientDescription: Patient to whom bodysite belongs
Type: reference
Path: BodySite.patient
-
SP_IDENTIFIER
Search parameter constant for identifierDescription: Identifier for this instance of the anatomical location
Type: token
Path: BodySite.identifier
- See Also:
- Constant Field Values
-
IDENTIFIER
Fluent Client search parameter constant for identifierDescription: Identifier for this instance of the anatomical location
Type: token
Path: BodySite.identifier
-
INCLUDE_PATIENT
Constant for fluent queries to be used to add include statements. Specifies the path value of "BodySite:patient".
-
-
Constructor Details
-
BodySite
public BodySite()
-
-
Method Details
-
isEmpty
- Specified by:
isEmpty
in 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:
getAllPopulatedChildElementsOfType
in interfaceca.uhn.fhir.model.api.ICompositeElement
-
getPatient
Gets the value(s) for patient (). creating it if it does not exist. Will not returnnull
.Definition: The person to which the body site belongs
-
setPatient
Sets the value(s) for patient ()Definition: The person to which the body site belongs
-
getIdentifier
Gets the value(s) for identifier (). creating it if it does not exist. Will not returnnull
.Definition: Identifier for this instance of the anatomical location.
-
setIdentifier
Sets the value(s) for identifier ()Definition: Identifier for this instance of the anatomical location.
-
addIdentifier
Adds and returns a new value for identifier ()Definition: Identifier for this instance of the anatomical location.
-
addIdentifier
Adds a given new value for identifier ()Definition: Identifier for this instance of the anatomical location.
- Parameters:
theValue
- The identifier to add (must not benull
)
-
getIdentifierFirstRep
Gets the first repetition for identifier (), creating it if it does not already exist.Definition: Identifier for this instance of the anatomical location.
-
getCode
Gets the value(s) for code (). creating it if it does not exist. Will not returnnull
.Definition: Named anatomical location - ideally coded where possible.
-
setCode
Sets the value(s) for code ()Definition: Named anatomical location - ideally coded where possible.
-
getModifier
Gets the value(s) for modifier (). creating it if it does not exist. Will not returnnull
.Definition: Modifier to refine the anatomical location. These include modifiers for laterality, relative location, directionality, number, and plane.
-
setModifier
Sets the value(s) for modifier ()Definition: Modifier to refine the anatomical location. These include modifiers for laterality, relative location, directionality, number, and plane.
-
addModifier
Adds and returns a new value for modifier ()Definition: Modifier to refine the anatomical location. These include modifiers for laterality, relative location, directionality, number, and plane.
-
addModifier
Adds a given new value for modifier ()Definition: Modifier to refine the anatomical location. These include modifiers for laterality, relative location, directionality, number, and plane.
- Parameters:
theValue
- The modifier to add (must not benull
)
-
getModifierFirstRep
Gets the first repetition for modifier (), creating it if it does not already exist.Definition: Modifier to refine the anatomical location. These include modifiers for laterality, relative location, directionality, number, and plane.
-
getDescriptionElement
Gets the value(s) for description (). creating it if it does not exist. Will not returnnull
.Definition: Description of anatomical location.
-
getDescription
Gets the value(s) for description (). creating it if it does not exist. This method may returnnull
.Definition: Description of anatomical location.
-
setDescription
Sets the value(s) for description ()Definition: Description of anatomical location.
-
setDescription
Sets the value for description ()Definition: Description of anatomical location.
-
getImage
Gets the value(s) for image (). creating it if it does not exist. Will not returnnull
.Definition: Image or images used to identify a location.
-
setImage
Sets the value(s) for image ()Definition: Image or images used to identify a location.
-
addImage
Adds and returns a new value for image ()Definition: Image or images used to identify a location.
-
addImage
Adds a given new value for image ()Definition: Image or images used to identify a location.
- Parameters:
theValue
- The image to add (must not benull
)
-
getImageFirstRep
Gets the first repetition for image (), creating it if it does not already exist.Definition: Image or images used to identify a location.
-
getResourceName
- Specified by:
getResourceName
in interfaceca.uhn.fhir.model.api.IResource
-
getStructureFhirVersionEnum
- Specified by:
getStructureFhirVersionEnum
in interfaceorg.hl7.fhir.instance.model.api.IBaseResource
- Specified by:
getStructureFhirVersionEnum
in interfaceca.uhn.fhir.model.api.IResource
-