Package org.hl7.fhir.dstu2.model
Class DomainResource
- 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
-
- 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
- Direct Known Subclasses:
Account,AllergyIntolerance,Appointment,AppointmentResponse,AuditEvent,Basic,BodySite,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,List_,Location,Media,Medication,MedicationAdministration,MedicationDispense,MedicationOrder,MedicationStatement,MessageHeader,NamingSystem,NutritionOrder,Observation,OperationDefinition,OperationOutcome,Order,OrderResponse,Organization,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 DomainResource extends Resource implements org.hl7.fhir.instance.model.api.IBaseHasExtensions, org.hl7.fhir.instance.model.api.IBaseHasModifierExtensions, org.hl7.fhir.instance.model.api.IDomainResource
A resource that includes narrative, extensions, and contained resources.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected List<Resource>containedThese resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.protected List<Extension>extensionMay be used to represent additional information that is not part of the basic definition of the resource.protected List<Extension>modifierExtensionMay be used to represent additional information that is not part of the basic definition of the resource, and that modifies the understanding of the element that contains it.protected NarrativetextA human-readable narrative that contains a summary of the resource, and may be used to represent the content of the resource to a human.-
Fields inherited from class org.hl7.fhir.dstu2.model.Resource
id, implicitRules, language, meta
-
-
Constructor Summary
Constructors Constructor Description DomainResource()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description BaseaddChild(String name)DomainResourceaddContained(Resource t)ExtensionaddExtension()DomainResourceaddExtension(Extension t)ExtensionaddModifierExtension()DomainResourceaddModifierExtension(Extension t)abstract DomainResourcecopy()voidcopyValues(DomainResource dst)booleanequalsDeep(Base other)booleanequalsShallow(Base other)StringfhirType()List<Resource>getContained()List<Extension>getExtension()List<Extension>getModifierExtension()NarrativegetText()booleanhasContained()booleanhasExtension()booleanhasModifierExtension()booleanhasText()booleanisEmpty()protected voidlistChildren(List<Property> childrenList)voidsetProperty(String name, Base value)DomainResourcesetText(Narrative value)-
Methods inherited from class org.hl7.fhir.dstu2.model.Resource
copyValues, getId, getIdElement, getImplicitRules, getImplicitRulesElement, getLanguage, getLanguageElement, getMeta, getResourceType, 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
-
text
protected Narrative text
A human-readable narrative that contains a summary of the resource, and may be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it "clinically safe" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.
-
contained
protected List<Resource> contained
These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.
-
extension
protected List<Extension> extension
May be used to represent additional information that is not part of the basic definition of the resource. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
-
modifierExtension
protected List<Extension> modifierExtension
May be used to represent additional information that is not part of the basic definition of the resource, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.
-
-
Constructor Detail
-
DomainResource
public DomainResource()
-
-
Method Detail
-
getText
public Narrative getText()
- Specified by:
getTextin interfaceorg.hl7.fhir.instance.model.api.IDomainResource- Returns:
text(A human-readable narrative that contains a summary of the resource, and may be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it "clinically safe" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.)
-
hasText
public boolean hasText()
-
setText
public DomainResource setText(Narrative value)
- Parameters:
value-text(A human-readable narrative that contains a summary of the resource, and may be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it "clinically safe" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.)
-
getContained
public List<Resource> getContained()
- Specified by:
getContainedin interfaceorg.hl7.fhir.instance.model.api.IDomainResource- Returns:
contained(These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.)
-
hasContained
public boolean hasContained()
-
addContained
public DomainResource addContained(Resource t)
-
getExtension
public List<Extension> getExtension()
- Specified by:
getExtensionin interfaceorg.hl7.fhir.instance.model.api.IBaseHasExtensions- Returns:
extension(May be used to represent additional information that is not part of the basic definition of the resource. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.)
-
hasExtension
public boolean hasExtension()
- Specified by:
hasExtensionin interfaceorg.hl7.fhir.instance.model.api.IBaseHasExtensions
-
addExtension
public Extension addExtension()
- Specified by:
addExtensionin interfaceorg.hl7.fhir.instance.model.api.IBaseHasExtensions- Returns:
extension(May be used to represent additional information that is not part of the basic definition of the resource. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.)
-
addExtension
public DomainResource addExtension(Extension t)
-
getModifierExtension
public List<Extension> getModifierExtension()
- Specified by:
getModifierExtensionin interfaceorg.hl7.fhir.instance.model.api.IBaseHasModifierExtensions- Returns:
modifierExtension(May be used to represent additional information that is not part of the basic definition of the resource, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.)
-
hasModifierExtension
public boolean hasModifierExtension()
- Specified by:
hasModifierExtensionin interfaceorg.hl7.fhir.instance.model.api.IBaseHasModifierExtensions
-
addModifierExtension
public Extension addModifierExtension()
- Specified by:
addModifierExtensionin interfaceorg.hl7.fhir.instance.model.api.IBaseHasModifierExtensions- Returns:
modifierExtension(May be used to represent additional information that is not part of the basic definition of the resource, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.)
-
addModifierExtension
public DomainResource addModifierExtension(Extension t)
-
listChildren
protected void listChildren(List<Property> childrenList)
- Overrides:
listChildrenin classResource
-
setProperty
public void setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
copy
public abstract DomainResource copy()
-
copyValues
public void copyValues(DomainResource dst)
-
equalsDeep
public boolean equalsDeep(Base other)
- Overrides:
equalsDeepin classResource
-
equalsShallow
public boolean equalsShallow(Base other)
- Overrides:
equalsShallowin classResource
-
-