Class Basic
- java.lang.Object
-
- ca.uhn.fhir.model.api.BaseElement
-
- ca.uhn.fhir.model.dstu2.resource.BaseResource
-
- ca.uhn.fhir.model.dstu2.resource.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
public class Basic extends BaseResource implements ca.uhn.fhir.model.api.IResource
HAPI/FHIR Basic Resource ()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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static ca.uhn.fhir.rest.gclient.ReferenceClientParamAUTHORFluent Client search parameter constant for authorstatic ca.uhn.fhir.rest.gclient.TokenClientParamCODEFluent Client search parameter constant for codestatic ca.uhn.fhir.rest.gclient.DateClientParamCREATEDFluent Client search parameter constant for createdstatic ca.uhn.fhir.rest.gclient.TokenClientParamIDENTIFIERFluent Client search parameter constant for identifierstatic ca.uhn.fhir.model.api.IncludeINCLUDE_AUTHORConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.model.api.IncludeINCLUDE_PATIENTConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.model.api.IncludeINCLUDE_SUBJECTConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.rest.gclient.ReferenceClientParamPATIENTFluent Client search parameter constant for patientstatic StringSP_AUTHORSearch parameter constant for authorstatic StringSP_CODESearch parameter constant for codestatic StringSP_CREATEDSearch parameter constant for createdstatic StringSP_IDENTIFIERSearch parameter constant for identifierstatic StringSP_PATIENTSearch parameter constant for patientstatic StringSP_SUBJECTSearch parameter constant for subjectstatic ca.uhn.fhir.rest.gclient.ReferenceClientParamSUBJECTFluent Client search parameter constant for subject-
Fields inherited from class ca.uhn.fhir.model.dstu2.resource.BaseResource
RES_ID, SP_RES_ID, SP_RES_LANGUAGE
-
-
Constructor Summary
Constructors Constructor Description Basic()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IdentifierDtaddIdentifier()Adds and returns a new value for identifier ()BasicaddIdentifier(IdentifierDt theValue)Adds a given new value for identifier ()<T extends ca.uhn.fhir.model.api.IElement>
List<T>getAllPopulatedChildElementsOfType(Class<T> theType)ResourceReferenceDtgetAuthor()Gets the value(s) for author ().CodeableConceptDtgetCode()Gets the value(s) for code ().DategetCreated()Gets the value(s) for created ().ca.uhn.fhir.model.primitive.DateDtgetCreatedElement()Gets the value(s) for created ().List<IdentifierDt>getIdentifier()Gets the value(s) for identifier ().IdentifierDtgetIdentifierFirstRep()Gets the first repetition for identifier (), creating it if it does not already exist.StringgetResourceName()ca.uhn.fhir.context.FhirVersionEnumgetStructureFhirVersionEnum()ResourceReferenceDtgetSubject()Gets the value(s) for subject ().booleanisEmpty()BasicsetAuthor(ResourceReferenceDt theValue)Sets the value(s) for author ()BasicsetCode(CodeableConceptDt theValue)Sets the value(s) for code ()BasicsetCreated(ca.uhn.fhir.model.primitive.DateDt theValue)Sets the value(s) for created ()BasicsetCreated(Date theDate, ca.uhn.fhir.model.api.TemporalPrecisionEnum thePrecision)Sets the value for created ()BasicsetCreatedWithDayPrecision(Date theDate)Sets the value for created ()BasicsetIdentifier(List<IdentifierDt> theValue)Sets the value(s) for identifier ()BasicsetSubject(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
-
-
-
-
Field Detail
-
SP_SUBJECT
public static final String SP_SUBJECT
Search parameter constant for subjectDescription:
Type: reference
Path: Basic.subject
- See Also:
- Constant Field Values
-
SUBJECT
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUBJECT
Fluent Client search parameter constant for subjectDescription:
Type: reference
Path: Basic.subject
-
SP_CREATED
public static final String SP_CREATED
Search parameter constant for createdDescription:
Type: date
Path: Basic.created
- See Also:
- Constant Field Values
-
CREATED
public static final ca.uhn.fhir.rest.gclient.DateClientParam CREATED
Fluent Client search parameter constant for createdDescription:
Type: date
Path: Basic.created
-
SP_CODE
public static final String SP_CODE
Search parameter constant for codeDescription:
Type: token
Path: Basic.code
- See Also:
- Constant Field Values
-
CODE
public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE
Fluent Client search parameter constant for codeDescription:
Type: token
Path: Basic.code
-
SP_PATIENT
public static final String SP_PATIENT
Search parameter constant for patientDescription:
Type: reference
Path: Basic.subject
- See Also:
- Constant Field Values
-
PATIENT
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT
Fluent Client search parameter constant for patientDescription:
Type: reference
Path: Basic.subject
-
SP_AUTHOR
public static final String SP_AUTHOR
Search parameter constant for authorDescription:
Type: reference
Path: Basic.author
- See Also:
- Constant Field Values
-
AUTHOR
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam AUTHOR
Fluent Client search parameter constant for authorDescription:
Type: reference
Path: Basic.author
-
SP_IDENTIFIER
public static final String SP_IDENTIFIER
Search parameter constant for identifierDescription:
Type: token
Path: Basic.identifier
- See Also:
- Constant Field Values
-
IDENTIFIER
public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER
Fluent Client search parameter constant for identifierDescription:
Type: token
Path: Basic.identifier
-
INCLUDE_AUTHOR
public static final ca.uhn.fhir.model.api.Include INCLUDE_AUTHOR
Constant for fluent queries to be used to add include statements. Specifies the path value of "Basic:author".
-
INCLUDE_PATIENT
public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT
Constant for fluent queries to be used to add include statements. Specifies the path value of "Basic:patient".
-
INCLUDE_SUBJECT
public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT
Constant for fluent queries to be used to add include statements. Specifies the path value of "Basic:subject".
-
-
Constructor Detail
-
Basic
public Basic()
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin 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:
getAllPopulatedChildElementsOfTypein interfaceca.uhn.fhir.model.api.ICompositeElement
-
getIdentifier
public List<IdentifierDt> 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
public Basic setIdentifier(List<IdentifierDt> theValue)
Sets the value(s) for identifier ()Definition: Identifier assigned to the resource for business purposes, outside the context of FHIR
-
addIdentifier
public IdentifierDt addIdentifier()
Adds and returns a new value for identifier ()Definition: Identifier assigned to the resource for business purposes, outside the context of FHIR
-
addIdentifier
public Basic addIdentifier(IdentifierDt theValue)
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
public IdentifierDt 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
public CodeableConceptDt 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
public Basic setCode(CodeableConceptDt theValue)
Sets the value(s) for code ()Definition: Identifies the 'type' of resource - equivalent to the resource name for other resources.
-
getSubject
public ResourceReferenceDt 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
public Basic setSubject(ResourceReferenceDt theValue)
Sets the value(s) for subject ()Definition: Identifies the patient, practitioner, device or any other resource that is the \"focus\" of this resource.
-
getAuthor
public ResourceReferenceDt 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
public Basic setAuthor(ResourceReferenceDt theValue)
Sets the value(s) for author ()Definition: Indicates who was responsible for creating the resource instance
-
getCreatedElement
public ca.uhn.fhir.model.primitive.DateDt 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
public Date 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
public Basic setCreated(ca.uhn.fhir.model.primitive.DateDt theValue)
Sets the value(s) for created ()Definition: Identifies when the resource was first created
-
setCreated
public Basic setCreated(Date theDate, ca.uhn.fhir.model.api.TemporalPrecisionEnum thePrecision)
Sets the value for created ()Definition: Identifies when the resource was first created
-
setCreatedWithDayPrecision
public Basic setCreatedWithDayPrecision(Date theDate)
Sets the value for created ()Definition: Identifies when the resource was first created
-
getResourceName
public String getResourceName()
- Specified by:
getResourceNamein interfaceca.uhn.fhir.model.api.IResource
-
getStructureFhirVersionEnum
public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum()
- Specified by:
getStructureFhirVersionEnumin interfaceorg.hl7.fhir.instance.model.api.IBaseResource- Specified by:
getStructureFhirVersionEnumin interfaceca.uhn.fhir.model.api.IResource
-
-