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

    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 Detail

      • SUBJECT

        public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUBJECT
        Fluent Client search parameter constant for subject

        Description:
        Type: reference
        Path: Basic.subject

      • CREATED

        public static final ca.uhn.fhir.rest.gclient.DateClientParam CREATED
        Fluent Client search parameter constant for created

        Description:
        Type: date
        Path: Basic.created

      • CODE

        public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE
        Fluent Client search parameter constant for code

        Description:
        Type: token
        Path: Basic.code

      • PATIENT

        public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT
        Fluent Client search parameter constant for patient

        Description:
        Type: reference
        Path: Basic.subject

      • AUTHOR

        public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam AUTHOR
        Fluent Client search parameter constant for author

        Description:
        Type: reference
        Path: Basic.author

      • IDENTIFIER

        public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER
        Fluent Client search parameter constant for identifier

        Description:
        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

    • Method Detail

      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface org.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 interface ca.uhn.fhir.model.api.ICompositeElement
      • getIdentifier

        public List<IdentifierDtgetIdentifier()
        Gets the value(s) for identifier (). creating it if it does not exist. Will not return null.

        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 be null)
      • 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 return null.

        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 return null.

        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 return null.

        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 return null.

        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 return null.

        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:
        getResourceName in interface ca.uhn.fhir.model.api.IResource
      • getStructureFhirVersionEnum

        public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum()
        Specified by:
        getStructureFhirVersionEnum in interface org.hl7.fhir.instance.model.api.IBaseResource
        Specified by:
        getStructureFhirVersionEnum in interface ca.uhn.fhir.model.api.IResource