Package org.hl7.fhir.dstu3.model
Class DomainResource
java.lang.Object
org.hl7.fhir.dstu3.model.Base
org.hl7.fhir.dstu3.model.BaseResource
org.hl7.fhir.dstu3.model.Resource
org.hl7.fhir.dstu3.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
,AdverseEvent
,AllergyIntolerance
,Appointment
,AppointmentResponse
,AuditEvent
,Basic
,BodySite
,CarePlan
,CareTeam
,ChargeItem
,Claim
,ClaimResponse
,ClinicalImpression
,Communication
,CommunicationRequest
,Composition
,Condition
,Consent
,Contract
,Coverage
,DetectedIssue
,Device
,DeviceComponent
,DeviceMetric
,DeviceRequest
,DeviceUseStatement
,DiagnosticReport
,DocumentManifest
,DocumentReference
,EligibilityRequest
,EligibilityResponse
,Encounter
,Endpoint
,EnrollmentRequest
,EnrollmentResponse
,EpisodeOfCare
,ExplanationOfBenefit
,FamilyMemberHistory
,Flag
,Goal
,Group
,GuidanceResponse
,HealthcareService
,ImagingManifest
,ImagingStudy
,Immunization
,ImmunizationRecommendation
,Linkage
,ListResource
,Location
,MeasureReport
,Media
,Medication
,MedicationAdministration
,MedicationDispense
,MedicationRequest
,MedicationStatement
,MessageHeader
,MetadataResource
,NutritionOrder
,Observation
,OperationOutcome
,Organization
,Patient
,PaymentNotice
,PaymentReconciliation
,Person
,Practitioner
,PractitionerRole
,Procedure
,ProcedureRequest
,ProcessRequest
,ProcessResponse
,Provenance
,QuestionnaireResponse
,ReferralRequest
,RelatedPerson
,RequestGroup
,ResearchStudy
,ResearchSubject
,RiskAssessment
,Schedule
,Sequence
,Slot
,Specimen
,Subscription
,Substance
,SupplyDelivery
,SupplyRequest
,Task
,TestReport
,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:
-
Field Summary
Modifier and TypeFieldDescriptionThese 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.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.protected Narrative
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.Fields inherited from class org.hl7.fhir.dstu3.model.Resource
id, implicitRules, language, meta
Fields 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_TAG
Fields inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
INCLUDE_ALL, WILDCARD_ALL_SET
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addExtension
(String url, Type value) abstract DomainResource
copy()
void
copyValues
(DomainResource dst) boolean
equalsDeep
(Base other_) boolean
equalsShallow
(Base other_) fhirType()
getExtensionByUrl
(String theUrl) getExtensionsByUrl
(String theUrl) Returns a list of extensions from this element which have the given URL.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) getText()
String[]
getTypesForProperty
(int hash, String name) boolean
boolean
boolean
hasExtension
(String url) boolean
boolean
hasText()
boolean
isEmpty()
protected void
listChildren
(List<Property> children) makeProperty
(int hash, String name) setContained
(List<Resource> theContained) setExtension
(List<Extension> theExtension) setModifierExtension
(List<Extension> theModifierExtension) setProperty
(int hash, String name, Base value) setProperty
(String name, Base value) Methods inherited from class org.hl7.fhir.dstu3.model.Resource
copyValues, getId, getIdBase, getIdElement, getIdPart, getImplicitRules, getImplicitRulesElement, getLanguage, getLanguageElement, getMeta, getResourceType, hasId, hasIdElement, hasImplicitRules, hasImplicitRulesElement, hasLanguage, hasLanguageElement, hasMeta, setId, setIdBase, setIdElement, setImplicitRules, setImplicitRulesElement, setLanguage, setLanguageElement, setMeta
Methods inherited from class org.hl7.fhir.dstu3.model.BaseResource
getStructureFhirVersionEnum, isResource, setId
Methods inherited from class org.hl7.fhir.dstu3.model.Base
castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactDetail, castToContactPoint, castToContributor, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDosage, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToRelatedArtifact, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToTriggerDefinition, castToType, castToUnsignedInt, castToUri, castToUsageContext, castToXhtml, castToXhtmlString, children, clearUserData, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isBooleanPrimitive, isMetadataBased, isPrimitive, listChildrenByName, 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
Methods inherited from interface org.hl7.fhir.instance.model.api.IBase
getFormatCommentsPost, getFormatCommentsPre, hasFormatComment
Methods 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 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
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
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
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 Details
-
DomainResource
public DomainResource()Constructor
-
-
Method Details
-
getText
- Specified by:
getText
in 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
-
setText
- 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
- Specified by:
getContained
in 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.)
-
setContained
- Returns:
- Returns a reference to
this
for easy method chaining
-
hasContained
-
addContained
-
getExtension
- Specified by:
getExtension
in 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.)
-
setExtension
- Returns:
- Returns a reference to
this
for easy method chaining
-
hasExtension
- Specified by:
hasExtension
in interfaceorg.hl7.fhir.instance.model.api.IBaseHasExtensions
-
addExtension
- Specified by:
addExtension
in interfaceorg.hl7.fhir.instance.model.api.IBaseHasExtensions
-
addExtension
-
getModifierExtension
- Specified by:
getModifierExtension
in 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.)
-
setModifierExtension
- Returns:
- Returns a reference to
this
for easy method chaining
-
hasModifierExtension
- Specified by:
hasModifierExtension
in interfaceorg.hl7.fhir.instance.model.api.IBaseHasModifierExtensions
-
addModifierExtension
- Specified by:
addModifierExtension
in interfaceorg.hl7.fhir.instance.model.api.IBaseHasModifierExtensions
-
addModifierExtension
-
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) -
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) -
listChildren
- Overrides:
listChildren
in classResource
-
getNamedProperty
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getNamedProperty
in classResource
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getProperty
public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getProperty
in classResource
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
setProperty
in classResource
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
- Overrides:
setProperty
in classResource
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
makeProperty
- Overrides:
makeProperty
in classResource
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getTypesForProperty
public String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getTypesForProperty
in classResource
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
addChild
-
fhirType
-
copy
-
copyValues
-
equalsDeep
- Overrides:
equalsDeep
in classResource
-
equalsShallow
- Overrides:
equalsShallow
in classResource
-
isEmpty
-
addExtension
-
hasExtension
-
getExtensionByUrl
-