Class BaseResource

java.lang.Object
ca.uhn.fhir.model.api.BaseElement
ca.uhn.fhir.model.dstu2.resource.BaseResource
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
Direct Known Subclasses:
Account, AllergyIntolerance, Appointment, AppointmentResponse, AuditEvent, Basic, Binary, BodySite, Bundle, CarePlan, Claim, ClaimResponse, ClinicalImpression, Communication, CommunicationRequest, Composition, ConceptMap, Condition, Conformance, Contract, Coverage, DataElement, DetectedIssue, Device, DeviceComponent, DeviceMetric, DeviceUseRequest, DeviceUseStatement, DiagnosticOrder, DiagnosticReport, DocumentManifest, DocumentReference, EligibilityRequest, EligibilityResponse, Encounter, EnrollmentRequest, EnrollmentResponse, EpisodeOfCare, ExplanationOfBenefit, FamilyMemberHistory, Flag, Goal, Group, HealthcareService, ImagingObjectSelection, ImagingStudy, Immunization, ImmunizationRecommendation, ImplementationGuide, ListResource, Location, Media, Medication, MedicationAdministration, MedicationDispense, MedicationOrder, MedicationStatement, MessageHeader, NamingSystem, NutritionOrder, Observation, OperationDefinition, OperationOutcome, Order, OrderResponse, Organization, Parameters, Patient, PaymentNotice, PaymentReconciliation, Person, Practitioner, Procedure, ProcedureRequest, ProcessRequest, ProcessResponse, Provenance, Questionnaire, QuestionnaireResponse, ReferralRequest, RelatedPerson, RiskAssessment, Schedule, SearchParameter, Slot, Specimen, StructureDefinition, Subscription, Substance, SupplyDelivery, SupplyRequest, TestScript, ValueSet, VisionPrescription

public abstract class BaseResource extends ca.uhn.fhir.model.api.BaseElement implements ca.uhn.fhir.model.api.IResource
See Also:
Serialized Form
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static ca.uhn.fhir.rest.gclient.StringClientParam
    Fluent Client search parameter constant for _id
    static String
    Search parameter constant for _id
    static String
    Search parameter constant for _language

    Fields inherited from interface org.hl7.fhir.instance.model.api.IBaseResource

    INCLUDE_ALL, WILDCARD_ALL_SET
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    ca.uhn.fhir.model.primitive.IdDt
     
    org.hl7.fhir.instance.model.api.IIdType
     
    ca.uhn.fhir.model.primitive.CodeDt
     
    org.hl7.fhir.instance.model.api.IBaseMetaType
     
    ca.uhn.fhir.model.base.resource.ResourceMetadataMap
     
     
    protected boolean
    Intended to be called by extending classes IBase.isEmpty() implementations, returns true if all content in this superclass instance is empty per the semantics of IBase.isEmpty().
    void
    setContained​(ContainedDt theContained)
     
    void
    setId​(ca.uhn.fhir.model.primitive.IdDt theId)
     
    setId​(String theId)
     
    setId​(org.hl7.fhir.instance.model.api.IIdType theId)
     
    void
    setLanguage​(ca.uhn.fhir.model.primitive.CodeDt theLanguage)
     
    void
    setResourceMetadata​(ca.uhn.fhir.model.base.resource.ResourceMetadataMap theMap)
     
    void
    setText​(NarrativeDt theText)
     
     

    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, isEmpty, setUserData

    Methods inherited from interface ca.uhn.fhir.model.api.ICompositeElement

    getAllPopulatedChildElementsOfType

    Methods inherited from interface ca.uhn.fhir.model.api.IResource

    getResourceName, getStructureFhirVersionEnum
  • Field Details

    • RES_ID

      public static final ca.uhn.fhir.rest.gclient.StringClientParam RES_ID
      Fluent Client search parameter constant for _id

      Description: the _id of a resource
      Type: string
      Path: Resource._id

    • SP_RES_ID

      public static final String SP_RES_ID
      Search parameter constant for _id
      See Also:
      Constant Field Values
    • SP_RES_LANGUAGE

      public static final String SP_RES_LANGUAGE
      Search parameter constant for _language
      See Also:
      Constant Field Values
  • Constructor Details

  • Method Details

    • getContained

      Specified by:
      getContained in interface ca.uhn.fhir.model.api.IResource
    • getId

      public ca.uhn.fhir.model.primitive.IdDt getId()
      Specified by:
      getId in interface ca.uhn.fhir.model.api.IResource
    • getIdElement

      public org.hl7.fhir.instance.model.api.IIdType getIdElement()
      Specified by:
      getIdElement in interface org.hl7.fhir.instance.model.api.IBaseResource
    • getLanguage

      public ca.uhn.fhir.model.primitive.CodeDt getLanguage()
      Specified by:
      getLanguage in interface ca.uhn.fhir.model.api.IResource
    • getMeta

      public org.hl7.fhir.instance.model.api.IBaseMetaType getMeta()
      Specified by:
      getMeta in interface org.hl7.fhir.instance.model.api.IBaseResource
      Specified by:
      getMeta in interface ca.uhn.fhir.model.api.IResource
    • getResourceMetadata

      public ca.uhn.fhir.model.base.resource.ResourceMetadataMap getResourceMetadata()
      Specified by:
      getResourceMetadata in interface ca.uhn.fhir.model.api.IResource
    • getText

      public NarrativeDt getText()
      Specified by:
      getText in interface ca.uhn.fhir.model.api.IResource
    • isBaseEmpty

      protected boolean isBaseEmpty()
      Intended to be called by extending classes IBase.isEmpty() implementations, returns true if all content in this superclass instance is empty per the semantics of IBase.isEmpty().
      Overrides:
      isBaseEmpty in class ca.uhn.fhir.model.api.BaseElement
    • setContained

      public void setContained(ContainedDt theContained)
    • setId

      public void setId(ca.uhn.fhir.model.primitive.IdDt theId)
      Specified by:
      setId in interface ca.uhn.fhir.model.api.IResource
    • setId

      public BaseResource setId(org.hl7.fhir.instance.model.api.IIdType theId)
      Specified by:
      setId in interface org.hl7.fhir.instance.model.api.IBaseResource
    • setId

      public BaseResource setId(String theId)
      Specified by:
      setId in interface org.hl7.fhir.instance.model.api.IBaseResource
    • setLanguage

      public void setLanguage(ca.uhn.fhir.model.primitive.CodeDt theLanguage)
      Specified by:
      setLanguage in interface ca.uhn.fhir.model.api.IResource
    • setResourceMetadata

      public void setResourceMetadata(ca.uhn.fhir.model.base.resource.ResourceMetadataMap theMap)
      Specified by:
      setResourceMetadata in interface ca.uhn.fhir.model.api.IResource
    • setText

      public void setText(NarrativeDt theText)
    • toString

      public String toString()
      Overrides:
      toString in class Object