
Package org.hl7.fhir.r5.model
Class DomainResource
java.lang.Object
org.hl7.fhir.r5.model.Base
org.hl7.fhir.r5.model.BaseResource
org.hl7.fhir.r5.model.Resource
org.hl7.fhir.r5.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,AdministrableProductDefinition,AdverseEvent,AllergyIntolerance,Appointment,AppointmentResponse,ArtifactAssessment,AuditEvent,Basic,BiologicallyDerivedProduct,BiologicallyDerivedProductDispense,BodyStructure,CanonicalResource,CarePlan,CareTeam,ChargeItem,Claim,ClaimResponse,ClinicalImpression,ClinicalUseDefinition,Communication,CommunicationRequest,Composition,Condition,Consent,Contract,Coverage,CoverageEligibilityRequest,CoverageEligibilityResponse,DetectedIssue,Device,DeviceAssociation,DeviceDefinition,DeviceDispense,DeviceMetric,DeviceRequest,DeviceUsage,DiagnosticReport,DocumentReference,Encounter,EncounterHistory,Endpoint,EnrollmentRequest,EnrollmentResponse,EpisodeOfCare,ExplanationOfBenefit,FamilyMemberHistory,Flag,FormularyItem,GenomicStudy,Goal,Group,GuidanceResponse,HealthcareService,ImagingSelection,ImagingStudy,Immunization,ImmunizationEvaluation,ImmunizationRecommendation,Ingredient,InsurancePlan,InventoryItem,InventoryReport,Invoice,Linkage,ListResource,Location,ManufacturedItemDefinition,MeasureReport,Medication,MedicationAdministration,MedicationDispense,MedicationKnowledge,MedicationRequest,MedicationStatement,MedicinalProductDefinition,MessageHeader,MolecularSequence,NutritionIntake,NutritionOrder,NutritionProduct,Observation,ObservationDefinition,OperationOutcome,Organization,OrganizationAffiliation,PackagedProductDefinition,Patient,PaymentNotice,PaymentReconciliation,Permission,Person,Practitioner,PractitionerRole,Procedure,Provenance,QuestionnaireResponse,RegulatedAuthorization,RelatedPerson,RequestOrchestration,ResearchStudy,ResearchSubject,RiskAssessment,Schedule,ServiceRequest,Slot,Specimen,SpecimenDefinition,Subscription,SubscriptionStatus,Substance,SubstanceDefinition,SubstanceNucleicAcid,SubstancePolymer,SubstanceProtein,SubstanceReferenceInformation,SubstanceSourceMaterial,SupplyDelivery,SupplyRequest,Task,TestReport,Transport,VerificationResult,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:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.hl7.fhir.r5.model.Base
Base.ProfileSource, Base.ValidationInfo, Base.ValidationMode, Base.ValidationReason -
Field Summary
FieldsModifier and TypeFieldDescriptionThese resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, nor can they have their own independent transaction scope.May be used to represent additional information that is not part of the basic definition of the resource.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 and/or the understanding of the containing element's descendants.static final StringSearch parameter: _textprotected NarrativeA human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human.static final ca.uhn.fhir.rest.gclient.SpecialClientParamFluent Client search parameter constant for _textFields inherited from class org.hl7.fhir.r5.model.Resource
id, implicitRules, language, metaFields inherited from interface org.hl7.fhir.instance.model.api.IAnyResource
RES_ID, RES_LAST_UPDATED, RES_PROFILE, RES_SECURITY, RES_TAG, SP_RES_ID, SP_RES_LAST_UPDATED, SP_RES_PROFILE, SP_RES_SECURITY, SP_RES_TAGFields inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
INCLUDE_ALL, WILDCARD_ALL_SET -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExtension(String url, DataType value) voidcheckNoModifiers(String noun, String verb) abstract DomainResourcecopy()voidcopyValues(DomainResource dst) booleanequalsDeep(Base other_) booleanequalsShallow(Base other_) fhirType()getContained(String ref) getExtensionByUrl(String theUrl) getExtensionsByUrl(String theUrl) Returns a list of extensions from this element which have the given URL.getExtensionsByUrl(String... theUrls) getExtensionString(String theUrl) Returns the value as a string if this element has only one extension that matches the given URL, and that can be converted to a string.getExtensionString(String... theUrls) getModifierExtensionsByUrl(String theUrl) Returns a list of modifier extensions from this element which have the given URL.getNamedProperty(int _hash, String _name, boolean _checkValid) Base[]getProperty(int hash, String name, boolean checkValid) org.hl7.fhir.utilities.StandardsStatusgetText()String[]getTypesForProperty(int hash, String name) booleanbooleanbooleanhasExtension(String url) booleanhasExtension(String... theUrls) booleanbooleanbooleanhasText()booleanisEmpty()protected voidlistChildren(List<Property> children) makeProperty(int hash, String name) voidremoveChild(String name, Base value) setContained(List<Resource> theContained) setExtension(List<Extension> theExtension) setModifierExtension(List<Extension> theModifierExtension) setProperty(int hash, String name, Base value) setProperty(String name, Base value) voidsetStandardsStatus(org.hl7.fhir.utilities.StandardsStatus status) Methods inherited from class org.hl7.fhir.r5.model.Resource
copyValues, getFHIRPublicationVersion, getId, getIdBase, getIdElement, getIdPart, getImplicitRules, getImplicitRulesElement, getLanguage, getLanguage, getLanguageElement, getMeta, getResourceType, getSourcePackage, getWebPath, hasId, hasIdElement, hasImplicitRules, hasImplicitRulesElement, hasLanguage, hasLanguageElement, hasMeta, hasSourcePackage, hasWebPath, setId, setIdBase, setIdElement, setImplicitRules, setImplicitRulesElement, setLanguage, setLanguageElement, setMeta, setSourcePackage, setWebPathMethods inherited from class org.hl7.fhir.r5.model.BaseResource
getStructureFhirVersionEnum, isResource, setIdMethods inherited from class org.hl7.fhir.r5.model.Base
addDefinition, addFormatCommentsPost, addFormatCommentsPre, addValidationMessage, canHavePrimitiveValue, children, clearUserData, compareDeep, compareDeep, compareDeep, compareDeep, compareValues, compareValues, copyFormatComments, copyUserData, copyValues, dateTimeValue, equals, executeFunction, getChildByName, getChildValueByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, getValidationInfo, getValidationMessages, getXhtml, hasFormatComment, hasFormatCommentPost, hasFormatCommentPre, hasPrimitiveValue, hasType, hasUserData, hasValidated, hasValidationInfo, hasValidationMessages, isBooleanPrimitive, isCopyUserData, isDateTime, isMetadataBased, isPrimitive, listChildrenByName, listChildrenByName, primitiveValue, setCopyUserData, setUserData, setUserDataINN, setXhtmlMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hl7.fhir.instance.model.api.IAnyResource
getId, getIdElement, getLanguageElement, getUserData, setId, setUserDataMethods inherited from interface org.hl7.fhir.instance.model.api.IBase
getFormatCommentsPost, getFormatCommentsPre, hasFormatCommentMethods inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
getMeta, getStructureFhirVersionEnum, isDeleted, setId
-
Field Details
-
text
A human-readable narrative that contains a summary of the resource and can 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
These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, nor can they have their own independent transaction scope. This is allowed to be a Parameters resource if and only if it is referenced by a resource that provides context/meaning. -
extension
May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the 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 and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and managable, 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. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself). -
SP_TEXT
Search parameter: _textDescription: Search on the narrative of the resource
Type: special
Path: null
- See Also:
-
TEXT
Fluent Client search parameter constant for _textDescription: Search on the narrative of the resource
Type: special
Path: null
-
-
Constructor Details
-
DomainResource
public DomainResource()Constructor
-
-
Method Details
-
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 can 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
-
setText
- Parameters:
value-text(A human-readable narrative that contains a summary of the resource and can 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
- 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, nor can they have their own independent transaction scope. This is allowed to be a Parameters resource if and only if it is referenced by a resource that provides context/meaning.)
-
setContained
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasContained
-
addContained
-
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. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.)
-
setExtension
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasExtension
- Specified by:
hasExtensionin interfaceorg.hl7.fhir.instance.model.api.IBaseHasExtensions
-
addExtension
- Specified by:
addExtensionin interfaceorg.hl7.fhir.instance.model.api.IBaseHasExtensions
-
addExtension
-
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 and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and managable, 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. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).)
-
setModifierExtension
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasModifierExtension
- Specified by:
hasModifierExtensionin interfaceorg.hl7.fhir.instance.model.api.IBaseHasModifierExtensions
-
addModifierExtension
- Specified by:
addModifierExtensionin interfaceorg.hl7.fhir.instance.model.api.IBaseHasModifierExtensions
-
addModifierExtension
-
listChildren
- Overrides:
listChildrenin classResource
-
getNamedProperty
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getNamedPropertyin classResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getProperty
public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getPropertyin classResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
setPropertyin classResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
- Overrides:
setPropertyin classResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
removeChild
- Overrides:
removeChildin classResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
makeProperty
- Overrides:
makePropertyin classResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getTypesForProperty
public String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getTypesForPropertyin classResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
addChild
-
fhirType
-
copy
-
copyValues
-
equalsDeep
- Overrides:
equalsDeepin classResource
-
equalsShallow
- Overrides:
equalsShallowin classResource
-
isEmpty
-
checkNoModifiers
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
addExtension
-
hasExtension
-
hasExtension
-
hasPrimitiveExtension
-
getExtensionByUrl
-
getExtensionString
Returns the value as a string if this element has only one extension that matches the given URL, and that can be converted to a string.Note: BackboneElements override this to check Modifier Extensions too
- Parameters:
theUrl- The URL. Must not be blank or null.- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getExtensionString
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getContained
-
getExtensionsByUrl
Returns a list of extensions from this element which have the given URL. Note that this list may not be modified (you can not add or remove elements from it) -
getExtensionsByUrl
-
getModifierExtensionsByUrl
Returns a list of modifier extensions from this element which have the given URL. Note that this list may not be modified (you can not add or remove elements from it) -
getStandardsStatus
-
setStandardsStatus
-