Package org.hl7.fhir.dstu2.model
Class Basic
-
- 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
public class Basic extends DomainResource
Basic is used for handling concepts not yet defined in FHIR, narrative-only resources that don't map to an existing resource, and custom resources not appropriate for inclusion in the FHIR specification.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ReferenceauthorIndicates who was responsible for creating the resource instance.protected ResourceauthorTargetThe actual object that is the target of the reference (Indicates who was responsible for creating the resource instance.)protected CodeableConceptcodeIdentifies the 'type' of resource - equivalent to the resource name for other resources.protected DateTypecreatedIdentifies when the resource was first created.protected List<Identifier>identifierIdentifier assigned to the resource for business purposes, outside the context of FHIR.static StringSP_AUTHORstatic StringSP_CODEstatic StringSP_CREATEDstatic StringSP_IDENTIFIERstatic StringSP_PATIENTstatic StringSP_SUBJECTprotected ReferencesubjectIdentifies the patient, practitioner, device or any other resource that is the "focus" of this resource.protected ResourcesubjectTargetThe actual object that is the target of the reference (Identifies the patient, practitioner, device or any other resource that is the "focus" of this resource.)-
Fields inherited from class org.hl7.fhir.dstu2.model.DomainResource
contained, extension, modifierExtension, text
-
Fields inherited from class org.hl7.fhir.dstu2.model.Resource
id, implicitRules, language, meta
-
-
Constructor Summary
Constructors Constructor Description Basic()Basic(CodeableConcept code)
-
Method Summary
-
Methods inherited from class org.hl7.fhir.dstu2.model.DomainResource
addContained, addExtension, addExtension, addModifierExtension, addModifierExtension, copyValues, getContained, getExtension, getModifierExtension, getText, hasContained, hasExtension, hasModifierExtension, hasText, setText
-
Methods inherited from class org.hl7.fhir.dstu2.model.Resource
copyValues, getId, getIdElement, getImplicitRules, getImplicitRulesElement, getLanguage, getLanguageElement, getMeta, 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
-
identifier
protected List<Identifier> identifier
Identifier assigned to the resource for business purposes, outside the context of FHIR.
-
code
protected CodeableConcept code
Identifies the 'type' of resource - equivalent to the resource name for other resources.
-
subject
protected Reference subject
Identifies the patient, practitioner, device or any other resource that is the "focus" of this resource.
-
subjectTarget
protected Resource subjectTarget
The actual object that is the target of the reference (Identifies the patient, practitioner, device or any other resource that is the "focus" of this resource.)
-
authorTarget
protected Resource authorTarget
The actual object that is the target of the reference (Indicates who was responsible for creating the resource instance.)
-
SP_IDENTIFIER
public static final String SP_IDENTIFIER
- See Also:
- Constant Field Values
-
SP_CODE
public static final String SP_CODE
- See Also:
- Constant Field Values
-
SP_SUBJECT
public static final String SP_SUBJECT
- See Also:
- Constant Field Values
-
SP_CREATED
public static final String SP_CREATED
- See Also:
- Constant Field Values
-
SP_PATIENT
public static final String SP_PATIENT
- See Also:
- Constant Field Values
-
SP_AUTHOR
public static final String SP_AUTHOR
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Basic
public Basic()
-
Basic
public Basic(CodeableConcept code)
-
-
Method Detail
-
getIdentifier
public List<Identifier> getIdentifier()
- Returns:
identifier(Identifier assigned to the resource for business purposes, outside the context of FHIR.)
-
hasIdentifier
public boolean hasIdentifier()
-
addIdentifier
public Identifier addIdentifier()
- Returns:
identifier(Identifier assigned to the resource for business purposes, outside the context of FHIR.)
-
addIdentifier
public Basic addIdentifier(Identifier t)
-
getCode
public CodeableConcept getCode()
- Returns:
code(Identifies the 'type' of resource - equivalent to the resource name for other resources.)
-
hasCode
public boolean hasCode()
-
setCode
public Basic setCode(CodeableConcept value)
- Parameters:
value-code(Identifies the 'type' of resource - equivalent to the resource name for other resources.)
-
getSubject
public Reference getSubject()
- Returns:
subject(Identifies the patient, practitioner, device or any other resource that is the "focus" of this resource.)
-
hasSubject
public boolean hasSubject()
-
setSubject
public Basic setSubject(Reference value)
- Parameters:
value-subject(Identifies the patient, practitioner, device or any other resource that is the "focus" of this resource.)
-
getSubjectTarget
public Resource getSubjectTarget()
- Returns:
subjectThe actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (Identifies the patient, practitioner, device or any other resource that is the "focus" of this resource.)
-
setSubjectTarget
public Basic setSubjectTarget(Resource value)
- Parameters:
value-subjectThe actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (Identifies the patient, practitioner, device or any other resource that is the "focus" of this resource.)
-
getAuthor
public Reference getAuthor()
- Returns:
author(Indicates who was responsible for creating the resource instance.)
-
hasAuthor
public boolean hasAuthor()
-
setAuthor
public Basic setAuthor(Reference value)
- Parameters:
value-author(Indicates who was responsible for creating the resource instance.)
-
getAuthorTarget
public Resource getAuthorTarget()
- Returns:
authorThe actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (Indicates who was responsible for creating the resource instance.)
-
setAuthorTarget
public Basic setAuthorTarget(Resource value)
- Parameters:
value-authorThe actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (Indicates who was responsible for creating the resource instance.)
-
getCreatedElement
public DateType getCreatedElement()
- Returns:
created(Identifies when the resource was first created.). This is the underlying object with id, value and extensions. The accessor "getCreated" gives direct access to the value
-
hasCreatedElement
public boolean hasCreatedElement()
-
hasCreated
public boolean hasCreated()
-
setCreatedElement
public Basic setCreatedElement(DateType value)
- Parameters:
value-created(Identifies when the resource was first created.). This is the underlying object with id, value and extensions. The accessor "getCreated" gives direct access to the value
-
getCreated
public Date getCreated()
- Returns:
- Identifies when the resource was first created.
-
setCreated
public Basic setCreated(Date value)
- Parameters:
value- Identifies when the resource was first created.
-
listChildren
protected void listChildren(List<Property> childrenList)
- Overrides:
listChildrenin classDomainResource
-
setProperty
public void setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
addChild
public Base addChild(String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
addChildin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
fhirType
public String fhirType()
- Specified by:
fhirTypein interfaceorg.hl7.fhir.instance.model.api.IBase- Overrides:
fhirTypein classDomainResource
-
copy
public Basic copy()
- Specified by:
copyin classDomainResource
-
equalsDeep
public boolean equalsDeep(Base other)
- Overrides:
equalsDeepin classDomainResource
-
equalsShallow
public boolean equalsShallow(Base other)
- Overrides:
equalsShallowin classDomainResource
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceorg.hl7.fhir.instance.model.api.IBase- Overrides:
isEmptyin classDomainResource
-
getResourceType
public ResourceType getResourceType()
- Specified by:
getResourceTypein classResource
-
-