Package org.hl7.fhir.dstu2.model
Class BodySite
- java.lang.Object
-
- org.hl7.fhir.dstu2.model.Base
-
- org.hl7.fhir.dstu2.model.BaseResource
-
- org.hl7.fhir.dstu2.model.Resource
-
- org.hl7.fhir.dstu2.model.DomainResource
-
- org.hl7.fhir.dstu2.model.BodySite
-
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement,Serializable,org.hl7.fhir.instance.model.api.IAnyResource,org.hl7.fhir.instance.model.api.IBase,org.hl7.fhir.instance.model.api.IBaseHasExtensions,org.hl7.fhir.instance.model.api.IBaseHasModifierExtensions,org.hl7.fhir.instance.model.api.IBaseResource,org.hl7.fhir.instance.model.api.IDomainResource
public class BodySite extends DomainResource
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.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected CodeableConceptcodeNamed anatomical location - ideally coded where possible.protected StringTypedescriptionDescription of anatomical location.protected List<Identifier>identifierIdentifier for this instance of the anatomical location.protected List<Attachment>imageImage or images used to identify a location.protected List<CodeableConcept>modifierModifier to refine the anatomical location.protected ReferencepatientThe person to which the body site belongs.protected PatientpatientTargetThe actual object that is the target of the reference (The person to which the body site belongs.)static StringSP_CODEstatic StringSP_IDENTIFIERstatic StringSP_PATIENT-
Fields inherited from class org.hl7.fhir.dstu2.model.DomainResource
contained, extension, modifierExtension, text
-
Fields inherited from class org.hl7.fhir.dstu2.model.Resource
id, implicitRules, language, meta
-
-
Method Summary
-
Methods inherited from class org.hl7.fhir.dstu2.model.DomainResource
addContained, addExtension, addExtension, addModifierExtension, addModifierExtension, copyValues, getContained, getExtension, getModifierExtension, getText, hasContained, hasExtension, hasModifierExtension, hasText, setText
-
Methods inherited from class org.hl7.fhir.dstu2.model.Resource
copyValues, getId, getIdElement, getImplicitRules, getImplicitRulesElement, getLanguage, getLanguageElement, getMeta, hasId, hasIdElement, hasImplicitRules, hasImplicitRulesElement, hasLanguage, hasLanguageElement, hasMeta, setId, setIdElement, setImplicitRules, setImplicitRulesElement, setLanguage, setLanguageElement, setMeta
-
Methods inherited from class org.hl7.fhir.dstu2.model.BaseResource
getStructureFhirVersionEnum, setId
-
Methods inherited from class org.hl7.fhir.dstu2.model.Base
castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactPoint, castToDate, castToDateTime, castToDecimal, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToMoney, castToNarrative, castToOid, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToUnsignedInt, castToUri, children, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasType, hasUserData, isMetadataBased, isPrimitive, listChildrenByName, primitiveValue, setUserData, setUserDataINN
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hl7.fhir.instance.model.api.IAnyResource
getId, getIdElement, getLanguageElement, getUserData, setId, setUserData
-
-
-
-
Field Detail
-
patientTarget
protected Patient patientTarget
The actual object that is the target of the reference (The person to which the body site belongs.)
-
identifier
protected List<Identifier> identifier
Identifier for this instance of the anatomical location.
-
code
protected CodeableConcept code
Named anatomical location - ideally coded where possible.
-
modifier
protected List<CodeableConcept> modifier
Modifier to refine the anatomical location. These include modifiers for laterality, relative location, directionality, number, and plane.
-
description
protected StringType description
Description of anatomical location.
-
image
protected List<Attachment> image
Image or images used to identify a location.
-
SP_IDENTIFIER
public static final String SP_IDENTIFIER
- See Also:
- Constant Field Values
-
SP_CODE
public static final String SP_CODE
- See Also:
- Constant Field Values
-
SP_PATIENT
public static final String SP_PATIENT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getPatient
public Reference getPatient()
- Returns:
patient(The person to which the body site belongs.)
-
hasPatient
public boolean hasPatient()
-
setPatient
public BodySite setPatient(Reference value)
- Parameters:
value-patient(The person to which the body site belongs.)
-
getPatientTarget
public Patient getPatientTarget()
- Returns:
patientThe actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The person to which the body site belongs.)
-
setPatientTarget
public BodySite setPatientTarget(Patient value)
- Parameters:
value-patientThe actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The person to which the body site belongs.)
-
getIdentifier
public List<Identifier> getIdentifier()
- Returns:
identifier(Identifier for this instance of the anatomical location.)
-
hasIdentifier
public boolean hasIdentifier()
-
addIdentifier
public Identifier addIdentifier()
- Returns:
identifier(Identifier for this instance of the anatomical location.)
-
addIdentifier
public BodySite addIdentifier(Identifier t)
-
getCode
public CodeableConcept getCode()
- Returns:
code(Named anatomical location - ideally coded where possible.)
-
hasCode
public boolean hasCode()
-
setCode
public BodySite setCode(CodeableConcept value)
- Parameters:
value-code(Named anatomical location - ideally coded where possible.)
-
getModifier
public List<CodeableConcept> getModifier()
- Returns:
modifier(Modifier to refine the anatomical location. These include modifiers for laterality, relative location, directionality, number, and plane.)
-
hasModifier
public boolean hasModifier()
-
addModifier
public CodeableConcept addModifier()
- Returns:
modifier(Modifier to refine the anatomical location. These include modifiers for laterality, relative location, directionality, number, and plane.)
-
addModifier
public BodySite addModifier(CodeableConcept t)
-
getDescriptionElement
public StringType getDescriptionElement()
- Returns:
description(Description of anatomical location.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
-
hasDescriptionElement
public boolean hasDescriptionElement()
-
hasDescription
public boolean hasDescription()
-
setDescriptionElement
public BodySite setDescriptionElement(StringType value)
- Parameters:
value-description(Description of anatomical location.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
-
getDescription
public String getDescription()
- Returns:
- Description of anatomical location.
-
setDescription
public BodySite setDescription(String value)
- Parameters:
value- Description of anatomical location.
-
getImage
public List<Attachment> getImage()
- Returns:
image(Image or images used to identify a location.)
-
hasImage
public boolean hasImage()
-
addImage
public Attachment addImage()
- Returns:
image(Image or images used to identify a location.)
-
addImage
public BodySite addImage(Attachment t)
-
listChildren
protected void listChildren(List<Property> childrenList)
- Overrides:
listChildrenin classDomainResource
-
setProperty
public void setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
addChild
public Base addChild(String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
addChildin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
fhirType
public String fhirType()
- Specified by:
fhirTypein interfaceorg.hl7.fhir.instance.model.api.IBase- Overrides:
fhirTypein classDomainResource
-
copy
public BodySite copy()
- Specified by:
copyin classDomainResource
-
equalsDeep
public boolean equalsDeep(Base other)
- Overrides:
equalsDeepin classDomainResource
-
equalsShallow
public boolean equalsShallow(Base other)
- Overrides:
equalsShallowin classDomainResource
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceorg.hl7.fhir.instance.model.api.IBase- Overrides:
isEmptyin classDomainResource
-
getResourceType
public ResourceType getResourceType()
- Specified by:
getResourceTypein classResource
-
-