This repository has been archived by the owner on Mar 1, 2022. It is now read-only.
Improve modelization and text-search of DocumentReference text content #20
Labels
type/enhancement
New feature or request
Problem
We currently use a custom extension
documentreference-raw-text
to index the text content of a document but we want to useDocumentReference.attachment.data
instead. Using a custom extension is an interoperability issue.Description
As described in arkhn/Cohort360#97 we want to change the FHIR attribute where the text content of a document is stored. Using the custom extension, the text is currently stored in
DocumentReference.extension[0].valueString
of typestring
which allows it to be indexed in ES throughmyContentText
of theResourceTable
dataclass (seeparseContentTextIntoWords
inhapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/BaseHapiFhirDao.java
).We want to use the
DocumentReference.attachment.data
(which is appropriate according to the FHIR model) but of typebase64binary
which is not indexed in ES and therefore prevents us from running full-text searches on this field.Alternatives
Don't know yet, I hope we can avoid forking but I don't see it yet.
Additional context
Implementation
The text was updated successfully, but these errors were encountered: