
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
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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ReferenceIndicates who was responsible for creating the resource instance.protected ResourceThe actual object that is the target of the reference (Indicates who was responsible for creating the resource instance.)protected CodeableConceptIdentifies the 'type' of resource - equivalent to the resource name for other resources.protected DateTypeIdentifies when the resource was first created.protected List<Identifier> Identifier assigned to the resource for business purposes, outside the context of FHIR.static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected ReferenceIdentifies the patient, practitioner, device or any other resource that is the "focus" of this resource.protected ResourceThe 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, textFields inherited from class org.hl7.fhir.dstu2.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 TypeMethodDescriptioncopy()booleanequalsDeep(Base other) booleanequalsShallow(Base other) fhirType()getCode()booleanbooleanhasCode()booleanbooleanbooleanbooleanbooleanisEmpty()protected voidlistChildren(List<Property> childrenList) setAuthorTarget(Resource value) setCode(CodeableConcept value) setCreated(Date value) setCreatedElement(DateType value) voidsetProperty(String name, Base value) setSubject(Reference value) setSubjectTarget(Resource value) protected BasicMethods inherited from class org.hl7.fhir.dstu2.model.DomainResource
addContained, addExtension, addExtension, addModifierExtension, addModifierExtension, copyValues, getContained, getExtension, getExtensionByUrl, getModifierExtension, getText, hasContained, hasExtension, hasExtension, hasModifierExtension, hasText, setTextMethods 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, setMetaMethods inherited from class org.hl7.fhir.dstu2.model.BaseResource
getStructureFhirVersionEnum, setIdMethods 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, setUserDataINNMethods 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
-
identifier
Identifier assigned to the resource for business purposes, outside the context of FHIR. -
code
Identifies the 'type' of resource - equivalent to the resource name for other resources. -
subject
Identifies the patient, practitioner, device or any other resource that is the "focus" of this 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.) -
author
Indicates who was responsible for creating the resource instance. -
authorTarget
The actual object that is the target of the reference (Indicates who was responsible for creating the resource instance.) -
created
Identifies when the resource was first created. -
SP_IDENTIFIER
- See Also:
-
SP_CODE
- See Also:
-
SP_SUBJECT
- See Also:
-
SP_CREATED
- See Also:
-
SP_PATIENT
- See Also:
-
SP_AUTHOR
- See Also:
-
-
Constructor Details
-
Basic
public Basic() -
Basic
-
-
Method Details
-
getIdentifier
- Returns:
identifier(Identifier assigned to the resource for business purposes, outside the context of FHIR.)
-
hasIdentifier
-
addIdentifier
- Returns:
identifier(Identifier assigned to the resource for business purposes, outside the context of FHIR.)
-
addIdentifier
-
getCode
- Returns:
code(Identifies the 'type' of resource - equivalent to the resource name for other resources.)
-
hasCode
-
setCode
- Parameters:
value-code(Identifies the 'type' of resource - equivalent to the resource name for other resources.)
-
getSubject
- Returns:
subject(Identifies the patient, practitioner, device or any other resource that is the "focus" of this resource.)
-
hasSubject
-
setSubject
- Parameters:
value-subject(Identifies the patient, practitioner, device or any other resource that is the "focus" of this 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
- 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
- Returns:
author(Indicates who was responsible for creating the resource instance.)
-
hasAuthor
-
setAuthor
- Parameters:
value-author(Indicates who was responsible for creating the resource instance.)
-
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
- 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
- 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
-
hasCreated
-
setCreatedElement
- 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
- Returns:
- Identifies when the resource was first created.
-
setCreated
- Parameters:
value- Identifies when the resource was first created.
-
listChildren
- Overrides:
listChildrenin classDomainResource
-
setProperty
- Overrides:
setPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
addChild
- Overrides:
addChildin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
fhirType
- Specified by:
fhirTypein interfaceorg.hl7.fhir.instance.model.api.IBase- Overrides:
fhirTypein classDomainResource
-
copy
- Specified by:
copyin classDomainResource
-
typedCopy
-
equalsDeep
- Overrides:
equalsDeepin classDomainResource
-
equalsShallow
- Overrides:
equalsShallowin classDomainResource
-
isEmpty
- Specified by:
isEmptyin interfaceorg.hl7.fhir.instance.model.api.IBase- Overrides:
isEmptyin classDomainResource
-
getResourceType
- Specified by:
getResourceTypein classResource
-