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:
  • Field Details

    • SP_SUBJECT

      public static final String SP_SUBJECT
      Search parameter constant for subject

      Description:
      Type: reference
      Path: Basic.subject

      See Also:
    • SUBJECT

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

      Description:
      Type: reference
      Path: Basic.subject

    • SP_CREATED

      public static final String SP_CREATED
      Search parameter constant for created

      Description:
      Type: date
      Path: Basic.created

      See Also:
    • CREATED

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

      Description:
      Type: date
      Path: Basic.created

    • SP_CODE

      public static final String SP_CODE
      Search parameter constant for code

      Description:
      Type: token
      Path: Basic.code

      See Also:
    • CODE

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

      Description:
      Type: token
      Path: Basic.code

    • SP_PATIENT

      public static final String SP_PATIENT
      Search parameter constant for patient

      Description:
      Type: reference
      Path: Basic.subject

      See Also:
    • PATIENT

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

      Description:
      Type: reference
      Path: Basic.subject

    • SP_AUTHOR

      public static final String SP_AUTHOR
      Search parameter constant for author

      Description:
      Type: reference
      Path: Basic.author

      See Also:
    • AUTHOR

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

      Description:
      Type: reference
      Path: Basic.author

    • SP_IDENTIFIER

      public static final String SP_IDENTIFIER
      Search parameter constant for identifier

      Description:
      Type: token
      Path: Basic.identifier

      See Also:
    • 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 Details

  • Method Details

    • 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

      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

      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

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

      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

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

    • setCreatedWithDayPrecision

      Sets the value 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

    • 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