google / android-fhir

The Android FHIR SDK is a set of Kotlin libraries for building offline-capable, mobile-first healthcare applications using the HL7® FHIR® standard on Android.
https://google.github.io/android-fhir/
Apache License 2.0
479 stars 258 forks source link

Strip out `_text` field of resources stored in the local database #1992

Open jingtang10 opened 1 year ago

jingtang10 commented 1 year ago

Is your feature request related to a problem? Please describe. The _text field is a narrative (typically encoded in HTML(!!!)) for rendering the resource on screen. It's not something we can use on Android easily, and it's typically not something the user cases about and wants to edit. It can be large, especially for resources originated from external systems (can be auto generated).

Describe the solution you'd like We might want to strip out the _text field from resources downloaded from a server.

This will result in correct behaviour in syncing, only because we sync the patches rather than the whole resources... therefore, we also need to block changes to _text.

Describe alternatives you've considered

Additional context https://www.hl7.org/fhir/domainresource-definitions.html#DomainResource.text

This is releated to #1990

Would you like to work on the issue? NA

fredhersch commented 7 months ago

Linked to #1990