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 Summary
Fields Modifier and Type Field Description protected java.util.List<ResourceContainer>containedprotected java.util.List<Extension>extensionprotected java.util.List<Extension>modifierExtensionprotected Narrativetext-
Fields inherited from class org.hl7.fhir.Resource
id, implicitRules, language, meta
-
-
Constructor Summary
Constructors Constructor Description DomainResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringBuilderappend(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)java.lang.StringBuilderappendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)booleanequals(java.lang.Object object)booleanequals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, java.lang.Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)java.util.List<ResourceContainer>getContained()Gets the value of the contained property.java.util.List<Extension>getExtension()Gets the value of the extension property.java.util.List<Extension>getModifierExtension()Gets the value of the modifierExtension property.NarrativegetText()Gets the value of the text property.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)voidsetText(Narrative value)Sets the value of the text property.java.lang.StringtoString()DomainResourcewithContained(java.util.Collection<ResourceContainer> values)DomainResourcewithContained(ResourceContainer... values)DomainResourcewithExtension(java.util.Collection<Extension> values)DomainResourcewithExtension(Extension... values)DomainResourcewithId(Id value)DomainResourcewithImplicitRules(Uri value)DomainResourcewithLanguage(Code value)DomainResourcewithMeta(Meta value)DomainResourcewithModifierExtension(java.util.Collection<Extension> values)DomainResourcewithModifierExtension(Extension... values)DomainResourcewithText(Narrative value)-
Methods inherited from class org.hl7.fhir.Resource
getId, getImplicitRules, getLanguage, getMeta, setId, setImplicitRules, setLanguage, setMeta
-
-
-
-
Field Detail
-
text
protected Narrative text
-
contained
protected java.util.List<ResourceContainer> contained
-
extension
protected java.util.List<Extension> extension
-
modifierExtension
protected java.util.List<Extension> modifierExtension
-
-
Method Detail
-
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 isNarrative
-
getContained
public java.util.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 JAXB object. This is why there is not a
setmethod 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 java.util.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 JAXB object. This is why there is not a
setmethod 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 java.util.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 JAXB object. This is why there is not a
setmethod 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(java.util.Collection<ResourceContainer> values)
-
withExtension
public DomainResource withExtension(Extension... values)
-
withExtension
public DomainResource withExtension(java.util.Collection<Extension> values)
-
withModifierExtension
public DomainResource withModifierExtension(Extension... values)
-
withModifierExtension
public DomainResource withModifierExtension(java.util.Collection<Extension> values)
-
withId
public DomainResource withId(Id value)
-
withMeta
public DomainResource withMeta(Meta value)
-
withImplicitRules
public DomainResource withImplicitRules(Uri value)
- Overrides:
withImplicitRulesin classResource
-
withLanguage
public DomainResource withLanguage(Code value)
- Overrides:
withLanguagein classResource
-
equals
public boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, java.lang.Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)
-
hashCode
public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)
-
append
public java.lang.StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)
-
appendFields
public java.lang.StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)- Specified by:
appendFieldsin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendFieldsin classResource
-
-