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 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.)
      • created

        protected DateType created
        Identifies when the resource was first created.
      • author

        protected Reference author
        Indicates who was responsible for creating the resource instance.
      • authorTarget

        protected Resource authorTarget
        The actual object that is the target of the reference (Indicates who was responsible for creating the resource instance.)
      • AUTHOR

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

        Description: Who created
        Type: reference
        Path: Basic.author

      • 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".
      • SP_PATIENT

        public static final String SP_PATIENT
        Search parameter: patient

        Description: Identifies the focus of this resource
        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 patient

        Description: Identifies the focus of this resource
        Type: reference
        Path: Basic.subject

      • 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".
      • CREATED

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

        Description: When created
        Type: date
        Path: Basic.created

      • SP_SUBJECT

        public static final String SP_SUBJECT
        Search parameter: subject

        Description: Identifies the focus of this resource
        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 subject

        Description: Identifies the focus of this resource
        Type: reference
        Path: Basic.subject

      • 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".
      • CODE

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

        Description: Kind of Resource
        Type: token
        Path: Basic.code

      • IDENTIFIER

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

        Description: Business identifier
        Type: token
        Path: Basic.identifier

    • Method Detail

      • 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.)
      • 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:
        subject The 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 - subject The 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.)
      • 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
      • 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.
      • getAuthor

        public Reference getAuthor()
        Returns:
        author (Indicates who was responsible for creating the resource instance.)
      • setAuthor

        public Basic setAuthor​(Reference value)
        Parameters:
        value - author (Indicates who was responsible for creating the resource instance.)
      • getAuthorTarget

        public Resource getAuthorTarget()
        Returns:
        author The 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 - author The 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.)
      • getProperty

        public Base[] getProperty​(int hash,
                                  String name,
                                  boolean checkValid)
                           throws org.hl7.fhir.exceptions.FHIRException
        Overrides:
        getProperty in class DomainResource
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • makeProperty

        public Base makeProperty​(int hash,
                                 String name)
                          throws org.hl7.fhir.exceptions.FHIRException
        Description copied from class: Base
        make an instance of a property. If the property is a repeating property, make a new instance. if the property is not repeating, return the property
        Overrides:
        makeProperty in class DomainResource
        Returns:
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface org.hl7.fhir.instance.model.api.IBase
        Overrides:
        isEmpty in class DomainResource