Class BodySite

java.lang.Object
ca.uhn.fhir.model.api.BaseElement
ca.uhn.fhir.model.dstu2.resource.BaseResource
ca.uhn.fhir.model.dstu2.resource.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
HAPI/FHIR BodySite Resource ()

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:
  • Field Details

    • SP_CODE

      public static final String SP_CODE
      Search parameter constant for code

      Description: Named anatomical location
      Type: token
      Path: BodySite.code

      See Also:
    • CODE

      public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE
      Fluent Client search parameter constant for code

      Description: Named anatomical location
      Type: token
      Path: BodySite.code

    • SP_PATIENT

      public static final String SP_PATIENT
      Search parameter constant for patient

      Description: Patient to whom bodysite belongs
      Type: reference
      Path: BodySite.patient

      See Also:
    • PATIENT

      public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT
      Fluent Client search parameter constant for patient

      Description: Patient to whom bodysite belongs
      Type: reference
      Path: BodySite.patient

    • SP_IDENTIFIER

      public static final String SP_IDENTIFIER
      Search parameter constant for identifier

      Description: Identifier for this instance of the anatomical location
      Type: token
      Path: BodySite.identifier

      See Also:
    • IDENTIFIER

      public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER
      Fluent Client search parameter constant for identifier

      Description: Identifier for this instance of the anatomical location
      Type: token
      Path: BodySite.identifier

    • INCLUDE_PATIENT

      public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT
      Constant for fluent queries to be used to add include statements. Specifies the path value of "BodySite:patient".
  • Constructor Details

  • Method Details

    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface org.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 interface ca.uhn.fhir.model.api.ICompositeElement
    • getPatient

      Gets the value(s) for patient (). creating it if it does not exist. Will not return null.

      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 return null.

      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

      public BodySite addIdentifier(IdentifierDt theValue)
      Adds a given new value for identifier ()

      Definition: Identifier for this instance of the anatomical location.

      Parameters:
      theValue - The identifier to add (must not be null)
    • 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 return null.

      Definition: Named anatomical location - ideally coded where possible.

    • setCode

      public BodySite setCode(CodeableConceptDt theValue)
      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 return null.

      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 be null)
    • 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

      public ca.uhn.fhir.model.primitive.StringDt getDescriptionElement()
      Gets the value(s) for description (). creating it if it does not exist. Will not return null.

      Definition: Description of anatomical location.

    • getDescription

      Gets the value(s) for description (). creating it if it does not exist. This method may return null.

      Definition: Description of anatomical location.

    • setDescription

      public BodySite setDescription(ca.uhn.fhir.model.primitive.StringDt theValue)
      Sets the value(s) for description ()

      Definition: Description of anatomical location.

    • setDescription

      public BodySite setDescription(String theString)
      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 return null.

      Definition: Image or images used to identify a location.

    • setImage

      public BodySite setImage(List<AttachmentDt> theValue)
      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

      public BodySite addImage(AttachmentDt theValue)
      Adds a given new value for image ()

      Definition: Image or images used to identify a location.

      Parameters:
      theValue - The image to add (must not be null)
    • 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 interface ca.uhn.fhir.model.api.IResource
    • getStructureFhirVersionEnum

      public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum()
      Specified by:
      getStructureFhirVersionEnum in interface org.hl7.fhir.instance.model.api.IBaseResource
      Specified by:
      getStructureFhirVersionEnum in interface ca.uhn.fhir.model.api.IResource