Package org.hl7.fhir

Class DomainResource

java.lang.Object
org.hl7.fhir.Resource
org.hl7.fhir.DomainResource
All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
Direct Known Subclasses:
Account, AllergyIntolerance, Appointment, AppointmentResponse, AuditEvent, Basic, BodySite, CarePlan, CareTeam, Claim, ClaimResponse, ClinicalImpression, CodeSystem, Communication, CommunicationRequest, CompartmentDefinition, Composition, ConceptMap, Condition, Conformance, Contract, Coverage, DataElement, DecisionSupportRule, DecisionSupportServiceModule, DetectedIssue, Device, DeviceComponent, DeviceMetric, DeviceUseRequest, DeviceUseStatement, DiagnosticOrder, DiagnosticReport, DocumentManifest, DocumentReference, EligibilityRequest, EligibilityResponse, Encounter, EnrollmentRequest, EnrollmentResponse, EpisodeOfCare, ExpansionProfile, ExplanationOfBenefit, FamilyMemberHistory, Flag, Goal, Group, GuidanceResponse, HealthcareService, ImagingExcerpt, ImagingObjectSelection, ImagingStudy, Immunization, ImmunizationRecommendation, ImplementationGuide, Library, Linkage, List, Location, Measure, MeasureReport, Media, Medication, MedicationAdministration, MedicationDispense, MedicationOrder, MedicationStatement, MessageHeader, ModuleDefinition, NamingSystem, NutritionOrder, Observation, OperationDefinition, OperationOutcome, Order, OrderResponse, OrderSet, Organization, Patient, PaymentNotice, PaymentReconciliation, Person, Practitioner, PractitionerRole, Procedure, ProcedureRequest, ProcessRequest, ProcessResponse, Protocol, Provenance, Questionnaire, QuestionnaireResponse, ReferralRequest, RelatedPerson, RiskAssessment, Schedule, SearchParameter, Sequence, Slot, Specimen, StructureDefinition, StructureMap, Subscription, Substance, SupplyDelivery, SupplyRequest, Task, TestScript, ValueSet, VisionPrescription

public class DomainResource extends Resource implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
A resource that includes narrative, extensions, and contained resources.

Java class for DomainResource complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="DomainResource">
   <complexContent>
     <extension base="{http://hl7.org/fhir}Resource">
       <sequence>
         <element name="text" type="{http://hl7.org/fhir}Narrative" minOccurs="0"/>
         <element name="contained" type="{http://hl7.org/fhir}ResourceContainer" maxOccurs="unbounded" minOccurs="0"/>
         <element name="extension" type="{http://hl7.org/fhir}Extension" maxOccurs="unbounded" minOccurs="0"/>
         <element name="modifierExtension" type="{http://hl7.org/fhir}Extension" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
  • Field Details

  • Constructor Details

    • DomainResource

      public DomainResource()
  • Method Details

    • getText

      public Narrative getText()
      Gets the value of the text property.
      Returns:
      possible object is Narrative
    • setText

      public void setText(Narrative value)
      Sets the value of the text property.
      Parameters:
      value - allowed object is Narrative
    • getContained

      public List<ResourceContainer> getContained()
      Gets the value of the contained property.

      This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the Jakarta XML Binding object. This is why there is not a set method for the contained property.

      For example, to add a new item, do as follows:

          getContained().add(newItem);
       

      Objects of the following type(s) are allowed in the list ResourceContainer

    • getExtension

      public List<Extension> getExtension()
      Gets the value of the extension property.

      This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the Jakarta XML Binding object. This is why there is not a set method for the extension property.

      For example, to add a new item, do as follows:

          getExtension().add(newItem);
       

      Objects of the following type(s) are allowed in the list Extension

    • getModifierExtension

      public List<Extension> getModifierExtension()
      Gets the value of the modifierExtension property.

      This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the Jakarta XML Binding object. This is why there is not a set method for the modifierExtension property.

      For example, to add a new item, do as follows:

          getModifierExtension().add(newItem);
       

      Objects of the following type(s) are allowed in the list Extension

    • withText

      public DomainResource withText(Narrative value)
    • withContained

      public DomainResource withContained(ResourceContainer... values)
    • withContained

      public DomainResource withContained(Collection<ResourceContainer> values)
    • withExtension

      public DomainResource withExtension(Extension... values)
    • withExtension

      public DomainResource withExtension(Collection<Extension> values)
    • withModifierExtension

      public DomainResource withModifierExtension(Extension... values)
    • withModifierExtension

      public DomainResource withModifierExtension(Collection<Extension> values)
    • withId

      public DomainResource withId(Id value)
      Overrides:
      withId in class Resource
    • withMeta

      public DomainResource withMeta(Meta value)
      Overrides:
      withMeta in class Resource
    • withImplicitRules

      public DomainResource withImplicitRules(Uri value)
      Overrides:
      withImplicitRules in class Resource
    • withLanguage

      public DomainResource withLanguage(Code value)
      Overrides:
      withLanguage in class Resource
    • equals

      public boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)
      Specified by:
      equals in interface org.jvnet.jaxb2_commons.lang.Equals2
      Overrides:
      equals in class Resource
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Resource
    • hashCode

      public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)
      Specified by:
      hashCode in interface org.jvnet.jaxb2_commons.lang.HashCode2
      Overrides:
      hashCode in class Resource
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Resource
    • toString

      public String toString()
      Overrides:
      toString in class Resource
    • append

      public StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)
      Specified by:
      append in interface org.jvnet.jaxb2_commons.lang.ToString2
      Overrides:
      append in class Resource
    • appendFields

      public StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)
      Specified by:
      appendFields in interface org.jvnet.jaxb2_commons.lang.ToString2
      Overrides:
      appendFields in class Resource
    • setContained

      public void setContained(List<ResourceContainer> value)
    • setExtension

      public void setExtension(List<Extension> value)
    • setModifierExtension

      public void setModifierExtension(List<Extension> value)