Serialized Form
-
Package ca.uhn.fhir.jpa.model.dialect
-
Class ca.uhn.fhir.jpa.model.dialect.HapiSequenceStyleGenerator
class HapiSequenceStyleGenerator extends Object implements Serializable-
Serialized Fields
-
myConfigured
boolean myConfigured
-
myGen
org.hibernate.id.enhanced.SequenceStyleGenerator myGen
-
myGeneratorName
String myGeneratorName
-
myIdMassager
ISequenceValueMassager myIdMassager
-
myStorageSettings
StorageSettings myStorageSettings
-
-
-
-
Package ca.uhn.fhir.jpa.model.entity
-
Class ca.uhn.fhir.jpa.model.entity.AuditableBasePartitionable
class AuditableBasePartitionable extends Object implements Serializable-
Serialized Fields
-
myPartitionId
PartitionablePartitionId myPartitionId
-
myPartitionIdValue
Integer myPartitionIdValue
This is here to support queries only, do not set this field directly
-
-
-
Class ca.uhn.fhir.jpa.model.entity.BaseHasResource
class BaseHasResource extends BasePartitionable implements Serializable -
Class ca.uhn.fhir.jpa.model.entity.BasePartitionable
class BasePartitionable extends Object implements Serializable-
Serialized Fields
-
myPartitionDateValue
LocalDate myPartitionDateValue
This is here to support queries only, do not set this field directly -
myPartitionId
PartitionablePartitionId myPartitionId
-
myPartitionIdValue
Integer myPartitionIdValue
This is here to support queries only, do not set this field directly
-
-
-
Class ca.uhn.fhir.jpa.model.entity.BaseResourceIndex
class BaseResourceIndex extends BasePartitionable implements Serializable -
Class ca.uhn.fhir.jpa.model.entity.BaseResourceIndexedCombo
class BaseResourceIndexedCombo extends BaseResourceIndex implements Serializable-
Serialized Fields
-
mySearchParameterId
org.hl7.fhir.instance.model.api.IIdType mySearchParameterId
-
-
-
Class ca.uhn.fhir.jpa.model.entity.BaseResourceIndexedSearchParam
class BaseResourceIndexedSearchParam extends BaseResourceIndex implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
myHashIdentity
Long myHashIdentity
Composite of resourceType, paramName, and partition info if configured. Combined with the various date fields for a query. Nullable to allow optimized storage. -
myMissing
boolean myMissing
-
myParamName
String myParamName
-
myResourcePid
Long myResourcePid
-
myResourceType
String myResourceType
-
myUpdated
Date myUpdated
-
-
Class ca.uhn.fhir.jpa.model.entity.BaseResourceIndexedSearchParamQuantity
class BaseResourceIndexedSearchParamQuantity extends BaseResourceIndexedSearchParam implements Serializable- serialVersionUID:
- 1L
-
Class ca.uhn.fhir.jpa.model.entity.BaseTag
class BaseTag extends BasePartitionable implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
myTag
TagDefinition myTag
-
myTagId
Long myTagId
-
-
Class ca.uhn.fhir.jpa.model.entity.PersistedResourceModifiedMessageEntityPK
class PersistedResourceModifiedMessageEntityPK extends Object implements Serializable -
Class ca.uhn.fhir.jpa.model.entity.ResourceHistoryProvenanceEntity
class ResourceHistoryProvenanceEntity extends BasePartitionable implements Serializable-
Serialized Fields
-
myId
Long myId
-
myRequestId
String myRequestId
-
myResourceHistoryTable
ResourceHistoryTable myResourceHistoryTable
-
myResourceTable
ResourceTable myResourceTable
-
mySourceUri
String mySourceUri
-
-
-
Class ca.uhn.fhir.jpa.model.entity.ResourceHistoryTable
class ResourceHistoryTable extends BaseHasResource implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
myEncoding
ResourceEncodingEnum myEncoding
-
myId
Long myId
-
myRequestId
String myRequestId
-
myResource
byte[] myResource
-
myResourceId
Long myResourceId
-
myResourceTable
ResourceTable myResourceTable
-
myResourceTextVc
String myResourceTextVc
-
myResourceType
String myResourceType
-
myResourceVersion
Long myResourceVersion
-
mySourceUri
String mySourceUri
-
myTags
Collection<ResourceHistoryTag> myTags
-
-
Class ca.uhn.fhir.jpa.model.entity.ResourceHistoryTag
class ResourceHistoryTag extends BaseTag implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
myId
Long myId
-
myResourceHistory
ResourceHistoryTable myResourceHistory
-
myResourceHistoryPid
Long myResourceHistoryPid
-
myResourceId
Long myResourceId
-
myResourceType
String myResourceType
-
-
Class ca.uhn.fhir.jpa.model.entity.ResourceIndexedComboStringUnique
class ResourceIndexedComboStringUnique extends BaseResourceIndexedCombo implements Serializable-
Serialized Fields
-
myHashComplete
Long myHashComplete
-
myHashComplete2
Long myHashComplete2
Because we'll be using these hashes to enforce uniqueness, the risk of collisions is bad, since it would be plain impossible to insert a row with a false collision here. So in order to reduce that risk, we double the number of bits we hash by having two hashes, effectively making the hash a 128 bit hash instead of just 64.The idea is that having two of them widens the hash from 64 bits to 128 bits
If we have a value we want to guarantee uniqueness on of
Observation?code=A
, say it hashes to12345
. And suppose we have another value ofObservation?code=B
which also hashes to12345
. This is unlikely but not impossible. And if this happens, it will be impossible to add a resource with code B if there is already a resource with code A.Adding a second, salted hash reduces the likelihood of this happening, since it's unlikely the second hash would also collide. Not impossible of course, but orders of magnitude less likely still.
- See Also:
-
myId
Long myId
-
myIndexString
String myIndexString
-
myPartitionIdValue
Integer myPartitionIdValue
This is here to support queries only, do not set this field directly -
myResource
ResourceTable myResource
-
myResourceId
Long myResourceId
-
-
-
Class ca.uhn.fhir.jpa.model.entity.ResourceIndexedComboTokenNonUnique
class ResourceIndexedComboTokenNonUnique extends BaseResourceIndexedCombo implements Serializable-
Serialized Fields
-
myHashComplete
Long myHashComplete
-
myId
Long myId
-
myIndexString
String myIndexString
-
myResource
ResourceTable myResource
-
myResourceId
Long myResourceId
-
-
-
Class ca.uhn.fhir.jpa.model.entity.ResourceIndexedSearchParamCoords
class ResourceIndexedSearchParamCoords extends BaseResourceIndexedSearchParam implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
myId
Long myId
-
myLatitude
Double myLatitude
-
myLongitude
Double myLongitude
-
myResource
ResourceTable myResource
-
-
Class ca.uhn.fhir.jpa.model.entity.ResourceIndexedSearchParamDate
class ResourceIndexedSearchParamDate extends BaseResourceIndexedSearchParam implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
myId
Long myId
-
myResource
ResourceTable myResource
-
myValueHigh
Date myValueHigh
-
myValueHighDateOrdinal
Integer myValueHighDateOrdinal
-
myValueLow
Date myValueLow
-
myValueLowDateOrdinal
Integer myValueLowDateOrdinal
Field which stores an integer representation of YYYYMDD as calculated by Calendar e.g. 2019-01-20 -> 20190120
-
-
Class ca.uhn.fhir.jpa.model.entity.ResourceIndexedSearchParamNumber
class ResourceIndexedSearchParamNumber extends BaseResourceIndexedSearchParam implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
myId
Long myId
-
myResource
ResourceTable myResource
-
myValue
BigDecimal myValue
-
-
Class ca.uhn.fhir.jpa.model.entity.ResourceIndexedSearchParamQuantity
class ResourceIndexedSearchParamQuantity extends BaseResourceIndexedSearchParamQuantity implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
myId
Long myId
-
myResource
ResourceTable myResource
-
myValue
Double myValue
-
-
Class ca.uhn.fhir.jpa.model.entity.ResourceIndexedSearchParamQuantityNormalized
class ResourceIndexedSearchParamQuantityNormalized extends BaseResourceIndexedSearchParamQuantity implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
myId
Long myId
-
myResource
ResourceTable myResource
-
myValue
Double myValue
-
-
Class ca.uhn.fhir.jpa.model.entity.ResourceIndexedSearchParamString
class ResourceIndexedSearchParamString extends BaseResourceIndexedSearchParam implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
myHashExact
Long myHashExact
- Since:
- 3.4.0 - At some point this should be made not-null
-
myHashNormalizedPrefix
Long myHashNormalizedPrefix
- Since:
- 3.4.0 - At some point this should be made not-null
-
myId
Long myId
-
myResource
ResourceTable myResource
-
myValueExact
String myValueExact
-
myValueNormalized
String myValueNormalized
-
-
Class ca.uhn.fhir.jpa.model.entity.ResourceIndexedSearchParamToken
class ResourceIndexedSearchParamToken extends BaseResourceIndexedSearchParam implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
myHashSystem
Long myHashSystem
- Since:
- 3.4.0 - At some point this should be made not-null
-
myHashSystemAndValue
Long myHashSystemAndValue
- Since:
- 3.4.0 - At some point this should be made not-null
-
myHashValue
Long myHashValue
- Since:
- 3.4.0 - At some point this should be made not-null
-
myId
Long myId
-
myResource
ResourceTable myResource
-
mySystem
String mySystem
-
myValue
String myValue
-
-
Class ca.uhn.fhir.jpa.model.entity.ResourceIndexedSearchParamUri
class ResourceIndexedSearchParamUri extends BaseResourceIndexedSearchParam implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
myHashUri
Long myHashUri
- Since:
- 3.4.0 - At some point this should be made not-null
-
myId
Long myId
-
myResource
ResourceTable myResource
-
myUri
String myUri
-
-
Class ca.uhn.fhir.jpa.model.entity.ResourceLink
class ResourceLink extends BaseResourceIndex implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
myId
Long myId
-
mySourcePath
String mySourcePath
-
mySourceResource
ResourceTable mySourceResource
-
mySourceResourcePid
Long mySourceResourcePid
-
mySourceResourceType
String mySourceResourceType
-
myTargetResource
ResourceTable myTargetResource
-
myTargetResourcePartitionId
PartitionablePartitionId myTargetResourcePartitionId
-
myTargetResourcePid
Long myTargetResourcePid
-
myTargetResourceType
String myTargetResourceType
-
myTargetResourceUrl
String myTargetResourceUrl
-
myTargetResourceVersion
Long myTargetResourceVersion
-
myTransientTargetResource
ResourceTable myTransientTargetResource
-
myUpdated
Date myUpdated
-
-
Class ca.uhn.fhir.jpa.model.entity.ResourceModifiedEntity
class ResourceModifiedEntity extends Object implements Serializable-
Serialized Fields
-
myCreatedTime
Date myCreatedTime
-
myResourceModifiedEntityPK
PersistedResourceModifiedMessageEntityPK myResourceModifiedEntityPK
-
myResourceType
String myResourceType
-
mySummaryResourceModifiedMessage
String mySummaryResourceModifiedMessage
-
-
-
Class ca.uhn.fhir.jpa.model.entity.ResourceSearchUrlEntityPK
class ResourceSearchUrlEntityPK extends Object implements Serializable- serialVersionUID:
- 1L
-
Class ca.uhn.fhir.jpa.model.entity.ResourceTable
class ResourceTable extends BaseHasResource implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
myContentText
String myContentText
Holds the narrative text only - Used for Fulltext searching but not directly stored in the DB Note the extra config needed in HS6 for indexing transient props: https://docs.jboss.org/hibernate/search/6.0/migration/html_single/#indexed-transient-requires-configurationNote that we depend on `myVersion` updated for this field to be indexed.
-
myCreatedByMatchUrl
String myCreatedByMatchUrl
-
myFhirId
String myFhirId
The id of the Resource. Will contain either the client-assigned id, or the sequence value. Will be null during insert time until the first read. -
myHashSha256
String myHashSha256
-
myHasLinks
boolean myHasLinks
-
myId
Long myId
-
myIndexStatus
Long myIndexStatus
-
myLanguage
String myLanguage
-
myLuceneIndexData
ExtendedHSearchIndexData myLuceneIndexData
-
myNarrativeText
String myNarrativeText
Holds the narrative text only - Used for Fulltext searching but not directly stored in the DB -
myParamsComboStringUnique
Collection<ResourceIndexedComboStringUnique> myParamsComboStringUnique
-
myParamsComboStringUniquePresent
Boolean myParamsComboStringUniquePresent
-
myParamsComboTokensNonUnique
Collection<ResourceIndexedComboTokenNonUnique> myParamsComboTokensNonUnique
-
myParamsComboTokensNonUniquePresent
Boolean myParamsComboTokensNonUniquePresent
-
myParamsCoords
Collection<ResourceIndexedSearchParamCoords> myParamsCoords
-
myParamsCoordsPopulated
boolean myParamsCoordsPopulated
-
myParamsDate
Collection<ResourceIndexedSearchParamDate> myParamsDate
-
myParamsDatePopulated
boolean myParamsDatePopulated
-
myParamsNumber
Collection<ResourceIndexedSearchParamNumber> myParamsNumber
-
myParamsNumberPopulated
boolean myParamsNumberPopulated
-
myParamsQuantity
Collection<ResourceIndexedSearchParamQuantity> myParamsQuantity
-
myParamsQuantityNormalized
Collection<ResourceIndexedSearchParamQuantityNormalized> myParamsQuantityNormalized
Added to support UCUM conversion since 5.3.0 -
myParamsQuantityNormalizedPopulated
Boolean myParamsQuantityNormalizedPopulated
Added to support UCUM conversion, NOTE : use Boolean class instead of boolean primitive, in order to set the existing rows to null since 5.3.0 -
myParamsQuantityPopulated
boolean myParamsQuantityPopulated
-
myParamsString
Collection<ResourceIndexedSearchParamString> myParamsString
-
myParamsStringPopulated
boolean myParamsStringPopulated
-
myParamsToken
Collection<ResourceIndexedSearchParamToken> myParamsToken
-
myParamsTokenPopulated
boolean myParamsTokenPopulated
-
myParamsUri
Collection<ResourceIndexedSearchParamUri> myParamsUri
-
myParamsUriPopulated
boolean myParamsUriPopulated
-
myProvenance
Collection<ResourceHistoryProvenanceEntity> myProvenance
-
myResourceLinks
Collection<ResourceLink> myResourceLinks
-
myResourceLinksAsTarget
Collection<ResourceLink> myResourceLinksAsTarget
-
myResourceLinksField
String myResourceLinksField
This is a clone ofResourceTable.myResourceLinks
but without the hibernate annotations. Before we persist we copy the contents ofResourceTable.myResourceLinks
into this field. We have this separate because that way we can only populate this field ifResourceTable.myHasLinks
is true, meaning that there are actually resource links present right now. This avoids Hibernate Search triggering a select on the resource link table.This field is used by FulltextSearchSvcImpl
You can test that any changes don't cause extra queries by running FhirResourceDaoR4QueryCountTest
-
myResourceType
String myResourceType
-
mySearchParamPresents
Collection<SearchParamPresentEntity> mySearchParamPresents
-
mySearchUrlPresent
Boolean mySearchUrlPresent
Is there a corresponding row inResourceSearchUrlEntity
for this row. TODO: Added in 6.6.0 - Should make this a primitive boolean at some point -
myTags
Set<ResourceTag> myTags
-
myUpdatedByMatchUrl
String myUpdatedByMatchUrl
-
myVersion
long myVersion
-
-
Class ca.uhn.fhir.jpa.model.entity.ResourceTag
class ResourceTag extends BaseTag implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
myId
Long myId
-
myResource
ResourceTable myResource
-
myResourceId
Long myResourceId
-
myResourceType
String myResourceType
-
-
Class ca.uhn.fhir.jpa.model.entity.SearchParamPresentEntity
class SearchParamPresentEntity extends BasePartitionable implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
myHashPresence
Long myHashPresence
-
myId
Long myId
-
myPresent
boolean myPresent
-
myResource
ResourceTable myResource
-
myResourcePid
Long myResourcePid
-
-
Class ca.uhn.fhir.jpa.model.entity.TagDefinition
class TagDefinition extends Object implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
myCode
String myCode
-
myDisplay
String myDisplay
-
myId
Long myId
-
myResources
Collection<ResourceTag> myResources
-
myResourceVersions
Collection<ResourceHistoryTag> myResourceVersions
-
mySystem
String mySystem
-
myTagType
TagTypeEnum myTagType
-
myUserSelected
Boolean myUserSelected
-
myVersion
String myVersion
-
-