Class Basic
- All Implemented Interfaces:
ca.uhn.fhir.model.api.ICompositeElement
,ca.uhn.fhir.model.api.IElement
,ca.uhn.fhir.model.api.IResource
,ca.uhn.fhir.model.api.ISupportsUndeclaredExtensions
,Serializable
,org.hl7.fhir.instance.model.api.IBase
,org.hl7.fhir.instance.model.api.IBaseResource
Definition: 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.
Requirements: Need some way to safely (without breaking interoperability) allow implementers to exchange content not supported by the initial set of declared resources.
Profile Definition: http://hl7.org/fhir/profiles/Basic
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ca.uhn.fhir.rest.gclient.ReferenceClientParam
Fluent Client search parameter constant for authorstatic final ca.uhn.fhir.rest.gclient.TokenClientParam
Fluent Client search parameter constant for codestatic final ca.uhn.fhir.rest.gclient.DateClientParam
Fluent Client search parameter constant for createdstatic final ca.uhn.fhir.rest.gclient.TokenClientParam
Fluent Client search parameter constant for identifierstatic final ca.uhn.fhir.model.api.Include
Constant for fluent queries to be used to add include statements.static final ca.uhn.fhir.model.api.Include
Constant for fluent queries to be used to add include statements.static final ca.uhn.fhir.model.api.Include
Constant for fluent queries to be used to add include statements.static final ca.uhn.fhir.rest.gclient.ReferenceClientParam
Fluent Client search parameter constant for patientstatic final String
Search parameter constant for authorstatic final String
Search parameter constant for codestatic final String
Search parameter constant for createdstatic final String
Search parameter constant for identifierstatic final String
Search parameter constant for patientstatic final String
Search parameter constant for subjectstatic final ca.uhn.fhir.rest.gclient.ReferenceClientParam
Fluent Client search parameter constant for subjectFields inherited from class ca.uhn.fhir.model.dstu2.resource.BaseResource
RES_ID, SP_RES_ID
Fields inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
INCLUDE_ALL, WILDCARD_ALL_SET
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdds and returns a new value for identifier ()addIdentifier
(IdentifierDt theValue) Adds a given new value for identifier ()<T extends ca.uhn.fhir.model.api.IElement>
List<T> getAllPopulatedChildElementsOfType
(Class<T> theType) Gets the value(s) for author ().getCode()
Gets the value(s) for code ().Gets the value(s) for created ().ca.uhn.fhir.model.primitive.DateDt
Gets the value(s) for created ().Gets the value(s) for identifier ().Gets the first repetition for identifier (), creating it if it does not already exist.ca.uhn.fhir.context.FhirVersionEnum
Gets the value(s) for subject ().boolean
isEmpty()
setAuthor
(ResourceReferenceDt theValue) Sets the value(s) for author ()setCode
(CodeableConceptDt theValue) Sets the value(s) for code ()setCreated
(ca.uhn.fhir.model.primitive.DateDt theValue) Sets the value(s) for created ()setCreated
(Date theDate, ca.uhn.fhir.model.api.TemporalPrecisionEnum thePrecision) Sets the value for created ()setCreatedWithDayPrecision
(Date theDate) Sets the value for created ()setIdentifier
(List<IdentifierDt> theValue) Sets the value(s) for identifier ()setSubject
(ResourceReferenceDt theValue) Sets the value(s) for subject ()Methods inherited from class ca.uhn.fhir.model.dstu2.resource.BaseResource
getContained, getId, getIdElement, getLanguage, getMeta, getResourceMetadata, getText, isBaseEmpty, setContained, setId, setId, setId, setLanguage, setResourceMetadata, setText, toString
Methods inherited from class ca.uhn.fhir.model.api.BaseElement
addUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getFormatCommentsPost, getFormatCommentsPre, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, getUserData, hasFormatComment, setUserData
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.hl7.fhir.instance.model.api.IBase
fhirType, getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserData
Methods inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
getIdElement, isDeleted, setId, setId
Methods inherited from interface ca.uhn.fhir.model.api.IResource
getContained, getId, getLanguage, getMeta, getResourceMetadata, getText, setId, setLanguage, setResourceMetadata
-
Field Details
-
SP_SUBJECT
Search parameter constant for subjectDescription:
Type: reference
Path: Basic.subject
- See Also:
-
SUBJECT
Fluent Client search parameter constant for subjectDescription:
Type: reference
Path: Basic.subject
-
SP_CREATED
Search parameter constant for createdDescription:
Type: date
Path: Basic.created
- See Also:
-
CREATED
Fluent Client search parameter constant for createdDescription:
Type: date
Path: Basic.created
-
SP_CODE
Search parameter constant for codeDescription:
Type: token
Path: Basic.code
- See Also:
-
CODE
Fluent Client search parameter constant for codeDescription:
Type: token
Path: Basic.code
-
SP_PATIENT
Search parameter constant for patientDescription:
Type: reference
Path: Basic.subject
- See Also:
-
PATIENT
Fluent Client search parameter constant for patientDescription:
Type: reference
Path: Basic.subject
-
SP_AUTHOR
Search parameter constant for authorDescription:
Type: reference
Path: Basic.author
- See Also:
-
AUTHOR
Fluent Client search parameter constant for authorDescription:
Type: reference
Path: Basic.author
-
SP_IDENTIFIER
Search parameter constant for identifierDescription:
Type: token
Path: Basic.identifier
- See Also:
-
IDENTIFIER
Fluent Client search parameter constant for identifierDescription:
Type: token
Path: Basic.identifier
-
INCLUDE_AUTHOR
Constant for fluent queries to be used to add include statements. Specifies the path value of "Basic:author". -
INCLUDE_PATIENT
Constant for fluent queries to be used to add include statements. Specifies the path value of "Basic:patient". -
INCLUDE_SUBJECT
Constant for fluent queries to be used to add include statements. Specifies the path value of "Basic:subject".
-
-
Constructor Details
-
Basic
public Basic()
-
-
Method Details
-
isEmpty
- Specified by:
isEmpty
in interfaceorg.hl7.fhir.instance.model.api.IBase
-
getAllPopulatedChildElementsOfType
public <T extends ca.uhn.fhir.model.api.IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) - Specified by:
getAllPopulatedChildElementsOfType
in interfaceca.uhn.fhir.model.api.ICompositeElement
-
getIdentifier
Gets the value(s) for identifier (). creating it if it does not exist. Will not returnnull
.Definition: Identifier assigned to the resource for business purposes, outside the context of FHIR
-
setIdentifier
Sets the value(s) for identifier ()Definition: Identifier assigned to the resource for business purposes, outside the context of FHIR
-
addIdentifier
Adds and returns a new value for identifier ()Definition: Identifier assigned to the resource for business purposes, outside the context of FHIR
-
addIdentifier
Adds a given new value for identifier ()Definition: Identifier assigned to the resource for business purposes, outside the context of FHIR
- Parameters:
theValue
- The identifier to add (must not benull
)
-
getIdentifierFirstRep
Gets the first repetition for identifier (), creating it if it does not already exist.Definition: Identifier assigned to the resource for business purposes, outside the context of FHIR
-
getCode
Gets the value(s) for code (). creating it if it does not exist. Will not returnnull
.Definition: Identifies the 'type' of resource - equivalent to the resource name for other resources.
-
setCode
Sets the value(s) for code ()Definition: Identifies the 'type' of resource - equivalent to the resource name for other resources.
-
getSubject
Gets the value(s) for subject (). creating it if it does not exist. Will not returnnull
.Definition: Identifies the patient, practitioner, device or any other resource that is the \"focus\" of this resource.
-
setSubject
Sets the value(s) for subject ()Definition: Identifies the patient, practitioner, device or any other resource that is the \"focus\" of this resource.
-
getAuthor
Gets the value(s) for author (). creating it if it does not exist. Will not returnnull
.Definition: Indicates who was responsible for creating the resource instance
-
setAuthor
Sets the value(s) for author ()Definition: Indicates who was responsible for creating the resource instance
-
getCreatedElement
Gets the value(s) for created (). creating it if it does not exist. Will not returnnull
.Definition: Identifies when the resource was first created
-
getCreated
Gets the value(s) for created (). creating it if it does not exist. This method may returnnull
.Definition: Identifies when the resource was first created
-
setCreated
Sets the value(s) for created ()Definition: Identifies when the resource was first created
-
setCreatedWithDayPrecision
Sets the value for created ()Definition: Identifies when the resource was first created
-
setCreated
Sets the value for created ()Definition: Identifies when the resource was first created
-
getResourceName
- Specified by:
getResourceName
in interfaceca.uhn.fhir.model.api.IResource
-
getStructureFhirVersionEnum
- Specified by:
getStructureFhirVersionEnum
in interfaceorg.hl7.fhir.instance.model.api.IBaseResource
- Specified by:
getStructureFhirVersionEnum
in interfaceca.uhn.fhir.model.api.IResource
-